Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization II > Scenario League / Civ2-Creation > Treaties with Barbarians: Correction to hexedit compendium.
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD
CivGroups
Scenario League / Civ2-Creation (66): Not a Member - Join

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 12-01-2005 21:30
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Treaties with Barbarians: Correction to hexedit compendium. Support Apolyton, buy GURPS/ Alpha Centauri

There is a minor correction that should be made to Mercator’s hexedit compendium.
In the Technologies & Money section, the following

byte 31 Reputation
byte 37-64 Treaties. 4 bytes for the treaties with all 7 civs (including their own civ).

should be changed to

byte 31 Reputation
byte 32-63 Treaties. 4 bytes for the treaties with all 8 civs (including Barbarians and their own civ).


Bytes 32-35 are for treaties between a civ and Barbarians. For example, if you want a civ to be allied to barbs (this is a bit unusual, but Arthedain wanted it for ZOC reasons), you need to enter 8c at the appropriate decimal offset.

Civ 1 3738
Civ 2 5166
Civ 3 6594
Civ 4 8022
Civ 5 9450
Civ 6 10878
Civ 7 12306


Note: The above is not all new. Andrew Livings has one civ allied with barbs in his Crisis of the New World Order scen. Obviously, he knew about bytes 32-35. I just couldn't duplicate his work before sorting out the role of bytes 32-35.

Edit #1: Changed 32-64 to 32-63. Thanks Mercator.
Edit #2: Corrected last 3 offsets.

Last edited by AGRICOLA on 18-01-2005 at 00:14

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 12-01-2005 22:18 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Suffering from ads?

Thank you, though it would still be Allard's compendium. I've added it to my latest working copy.

Should I actually post that working copy, considering there's little chance I'll reformat the whole thing as I intended or work on my file format thread in the tips subforum any time soon?

I think it should actually be bytes 32-63, though. 32-64 is 33 bytes.

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 12-01-2005 23:05
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Thanks for the correction to 32-63 bytes. I assumed that the compendium was correct and never bothered to check the second number.

I am about to send you a copy of the compendium with both the barb treaty correction and a few words about how settlers/engineers accumulate charges in the UNITS section.

I agree that posting non-spoiler info is a good idea. IMO, reformating is not needed. The time for major discoveries regarding the structure of CIVII saved games seems to be over, thanks to the efforts of many. You would know how much new information is being generated. My impression is that only minor bits are being added, mainly things learned when scenarios require some offbeat tweaking.

Allard and you have done a great service in assembling and maintaining the Bible of Hexediting.

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 13-01-2005 01:09
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

yes, Mercartor, I congratulate you for your work

However, I have not yet made my mind about the release of that spoiling info you know about. I think that it's better not to publish it.

Broken_Erika is offline Broken_Erika
Prince
shoving your soul into a jar of mayonaise
Oct 2004
time: 00:16
  Old Post 13-01-2005 03:38 Visit Broken_Erika's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Cool,

in the cities.gif, what is the 9th flag(the brown one) for?

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 13-01-2005 04:40
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Call to Power 2

What does the ninth flag have to do with hex editing?

If you have a question about hexediting or need some done, we'd be quite happy to help. But, please stop spamming threads with completely unrelated posts.

Last edited by AGRICOLA on 13-01-2005 at 04:53

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 13-01-2005 05:23 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by AGRICOLA
I agree that posting non-spoiler info is a good idea. IMO, reformating is not needed.


OK then... Are you sure? Color "coding" and all? I'll just update the date and credits then. The next question is, where should I post it? I think I'll put it in a new "everything on Hex Editing " thread in the tips forum and close the other two.

quote:
The time for major discoveries regarding the structure of CIVII saved games seems to be over, thanks to the efforts of many.


I don't think I agree with that entirely. But there never were too many people involved in this and certainly the most obvious things have been found out.

quote:
Allard and you have done a great service in assembling and maintaining the Bible of Hexediting.


quote:
Originally posted by yaroslav
yes, Mercartor, I congratulate you for your work


I'm not nearly on the same level as Allard is on this. I have done far less in compiling the stuff, not to mention I never "released" any update of his compendium myself yet (well, apart from the file format thread)... But I'll take your compliments anyway!

