I was fooling around with Steel Panthers save and
scenario files, trying, without complete success, to
convert a campaign scenario into a normal scenario.
I want to play the other side, to see how I
would do against my 'own' core units, after playing
the battle the normal way.
Has anyone been able to do this?
The one hurdle I can't get passed is allowing
a human to play the 'computer' side. It always
gives me the 'you can't do that in campaigns' error
message on starting a converted save game when I
try to switch between computer and human on the
'side 2' startup screen.
I found that you can just copy any save game over
to the scenario directory, and it becomes a scenario
without any editing! You can bring it up in the scenario
editor and fool with it, save it again, and all appears
to work. (Except that darn 'campaign mode' flag.)
Using the editor, only saving the map and creating a
new scenario with that map allowed me to play either
side, but all units are lost. I really don't feel like
manually writing down both sides units and positions to
rebuild the scenario just to play the reverse.
So I worked on the file at the byte level using
UGE (Universal Game Editor) to compare and fiddle
the binary files. Here's what I'm sure of, after
about 6 hours of work:
(Offset 0 is the first byte of the file)
Offset Certain Meaning
------ ------------------------
37513 Month (1=Jan,2=Feb,...12=Dec)
37514 Year (last two digits, 44=1944)
37515 Weather (0=Desert, 1=Summer, 2=Winter)
37524 Scenario Length (number of turns, 0=Infinite)
37526 Flag 0 X Coordinate (0,0 is top left)
..
37546 Flag 20 X Coord (x is
37547 Flag 0 Y Coord
..
37567 Flag 20 Y Coord
37568 Flag 0 Value (0=no value)
..
37588 Flag 20 Value
37589 Flag 0 Owner (0=Side1?, 1=Side2?)
..
37609 Flag 20 Owner
37626 Scenario Location (city/area name)
..37645
37612 Visibility (range in hexes)
These are wild guesses:
Offset Range Meaning
------------ -------
0:3757 Side 1 Leader Names
3758:7501 Side 2 Leader Names
13510:15009 Side 1 Units
15010:16500 Side 2 Units
37646:53644 Some sort of table(s) that have an unstable sort
such that editing and saving a scenario without
doing a single thing will result in different values!
VERY IRRITATING! 123 changes to 119 then back to 123
on successive saves. (123->122->123 also)
53645:510197 The MAP!
I think the campaign switches are here, but I'll
be darned if I can find the 'off' flag! I've
tryed about 15 combos without success.
(The sample values in parens are from campaign
scenarios, the ones after are from normal scenarios.)
(NOPE, means I switched values from campaign->reg
without success in playing side 2 as human.)
I've exhausted all ideas and can't see any other
usefull parts of the scen file to fiddle with,
either the numbers aren't consistent between
campaign and non-campaign, or it just seems like
unrelated table data.
Oddly I never got a hard crash after byte fiddling,
but sometimes the unit types/sides got mixed up.
Anyone with any ideas???
-- Paul A. Youkey -- Westerville, Ohio -- pauyou@symix.com --