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 > CtP2-Creation/AI/Mods/Scenarios-Archive > Theoretical solution to sea city sprite bug
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
MATT:-) C is offline MATT:-) C
Settler
London
May 2001
time: 05:19
  Old Post 25-04-2002 17:18
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Theoretical solution to sea city sprite bug Support Apolyton, buy Alpha Centauri

I'm going to be brief-ish (I've got an exam in an hour's time!). I'm assuming you know what this bug is and that no-one has a solution yet (sorry if you do, I'm clearly not observant enough).

Well, the solutionI had ages ago was to create a trigger that fired when a sea city was created. It changed the underlying terrain to an exact copy of the terrain with one exception: the new terrain was one on which undersea tunnels could not be built. The sea cities then showed up as expected (which makes sense as undersea tunnels fool land units, including cities, into thinking that the sea tile is land, and sea cities automatically have undersea tunnels built beneath them if allowed - hence a normal city sprite).

The problem is that this solution screws up some tile graphics; specifically graphics with an orientation like continental shelf and rift tiles. There was no solution to the new problem that I could find (and I tried loads of other things) until I recently took a look at the tileedit program (which I'm assuming you're familiar with). The rules for continental shelf tiles (as an example) include references to deep, shallow and shelf water tiles. The problem is that the new terrain (a copy of the original) is not considered as any of these, so the shelf tile defaults to one orientation - hence the mess up. This occurs regardless of the new terrain's internaltype in terrain.txt.

The solution is theoretical because I haven't tried it, but it works in my head (not much to go on I know, but it might be worth a try if you use sea cities a lot). Simply(!) duplicate all the appropriate tile rules to incude the new terrain types as well. This would take ages and ages unless you take a few shortcuts. Noting that all sea terrain has the same effect on food/production/etc. for cities only a few extra terrain types may be needed: one for deep water, one for shallow water etc.

There are a few other things to consider like changing the terrain back if the city is destroyed and what happens to the colours of the new terrains (there aren't even enough colours for the all the normal terrain types) etc. but I'm not too bothered about them because I don't use sea cities much at all.

That's my idea, it may or may not work. Good luck if you plan to try it. Give me a shout and I'll help if you want.

Off to the joys of Electromagnetic wave theory . . .

MATT:-)

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:19
  Old Post 26-04-2002 12:23
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

*does the great Aussie footbal handball*

Sounds like a good idea. Good luck implementing it. I think all the current modders have too many projects at the moment. (I know I do)

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:19
Post  Old Post 26-04-2002 14:10 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase the size of your Attachments

One question if the sea city has no under sea road on its tile, cna you than move or put a land unit on it from land or from another undersea tunnel. IIRC than this was the reason why I didn't look into it any more.

-Martin

MATT:-) C is offline MATT:-) C
Settler
London
May 2001
time: 05:19
  Old Post 26-04-2002 15:27
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Inflate your Upload Space

Good thinking Martin. Looks like my plan is stuffed yet again. Oh well back to the real world I fall . . .

MATT:-)

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:19
  Old Post 26-04-2002 18:34
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Matt/Martin:

In terrain.txt, for the "new" terrain type why not just add these lines:

code:
EnvCity { Score 0 Food 10 Shield 15 Gold 15 Movement 10 Freight 33 }


That was ripped straight from WATER_DEEP with modification of movement to undersea tunnels.

And also at the bottom of the terrain type:

code:
MovementType: Land


That should solve any probs with land units not moving through and also the movement points.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:19
Post  Old Post 28-04-2002 23:52 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Maybe that could work Dale, that should be tested but the problem I see here is that we will turn the new terrains into land terrains, and than the game has the possibility treat these terrains as real land terrains, as they have the movement type land, actual the same problem as you put an undersea tunnel on the terrain.

-Martin

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:19
  Old Post 29-04-2002 01:48 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Browse Apolyton AD-FREE

code:
HandleEvent(MoveOrder) 'no_swimming_with_sharks' pre{ if(TerrainType(location[0]) == TerrainDB(FAKE_DEEP_WATER)){ if(!HasImprovement(TerrainImprovementDB(TILEIMP_UN DERSEA_TUNNEL)){ return STOP; } } }

Untried, untested, not very well thought through...

MATT:-) C is offline MATT:-) C
Settler
London
May 2001
time: 05:19
  Old Post 29-04-2002 17:45
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase the size of your Attachments

From my very small amount of testing (another exam tomorrow!) land units *can* move onto the square containing the city. The problem comes with the movement cost. Changing the movecost t 10 (as Dale suggests) would help. The only problem I invisage with that is that sea units would get the bonus too? I think Martin is right about using movementtype land, but that isn't a problem any more as far as I can see.

Apart from that, the only other annoyance I've found is that of graphics for undersea tunnels. When placed next to a sea city (on the new terrain), the tunnels have a link going towards the city as if the city has tunnels under it. However (as you'd expect) the graphics stop at the edge of the square with the city on leaving a bit of a confusing gap in front of the city. I'm not sure how to get around this one. Can tile improvements be put under cities with their graphics still showing? If so then you could create some random improvement with the graphics of tunnels and place them under the city as required. If not then a change in the sea city graphics (have to think how) could be useful.

Anyways, I've got some spare time at the end of the week so I'll see what I can do.

MATT:-)

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