quote:
However, I have not yet made my mind about the release of that spoiling info you know about. I think that it's better not to publish it.


Sure... But I don't think I'll keep that under wraps forever! Because, in fact, isn't mentioning where the block is enough to "compromise" it?

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 13-01-2005 06:29 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by Broken_Erika
Cool,

in the cities.gif, what is the 9th flag(the brown one) for?


It's just a spare.

Harry Tuttle is offline Harry Tuttle

Prince
of the Hoople Heads
Mar 2003
time: 00:16
  Old Post 13-01-2005 09:26
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:

quote:
However, I have not yet made my mind about the release of that spoiling info you know about. I think that it's better not to publish it.


Sure... But I don't think I'll keep that under wraps forever! Because, in fact, isn't mentioning where the block is enough to "compromise" it?


You guys scare me sometimes.

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 13-01-2005 10:39
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

That's only fair. Your scenarios scare me most of the time.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 13-01-2005 17:12 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Harry Tuttle
quote:
However, I have not yet made my mind about the release of that spoiling info you know about. I think that it's better not to publish it.

Sure... But I don't think I'll keep that under wraps forever! Because, in fact, isn't mentioning where the block is enough to "compromise" it?


You guys scare me sometimes.


I couldn't sleep last night, either! Should designers or MP gamers tremble?

at Agricola

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 13-01-2005 19:11 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Get a bigger avatar today!





Our secret plan to take over the world by hex-editing is taking shape!

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 02:32
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Got spare money?

quote:
Originally posted by Mercator

quote:
However, I have not yet made my mind about the release of that spoiling info you know about. I think that it's better not to publish it.


Sure... But I don't think I'll keep that under wraps forever! Because, in fact, isn't mentioning where the block is enough to "compromise" it?


I don't think so. You know, the algorithm is not easy to discover. It took me a very long time to get it; I am very stupid, near retarded, so probably another guy will discover the algorithm a lot quicker, but it's not a trivial task, IMHO.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 14-01-2005 03:16 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Mercator




Our secret plan to take over the world by hex-editing is taking shape!


techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 14-01-2005 03:35 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Civilization 2

quote:
Originally posted by yaroslav


I don't think so. You know, the algorithm is not easy to discover. It took me a very long time to get it; I am very stupid, near retarded, so probably another guy will discover the algorithm a lot quicker, but it's not a trivial task, IMHO.


God, where does that leave me? I thought algorithm was some kind of dance beat!

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:16
  Old Post 14-01-2005 03:44 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by AGRICOLA
Note: The above is not all new.

No, I just checked my list and it's correct there, too.

I'm certain you'll find even more errors if you look hard enough. I thought most may have been ironed out in the .sav/.scn format thread – but that fizzled out quickly, didn't it?

Speaking of errors, I notice there's one in the Table of Contents:

quote:
Transporters (ToT10: 4 + 14 * transporters, ToT11: 172 + 14 * transporters)

should read:

Leaders2 (ToT11: 168)
Transporters (ToT: 4 + 14 * transporters)

Broken_Erika is offline Broken_Erika
Prince
shoving your soul into a jar of mayonaise
Oct 2004
time: 00:16
  Old Post 14-01-2005 04:01 Visit Broken_Erika's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Remove this text

quote:
Originally posted by Mercator




Our secret plan to take over the world by hex-editing is taking shape!

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 14-01-2005 05:05 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by yaroslav
I don't think so. You know, the algorithm is not easy to discover. It took me a very long time to get it; I am very stupid, near retarded, so probably another guy will discover the algorithm a lot quicker, but it's not a trivial task, IMHO.


But there's no need to crack any algorithm when you can just zero it out, is there?

quote:
Originally posted by Catfish
(...) but that fizzled out quickly, didn't it?


Yes, lack of time and dedication.

quote:
Speaking of errors, I notice there's one in the Table of Contents: (...)


Thank you! I suppose I should add that then, shouldn't I? Maybe this weekend.

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 14-01-2005 07:52
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Enter the AD-FREE zone

@yaroslav

