Announcement
Collapse
No announcement yet.
Units' limit
Collapse
X
-
Originally posted by AGRICOLA
How does it allocate memory for a large array such as units? If it is like the few languages that I'm familiar with, the size of the array is declared at the beginning of the program and could be changed by hex editing.
yes you can also add more units to a "saved" file, you even can build a tool to do that job.
say:
if NumTotalUnits= 2049 then
numtotalUnits=NumtotalsUnits+1;
reallocatearray(TotalUnits, NumTotalUnits)
end;
with that sintaxis you give one unit more: 2049 units. and you resize the array of the units to add another bunch of bytes to store the new data unit.
then you start to fill new data for the new unit entry:
Unit(2049).Xlocation = 8;
Unit(2049).Ylocation = 12;
Unit(2049).Home = 6; ---> a pointer to the city array.
and so on...
you can add more units building a new tool exclusively for that, if you know any language, try it . but i dont know what would happen "in-game".
with Skyer's patch, you can build more units "in-game" without hex-editing or something, somebody should test Skyers patch, adding more and more units, the
TotalNumberofUnits field, is a 2-byte field. so i guess you can add until 32000 units average!!!! imagine saved games of more than 1 MB!!!!!
unfortunattely i work with MGE, can't test with TOT. but in theory must work.
Comment
-
Originally posted by curtsibling
@Heresson:
CIV is close to being a recognised religion!"I realise I hold the key to freedom,
I cannot let my life be ruled by threads" The Web Frogs
Middle East!
Comment
-
Originally posted by Bostero . . . . unfortunattely i work with MGE, can't test with TOT. but in theory must work.
See post #27 on the thread.
EDIT: Sorry, bad link.Last edited by AGRICOLA; February 8, 2006, 04:12.Excerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
Originally posted by AGRICOLA
I prefer not to have RAR on my computer because it tends to take over from WinZip."Peace cannot be kept by force.
It can only be achieved by understanding"
Comment
-
Poly, CFC and other civ sites are zip shops. CFC will not even attach a .rar file.Excerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
MGE NOLIMITS TEST
Skyer has posted a nolimits units and nolimits cities MGE civ2.exe file at
Post #27 on the thread.
I ran tests on both limits. The units limit was tested almost the same way as I tested the TOT units limit.
1. Renamed the civ2.exe file in the MGE folder as civ2ORIGINAL.exe .
2. Copied the new MGE.exe into the MGE folder.
3. Installed the MGE 1.3 patch.
4. Started a new game as Rome with 2 other civs.
5. Gave Rome all techs. Changed terrain to form a block of 20 glacier squares plus an isolated glacier square.
6. Created 100 spies on each of the 20 squares and 46 on the single, a total of 2046.
7. Got "Too many units" error message when tried to create unit 2047.
8. Twice bought spies in Rome and then ended the turn. The number of active units reached 2048.
9. However, when I tried it once more, the "Too many units" error message appeared. See screenshot.
Unfortunately, it does not appear that the units limit has been removed. Also puzzling is the fact that one can cheat only 2046 units whereas one can build the expected 2048.
I tested the city limit by using saves from Axis & Allies and Blitzkrieg 1936, scenarios that both start with 255 cities. In both cases, when an engineer tried to build a new city, the "Too many cities" popup appeared.
@Skyer
I think that it might be better if you made only one modification at a time. In this instance, I suspect that there may be some interaction between the change of both limits but there is no way to tell.
You are certainly making some fascinating discoveries about CIVII, discoveries that could greatly increase what is possible. However, each one will have to be thoroughly tested individually and in combination with others. No scenario designer is going to invest months of his time and effort in designing a scen that depends on some of your discoveries unless he is absolutely certain that they will work and there will be no unpleasant surprises.
EDIT: Link not working. Fixed it.Last edited by AGRICOLA; February 8, 2006, 06:00.Excerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
Sorry, I experience difficultires dowloading the first non-units-limit download... Can someone who's downloaded it send it to me at Heresson%hoga.pl or/and komnen3%gazeta.pl? Thank You.Last edited by Heresson; February 14, 2006, 08:14."I realise I hold the key to freedom,
I cannot let my life be ruled by threads" The Web Frogs
Middle East!
Comment
-
Which file exactly is that? I can send it over... And you might want to remove your e-mail adresses so you won't get spammed even more.
Comment
-
first page, 18th post from up, 4th of Skyer in the thread.
If You have troubles as well, would someone who's downloaded it earlier send it?"I realise I hold the key to freedom,
I cannot let my life be ruled by threads" The Web Frogs
Middle East!
Comment
-
I sent you the thing a couple of days ago at the first address in your post. It was shown as going through ok. At 763 kb is it too big to go through?
Excerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
Hm? Try again (with both adresses, and of course replace % with @), please, and thank You. I have a lot of place in my mailboxes... I don't know why should it go wrong..."I realise I hold the key to freedom,
I cannot let my life be ruled by threads" The Web Frogs
Middle East!
Comment
Comment