Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Map Editor
Re: Map Editor[message #232639] Sun, 06 September 2009 09:26 Go to previous messageGo to previous message
Tron

 
Messages:225
Registered:August 2007
Location: Germany
mgl
Yes, they work ! Great !
They're in shades of blue or maybe shades of grey. Brighter at day and darker at night. But it's better than nothing.

The colours should be generated correctly now (r6692). Originally the red and blue colour channels were swapped. Because this happened twice, this went unnoticed. A long time ago (r787) I removed one of the two swaps without noticing. Now I removed the other swap, too.

Quote:
It seems the code needs to be updated too when you draw new maps: my underground map crashes on segmentation fault.

Probably there is no UNDERGROUND_SECTORINFO for it. At game start this structure is allocated for every known underground sector. See BuildUndergroundSectorInfoList().

Quote:
And when the "Assert()" functions are on, which is the case when you build JA2 to use the editor, everything you forgot to do like register a loading screen in the code for you new map makes the game exit. Rather annoying when you want to test your map. The underground sectors avoid the loading screen crash though. I think the "Assert(0)" on line 164 of "Build/Loading_Screen.cc" should be removed. If you didn't register a loading screen, you get the default one from the lines that follow the "Assert()". That's a nice behavior.

This is an original assertion, it was not added by me. The problem is that ubTraversability[THROUGH_STRATEGIC_MOVE] of your sector probably is EDGEOFWORLD. You can simply change the value in g_traverse_through[][] in Build/Strategic/Strategic_Movement_Costs.cc.
I simplified this piece of code: The original was about 2.000 lines long. Now it's a tenth of that and you have a few simple tables. Also you manually had to make sure all the redundant information was consistent (east movement of a sector had to be the same as the west movement of its neighbour to the east). Now this happens automatically.
Underground sectors use the cave loading image, if the basement image is not specifically registered for them. There is no traversability information for them.

Quote:
I'll look at the code to see what I need to do to make my underground map work.

See above.

Report message to a moderator

Sergeant 1st Class
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Streamlined JA2. Could use some help making it
Next Topic: A PowerPC port was already released?
Goto Forum:
  


Current Time: Sun Jan 26 15:16:44 GMT+2 2025

Total time taken to generate the page: 0.03516 seconds