Red = Posted by yaroslav
Black = AGRICOLA

I don't think so. You know, the algorithm is not easy to discover. It took me a very long time to get it;.
Absolutely, it is an amazing piece of detective work on the most complex part of a .sav file.

I am very stupid, near retarded, so probably another guy will discover the algorithm a lot quicker
[ ] That certainly is a unique "explanation" of how you acquired you reputation as a hex editor and why "found by yaroslav" appears throughout the compendium. Too bad no one believes a word of it. [ / ] ,

but it's not a trivial task, IMHO.
Please see my first remark.

Super work

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 11:07
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by Mercator


But there's no need to crack any algorithm when you can just zero it out, is there?



Very good point, I didn't think of it. But you know, a zeroes string is still considered a bad entry*. I didn't test it, but I don't know if civ will manage such an input finely.

* Except, probably for barbarians, but the whole barbarian thing is untested.

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 11:11
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by AGRICOLA

quote:

I don't think so. You know, the algorithm is not easy to discover. It took me a very long time to get it;
Absolutely, it is an amazing piece of detective work on the most complex part of a .sav file.



Thanks a lot for your kind works. However, I think the EVENT part is probably more difficult than this one.

quote:

quote:
I am very stupid, near retarded, so probably another guy will discover the algorithm a lot quicker

[ ] That certainly is a unique "explanation" of how you acquired you reputation as a hex editor and why "found by yaroslav" appears throughout the compendium. Too bad no one believes a word of it. [ / ] ,


Thanks again, but I think that's more a matter of what I need to discover in order do civ2dip that anything other thing

quote:

quote:
but it's not a trivial task, IMHO.

Please see my first remark.

Super work


Thanks again

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 11:14
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by techumseh


God, where does that leave me? I thought algorithm was some kind of dance beat!




In this case with 'algorithm' I am refering to who civ2 stores information and who it does 'unstore' it. As the part we are speaking about includes a complex math device, I prefer to use algorithm instead of encoding scheme or something like that.

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 11:15
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by yaroslav
* Except, probably for barbarians, but the whole barbarian thing is untested.


That reminds myself that I need to do some barbarian tests....

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:16
  Old Post 14-01-2005 11:23
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Mercator
But there's no need to crack any algorithm when you can just zero it out, is there?


I got hold of an appropriate file and tried various variations on your theme. No go.

Maybe just as well.


Edit: Can't spell.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 14-01-2005 12:12 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by yaroslav




In this case with 'algorithm' I am refering to who civ2 stores information and who it does 'unstore' it. As the part we are speaking about includes a complex math device, I prefer to use algorithm instead of encoding scheme or something like that.


Oh. I get it. It's sort of a ska thing!

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 14-01-2005 18:19 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton, buy Civilization 2

quote:
Originally posted by yaroslav
Very good point, I didn't think of it. But you know, a zeroes string is still considered a bad entry*. I didn't test it, but I don't know if civ will manage such an input finely.


Aha! But since those savegames use exactly the same format as a normal game, shouldn't there be some sort of header for it to tell civ2 it needs them in the first place?

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 21:31
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

no there is no need (maybe there is one, but I didn't locate it), because civ2 can go directly to the section, and check the lenght for all civs' special data: if they are all 0, well, then there is no need for them

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 21:33
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Support Apolyton, buy Civilization 2

quote:
Originally posted by AGRICOLA


I got hold of an appropriate file and tried various variations on your theme. No go.

Maybe just as well.


Edit: Can't spell.


In the document there is a description of the no-data or 0-length data You can use it in order to make civ2 not check that....

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 14-01-2005 22:26 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Enter the AD-FREE zone

But isn't that enough?

Someone could zero it all out, play, save and then put the original data back. Or slightly less awful: copy the file, zero it out, peek and continue the original game.

In other words, someone who is sneaky and inventive enough to take a look and knows where the stuff is doesn't need any fancy algorithm.

yaroslav is offline yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
  Old Post 14-01-2005 22:46
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Remove this text

zeroing will be not enough if you don't know what characters do you need to entry to represent a 0-lenght data. 00 will not be enough

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0593 seconds (92.63% PHP - 7.37% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net