.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 > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old December 6th, 2005, 01:59 PM

NickFlynn NickFlynn is offline
Private
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
NickFlynn is on a distinguished road
Default PBEM Battles with custom maps problem

I recently tried to set up a PBEM using the custom map - "Desert area after rain." After I set up the map and purchased my forces, I couldn't open the game up again. Everytime I tried to open the file, WinSPMBT would lock up.

After fooling around for a while it seems that it only happens on very large maps (the one I was trying to use was 160x200.) I didn't have the patience to try it on all the sizes, but all of the 160x200 maps crashed the game when you tried to open the battle after saving it.

Is this a known bug?

- Nick
Reply With Quote
  #2  
Old December 6th, 2005, 04:44 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,955
Thanks: 464
Thanked 1,896 Times in 1,234 Posts
Mobhack is on a distinguished road
Default Re: PBEM Battles with custom maps problem

Hmm

I have managed to do this - wheter it is the map itself, or a custom map in general that causes the problem - I will need to investigate.

Does this also happen when you send the game to player 2?

Cheers
Andy
Reply With Quote
  #3  
Old December 6th, 2005, 05:28 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,955
Thanks: 464
Thanked 1,896 Times in 1,234 Posts
Mobhack is on a distinguished road
Default Re: PBEM Battles with custom maps problem

Looks fixed - but will need a bit of testing, should be in the next release.

For now - dont use custom maps in PBEM (secure or insecure mode).

Some custom maps may work, but others cause the problem on loading in PBEM.

Cheers
Andy
Reply With Quote
  #4  
Old December 6th, 2005, 07:02 PM

NickFlynn NickFlynn is offline
Private
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
NickFlynn is on a distinguished road
Default Re: PBEM Battles with custom maps problem

It did indeed happen when I sent the file to the other player. After he told me, I tried it myself and then discovered the problem.

I really think it is map size related, but I guess I could be wrong. I wasn't able to duplicate it with smaller maps.

Although the map generator is much improved, I really do like running battles on custom maps.

- Nick
Reply With Quote
  #5  
Old December 6th, 2005, 10:52 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,955
Thanks: 464
Thanked 1,896 Times in 1,234 Posts
Mobhack is on a distinguished road
Default Re: PBEM Battles with custom maps problem

it will not happen with all maps, and the problem may well happen with other saved games.

It seems to be older maps (?) - and is caused by a probably redundant bit of original SSI code which fixes shell hole numbers. probably from way back in the SP1 to SP2 days, to convert these maps. Unfortunately - it did not do any array bounds checking on the 6 by 6 array of ID numbers it's using so if uninitialised map data goes in, BOOM.

I have added range checking based on the code which actually produces shell holes - and the original code only checked 1 parameter, whereas I am screening 6 or so now to see if the data presented is OK.

I'm also investigating the function's actual relevance - it seems to have become redundant in maybe 1996 or so !. Simply commenting it out in the load function causes no noticeable problems. So it probably only applied to SP1 maps, or some early version of SP2 methinks to "massage" old-form shell holes and rubble to the new improived model.

meanwhile - the only way to check if the particular custom map is not going to trip this broken function is to set up a quick PBEM with custom map as P1 (any nation pair and just buy a random formation) , load the map, and save as a secure or insecure PBEM. Then load up the saved game as if you were P2. if it loads and does not crash, you will be fine.

I believe this routine probably worked fine in Windows 98 and below (I only have an XP rig on line now, the 98 box is in a cupboard). Unless of course you are trying it in 98?. However - XP seems to be more "picky" about out-of-bounds memory adressing than 98 was.

cheers
Andy
Reply With Quote
  #6  
Old December 7th, 2005, 01:41 PM

NickFlynn NickFlynn is offline
Private
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
NickFlynn is on a distinguished road
Default Re: PBEM Battles with custom maps problem

Wow, thanks for the info, and the quick response. You never worked at Microsoft, did you? *grin*

The quick "test" setup to confirm that the map won't crash has worked fine for me so far. Does the same problem occur when you create a scenario using a "bad" map? I haven't tried that yet. I'd assume that it does. Perhaps if I've got some time, I'll test out some maps and try to put a list together of the bad ones.

I am running XP.

Thanks again,
- Nick
Reply With Quote
Reply

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 10:52 AM.


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