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 > Why I think now that more than 255 cities is impossible. Any other idea ?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < 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:12
Unhappy  Old Post 07-01-2001 19:29
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Why I think now that more than 255 cities is impossible. Any other idea ? Browse Apolyton AD-FREE

I start this topic in the hope that someone more skilled than I am will have another idea.
What I have done is to find the line of code where the maximum number of cities (255) is. And I have changed it in both ToT and MGE. So, it is possible to build more cities.
But two problems arouse. First of all the 256th cities acts as the attribute for all None units. I figure that I could get rid of this one, but I’m not sure.
The other problem that I cannot imagine how to resolve is the question of units allocation. The allocation is certainly coded in a single two digits hexa number (01-ff). It means they can only have a city between 1 and 255 as a location. For example, if you build an unit in city 258, it will be supported by city number 3, even if it is a foreign city (maybe it’s nice for a scenario of civil war, but …). My only idea is that in the original Civ2, units of all cities after 128 were None. If one could manage to do that again after 255, it would be great if the support city is not 255 anymore. Does anyone has an idea on how to do that with MGE or ToT ? Maybe that more than 255 cities would only work with the original civ2 !!!
But on the other hand, the cities really exist, really contribute to science and gold and one can build improvements in them. You can list them with the F1/F4/F5 keys and so on. But maybe than more problems would appear in the long run. With MGE it crashes after city 281 and with ToT it seems to go fine forever.

So here is what I know. I can try to answer more questions, but for me, the allocation of units is something that cannot be resolved. Sun Tzu, ask your programmer friend if he has an idea; brillant Apolytoners step up; me I just failed.

------------------
Oh Man, when will you understand that your greatness lies in your failure - Goethe

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:12
  Old Post 08-01-2001 01:25 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase the size of your Attachments

You are to hard on yourself. The max city limit will crop up in too many places to be edited out like that but there is no harm in trying. You have done more than enough by getting rid of the gold and population limit.

I have a suggestion: could you try and find the hex location of the .exe file that makes the unit shield flag colours in ToT darker than they are? and get rid of it? This would go a long way to making ToT more popular!

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:12
Lightbulb  Old Post 10-01-2001 03:00 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Or you could play freeciv

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:12
Question  Old Post 10-01-2001 17:58 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase the size of your Attachments

Could you get rid of the part of the program that takes any negative treasury values and sets the treasury to zero? I really don't understand why the programmers were so kind to people who run big deficit budgets...

James Fox is offline James Fox
Settler

Jan 2001
time: 05:12
Post  Old Post 12-01-2001 02:53
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Well, you could try to increase the number of possible civilizations. 7 (plus barbarians) is rather restrictive for some scenarios that I'm contemplating.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:12
Post  Old Post 12-01-2001 05:48 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization 2

They probably used lots of bitvectors of length 8. So you would have to change a lot of places->impossible.

*mutters something about the 32 civ possible in freeciv*

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:12
Question  Old Post 12-01-2001 08:51 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton

*mutters something about Thue's spam of anything civ in the last few days *

Can you remove the unit limit? It's something like 2040, 2047, or 2048.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:12
Post  Old Post 12-01-2001 09:15 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Hey - that last one was a legatime answer to a question

SCDARS is offline SCDARS
Warlord

