Modding Whipmarks (Lessons Learned)

Please post here for questions and discussion about scenario, art and sound modding and the game editor for Distant Worlds.

Moderators: elliotg, Icemania

Bingeling
Posts: 5186
Joined: Thu Aug 12, 2010 11:42 am

RE: Modding Whipmarks (Lessons Learned)

Post by Bingeling »

The error seems related to flag generation, so check that all versions of "race counts" matches. If the number of races is typed somewhere, and they are listed somewhere else, for instance.
User avatar
Mansen
Posts: 352
Joined: Fri May 03, 2013 6:37 pm

RE: Modding Whipmarks (Lessons Learned)

Post by Mansen »

I am stumped as to how you figured out it involved flags from that error message, but regardless you were spot on. I had some filename errors with some custom flags.

Fixed those and and it goes all the way into a new game - so thanks a lot, Bingeling. :)
Currently Working On:
X-Universe Conversion (Hiatus)
Bingeling
Posts: 5186
Joined: Thu Aug 12, 2010 11:42 am

RE: Modding Whipmarks (Lessons Learned)

Post by Bingeling »

Look at the stack trace in your image. It crashed in a flag related method.

What I see is.

First some generic stuff about windows and whatnot (the window frames, and events in the gui, probably). Standard stuff that is not custom for the program.
1: Start
2: Generate empire flags
3: Throw error.
4: Die.

Luckily the code of the DW is not obfuscated.
User avatar
Mansen
Posts: 352
Joined: Fri May 03, 2013 6:37 pm

RE: Modding Whipmarks (Lessons Learned)

Post by Mansen »

Oh for ... I'm an idiot. It's right there, clear as day. I definitely need a break if something as simple as that is missed. [>:]
Currently Working On:
X-Universe Conversion (Hiatus)
Bingeling
Posts: 5186
Joined: Thu Aug 12, 2010 11:42 am

RE: Modding Whipmarks (Lessons Learned)

Post by Bingeling »

And the way to read a stack trace is...

The method "Start" is the first one. This probably set up the galaxy and whatnot.

During Start a lot of stuff could be done, but what is completed is not there, this is just "unfinished" tasks.

Then we see that Start called the flag method. And from inside the flag method, the error was thrown. So an error while setting up flags, as long as method names makes sense.

If after flags, it runs "loadRaceImages", and crashes during that, you would not see signs of the flag method, as the method would be complete. You only see methods on the call stack that is not yet complete.
User avatar
Shark7
Posts: 7936
Joined: Tue Jul 24, 2007 4:11 pm
Location: The Big Nowhere

RE: Modding Whipmarks (Lessons Learned)

Post by Shark7 »

If you are going to add custom flags to your theme it is best if you copy the default flag folder into your theme as simply 'Flagshapes' The problem I have found with every mod that crashes due to flag is that the number of flags in your theme do not match the number of flags the game is looking for.

So copy the default, replace with the flags you want by saving over old ones in the newly copied file (IE save file as) and try again.
Distant Worlds Fan

'When in doubt...attack!'
Post Reply

Return to “Design and Modding”