Thread Tools
Old January 9, 2000, 07:45   #1
Captain Nemo
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
Hex-editing: Adding a Civilization?
Is anyone familiar with hex-editing an .scn or .sav file? I am trying to add a 5th civ to a game that only was set up with 4.
Captain Nemo is offline  
Old January 22, 2000, 17:50   #2
Captain Nemo
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
I received no answers to my question here so I assume it means nobody knows... Well, I now have resolved it... and it might be useful to others.
If you have a saved scenario or game and want to add more Civs to it (To avoid having to start a setup from scratch) you CAN DO IT!

Here is how:
Use a Hex editor to open the .sav file. Set the editor to display the Hexcode in lines of 16 2-byte words. The active Civs in play are identified by the 15th word of the third line.

For example:
FF=11111111 means all Civs + Barbarians in play
F0=11110000 means Civs 1-4 in play, no barbarians
0F=00001111 means Civs 5-7 + Barbarians in play
7A=01111010 means Civs 2-5 + 7 in play, no barbarians
etc...
It works, I tested it!

For beginners at this, the hexcodes are:
0=0000
1=0001
2=0010
3=0011
4=0100
5=0101
6=0110
7=0111
8=1000
9=1001
A=1010
B=1011
C=1100
D=1101
E=1110
F=1111
Please feel free to E-mail me (Address in my profile) with any questions.
Captain Nemo is offline  
Old January 22, 2000, 18:37   #3
Allard HS
Prince
 
Allard HS's Avatar
 
Local Time: 02:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: NL
Posts: 747
Very interesting...

What about adding an 8th civ? Just adding another 1? That's what Harlan is after. But I guess it isn't possible.

Are there more things that are hex-editable? The start values like flat/round world, barbarian activity etc. must also all be somewhere there.
Allard HS is offline  
Old January 23, 2000, 17:38   #4
Captain Nemo
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
Yes, everything is in there... It's just tricky to find it because there is so much data and it's almost all Hex-codes.
What I did is started the absolutely simplest game: 3 players, no restart and saved it then entered the cheatmode and destroyed one of the three civs and saved it again.
By comparing the hexcodes word by word, I came across something that had changed which told me the location of the No. of civs settings. I also did a bit of editing of cities (Removed/added coastal flags etc...)using Andrew Living's tips on Hex-editing... He had figured out all the codes for the cities but not the Civs in play.
There is no way to add an 8th civ since the 8th bit is the barbarian bit.
Captain Nemo is offline  
Old January 24, 2000, 09:51   #5
Michael Daumen
Scenario League / Civ2-Creation
Prince
 
Michael Daumen's Avatar
 
Local Time: 19:04
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Research Triangle Park, NC USA
Posts: 693
What sort of editor is necessary to fiddle with this stuff?
Michael Daumen is offline  
Old January 24, 2000, 16:41   #6
Captain Nemo
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
I downloaded the Hex-Editor "HEdit" that Andrew Livings suggested. I don't know the address but it's on his site under utilities.
There is also a full explanation on how to edit all the city codes. And it's very straight forward.
Captain Nemo is offline  
Old January 24, 2000, 22:59   #7
Civfan
Civilization II MultiplayerCivilization II PBEM
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Sep 1999
Location: Toronto, Canada
Posts: 831
Andrew Livings site?
Civfan is offline  
Old January 27, 2000, 17:32   #8
Captain Nemo
Prince
 
Local Time: 00:04
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
Yes, Andrew's site: http://members.xoom.com/HistCiv2/index2.htm
In the Help section under city editing there is a nice write up on how to do this for a city (Change ownership, change size, location, coastal/non-coastal etc...) and a recommended Hex-Editor and where to get it.

BTW I reversed the order of the Civs above: It's really 7,6,5,4,3,2,1,Barbarians. So, for example 11110000 means Civs 7-4 in play, no barbarians.

Gothmog tried the tip and figured out that I had them reversed. Thanks.
Captain Nemo is offline  
 

Bookmarks

Thread Tools

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 20:04.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team