TechLookz

 
Go Back   TechLookz > PC Gamers > PC Game Cheats

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Post New ThreadReply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2008, 10:00 PM
NayeemK's Avatar
Administrator
 
Join Date: Apr 2008
Posts: 6,981
Default Steel Panthers

Steel Panthers

HexCheat:
---------
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.)

Offset (Campaign)Samples Meaning?
37511 (2,2,1,2),2,2
12 (4,2,4,75),90,9
13 Proven Month
14 Proven Year
15 Proven Weather
16 (1,1,1,1),0,0 NOPE
17 (3,1,3,5),3,3
18 (0,0,0,0),0,0
19 (12,12,10,10),7,7 NOPE
20 (2,2,3,3),2,1
21 (1,1,2,2),0,1
22 (1,1,1,3),1,1
23 (2,2,2,0),2,1
24 Proven Turn Length
25 (0,0,0,0),0,0
(flag 0 20 sections)

37612 Proven Visiblity Range
13 (0,3,2,0),0 NOPE
14 (72,82,114,178),0 NOPE Remaining Core Buy Points?
15 (5,4,3,4),0 NOPE Scenario in Campaign?
16 (0,0,0,0),0
17 (0,0,0,0),0
18 (1,2,2,2),0 NOPE
19 (0,0,0,0),0
20 (0,0,0,254),0
21 (0,0,0,255),0
22 (2,1,2,0),0 NOPE
23 (2,1,2,6),0 NOPE
24 (1,0,1,1),0 NOPE
25 (1,1,2,4),0 NOPE
26.. Proven Location Name

(Some sort of table with number pairs follows).

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???
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Post New ThreadReply



Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +5.5. The time now is 02:46 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164