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 > Miscellaneous > Archive > Scenario League / Civ2-Creation -Archive > New version of the no-limits add-on
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 19-10-2001 16:06
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
New version of the no-limits add-on Support Apolyton, buy GURPS/ Alpha Centauri

I’m working on the second version of my no-limits add-on, for ToT and maybe later for MGE.
The 1st version got rid of the gold (30’000) and population limit(320’000) and extended the maps from 10’000 to 32767.
The second breaks the units limit (1948) and the cities’ limit (255).
It should also later give more barbarians and difficulties level (up to deity+5).
If you want to test, send me a mail : I can’t put the file as an attachement here (too big).

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 19-10-2001 16:09
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton buy from Amazon

I have broken the units limit and it seems to work, but with the cities I am at lost with the units allocation. City 256 is the home of all None units and city 257 creates units that are located in city 1. 258 in city 2 and so on. Any idea on how I could get rid of that ???
I can try to change all the ff00 (256) in the programm, but it’s going to take monthes, I am afraid.
What’s raging is that the trading works !

Seeker is offline Seeker
Emperor
London Ontario
Jan 1970
time: 00:15
  Old Post 19-10-2001 17:31 Visit Seeker's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Help yourself to an AD-FREE life

Hmmm the city limit thing interests me the most...

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:15
  Old Post 22-10-2001 04:22 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

The problem is that the size of the city number field is only one byte. There is no way to fit a number lager than FF (255) in a one byte field.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:15
  Old Post 22-10-2001 17:38 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Isn´t the units limit 2048? And I have to concur with William on the cities limit. Even if you´d be able to change this, that would make the no-limits patch incompatible with all other Civ2 versions.

Oh, yes, and some notes about your current no-limits thingy. The game.txt files you included seem to be changed in more ways than just the 10,000 changed into 32,767 (which is the only change required, right?). For instance, in picking the number of civs in the extended original, it says something like "7 civs (2 aliens race)" and "6 civs (1 alien race)". I assume you made some changes to your rules etc?
And perhaps you could let the different game.txt files already be contained in their subfolders in the ZIP, so extracting the zip will automatically put them in the correct dirs. That way users don´t have to rename them first.
And thirdly, solving the previous two "problems". Perhaps you could have a small program instead of the game.txt files which simply finds all occurences of 10,000 and changes them into 32,767. That way, people´s own changed files wil remain intact and the same version can be used for all different language versions of ToT.

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 23-10-2001 01:09
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

William, it is more tedious than that. Through hard, hard work, I’ve found the number holding the number of cities and it was FF followed by 00, I made it FFFE and now I can build more than 65000 cities. So it looks to me that the number of byte might not be a problem, as far as cities are concerned. What worries me is that units need to know where they are located and it might be a 1 byte stuff. What’s more maybe that the saved file is build for only 255 cities. Strange things happened in the 257th city after I saved and loaded again. Another tricky piece is that city 256 supports all none unit. It should be changed too. So maybe it is workable in theory, but the time required to find the good ff00 to change or the good 0000 is worrysome. I spent 2 whole days changing FF00 by the dozens before finding the good one for the city limit. And I was pretty lucky. I think it should take weeks trying before I maybe get it right. All of this for the city limit and with maybe 50% chance of succeeding, what do you think ???
But anyway, you can build more than 255 cities and the games goes on. Of that I have proof of. If you want to test it, I can send you the new version of the patch. It does work. I’ve not named it civ2.exe because it would be too dangerous to overtake the previous version. But you can click on any renamed civ2.exe program and it still plays correctly as civ2.

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 23-10-2001 01:10
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Browse Apolyton AD-FREE

Mercator, the limit is 2048 for all civs combined and 1948 for one civ. I am sure of that, after all the testing I did last week. Apparently, I’ve been able to get rid of that limit. And I can build as many units as I want with the cheat mode. It would require more testing, but it is quite long to do. Any takers ???
For the slight mistake of the game.txt of the extended original in the 1st, yes you have well noticed. Of course that it doesn’t change anything in the game. It escaped my attention a year ago. And of course there was lighter ways to change all the games.txt.
Maybe for the second add-on, but if only the units limits is broken is it worth making a new patch ?

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 23-10-2001 01:11
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Browse Apolyton AD-FREE

Concerrning the level modes, Deity+5 is playable in ToT, but you can’t save and you can’t get to the hall of fame, when it is possible with 2.42 and FW !!! Any idea why ? New barbarians levels work fine, though . (Fine if you like red everywhere).
And 2.42 reminds me of something : was there not something about all units being none after city 128, would it work with more than 255 ??? I should try that too. But it takes so much time. Maybe that waiting to see how much cities civ3 can afford is the best policy.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:15
  Old Post 23-10-2001 18:45 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Remove this text

