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

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.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,929
Thanks: 441
Thanked 1,855 Times in 1,219 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,929
Thanks: 441
Thanked 1,855 Times in 1,219 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,929
Thanks: 441
Thanked 1,855 Times in 1,219 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
  #7  
Old December 7th, 2005, 07:46 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,268
Thanks: 3,818
Thanked 5,439 Times in 2,698 Posts
DRG will become famous soon enough
Default Re: PBEM Battles with custom maps problem

This seems to be a "XP only" issue. I'm running WinME and it loads a save game using that map without the slightest problem.

Don
__________________


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....
Reply With Quote
  #8  
Old December 7th, 2005, 07:55 PM
Mobhack's Avatar

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

Microsoft, nope - Unisys, Phillips, NCR.

The problem is apparently XP only. 98 is happy as Larry to let you try to write to arrays that are out of bounds.

The custom map problem is not just in PBEM - I tried a stand alone game with that map, saved it at deploy and reloaded, and it crashed in XP.

I'll dig out the old 98 box and check it, but the fix looks as if it has done what is needed in any case.

Cheers
Andy
Reply With Quote
  #9  
Old December 8th, 2005, 01:06 AM

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

Glad about the fix. I'm happy to have contributed in a small way to make a great game even better.

- Nick
Reply With Quote
  #10  
Old December 8th, 2005, 05:58 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,268
Thanks: 3,818
Thanked 5,439 Times in 2,698 Posts
DRG will become famous soon enough
Default Re: PBEM Battles with custom maps problem

Thanks for pointing it out to us

Don
__________________


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....
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:42 AM.


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