UGO
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION II > Civ2 - General Discussions

Notices

Reply
 
Thread Tools
Old Feb 04, 2007, 06:00 PM   #1
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Hammer Civilization II Unlimited

EDITED:

In current dev for both Civ 2 MGE and Civ 2 ToT:

- Increase the global max units from 2048 to 32000.
- Increase the max gold from 30,000 to 2,000,000,000.
- Increase the max map surface from 10,000 to 32,767.
- Increase the max population from 320,000,000 to 2.000,000,000.
- Increase time limit from 2020 to 9999
- Increase the Events memory to 212,960
- Remove the CD check.



Check recent post of this topic if you wanna try last dev. files

Last edited by Elys; Feb 14, 2007 at 03:22 AM.
Elys is offline   Reply With Quote
Old Feb 05, 2007, 06:14 AM   #2
IMBC2
"Friends of Eidolon" lead
 
IMBC2's Avatar
 
Join Date: Aug 2006
Posts: 77
Cool!

Cool! Great work!

Now does this also remove the 255 total cities limit? That would indeed be very helpful in the Fantasy and Sci-Fi games.
IMBC2 is offline   Reply With Quote
Old Feb 05, 2007, 09:36 AM   #3
Boco
Warlord
 
Join Date: Jun 2001
Location: NJ, USA
Posts: 264
This is a big help!

The 255 city limit is a huge limitation, but can it be overcome?

Is this compatible with Timbatron's patch that reduces the load on your CPU (http://forums.civfanatics.com/showthread.php?t=112086 and http://tim.strafenet.com/civ2.html)? Unless/until I come up with a unsurmountable bug using his modification, that will remain the version that I use.

Any chance that you can issue this as a patch instead of an executable? It'd be helpful to pack a patch in zips with scenarios.
Boco is offline   Reply With Quote
Old Feb 05, 2007, 01:04 PM   #4
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
I will look at first to make a version based on the Timbatron's patch and then eventually a patcher once I have little time.

The global max units work normally above 2048 however I have not tested up to the new "theorical" 64000 . It is possible there is problem at some higher count somewhere in the civ2 code. If you encounter such bug past a certain global max units, please post the count or the save so I can have a look at it

About the 255 cities limit, I have never looked for that. If someone has a save with the cities limit reached (MTG or TOT), I will be happy to have a look at it ^^

Last edited by Elys; Feb 05, 2007 at 01:10 PM.
Elys is offline   Reply With Quote
Old Feb 05, 2007, 02:57 PM   #5
ElephantU
Deity
 
ElephantU's Avatar
 
Join Date: Aug 2002
Location: Phila PA
Posts: 2,272
Doesn't one of those (number of units or number of cities) run up against a reserved space issue in the SAV file? If you go over it, I thought it overwrote other reserved areas of the SAV.
ElephantU is offline   Reply With Quote
Old Feb 05, 2007, 04:52 PM   #6
Boco
Warlord
 
Join Date: Jun 2001
Location: NJ, USA
Posts: 264
I would've thought so, too, but I'm pretty ignorant in these areas.

Here's Wobbegong's page describing the structure of a SAV file. Unit information is sprinkled throughout the file.
Boco is offline   Reply With Quote
Old Feb 05, 2007, 05:21 PM   #7
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Quote:
Originally Posted by ElephantU View Post
Doesn't one of those (number of units or number of cities) run up against a reserved space issue in the SAV file? If you go over it, I thought it overwrote other reserved areas of the SAV.
To be exact I'm porting these modifications that I made for CIV2:MGE.
The MTG and TOT has lot of code in common.

I've played with MGE with more than 2048 units and have not encountered a problem with save. For TOT I have simply ported the modification from MGE because the related code is the same.

Below is a MGE screenshot of loading successfully a save where i just added units with the cheats menu before precedently saving it.

TOTAL without including barbarians: 2439


ElephantU, do u have link from where you got this units/save problem information ? I'm interested to read them. If there is problem I may eventually look at the save code.

EDIT: OOPS, i've just noticed your link Boco, I gonna have a look there, thank you

Last edited by Elys; Feb 05, 2007 at 07:14 PM.
Elys is offline   Reply With Quote
Old Feb 06, 2007, 12:19 AM   #8
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
I've packed a new version which includes the CPU heavy usage fix made by Tim, and updated the download link and infos in the first post.
Elys is offline   Reply With Quote
Old Feb 06, 2007, 11:20 AM   #9
Mercator
Cosmographer
 
Join Date: Mar 2001
Posts: 1,065
I don't think there should be any problem with the number of units up till 32,767 at least. Not in the savegame anyway. It could cause problems with the limited amount of game memory available for the units. Is that something you've taken care of?

In case you have, could you perhaps also look at increasing the amount of event space available? It should be possible to increase that too without any problems, apart from memory limitations.

