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 > Exchange city
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
Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
Lightbulb  Old Post 27-11-2001 22:14
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Exchange city Suffering from ads?

I just saw this in script.slc does anybody know if this could work?

// messagebox '01dipExchangeCity' {
// TEXT(ID_DIP_EXCHANGE_CITY);
// Button(ID_BUTTON_ACCEPT) { Accept(); }
// Button(ID_BUTTON_REJECT) { Reject(); }
// MessageType("EXCHANGE");
// MessageClass(2001);
// }

This could be a really cool feature to have in the game, I think

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:16
Post  Old Post 27-11-2001 23:58 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Suffering from ads?

I don't know if the code would work. But as it is written here it is outcommented. So you have to remove the comment signs '//' and test it in the game. Maybe you have to trigger this message box somewhere.

-Martin

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 28-11-2001 15:47 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Enter the AD-FREE zone

I have seen the top bit before in the Alexander scenario by Activision but the bottom bit I haven't. it may be to exchange a city or something but it doesn't look like it's all there was there any more

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 29-11-2001 01:13
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Call to Power 2

That was every thing I could find about it, it didn't seem to be in any of the other files

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 29-11-2001 15:17 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

what scrip file was it in I may have a peek .

there had to be more anyway the in game text should be there.
or it's useless

any way if you just want to exchange cites theres a small bit of code in the alexend scenario it may need to be changed just type in sindu in the search box in the scenario file it has some in msg too

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 29-11-2001 17:01
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Enter the AD-FREE zone

In script.slc

I will take a look on the alexander scenario

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
Talking  Old Post 29-11-2001 18:28 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

I am sorry but were is the location of this file in the ctp file on my computer on some internet site its 1.20 its the afternoon help out.

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
Question  Old Post 29-11-2001 22:46
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Got spare money?

I ain't really sure what you mean , but
CtP2 Dir\ctp2_data\default\gamedata\script.slc
around line 357

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
Talking  Old Post 30-11-2001 15:36 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Get a bigger avatar today!

found it , seen it , read it.

its part of the diplomacy screen. when you enter into diplomatic negotiations you can offer or ask for a city. that's what you found.

I had a look at making a bit of slic around transferring cites. I used the barbarians so when they capture a city they try to sell it you for some cash. I just got to get the msg boxes working if you can wait for monday I should have it finished.

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
Thumbs up  Old Post 30-11-2001 19:53
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Nice idea , looking forward to monday

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 03-12-2001 17:34 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Tired of ads?

good news bad news

got the slic working works fine it takes a turn to change the owner of the city.

The Bad news is i got snowed under in english work and have not had time to make it look good. so i will have to send it next time.

It's always like this get it done find out you have ten tones of work to do.

sorry

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 03-12-2001 20:38 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton buy from Amazon

sorry I should have posted this it's not much just the hart of the give city stuff

Event:GiveCity(city[0], 1);

the first bit city[0] is the city to be given away and the 1 bit is the player enjoy

ps like the new avatar

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 03-12-2001 20:57
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Put an end to popups!

Okay! I'll try to make it then.
btw nice robot

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 04-12-2001 16:36 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Got it

the files finished and ready to download to activate it all you have to do id copy Gs_msg and mc_gs into a scenario default \ gamedate folder find the scenario.slc file open it up and put

#include "mc_gs.slc"

then put the scen strings into "english" gamed data \ scen strings or if it is a new scenario just put the file straight in.

and it will work

it is just a base remember and I would like you to change the text to something you would like.

I also made a version were I explain the main slic I know there is a lot of new slicers around so that's really for them.

Attachment: give city.zip
This has been downloaded 10 time(s).

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 04-12-2001 16:44 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Full PM-box? Change here!

here it is for all the would be slicers

oh and by the way kill1frenzy the "robot " is the best unit in ctp1 so respect the thing

ps sory abot the spelings

Attachment: mc_gs.slc
This has been downloaded 11 time(s).

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 05-12-2001 02:01
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Well, I've made a little update to the message file, now it should be alot easier to understand, spelling you good

Attachment: scen_str.txt
This has been downloaded 7 time(s).

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
Talking  Old Post 05-12-2001 16:11 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

thanks normally people pick up the file they have been after and the treed goes down quick.

I am working on a ransom mod at the moment were your city is held to ransom or it is blown up.

keep on the treed for that coming soon (like monday)

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
Smile  Old Post 11-12-2001 01:25
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Tired of ads?

Its monday, where is it

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 11-12-2001 17:20 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

had no response did not think you were interested I will get it done tonight. and post it tomorrow

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:16
  Old Post 11-12-2001 21:16 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Full PM-box? Change here!

