- Sep 8, 2019
- 511
- 857
Things changed a bit since then. These days you can add in races, body parts, etc, by dropping in XML files.That's odd. I've modded a race into the game before, and while i didn't check for this bug (since i didn't know it existed), i don't see how it could affect time. Adding a race into the game causes a lot of compilation errors by design. By being fault intolerant, it's hard to believe the game would compile, and effected something unrelated.
If I remember correctly, the problem in Draupnir's case is that the mods they were using changed in some way, so there were a bunch of dead references to the modded body parts, etc, in the save. Whenever endTurn() would get called, it would look for those parts, not be able to find them, and throw an exception. Rather than loading sensible defaults, or alerting the user, it would just silently dump the error into the log and just fail to advance the turn.
So yeah, modding is possible without touching the source now, but don't you dare touch your mod directory and load an old save, otherwise the game will break in fun and exciting ways.
Yeah, enums in C/C++ are just glorified ints. Java enums, on the other hand, are fucking wild. Very powerful by comparison, but with great power comes great responsibility.Now the game relies heavily on two things called ENUMS and SWITCH STATEMENTS. Enums are list of objects with constant values. For any C or Cpp devs, this will sound odd since i believe those languages treat Enums like primitives (numbers).