Sep 1999
time: 06:12
Question  Old Post 13-01-2001 05:39 Visit SCDARS's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Julius:
While I looked through Allards guide on Hex editing (actually for another thread) I noticed some hints that the developers of Civ2 intended to allow more than 255 cities; at least the "total number of cities" is two bytes long and so seems to be the "home of unit" info (it is supposed to be the 17th byte from the beginning of each unit table, but the 18th byte is empty in normal cases).
Perhaps you could first try to verify this by changing this value manually in any 255+ cities savegame (I don't own one...).

If storing the home cities in the savegame should prove possible, maybe just another value in the savegame has to be changed to get rid of the "home city problem".

The ANZAC is offline The ANZAC
King
The Rodina!
Jan 2000
time: 00:12
Question  Old Post 13-01-2001 19:03 Visit The ANZAC's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Lose 30 kilos (of popups)

Julius: Maybe you could try to allow MGE to recognize 3 pint objectives?

------------------
""I had hoped we were hurling a wildcat on the shore, but all we got was a stranded whale!"-Winston Curchill on the Battle of Anzio

"Quis custodes ipsos custodiet?" -Juvenal

"I can walk!!" -Dr. Strangelove

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

quote:

Originally posted by The ANZAC on 01-13-2001 09:03 AM
Julius: Maybe you could try to allow MGE to recognize 3 pint objectives?



Sorry, it seems that some of you misunderstood the title of my topic. By new ideas, I meant ideas to help me solve the problems, not new defies or new limits to break. During my next holidays I’m going to try again with ToT to tackle the 255 cities limit, because as I said in the 1st message, it doesn’t seem to work with MGE.
For other matters, well I am only human and I’ve got to sleep, eat, work, etc.

------------------
Oh Man, when will you understand that your greatness lies in your failure - Goethe

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:12
  Old Post 14-01-2001 00:38
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Remove this text

quote:

Originally posted by DarthVeda on 01-11-2001 10:51 PM
Can you remove the unit limit? It's something like 2040, 2047, or 2048.


DarthVeda, for the 2048 units I have tried with MGE. It is indeed not more than 1948 for one civ and 2048 for all civs. I’ve changed the number, but the game crashed at 2050! I shall try during the February holidays with ToT.

------------------
Oh Man, when will you understand that your greatness lies in your failure - Goethe

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:12
Question  Old Post 14-01-2001 00:40
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Tired of ads?

quote:

Originally posted by SCDARS on 01-12-2001 07:39 PM
Julius:
While I looked through Allards guide on Hex editing (actually for another thread) I noticed some hints that the developers of Civ2 intended to allow more than 255 cities; at least the "total number of cities" is two bytes long and so seems to be the "home of unit" info (it is supposed to be the 17th byte from the beginning of each unit table, but the 18th byte is empty in normal cases)


SCDARS, where can I get this guide ? I am very much interested.

------------------
Oh Man, when will you understand that your greatness lies in your failure - Goethe

Julius Brenzaida is offline Julius Brenzaida
King
Currently cleaning the 9000 rooms of Sticky Mouse's Palace
Aug 2000
time: 05:12
  Old Post 14-01-2001 00:43
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:

Originally posted by SCDARS on 01-12-2001 07:39 PM
Perhaps you could first try to verify this by changing this value manually in any 255+ cities savegame (I don't own one...).
If storing the home cities in the savegame should prove possible, maybe just another value in the savegame has to be changed to get rid of the "home city problem".


I have indeed changed the numbers for the max cities with MGE. I have then build some more, but at 280 the game crashed I don’t know why. It’s the 1st problem. The second one is the allocation of units. An unit build on the 258th cities is allocated to the 2nd, while all none units are allocated to the 256th. Maybe I can change that. Can I contact Allards ? Maybe together we can understand all that.
As it crashes for MGE, I shall try with ToT, I’ve build more than 300 cities without a problem with ToT. I will try that at the end of February. But you are right that there is a possibility to build more than 255 cities. I’ve even made a patch for that. Does anyone want to try it ?

------------------
Oh Man, when will you understand that your greatness lies in your failure - Goethe

Allard HS is offline Allard HS
Prince
NL
Jan 1970
time: 06:12
Post  Old Post 14-01-2001 02:09 Visit Allard HS's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I believe that with Allard, it's me they mean. And you can contact me at ahofelt@hotmail.com
To be honest, I'm not very actualized on this problem, but I understand your points.
Still, it's a very interesting subject. And much more "possible" I believe than hacking civ2.exe.

Anyway, maybe my guide can help you with anything. It's written mostly for FW, not MGE: http://allard.8m.com/hexediting.htm

Maybe you'd be so kind to add some value locations for MGE?

The Capo is offline The Capo
Prince
of the Baltimorons
May 2000
time: 05:12
Post  Old Post 14-01-2001 04:04 Visit The Capo's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Full PM-box? Change here!

Probably not much help, but if you notice when creating scenarios if you try and max out the shield cost and upkeep costs for city improvements, (for instance putting 9999999999, in and hitting enter) it defaults them to 255.

Doubt it will help but I thought it may have some connection.

Lefty Scaevola is offline Lefty Scaevola
Emperor
San Antonio TX USA
Oct 2000
time: 23:12
Post  Old Post 17-01-2001 23:48
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Suffering from ads?

smax can run real slow when you get above 350 to 400 bases. The same might happen to civ2, particulaly on less capable platrotms.

------------------
Gaius Mucius Scaevola Sinistra
Pontificator Pendanticus
older richer & wiser than you

niteowl is offline niteowl
Chieftain
of a small village in Upstate S.C., USA
Jan 2001
time: 00:12
Question  Old Post 18-01-2001 00:02 Visit niteowl's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Increase Your PM Length

Call me naive, but why in God's name would you want that many cities? I do good to keep up with the 30 or so that I usually end up with after a long game.

------------------
"My dear girl don't flatter yourself. What I did this evening was for king and country. You don't think it gave me any pleasure do you?

--- James Bond
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:12.
Apolyton Time is 00:12.
    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.0442 seconds (90.59% PHP - 9.41% 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