I didn´t know about that 1948 per civ limit.Anotehr thing about the 255 cities limit. AFAIK, the city ID in a savegame (and the civ2 memory for that matter) is only one byte. That´s what´s causing that city 257 creates units supported by city 1. Somehow you´d have to change that one byte to two, but I don´t think that will be as "easy" as changing, say, FF00 into FFFF. Apart from that, this change will drastically change the structure of savegames etc., making them incompatible with other ToT versions. And depending on how the executable itself finds the different sections in the savegames even the executable itself might not be able to locate them correctly.
About the Deity +5, is saving only impossible at that level, or does the problem already start at Deity +3? Originally, there are 6 difficulty levels, adding 3 more, makes it 9, which can´t be saved anymore in one byte, this "overflow" may be causing the trouble.
And about the 128 cities, I think that was a problem of version 1.x only, and was solved with the 2.42 patch.

And as for whether you should release a new patch if it only lifts the unit limit, I don´t know. I´m not making scenarios and I´ve never run into the limit yet... But I´m sure some scenario makers will appreciate it.

By the way, William, how´s the Hobbit?

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:15
  Old Post 23-10-2001 21:28 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
By the way, William, how´s the Hobbit?


The Hobbit is on the back burner. I lack time and inspiration.

However, I did see the new LotR scenario today and it is beautiful! All new graphics; inovative design; great maps. Stunning!

Rasputin is offline Rasputin

Deity
Brisbane
May 1999
time: 15:15
  Old Post 23-10-2001 21:40 Visit Rasputin<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton

i sure hope you do break that city limit, in our current diplo game on the gigaworld map we hit the limit aobut 1100AD become quite silly seeing so much good land uninhabioted due to city limit...


you are doign well keep pu the godd workl

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:15
  Old Post 23-10-2001 22:05 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Got spare money?

quote:
Originally posted by William Keenan


The Hobbit is on the back burner. I lack time and inspiration.


Boy, does that sound familiar!

quote:
However, I did see the new LotR scenario today and it is beautiful! All new graphics; inovative design; great maps. Stunning!


Great, I´m looking forward to it. So it´ll be done before the movie then?

Angelo Scotto is offline Angelo Scotto
Warlord
Milan, Italy
Oct 1999
time: 05:15
  Old Post 24-10-2001 02:13
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Remove this text

Hello Julius, and compliments for your CSPL! (William, have a look at cradle utilities page...)

quote:
I can try to change all the ff00 (256) in the programm, but it’s going to take monthes, I am afraid.


As always, i have to agree with Mercator and William:
the real limit here is not 256 but 8, more precisely its due to data structure of units and not of cities;
The problem is that Civ2.exe reads a single byte (8 bit) from memory when searching for city number in unit data structure, if you want to make it work with 256 cities you should force it to read two bytes instead of one;

in other words

Unit data structure has a particular field (1 byte in size)

00 means unit is supported by city 0
..
..
..
FE means unit is supported by city 255
FF means unit is supported by NONE

This explains why Civ2 acts in the strange way you described:
If you simply break the limit of 255 cities you allow Civ2 to create city 256, 256 is FF in hex,
obviously when Civ2 examine a NONE unit it notice that it is supported by FF, the problem is that a city FF EXISTS in your game and so Civ2 happily decides that it is the home of all NONE units.
The same applies for city 257, 257 = 01FF (FF01 in reverse notation), this means that it uses 2 bytes to store the correct value, BUT Civ2 is programmed to read only a single byte, so from FF01 it reads only 01 and so it assigns units built in city FF01 to city 01, units built in city FF02 to city 02 and so on.
A correct approach requires to find each instruction which reads from unit data structure the home city number and change it so that it can read 2 bytes instead of one but this requires a disassembler, a debugger and a lot of rainy days outside;
It's the same approach i'm following to break the 7-civ limit in Tot, but, even if the approach theorically works it requires a HUGE number of weeks of boring work and i'll quit soon.

quote:
What’s raging is that the trading works !



The trading works because programmers of city data section were less greedy than programmers of unit section:
Look at Allard Hex Edit document:

8. CITIES INFORMATION
(source Andrew Livings and Xin Yu)
...
...
69-74 = 1st, 2nd and 3rd trade route partner city number (city number is 85th-86th position)
..

from byte 69 to byte 74, this means bytes 69,70,71,72,73,74: 6 bytes for 3 cities index, this means that city index was supposed 2 bytes long (and Allard confirms this writing that city number is in bytes 85,86).

The problem is not there, the problem is that no one warned unit section programmer which allocated just 1 byte for city number as explains always by Allard:

7. UNITS INFORMATION
(source Allard Höfelt)
..
..
17 home city with number is city number (FF is none)
..

