Thread Tools
Old March 26, 2001, 02:58   #1
PaulWilliams
Settler
 
Local Time: 09:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: France
Posts: 23
Harbors for seaside towns only?
Anyone know the instruction to limit buildings (such as harbors) to seaside towns only? And can the principle be extended further to other terrain types?
PaulWilliams is offline  
Old March 26, 2001, 05:16   #2
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 11:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Paul,

I think you mean the tileimprovement port.
Take a look into the tileimp.txt there you will find the lines:

CantBuildOn TERRAIN_BROWN_HILL
CantBuildOn TERRAIN_BROWN_MOUNTAIN
CantBuildOn TERRAIN_DEAD
CantBuildOn TERRAIN_DESERT
CantBuildOn TERRAIN_FOREST
CantBuildOn TERRAIN_GLACIER
CantBuildOn TERRAIN_GRASSLAND
CantBuildOn TERRAIN_HILL
CantBuildOn TERRAIN_JUNGLE
CantBuildOn TERRAIN_MOUNTAIN
CantBuildOn TERRAIN_PLAINS
CantBuildOn TERRAIN_SWAMP
CantBuildOn TERRAIN_TUNDRA
CantBuildOn TERRAIN_WATER_DEEP
CantBuildOn TERRAIN_WATER_RIFT
CantBuildOn TERRAIN_WATER_TRENCH
CantBuildOn TERRAIN_WATER_VOLCANO
CantBuildOn TERRAIN_WHITE_HILL
CantBuildOn TERRAIN_WHITE_MOUNTAIN

for the TILEIMP_PORT. I think TERRAIN_WATER_BEACH is not in the list.

-Martin

Martin Gühmann is offline  
Old March 26, 2001, 18:20   #3
Dale
Emperor
 
Dale's Avatar
 
Local Time: 19:58
Local Date: October 31, 2010
Join Date: Dec 2000
Posts: 3,944
Or another way in SLIC (if he means an actual building in a city, like harbour-guns):

Using the mod_CanBuildBuilding (or whatever it's called) you could check each neighbor (tile) and see if the terrain is a water or beach terrain. If yes, then the return is true the city can build a harbour.

------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."
Dale is offline  
Old March 26, 2001, 21:07   #4
WesW
Apolytoners Hall of Fame
 
WesW's Avatar
 
Local Time: 03:58
Local Date: October 31, 2010
Join Date: Mar 2007
Location: Florence, Al., USA
Posts: 1,554
Get the Med mod and check out the Harbor improvement.
WesW is offline  
Old March 28, 2001, 14:41   #5
PaulWilliams
Settler
 
Local Time: 09:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: France
Posts: 23
Err .. I'm probably being a bit thick, but where can I find the Med Mod? I can see the alpha version of the sequal, but not the original...
PaulWilliams is offline  
Old March 28, 2001, 15:43   #6
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 10:58
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
http://apolyton.net/wes

Wes' site contains all Med Mods past and present
Immortal Wombat is offline  
Old March 29, 2001, 11:39   #7
MrFun
Emperor
 
MrFun's Avatar
 
Local Time: 04:58
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Illinois
Posts: 8,595
You mean to tell me that on our real Earth, that none of the Great Lakes cities of Canada and United States have harbors? wow
MrFun is offline  
Old April 2, 2001, 08:55   #8
PaulWilliams
Settler
 
Local Time: 09:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: France
Posts: 23
Duh! The answer was there all the time:

CoastalBuilding

As found in the entry for battlements...

Now, I wonder whether the CTP2 program recognises any other statements like that...
PaulWilliams is offline  
Old April 2, 2001, 14:31   #9
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 11:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
quote:

Originally posted by PaulWilliams on 04-02-2001 08:55 AM
Duh! The answer was there all the time:

CoastalBuilding

As found in the entry for battlements...

Now, I wonder whether the CTP2 program recognises any other statements like that...


I took a look into the ctp2.exe and there are all the statements also unused ones.

-Martin
Martin Gühmann is offline  
Old April 3, 2001, 07:06   #10
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 10:58
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
quote:

Originally posted by Martin Gühmann on 04-02-2001 02:31 PM
I took a look into the ctp2.exe and there are all the statements also unused ones.



What unused ones are there ? This could save a lot of SLIC work

Immortal Wombat is offline  
Old April 3, 2001, 14:35   #11
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 11:58
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
I made a value/flag list I should send it to Omni, but it is not finished, I just copied the lines from the ctp2.exe. There is no documentation yet.

-Martin
Martin Gühmann is offline  
 

Bookmarks

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 On

Forum Jump


All times are GMT -4. The time now is 05:58.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team