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 > Scenario Events and stuff
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 28-12-2002 15:51 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Full PM-box? Change here!

Ive changed my mind on that telling the units where to move thing. I think itll produce a very rigid scenario so ill just stick to spawning units at random. Thanks though Martin.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 20-01-2003 18:07 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Increase Your PM Length

Okay its back to the grind just one question this time.

I want to create units buildable by each city, now ive got ALOT of cities and i want to know how to reference many cities in one piece of code, okay it sounds confusing, thats just cause im confused.

code:
GetCityByLocation(alexandriaLoc, tmpCity); if (CityIsValid(tmpCity)) { if (tmpCity.owner == 1) { if (theUnit == UnitDB(UNIT_CHURCHILL_TANK) || theUnit == UnitDB(UNIT_VALENTINE_TANK) || theUnit == UnitDB(UNIT_MOSQUITO) || theUnit == UnitDB(UNIT_SPITFIRE) || theUnit == UnitDB(UNIT_LIGHT_TANK) || theUnit == UnitDB(UNIT_FIELD_ARTILLERY) || theUnit == UnitDB(UNIT_AA_ARTILLERY) || theUnit == UnitDB(UNIT_MOTORIZED_INFANTRY)) { return 1; } else { return 0; } } }


Okay how do i define alot of cities to build these particualr units in one piece? Obviously because i dont want to pour out this code for every city. Help is greatly appreciated.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:24
  Old Post 20-01-2003 18:25 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Get a bigger avatar today!

Probably the easiest way (or rather, the way I would do it I think) is to define a group of units like you've done there, and put all the cities you want to be able to build them into an array such as BRITCITY[];
then do something like this:

code:
int_t i; if(theUnit == UnitDB(UNIT_CHURCHILL_TANK) || //blah blah ){ for(i=0;i< BRITCITY.#; i = i + 1){ if(tmpCity == BRITCITY[i]){ return 1; } return 0; } elseif (//other units.... }

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 28-04-2003 10:05 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Tired of ads?

Can someone remind me the password for the modmakers ftp? I searched for the last time someone reminded me but couldnt find it

Im gonna put all the work i did on this scenario up there and get rid of all these backups. Maybe someone can take a look at it sometime or i can come back to it without digging though a thousand unmarked discs.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:24
  Old Post 28-04-2003 14:33 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Support Apolyton

PMed

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 28-04-2003 16:57 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Support Apolyton buy from Amazon

thanks IW

Okay so uploaded weighs in at about 8.1Mb thats about the smallest i could get it without zipping every folder, and its not a completed scenario for anyone scanning this. Theres all the planning crap i did aswell in there, like what sprite is what and screenshots of each.

http://ctpmodmakers.250free.com/Maq...ww2scen_wip.rar

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 29-04-2003 07:46 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Enter the AD-FREE zone

Forgot to mention that it doesnt need any mods to run, just patched ctp2, extract to scenario folder.

Not much slic in there, nothing new at all, in fact its abit dodgy last time i tried it but nothing exe crashable.

New things noticeable in it -

-- china city style from civ 2 (looks better than you would expect but could look better)
-- new watch tower graphic (taken from sudden strike omaha beach map)
-- a few altered tiles to make it look abit more grim
-- new farm and adv farm tile imps
-- city styles relevant to area on map, ie british cities in india have a [i]kind of[i/] indian style, rather than european style (took me a while to figure out how to do that)

thats about it.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 15-07-2003 13:23 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#38 Report this post to a moderator
Suffering from ads?

Does anyone know why i cant download anything from the ctpmodmakers.250free site?

quote:
Due to an inordinate amount of abuse, visitors to
this free account from your region or
country have been restricted.


Thats sounds a little vague.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:24
  Old Post 17-07-2003 06:34 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#39 Report this post to a moderator
Lose 30 kilos (of popups)

Dunno, it works for me (he says, testing it...) I can download from the site itself, the ftp seems to have a new policy whereby you can only download if you've already uploaded something in the same session. This to prevent leeching or something.

upload/download ratio is 20 000 to 1, so to get your scenario out of the FTP client I'd have to upload 170GB of stuff. This is not good.

It seems to be ok if you make your own (local) html page pointing to the file you want, and do right-click -> save target as. Bizarre.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:24
  Old Post 17-07-2003 11:55 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#40 Report this post to a moderator
Increase Your PM Length

Its working from the link above aswell now, odd.

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:24.
Apolyton Time is 00:24.
    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.0354 seconds (88.75% PHP - 11.25% 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