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 > Restored Forums > [Restored Forum 198] SL: Civ2 Creation Hints, Tips and Guides > About Hex-Editing (Xin Yu?)
Page: Print | Email | Subscribe | Report News       0 votes -  average
18.Sep: `ACSR WEEKLY`: SEPTEMBER 18TH, 2005
16.Sep: `ACSR GDS`: WARDELL INTERVIEW PROMO
15.Sep: `ACSR MAILBAG`: SEPTEMBER 15TH, 2005

bottom of page
  GALACTIC CIVILIZATIONS $19.99 - CIV3 CONQUESTS $29.99 - CIV3 from $9.99 - SMAC+SMAX $19.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
24-10-2002 03:50
edit | quote
#1 | report |
About Hex-Editing (Xin Yu?) Got spare money?


INFO UPDATED:

[EDITED: I've corrected some wrong info]

Hi! As you may know, I'm the author of Civ2 PBEM Diplomacy Utility, and I need to know about hex-editing because I'm updating my utility. I use the superb-document "All common knowledge about HEX-EDITING
SAVED GAMES and more" of Allard H.S. Höfelt.

I've discovered new bytes on City sections (those section that the famous Civ2-utilities related programmer Xin Yu does with Andrew Livings) that I want to make public.

- Byte 12th [start counting on 1]: It seems to me that this bytes stores the year that city was conquered [This is related to happy/unhappyness of people: A city conquered only a few years ago have extra unhappiness]. But on a byte you can not store a short integer, only a 8bit integer, so it's very strange. Maybe each 255 turns Civ2 reset this byte. I've done two test in order to check this byte:

* If you conquer two cities in the same year, byte 12 is the same for the two cities.
* If you conquer two cities in different years, byte 12 is different for both. And byte 12 th of city last conquered less byte 12 of city first conquered is the difference, in turns, between the two cities conquests... (Always mod 255, because you have only 8 bits to store this info).

- Byte 13th : This byte represent whose civs knows about the city. You can turn on the city improvement on an tile of a civ map, and put on the visibility of this tile for the same civ, and you will not see the city! Why? Because, in order to see the city, you also need to turn on a bit on this byte. Rigthmost (0th) bit is for barbarian civ,1th bit is for white civ... 7th bit is for purple.

- Byte 14th to 21th: As you may have noticed, the size of a foreign city is not updated until you move a unit near the city... Where is this size stored? Byte 14th is the size barbarians believe the city has, Byte 15th is the size white civ believe that the city has, and so on until Byte 21th for purple civ.

I'm pretty sure that the units has a equivalent byte to byte 13th of cities. I'm seeking for it.

Please use this thread as a way to exchange new info about Hex-Editing...

Last edited by yaroslav on 25-10-2002 at 00:38

yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
26-10-2002 04:06
edit | quote
#2 | report |
Help yourself to an AD-FREE life


TIPS

**** That's what you must do in order to allow other civ (let's call foreign civ) to see a city that original civ has

1) Turn on the city improvement on city's tile in foreign civ map.
2) Turn on the foreign civ bit on city tile's visibility byte.
3) Turn on the foreign civ bit on byte 13th of the city
4) Put a size for the city (greater than zero) on byte 14th+number_of_the_civ (0 for barbs ... 8 for purple)

*****If you turn on a civ's bit on byte 13th, but don't put the size, the city will be on SIFTH+C list, but doesn't appear on Map [Like city with wonders before you found them!]

**** If you modified the size that the city's owner see [for example, if you modify byte 15th on a white city], there is not (visible) effect!

yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
29-10-2002 02:39
edit | quote
#3 | report |
Support Apolyton, buy Galactic Civilizations: Deluxe Edition


UNITS UPDATE:

On units, the 10th byte [starting on 1], represents whose civs know where the units is. 0 for barbarians, 1 for romans, 2 for green…

To the unit to be view, also the unit flag of the unit’s tile on section1 of map must be on.

H Tower
Emperor

Jul 2001
time: 23:16
29-10-2002 09:35
edit | quote
#4 | report |
Re: About Hex-Editing (Xin Yu?) Help yourself to an AD-FREE life


quote:
Originally posted by yaroslav
- Byte 14th to 21th: As you may have noticed, the size of a foreign city is not updated until you move a unit near the city... Where is this size stored? Byte 14th is the size barbarians believe the city has, Byte 15th is the size white civ believe that the city has, and so on until Byte 21th for purple civ.


maybe the value is stored in the spot where the civ that owns it sees. the correct number is where white is viewing white, and purple is viewing purple.

yaroslav
Emperor
Madrid, Spain, Europe
Jun 2001
time: 06:16
29-10-2002 22:11
edit | quote
#5 | report |
Support Apolyton, buy Civilization: The Boardgame


The true size of city is stored on byte 10th. Sorry, I was not very clear, but it is stated on 'Hex-edit' document

  < 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
 
Forum Jump:

 



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.0331 seconds (86.17% PHP - 13.83% MySQL) with 30 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