Excellent work, by the way!
Mercator is offline   Reply With Quote
Old Feb 06, 2007, 08:34 PM   #10
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Quote:
Originally Posted by Boco View Post
....
Any chance that you can issue this as a patch instead of an executable? It'd be helpful to pack a patch in zips with scenarios.
I've done that. But instead of a Patcher, I've made a Loader. I think it's more flexible because people does not have to modify the civ2.exe on the disk

Then you can use the Loader which will launch civ2.exe and modify it directly in memory, while still being able another time to play the original game by just starting civ2.exe if you wish. It's also smaller, about 100KB.

However it does not work in Windows 95/98, I will see if I can change that later.
I'm also looking at stuff for the Mercator's suggestion.

Quote:
Originally Posted by Mercator View Post
....
In case you have, could you perhaps also look at increasing the amount of event space available? It should be possible to increase that too without any problems, apart from memory limitations. ...
I guess you are referring to the script events from events.txt. I've never worked with them.

Do you have an events.txt that you know for being beyond the normal Civ2 ToT capacity and that I could test ?

EDIT: I'm also working the Global Max Units modification because at some point it crashes.

Last edited by Elys; Feb 06, 2007 at 11:20 PM.
Elys is offline   Reply With Quote
Old Feb 07, 2007, 09:25 AM   #11
Mercator
Cosmographer
 
Join Date: Mar 2001
Posts: 1,065
Excellent Elys!

Yes I am referring to the Events.txt. And in fact, MGE people would probably be more happy with this than ToT people.

I attached a silly events file that displays the same text pop-up for the first 160 turns of your game.

I can also tell you that ToT has a maximum of 106,480 bytes for the events in its memory. I don't know about MGE. I think that's around 32K.

If you remove the first 6 events in my dummy events file (up to the event for turn 154), you will reach exactly that maximum of 106,480 bytes.


Would that loader work for both MGE and ToT? Since you said they are similar. Or aren't they that similar?

And I'm afraid I'm on Windows98, so I hope you can make something work for that too.
Attached Files
File Type: zip Events.zip (1.1 KB, 40 views)
Mercator is offline   Reply With Quote
Old Feb 07, 2007, 03:58 PM   #12
Boco
Warlord
 
Join Date: Jun 2001
Location: NJ, USA
Posts: 264
Did you test the version that doesn't max out the event space by loading an Scn in ToT, Merc?
Boco is offline   Reply With Quote
Old Feb 07, 2007, 05:13 PM   #13
Catfish
aka Wobbegong
 
Join Date: Nov 2003
Location: Wollongong, Australia
Posts: 629
Images: 6
Good stuff, Elys. An expansion of the available memory for events is the one that appeals to me the most. The events for my War of the Ring scenario are packed in like sardines.
Quote:
Originally Posted by Mercator
Yes I am referring to the Events.txt. And in fact, MGE people would probably be more happy with this than ToT people.
Never mind them. If they were genuinely bothered by this kind of thing, they'd have upgraded.
Catfish is offline   Reply With Quote
Old Feb 07, 2007, 06:13 PM   #14
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Yes, Mercator I found the same 106480 size last night while debugging ToT. It corresponds to the maximum heap size allocated for the events.
If the heap is full, civ2 will refuse to load next events. I know how to change that heap size. After that, there is need to check if this change will not induce a bug somewhere else.
I will work on that soon. For now I'm busy on the Max Units stuff.

By the way i've also changed the way I manage civ2.exe in memory, so it should work as well in Windows 95 and 98.

Concerning the Max Units, I have made progress. The memory allocated for all the units is staticly reserved in the Civ2.exe, which of course make crash if you have too many units and then not enough memory. (I would have hope the memory allocation was dynamic to make things simple but unfortunatly not )
However I've managed (at least in a part, i'm still testing) to relocate and increase the memory for the Units, but that means also changing all the reference in the code that access these memory zones, which is the hard part because of course I only see ASM code with no name or any idea what part of memory store what datas (until I would completly trace and debug civ2.exe to know exactly what it does, but it would be faster to code a civ2.exe from scratch then )

Concering MGE, in facts i'm doing most of my debug test on MGE and then porting working modification to ToT. ( I personally prefer the MGE Interface).

So once i have something working in either ToT or MGE, I just need to convert from one to the other.
I have already planned to make a version for both, and even one unique loader for both.

Last edited by Elys; Feb 07, 2007 at 06:50 PM.
Elys is offline   Reply With Quote
Old Feb 07, 2007, 07:08 PM   #15
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Ok I've attached in this post a current in dev version of the loader for ToT.

It has the event memory size doubled and all what is specified in the first post of this topic, excepted the Global Max Units and CPU fix is not included.

Mercator: It allows to load your events.txt (thx for the file BTW ) file without error. Also please tell me if it works under Windows 98 ?

Last edited by Elys; Feb 08, 2007 at 01:55 AM.
Elys is offline   Reply With Quote
Old Feb 08, 2007, 01:14 AM   #16
Catfish
aka Wobbegong
 
