General Tso
Panzer General
I'm working on adding new terrain, features, and natural wonders to the map at the beginning of the game. I'm using my own copies of the game code with a few modifications. I've found that if I use the SerialEventDawnOfManShow event to trigger my code all of the graphics load and work when the map is displayed. With one exception - natural wonders.
The problems are somewhat sporadic. At times I've created every wonder (I have all 17) on a single map and they all looked perfect. I can restart the map using the main menu and the next time there might be several glitches. The time after that perfect, etc.... But quite often there is at least one graphic glitch and sometimes there are a large number of them.
My code appears to be placing the natural wonders in the proper places and doing the proper modifications to the wonder plot and surrounding area.
Here's the type of problems that occur:
The Great Barrier Reef: Doesn't show up. Just appears as normal coastal water plot.
The Rock of Gibraltar: Sometimes the rock itself doesn't show up - just appears as flat grassland. Other times the mountain that is generated on the plot next to it doesn't show up - the land looks flat.
Lake Victoria appears as a black smudge.
Some of the wonders that require their plot to be changed to a mountain appear flat.
In all cases the proper changes appear when I check the appropriate plot. The plot does contain the wonder even though it may be invisible or distorted. Plots where mountains where added because of the wonder do indeed have their plot type set to mountain. The problems all appear to be graphical. To help add to my confusion when I add mountains using my separate terrain code they all appear fine - none of them are flat. The terrain code is identical when adding moutains - it just doesn't create wonders.
Any ideas?
The problems are somewhat sporadic. At times I've created every wonder (I have all 17) on a single map and they all looked perfect. I can restart the map using the main menu and the next time there might be several glitches. The time after that perfect, etc.... But quite often there is at least one graphic glitch and sometimes there are a large number of them.
My code appears to be placing the natural wonders in the proper places and doing the proper modifications to the wonder plot and surrounding area.
Here's the type of problems that occur:
The Great Barrier Reef: Doesn't show up. Just appears as normal coastal water plot.
The Rock of Gibraltar: Sometimes the rock itself doesn't show up - just appears as flat grassland. Other times the mountain that is generated on the plot next to it doesn't show up - the land looks flat.
Lake Victoria appears as a black smudge.
Some of the wonders that require their plot to be changed to a mountain appear flat.
In all cases the proper changes appear when I check the appropriate plot. The plot does contain the wonder even though it may be invisible or distorted. Plots where mountains where added because of the wonder do indeed have their plot type set to mountain. The problems all appear to be graphical. To help add to my confusion when I add mountains using my separate terrain code they all appear fine - none of them are flat. The terrain code is identical when adding moutains - it just doesn't create wonders.
Any ideas?