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 > Civilization: Call To Power > CtP-Creation > Question about terrain mod...
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
XMon is offline XMon
Warlord
Tampa, Florida
Sep 2000
time: 00:13
Question  Old Post 19-09-2000 06:05
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Question about terrain mod... Support Apolyton buy from Amazon

I don't know if anyone can help me with this...I'm new to all this mod stuff for CTP so if I've missed something obvious then forgive me. I was wanting to make the game recognize "jungle" and "swamp" as mountain terrain. Not for any other reason except that when you define which terrain types a unit can travel on, land tiles are either "Land" or "Mountain," and I want to play a game where wheeled units like tanks, artillery etc cannot travel in jungle and swamp just like they cannot travel on mountain terrain. I left the name and icon the same for jungle terrain and just changed terrain type to TERRAIN_TYPE_MOUNTAIN hoping that would do the trick. Didn't work though, any ideas?

This is while playing Med Mod 4 btw, and I used EasyMod to make the change. I checked the terrain.txt file though and copied it into the default Med Mod 4 directory and started a new game a couple of times. Never works though.

gemini is offline gemini
Settler

Jan 1970
time: 05:13
Talking  Old Post 19-09-2000 10:16
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Hi Xmon, Well I'm not sure if this will solve the problem but I think it would be a good work around though if it works

code:
TERRAIN_TYPE_FOREST TERRAIN_CAN_DIE ENV_BASE { ENV_SCORE 84 ENV_GOLD 0 ENV_DEAD_GOLD 0 ENV_FOOD 5 ENV_SHIELD 20 ENV_MOVEMENT 200 ENV_FREIGHT 200 ENV_MATERIALS 0 ENV_TIME 0 ENV_DEFENSE 0.5 ENV_DEAD_FOOD 0 ENV_DEAD_SHIELD 0 }


That was taken from the TERRAIN_TYPE_FOREST.

Did you notice ENV_MOVEMENT 200

Well you might try changing that to a really high number for jungles and swamps. Higher than any unit you don't want to move through. I wonder if it would be impassable to the units you don't want to move through those terrains.

Of course in the roads definition.
code:
ENV_ROAD1 { ENV_MOVEMENT 33 ENV_FREIGHT 33 ENV_MATERIALS 200 ENV_TIME 2 ENV_ADVANCE ADVANCE_TOOLMAKING }

the movement is defined as 1/3rd the cost for movement. I don't know about what you want but you could increase the cost of building the roads for that certain terrain type as well to make it more realistic.

Anyway hope that helps.




------------------
Gemini

XMon is offline XMon
Warlord
Tampa, Florida
Sep 2000
time: 00:13
Thumbs up  Old Post 03-10-2000 06:50
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Got spare money?

Hey Gemini,

Thanks for trying but it doesn't work. Changing ENV_MOVEMENT just makes it harder for all units to move through there. If I wanted wheeled units to have a hard time getting throught and troops to get through easily, I'd have to give troop units too many movement points so that when they were on other terrains they would be too fast.

I also wondered if that value might not be a movement penalty, and actually be a category for which unit types could move through (if you look at all the terrain types you might see why I considered this) but, alas, it didn't turn out to be that way.

It's weird, I would've thought changing the "TERRAIN_TYPE_" flag would do the trick. I have no idea where the program keeps the data as to which tile is what terrain type. I hoped to make the game recognize jungle and swamp tiles as mountain while keeping the jungle and swamp icons for appearances.

WesW is offline WesW
CTP1/2 Modification Site Admin
Florence, Al., USA
Jan 1970
time: 23:13
Post  Old Post 04-10-2000 12:08 Visit WesW's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Put an end to popups!

I tried some similar experiments with the terrain text file to try and get the AIs to mine forests, but to no avail. Much of the code in Ctp1 is half-implemented or not implemented at all, so many times things which should logically work do not. A professional programmer I know, who has seen the hard code for Ctp1, said that it looked like something a bunch of kids making their first game had put together. He said it was a wonder the game worked at all.

Gedrin is offline Gedrin
Warlord

Jun 1999
time: 05:13
Post  Old Post 04-10-2000 22:18
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Ok this one is really over the top and a real reach...
let me know if it works but don't hold your breath.


In addition to using:
TERRAIN_TYPE_MOUNTAIN

also try changing
TERRAIN_JUNGLE
to say
TERRAIN_GREEN_MOUNTAIN

and
TERRAIN_SWAMP
to say
TERRAIN_WET_MOUNTAIN

Course I'll really laugh if that works because it will mean the code effectively parses the name of the terrain to determine an attribute instead of looking for a flag within it.

If that doesn't work then you might try swapping the definition of mountain and swamp in the terrain.txt file. If that works then it means the terrain type is determined by the order in the file.

Gedrin

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
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.0314 seconds (86.26% PHP - 13.74% MySQL) with 30 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