Join Date: Nov 2003
Location: Wollongong, Australia
Posts: 629
Images: 6
Quote:
Originally Posted by Elys
Concering MGE, in facts i'm doing most of my debug test on MGE and then porting working modification to ToT. ( I personally prefer the MGE Interface).
In what way do you prefer the MGE interface? With some graphical modifications and menu options you can get ToT to look very similar to MGE.
Quote:
Originally Posted by Elys
It has the event memory size doubled and all what is specified in the first post of this topic, excepted the Global Max Units and CPU fix is not included.
It might be an idea to try to contact Timbatron before bundling his CPU patch with yours - if that's what you choose to do. I'm using your loader with his CPU-fixed executable. Will that cause any conflicts?
Code:
remaining heap space: 212960 bytes
I'm liking the look of this. I've done a little events testing (with and without Timbatron's patch). The increased memory allocation for events works fine when I'm beginning a new scenario or loading a clean SAV file (with the larger events file present in the directory). However, if I load a SAV file with embedded events that exceed the original 104 kB maximum, I get a CTD, as I would if I were using an unpatched executable.
Catfish is offline   Reply With Quote
Old Feb 08, 2007, 02:01 AM   #17
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
That's correct, you couldn't load a save, that's because loading use another heap allocation and this is what I was fixing along other things in the new version.

For the CPU fix, unlike the full civ2.exe file I released, I won't use Tim's one because I'm only releasing a Loader now and I will have to get my on way to do it. And that's not on top of my civilization II priority

Also you can use the loader with Tim's civ2.exe it should work.

Attached to this post is the new DEV version for both MGE and ToT that includes :

- Increase the global max units from 2048 to 32000. Need testing
- Increase the max gold from 30,000 to 2,000,000,000.
- Increase the max map surface from 10,000 to 32,767.
- Increase the max population from 320,000,000 to 1.000,000,000.
- Increase time limit from 2020 to 9999
- Increase the Events memory to 212,960
- Remove the CD check.

Last edited by Elys; Feb 09, 2007 at 08:29 PM.
Elys is offline   Reply With Quote
Old Feb 08, 2007, 02:16 AM   #18
Elys
Chieftain
 
Join Date: Oct 2006
Posts: 33
Quote:
Originally Posted by Wobbegong View Post
In what way do you prefer the MGE interface? With some graphical modifications and menu options you can get ToT to look very similar to MGE.
The two first things I hate about the ToT look is: No close button on the city window, and I don't like the new bar stuff (too small letter) on the units, I prefer the old good big shield

Quote:
Originally Posted by IMBC2 View Post
Now does this also remove the 255 total cities limit? That would indeed be very helpful in the Fantasy and Sci-Fi games.
Quote:
Originally Posted by Boco View Post
The 255 city limit is a huge limitation, but can it be overcome?
I may have a try at it

Last edited by Elys; Feb 08, 2007 at 04:42 AM.
Elys is offline   Reply With Quote
Old Feb 08, 2007, 11:01 AM   #19
Mercator
Cosmographer
 
Join Date: Mar 2001
Posts: 1,065
Quote:
Originally Posted by Boco View Post
Did you test the version that doesn't max out the event space by loading an Scn in ToT, Merc?
No.

Quote:
Originally Posted by Elys View Post
Mercator: It allows to load your events.txt (thx for the file BTW ) file without error. Also please tell me if it works under Windows 98 ?
It doesn't work in Win98. As soon as the ToT background comes up, a fatal error pops up as well and Civ2 crashes.
Mercator is offline   Reply With Quote
Old Feb 08, 2007, 04:48 PM   #20
Catfish
aka Wobbegong
 
Join Date: Nov 2003
Location: Wollongong, Australia
Posts: 629
Images: 6
Quote:
Originally Posted by Elys
No close button on the city window,...
I take it you mean the extra one in the top left corner? Try View menu → City Layout.
Quote:
Originally Posted by Elys
...and I don't like the new bar stuff (too small letter) on the units, I prefer the old good big shield
Nothing you can do about that, I'm afraid.
Catfish is offline   Reply With Quote
Reply

Bookmarks

Tags
civ2 no limits, civ2 unlimited

Go Back Civilization Fanatics' Forums > CIVILIZATION II > Civ2 - General Discussions > Civilization II Unlimited

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do any of the Civilization Games on PC have a Unlimited Years Crack: deacons323 CivRev - General Discussions 1 Nov 15, 2008 11:03 AM
Civilization II: Wonder Movies Ginger_Ale Article Comments 0 Apr 23, 2008 08:27 PM
Civilization II: Wallpapers Ginger_Ale Article Comments 0 Apr 23, 2008 08:25 PM
Civilization II: Maps Ginger_Ale Article Comments 0 Apr 23, 2008 06:19 PM
Civilization II: Reference Ginger_Ale Article Comments 0 Apr 18, 2008 06:40 PM



All times are GMT -6. The time now is 11:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
This site is copyright © 2000 - 2009, Civilization Fanatics' Center.
Support CFC: Amazon.com | EB Games | Amazon UK | Amazon DE | Amazon CA | Amazon FR