The Big Mc,
I was between classes this afternoon and didn't have anything particularly useful to do (I'm at uni and I don't have the game here), so I decided to make some improvements to your 'sell up the river mod', as I saw a number of issues in your code that had room for improvement. Like I said, I don't have the game here so I can't test it, there may be some minor issues with the code (typos and such) but I think it should work much better now. The things I fixed:
- the code now works when the human player is not player 1 as well (FE in multiplayer or Hotseat)
- you don't have to wait a turn anymore before getting the city back
- works for both AI and human and only offers to sell the city to the original owner (in your version the human player seem to get all offers, even if it's a city on the other side of the world that some AI lost to the barbs)
There's 1 problem introduced with my version but that can easily be solved (I didn't do it as I don't have more time, might to it later on): it currently doesn't work for the human player if more than 1 city is captured in 1 turn (only 1 city can be bought back and which one is non-deterministic)

Anyway, I attached the SLIC file (you'll have to make the scen_str.txt file yourself, I added all necessary lines as comment at bottom - it's virtually identical to yours).

Edit: I accidentally called you 'Big Mac' Can you ever forgive me?

Attachment: loq_sellriver.slc
This has been downloaded 11 time(s).

Last edited by Locutus on 11-12-2001 at 21:24

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 12-12-2001 01:42
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Suffering from ads?

Locutus, have you seen the code in the top (first post), do you think it could be repaired, as it don't work when uncommented. Exchanging cities with other players through diplomacy would be a nice addition to the game, I believe.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:16
  Old Post 12-12-2001 06:31 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Well, maybe I'm saying something completely nuts here but can't you already exchange cities? 'Offer' a city to a player and 'demand' one in return, ain't that the whole point? Or am I completely misinterpreting the concept of exchanging cities?

BTW most of the code from script.slc (esp. the outcommented stuff) comes straight from CtP1. Even if it does anything (in many cases I'm not convinced that it does), it's not particularly interesting or useful. It's mostly about displaying messages for hard-coded features of the game-engine. You can uncomment or change all you want but there's not a chance in hell of getting missing (or broken) features to work by editing these SLIC messages: if the code for the feature isn't in the exe, you'd just be creating messages for things that never happen (while at the same time increasing the chance of getting undesired side-effects)...

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 12-12-2001 15:54 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Suffering from ads?

locutos I just downloaded the modified script. just to set the record straight I don't mind that you messed about with it that's why I did a moders version which was documented a bit.

I will have a go with it tonight. I like the idea of selling to the previous owner. do you want your city back. I would probably change that so that it's the players enemy more like real life.

Kill1frenzy

I had a go at doing shadow mod but just can't get the the effect to happen right so it will have to wait to later in the week when I finish it.

locutos I am really really upset about you calling me a big mac .

yes I got a few more bits of script in the pip line that's if I could get the sprit maker to work right.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 12-12-2001 16:30 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

I look at it before I got home

theres a few things I like that I did not know about
these are

LOQ_amount = LOQ_capturedCity.population * 1000;
this was why I just put 6000 in

and

if (IsHumanPlayer(LOQ_oldCityOwner) {

The one thing that gets me is that they only try to sell it to the last owner. I wanted them to sell it to every one or try to. I will try to mod it so it works like that, but ask the AI first.

The scenario strings are now wrong like

they will give {city[0].name} to you for 6000 gold

its the start of a bigger script0 I think. I know its getting very scary in the length of it I like it short and simple.

for this is my 4 slic code so i still have a lot to learn.

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
  Old Post 12-12-2001 21:18
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Full PM-box? Change here!

Locutus, if an ai has a city inside my borders, I would like to be able to trade one of my outer cities for the ais, and I don't think the ai is going to accept that by offering and demand. Well, I could be wrong

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 13-12-2001 15:09 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Suffering from ads?

The AI has been know to do it. you have to be like really close for them to agree but I have had the AI selling me cites let alone exchange. yet it has been known for the AI to just say get stuffed when you give them cities or tech.

I have a bit of slic at home which makes the AI really really friendly.

so friendly that you can use nukes the works and the next turn sign an alliance.

Kill1Frenzy is offline Kill1Frenzy
Settler
Denmark
Sep 2001
time: 06:16
Wink  Old Post 14-12-2001 01:08
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Increase Your PM Length

Big Mc, was that in the original game or with diplomod(or something else)?

That slic file of yours sound alittle too much like cheating for my taste

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 14-12-2001 13:41 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Inflate your Upload Space

that's because it is.

No it was just with the normal game.

What I belive the slic at the top to be is the bit that lets the computer ask for a city of you.

It was probably removed because the response 9 times out off ten would be no.

I am working on improving the swap cities but I am snowed under again but I will try to get some done

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 17-12-2001 18:01 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

I have found one problem with the script you sent me

it don't work

there is a small problem with you sell back bit it tries to sell the city to the barbarians .

I will try to get some way around it

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 18-12-2001 14:51 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Avatar Enlargement: We've got the solution

I almost got it to work it just doesn't get it.

I will try other Christmas to get it to work and then I will start on my wether mod again.

get that to work right this time I just got to find one line of script in the scenarios from Activision put that in the slic and it works.




any way have a happy Christmas

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