[KDYv2] Development Blog Thread

By ThatRobHuman, in Star Wars: Armada

Here's my biggest problem with doing more customizable dice: representation.

Let's assume I keep d8s-only with preset faces. This is what an API response would look like with that format:

{
    "total": 8,
    "data": [
        {
            "content_id": "PDdAaCF6",
            "name": "Purple",
            "slug": "Purple",
            "label": "Purple",
            "status": "PUBLIC",
            "canonicity": "COMMUNITY",
            "creator_id": "X5XZbkv5",
            "creator_name": "FoaS",
            "created_dtm": "2018-02-26 20:25:39",
            "editor_id": "X5XZbkv5",
            "editor_name": "FoaS",
            "edited_dtm": "2018-02-26 20:25:39",
            "genre_id": "PhKc35a9",
            "range_close": 1,
            "range_medium": 1,
            "range_long": 0,
            "face1": "b",
            "face2": "b",
            "face3": "h",
            "face4": "h",
            "face5": "c",
            "face6": "c",
            "face7": "hh",
            "face8": "ch",
            "color_body": "#cc55cc",
            "color_face": "#ffffff"
        },
     ...
]

As you can see, all the data to show what a custom die looks like is represented in that response.

The problem is that if I allow for custom die-faces (other than hit, crit, acc, or some combination thereof) as well as a custom number of die faces (d4, d6, etc) then I lose a lot of possibilities as to what I can represent in the GET call. I'd have to iterate through all dice in the query, which could be a lot, and match up N-number of face components on each die. That's a huge performance hit - no good.

I could do "faceN": "(ID of dieface)", but that won't actually tell you what the die face means without doing a second query anyways - a big disadvantage.

I could pass a Thumbnail link in the body, but that becomes a problem for when there is anywhere from 4 to 20 faces - That's a big variation in data to represent in a 128x128 image.

Edited by FoaS

How do you put italics in card titles?

I can't seem to figure out how.

Edited by Indy_com
Grammar

You wrap the text you want italicized in tags

of course the forums use the same tags... Open-square-bracket i close-square bracket text open-square-bracket slash i close-square-bracket

Most fields take your common formatting text ubb code tags such as I for italics, b for bold (I think I did underline?) And e for emphasis (bold and small caps)

Edited by FoaS

Leaving dice types alone for right now, until I can decide how best to handle the representation issue.

I've got keywords working (except that I have yet to add a field to keywords to indicate if it is detrimental, like heavy, so that squadron dial renderers can do it in red).

For meta content, all I have left are damage types (crew and ship, for starters) and then it's on to actual content types, like ships, squadrons, and what not.

Doing those will probably require me locking down the dicetype thing, so, there may be a small paradigm shift in collection structure first.

After that, I really want to see about doing custom card types, which already exists on kdy1.

Next item is model and texture handling, including paint jobs, for TTS.

Fleet builder functionality comes in after that.

Then we start on the actual front end to make the API usable for you users.

How would one add a new squadron silhouette?

For now, only admins can. What squadron are you looking to add?

1 hour ago, FoaS said:

For now, only admins can. What squadron are you looking to add?

The TIE Striker and the Rogue Shadow.

I'll see what I can do, unless cynan beats me to it like he often does?

Not Found

The requested URL /forgotpassword.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

oops... http://kdyards.com/forgot.php - that should be the url.. I wonder where I have forgotpassword.php instead

Go to http://kdyards.com/forgot.php , enter your info, and click Reset Password. Then you get the 404 error because f orgotpassword.php is missing.

@elbmc1969 This should be fixed, now. Let me know if it's still an issue.

@DScipio - I saw you were struggling to add content to an expansion. I'll admit that the method that I have currently isn't the most intuative (ie: I hate it and it will be revamped in KDY2). If you want to add content to an expansion, you can either go to the detail view of that piece of content, or you can click on the Database icon next to a piece of content in a list-view (looks like a 4-tier hamburger?).

---

Continuing with development of KDY2. I'm revamping a lot of the database schema to better support internationalization. I'll need to work out exactly how I want to add support for submitting translations of cards. This may also be an issue with the rendering engine unless I can figure out a fallback system where if the font you select doesn't support a given set of characters, some defaults take over. We'll see how it goes.

Ugh. This new schema is even more complex >.<

@elbmc1969 , @Indy_com

I've added the Sith Fury Interceptor, the TIE Striker, and the Rogue Shadow to the silhouette list.

Edit: even though no one asked for it, the TIE Reaper has been added as well.

Edited by FoaS

Here's my hangup on internationalization: Permissions. I don't speak German. Do I let just anyone add a translation to a card I create? That feels like it would conflict with the existing permission system where only creators (and admins) can edit their content. A submission system would be tough to implement, I think - plus if I don't speak German, how would I know which submission to use?

It also gets pretty hung up on the rendering system. Not only would a card render at 600dpi for just english, (actually it would be 512dpi because of reasons - suffice it to say that rendering a card is no easy task on the server), but now they'd render one for per language per renderer chosen for each piece of content - cubing the load on the server.

I hate to say it, but I don't know that KDY is the platform to really handle internationalization like this :( - on the flip side, there is nothing stopping people from making their own internationalized cards. I may add a column to the common content table to flags languages so that people can filter them in or out, just in case.

Edited by FoaS
11 hours ago, FoaS said:

@elbmc1969 , @Indy_com

I've added the Sith Fury Interceptor, the TIE Striker, and the Rogue Shadow to the silhouette list.

Edit: even though no one asked for it, the TIE Reaper has been added as well.

Sorry FoaS. It has been a seriously distracting week and a half hour for me. I I will get back to silhouettes soon.

8 hours ago, cynanbloodbane said:

Sorry FoaS. It has been a seriously distracting week and a half hour for me. I I will get back to silhouettes soon.

No worries man, this ain't a job - this is for fun. You owe no one anything, least of all some kind of justification.

1 hour ago, FoaS said:

No worries man, this ain't a job - this is for fun. You owe no one anything, least of all some kind of justification.

Don't get me wrong, silhouettes are fun for me. Plus I volunteered to do them so you can have one less thing on your plate. KDY is the fan site I wanted from the beginning of Armada, but lacked the expertise to do myself. Its not that I have an obligation to you, it is more a personal obligation to support one of my absolute favorite Armada sites! If there is anything I can do to help it be a success, I want to do it.

Real life gets in the way of hobbies easily enough, trust me when I say, it was a general "I'm sorry I wasn't able to devote time to a part of the hobby I truly enjoy." You are more a safe place to gripe, than the person I'm apologising to. ;)

Fair enough - just so long as you aren't beating yourself up over anything.

@FoaS When I edit the ships speed after creating a card, the speed chart on the render doesn't change.

Edited by Indy_com
6 hours ago, Indy_com said:

@FoaS When I edit the ships speed after creating a card, the speed chart on the render doesn't change.

Yeah, most edits aren't rendering. I just go back to the page with all of my cards listed, click the card, and the ship's page comes up re-rendered.

That may simply be a caching issue. You can hit Ctrl shift R to force a cacheless refresh.

I have added @Wes Janson 's version of Cloak back in to KDY (it is the same thing as the current Evasive keyword, but I like this as a cloak more than the official one). I've also added SLAM as a keyword, which is the exact same thing as the official cloak keyword. (I'm sure this is confusing, but this is what I've chosen to do :P)