Aug. 28th, 2022

relee: Picture of Relee Starbreeze, Wizard (Default)
2:50pm - Since last time I've tried looking through the code for Lilith's Throne without making a work journal, and like before that didn't work out.

The code for Lilith's Throne is a bit of a mess. Even though it's open source it's mostly made by one person, and there's no design doc or other documentation. There's the code, and sometimes there's comments. Not easy to analyze!

I'm not sure if I should keep trying to figure it out or just make my own from scratch. I'm not sure how much I can learn from their previous work if I don't know why they did this or that, and the data structure for the player and NPCs is kinda confusing anyways...

It might be easier to go through it when I've got a journal open like this, or it might not. I don't know. Working in general can be pretty difficult, if I don't ritualize it in some way.

3:15pm - I ended up looking at the GameCharacter.java file and sure enough, having this journal open and a turkey dinner at my side makes this way more possible. This file is enormous, though. They're tracking a lot of data for every character, but there's also methods to serialize and deserialize the classes to XML, and they're both gigantic, and I've barely gotten into the file... I think I'd need a proper Java IDE to look at this and find where each bit starts and ends, probably, and I don't want to go that far for this. I might have to roll my own anyways...

That said, I did notice that they used another class for the body attributes, and that's what I want the most. So, I'll have to see if I can isolate that instead.

3:29pm - I've looked through the Body.java file and the Body class is pretty straightfoward, so I'm not sure what I expected to learn. XD

If anything it's still less complex than I was intending before, when I wanted to be able to have different parts on either side of the body. It also seems to require certain parts, so you have a leg type, not two legs, and you must have a leg. So, that's interesting. Probably the leg could be something weird like a snake tail, and I know this game can have taurs, but it doesn't seem like it goes as far as I was hoping. So, I'll just have to make up my own data structure.

3:41pm - I'm thinking about trying to find something to design the data structure in. When I did this before it was very rough, just text in a weird format. So, I think I'll have to take some time and daydream and think about it. So, I'll pack up for now and maybe do more later today or another day, and ask around for tool suggestions.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 24th, 2025 10:37 pm
Powered by Dreamwidth Studios