Thread Tools
Old November 20, 2002, 02:28   #1
Choke
Prince
 
Local Time: 03:18
Local Date: November 1, 2010
Join Date: Oct 2002
Posts: 523
Too Many Units
I know it requires hex-editing but how do I A) Hex edit and B) Hex edit the too many units thing out?
Choke is offline  
Old November 20, 2002, 05:56   #2
Scouse Gits
lifer
Civilization II PBEMTrade Wars / BlackNova TradersGalCiv Apolyton EmpireApolytoners Hall of FameCivilization II Succession Games
Emperor
 
Scouse Gits's Avatar
 
Local Time: 11:18
Local Date: November 1, 2010
Join Date: Nov 1999
Location: Liverpool, United Kingdom
Posts: 6,344
A very simplistic answer:
a) with a hex editor - I use hexedit.exe - do a file search you should get it
b) don't believe that it is possible ...

SG[1]
__________________
"Our words are backed by empty wine bottles! - SG(2)
"One of our Scouse Gits is missing." - -Jrabbit
Scouse Gits is offline  
Old November 20, 2002, 09:01   #3
Messer Niccolò
Prince
 
Messer Niccolò's Avatar
 
Local Time: 12:18
Local Date: November 1, 2010
Join Date: Oct 2001
Location: of the Sarzaneers
Posts: 429
... just wondering... the No limits patch made by Julius Brenzaida?
__________________
googol... this is a number!
"Silence Ming. I will let you know when I feel you are needed." - HappySunShine
"Classic Eyes...But in reality, it works the other way around." - Ming
Messer Niccolò is offline  
Old November 20, 2002, 09:13   #4
DaveV
Apolytoners Hall of Fame
King
 
DaveV's Avatar
 
Local Time: 07:18
Local Date: November 1, 2010
Join Date: Dec 1969
Location: USA - EDT (GMT-5)
Posts: 2,051
As I recall, Julius was able to override the bounds checking on number of units and cities. This just resulted in overwriting other variables, though, and the game crashed. You would have to rewrite the source code and recompile to increase the limits; it can't be patched. If you're really determined to work around the limits, try FreeCiv.
DaveV is offline  
Old November 20, 2002, 12:14   #5
Choke
Prince
 
Local Time: 03:18
Local Date: November 1, 2010
Join Date: Oct 2002
Posts: 523
Ok, well it's only one number in there that tells the game how many can't you just change that number?
__________________
"Long live Iraq. Long live Jihad. Long live Palestine. God is great, God is great." - President Saddam Hussein
Choke is offline  
Old November 20, 2002, 12:24   #6
DaveV
Apolytoners Hall of Fame
King
 
DaveV's Avatar
 
Local Time: 07:18
Local Date: November 1, 2010
Join Date: Dec 1969
Location: USA - EDT (GMT-5)
Posts: 2,051
Quote:
Originally posted by Choke
Ok, well it's only one number in there that tells the game how many can't you just change that number?
Yes, you can, but it creates problems. Let's say the programmers set aside enough memory for 1000 units (I can't remember the actual number). If you bypass the unit warning, the program will write information for the 1001st unit into memory that is set aside for storage of some other information (cities, for example). Then, when the game tries to read the data for the first city, it will read unit information instead. Some of this stored information consists of pointers to other information; when it's overwritten, the computer starts to read non-existant memory. This will cause strange things to happen, and I guarantee it will eventually crash the program and probably your computer.
DaveV is offline  
Old November 20, 2002, 12:37   #7
Six Thousand Year Old Man
Civilization II Succession Games
King
 
Six Thousand Year Old Man's Avatar
 
Local Time: 06:18
Local Date: November 1, 2010
Join Date: Aug 2000
Location: Ad Rock
Posts: 2,665
Quote:
Originally posted by DaveV
Let's say the programmers set aside enough memory for 1000 units (I can't remember the actual number
2048 (or 2047, possibly).

This limit used to bug me, too, until I experienced the joy of moving 500 units in a turn!
__________________
"I'm a guy - I take everything seriously except other people's emotions"

"Never play cards with any man named 'Doc'. Never eat at any place called 'Mom's'. And never, ever...sleep with anyone whose troubles are worse than your own." - Nelson Algren
"A single death is a tragedy, a million deaths is a statistic." - Joseph Stalin (attr.)
Six Thousand Year Old Man 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 07:18.


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