View Single Post
  #193  
Old October 28th, 2023, 09:00 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,286
Thanks: 3,824
Thanked 5,474 Times in 2,709 Posts
DRG will become famous soon enough
Exclamation Re: Omaha Beach - Scen #9

Here is what I know after a lot of testing

First some background
// pattern for multi hex buildings in code is:
// X X X X
// X X X X
// X X X X
This is a line of code that represents a multi-hex building

{0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0}

so that building would look like this

0000
0110
0110


In that example the outlined red hex is the registration hex
  1. The real issue has nothing to do with rough terrain or paved road that is put under some of the multi-hex buildings
  2. The real issue is the creation of rubble in the registration hex of the multi-hex building changes the terrain under the registration hex.......sometimes...... the creation of rubble there does not always 100% make the building invisible
  3. There are multi-hex buildings that do not have part of the building in the registration hex. Those buildings will not go invisible during gameplay because no rubble is created where there is no building in the hex to turn to rubble
  4. If a multi-hex building is placed on a map using either the in-game map editor or the advanced editor and the registration hex is turned to rubble using the "add heavy damage" button the building will disappear and re-appear almost instantly and it may show faster or slower depending on the speed of your PC
  5. Once a building has been restored that way I have not yet been able to get it to disappear after it was restored

There is code that fixes buildings that Andy put in years ago

The "trick" right now is finding the spot it is put into the map-making code that fixes the buildings while heavy damage is applied and then figuring out where the ideal place for this would be in the general game code so that this issue is no longer a problem......

...and it IS a problem for all games that have multi hex buildings in them that have a "building" in the registration hexes but it is less of an issue with PBEM as there IS a restore code that is activated when a game is saved and then restarted as would be normal for PBEM. Where this is a problem is when game turns are played one after the other without saving and restarting the game from a save

So now you know what we know, rest assured we are looking into it
Attached Thumbnails
Click image for larger version

Name:	multi.png
Views:	128
Size:	58.7 KB
ID:	16943  
__________________


If you find you are constantly reacting to your enemy's tactics instead forcing the enemy to react to yours, you are losing the battle..

Last edited by DRG; October 28th, 2023 at 09:15 AM..
Reply With Quote
The Following 6 Users Say Thank You to DRG For This Useful Post: