November 20, 2002, 02:28
|
#1
|
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?
|
|
|
|
November 20, 2002, 05:56
|
#2
|
Emperor
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]
|
|
|
|
November 20, 2002, 09:01
|
#3
|
Prince
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
|
|
|
|
November 20, 2002, 09:13
|
#4
|
King
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.
|
|
|
|
November 20, 2002, 12:14
|
#5
|
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
|
|
|
|
November 20, 2002, 12:24
|
#6
|
King
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.
|
|
|
|
November 20, 2002, 12:37
|
#7
|
King
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.)
|
|
|
|
Posting 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
|
|
|
All times are GMT -4. The time now is 07:18.
|
|