byte 17, just one byte for city number.

Do you understand the problem now? programmers of unit section has condemned the whole game to 256 cities even if the game itself can support 'till FFFF-1 (65534) cities (THIS makes me raging! )

Greetings,
Angelo

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 27-10-2001 02:26
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Angelo, I told William a few days ago of the authorship mistake he made I'm sure it will be fixed soon If it is not already

You've convinced me than the 255 cities is too tough to break
I had intuitions about what you told, but what I could not fathom was that differents programmers were not on the same number of bytes for the cities. But it explains everything

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 27-10-2001 02:36
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Increase Your PM Length

Mercator, as the levels are concerned, it is hard to explain.
Already Deity+1 crashes. And until civ2 FW 2.72, it works
It is raging, too
I think the problem comes when the programm wants to calculate score, it doens't know what multiplier come with the new levels.
So my theory is the following. It was implemented but not used for civ 2.42, then forgotten, and we're only picking remains of it with ToT and MGE (where they did modify many things)
Maybe only one number change is required but I don't even know it
And maybe it has something to do with the save file, as saved files from 2.42 are different from MGE and ToT.
Anyway, I have no new idea and the solution certainly is not to be found only in the .txt files as it is for 2,42

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:15
  Old Post 01-11-2001 23:01 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Increase Your PM Length

Do you know when this "patch" will be complete?

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 02-11-2001 18:49
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton buy from Amazon

Darth, the patch is completed The problem is that it doesn't work well, at least for the cities. For the units, I need some testers
Do you want to help
If you want I can send it to your e-mail adress.

Sten Sture is offline Sten Sture
Emperor
SF, CA don't call it frisco... Striker!!
Mar 1999
time: 21:15
  Old Post 02-11-2001 23:52 Visit Sten Sture's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I can help with some testing...

kcarlson@jurika.com

Thanks for working on this.

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:15
Question  Old Post 06-11-2001 10:39 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy Civilization 2

Can I get a version with the original city limit?

Thanks.

darthveda@hotmail.com

sgrig is offline sgrig
Warlord
Isaac Newton's College
Nov 2001
time: 05:15
  Old Post 06-11-2001 17:47
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton or Terrorists Win

I would like to try the patch as well

Please e-mail it to me at

s_grigorian@hotmail.com

Thanks

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 07-11-2001 02:57
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Remove this text

No-limits add-on sent to the 3 of you.
Thanks in advance for the testing

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 07-11-2001 03:05
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton or Terrorists Win

No-limits add-on sent to the 3 of you.
Thanks in advance for the testing

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:15
  Old Post 07-11-2001 22:32 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Help yourself to an AD-FREE life

I either didn't get that or Hotmail gave the message the boot because it was over a certain size. Try sending it to

kdchulsk@mtu.edu

The ANZAC is offline The ANZAC
King
The Rodina!
Jan 2000
time: 00:15
Arrow  Old Post 10-11-2001 19:05 Visit The ANZAC's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Help yourself to an AD-FREE life

Julius, glad that you're finally that much closer to breaking the units and cities limits completely. After that, is there anything else that can be done to the .exe file?

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 11-11-2001 16:37
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Suffering from ads?

Darth, file resent to you, to you other adress. Yes, it was too big for hotmail.
Anzac, if you’ve read carefully the discussion above, I’m not sure there’s much to enjoy.

sgrig is offline sgrig
Warlord
Isaac Newton's College
Nov 2001
time: 05:15
  Old Post 11-11-2001 23:44
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Help yourself to an AD-FREE life

Hi Julius,

it seems I didn't receive the file for the same reason as DarthVeda.

Please resend it to sg329@cam.ac.uk

Thanks

The ANZAC is offline The ANZAC
King
The Rodina!
Jan 2000
time: 00:15
Arrow  Old Post 12-11-2001 05:36 Visit The ANZAC's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Wait, so all of these are hard coded and it is impossible to do anything more? Too bad if that is true.

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 14-11-2001 18:36
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Get a bigger avatar today!

Sgrig, file sent to you, too.

Marko is offline Marko
Prince
Tartu, Estonia
Sep 1999
time: 05:15
Smile  Old Post 14-12-2001 00:24 Visit Marko's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Help yourself to an AD-FREE life

Hi!

Can you send the file to me also.

I'm constantly faced with "too many units" problem in some scenarios...

My e-mail is markourm2@yahoo.com

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:15
  Old Post 14-12-2001 17:29
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Support Apolyton buy from Amazon

Marko, no-limits add-on version 2 for ToT has been sent to you.
Hope you'll manage some feed back

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:15.
Apolyton Time is 00:15.
    top of page
Rate This Thread:
archivepost
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.0594 seconds (91.47% PHP - 8.53% MySQL) with 31 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