.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2 > Campaigns, Scenarios & Maps
Notices


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #40  
Old October 28th, 2023, 09:00 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,487
Thanks: 3,957
Thanked 5,690 Times in 2,810 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:	803
Size:	58.7 KB
ID:	16943  
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc

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:
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.