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-General/Help/Strategy/Multiplaying-Archive > PBEM Human-Human Diplomacy through SLIC?
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 (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:14
  Old Post 10-09-2002 21:25
Edit/Delete Message Reply w/Quote
#61 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by Dale
Locutus:

Just on triggers, it reminded me of something. When you choose a new government, what's the trigger for the implement gov button? And what args?

Not hard to find. Just have to look for the correct button.
arguments? We wish.

I cant get counter proposals to work but i do beileve it is possible. And i am pretty much sure that we cant make threats. I did get the send proposal to work amazingly well.
Despite of Locutus try it doe work amazingly in my games.

leftover_crack, Maquiladora you guy said you wanted to help?
or anyoneelse?
Can you copy the file i attached and move to the ctp2 main directory\ctp2_data\default\gamedata\
and copy in the script.slc the line

code:
#include "PBEMFix.slc"
and test it through hot seat?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:14
  Old Post 11-09-2002 11:18
Edit/Delete Message Reply w/Quote
#62 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

I gave up of last code. I couldnt get further from sending proposals

I started a code using messageboxes.

Locutus, I have seen you code and i got tell you that i got at most really confused with the level of you work. As you know the first time i sit in front of a PC to write any code was a couple of months ago. And when i looked the way you deal with arrays i got really scared. Although the biggest barrier is the understand of a code based on messagebox which your never know the paths a simple next button can send you unless you are the creator. But i understood the overall of you mod wich made me start my new code.
Now that i have finished my code i can understand much more of what was in yours (except those arrays ).
One of the things i am proud of how i used the CTP2 diplomatic screen to send proposals wich really is a big step from you click unit/city and button trigger.
but i have got to admit your code in gameplay has a really neat appearence while mine looks like some frankstein and has some dificulties to interact with the player. So i will probably use some of your interface in my coding.
I want to know your thoughts on giving/requesting advances too.
Not to mention the multiple proposals diplomacy.

I have finished the most difficult part. Wich is the sending-receiving-counter-threaten-accept-reject forth and back game with the messagebox.

It is more than 3:00 AM here and i have spend way too much time working on this. So i will post here what i have.

-How does it work?
The diplomacy starts with the regular diplomacy screen. As usual you send the emissary, then choose your tone, and get to the choosing proposal part. This is where the turn over starts! The regular diplomatic proposals are still there. But when you click on them a message pop up asking wich proposal do you want to send. If you are in the request tab the spinner for the request will appear, If you are in the offer tab the spinner for offers will be there and if you are in the treaties tab the spinner for the treaties will appear. then You select the proposal you want you want and send athe proposal as you would send in a normal game: In the proposal button. The diplomatic screen closes and a message is sent telling that your meesage was successfully sent.
The other player will receive a alertbox with the proposal you sent in the beggining of his turn. The alertbox will contain the accept, reject and counter button.
--->Counter: If he counters a message pop up telling him wich type of proposal he can choose to counter: buttons treaty, offer, request. Plus the buutton to accept and reject (he may change his mind ). If he chooses one of the proposals the list of proposals will appear show up. There is an unfinished part here, he cant send the proposal. if he chooses one the message gets killed and nothing happens I will get back here later.
--->Reject: If the player rejects in the turn of the player that started the diplomatic a message will pop up in the beginning of the turn. Telling him that his proposal was reject and asking him if he wants to threaten or not. There are two types of threats declare war and embargo. Destroy city is not here because there is no way a player can choose a city to do so. But the i will kill you threat will be added later. Unfortunetly theres is something wrong here and i am really to tired to look for bugs today. The message is not send to the player that should be threatened. I will look this later.
--> Accept: It does nothing since i havent implemented the make proposal effect. The function to do this is the but it is totally blank.

Comments:
- Dont send proposal to AI players. This will probably cause game freeze (The AI will get the message but cant respond). I know how to fix this dont worry.
-The AI dont send proposals too. I will implement in such a way that there will be no difference between human-human AI-Human, Human-AI diplomacy!!!
- There are 7 request and 7 offers. for both: give city, withdraw, give gold, give army, give map, declare war, end war. And the same 7 treaties of the regular game. One good part is that we can add as many proposal as we want to.
- Again! The prposal effects are not implemented!!! But i know how to implement them all.
- There is a cool gold spinner in the request/offer gold proposal
-Dont send more than one proposal to an human player. Otherwise they may get mixed up. I already have an idea on how to fix this.
- I also have some ideas to make many changes in the UI so that my code works the best it can.
- do not replace any of your files with the ones in this zip. The content is to be added in the files with its names
-Dont mind the content of the messagebox. unworkin string variables, lack of good info, bad content. As i said it is just to show you guys what i have done

Here is the code

Attachment: pbemfix2.zip
This has been downloaded 15 time(s).

Last edited by Pedrunn on 11-09-2002 at 21:40

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
  Old Post 12-09-2002 22:45 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#63 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by Dale
Locutus:

Just on triggers, it reminded me of something. When you choose a new government, what's the trigger for the implement gov button? And what args?

Good point It needs testing but I'm fairly certain it's 'DomesticDialog.TabGroup.Tab2.TabPanel.EnactGovernment'. Arguments? What Pedrunn said...

I haven't had a chance to try your code out yet, but it sounds very impressive I'll try ASAP and let you know what I think of it...

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:14
  Old Post 13-09-2002 07:38
Edit/Delete Message Reply w/Quote
#64 Report this post to a moderator
Support Apolyton, buy Civilization 2

When someone starts coding he really want to see his code work.

I had some bad moments coding this one. So i will give up of this code

Sorry for all the MP community. But i said before that i dont even play MP i just accepted to do this code for the challenge and to help CTP2 in a big issue. I lost this challenge.

But i went half way through making specially two things:

1) The sending-receiving-reponding-countering-threatening connection of messages.
2) The use of the Send Proposal (NewProposal(int_t, int_t) event) in the diplomatic screen to start diplomacy rather than Locutus menu wich among other things quite annoying. Sorry Locutus but it is.

I hope the next adventurer for this fix really should look at and understand this code first before heading to work and if possible contact me. is that i am lonely in this code. I do want to make this code but i just cant. The more errors i get more i think it is my coding lack of ability that is on the way. I know how to implement stuff but thing dont work for a while

The problem I have come to is:

Proposals seems to have a thought on their own. They only show up from time to time. eg. I send a proposal in one turn it works real nice. In the next it wont. I said in the other post that there was problem with the sending threaten message but i do believe there isnt. The proble was this one i just told you happeninig with that proposal.
I think the problem is in the sending of saved proposals (BeginTurn event handler) that are in arrays and the use of its saved variable. But there is a smaller chance that it could be in the saving of proposal in global arrays but i just cant find this error.

Until the end of the month i plan to make the make proposal effects. I know all the ones i have in my code are possible even the treaties. Until them i am back to SP modding.

Here is the same code but much better organized and with some more comments.

Attachment: pbemfix2.zip
This has been downloaded 15 time(s).

Last edited by Pedrunn on 13-09-2002 at 07:51

Egg Robo X is offline Egg Robo X
Settler

Oct 2002
time: 05:14
  Old Post 16-10-2002 00:47 Visit Egg Robo X's homepage!
Edit/Delete Message Reply w/Quote
#65 Report this post to a moderator
Support Apolyton or Terrorists Win

Come on people! Work those code-typing fingers! Please! I want to play hotseat effectively but cannot do all this codey nonsense. So I am at your feet praying for you great gods of Civ to bless me with an oracle of multiplayness.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:06 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#66 Report this post to a moderator
Help yourself to an AD-FREE life

From my experience with multiplayer games if your only playing with one other human you wont do much exchanging of maps/techs/gold with another human anyway. Of course thats not good, but its better than nothing, if you dont want to play online that is.

You should be thankful hotseat even works at all, pbem doesnt even end turn

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 16-10-2002 01:10 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#67 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Can you not just save the hotseat game after every turn and email it manually?

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:13 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#68 Report this post to a moderator
Remove this text

No, you cant do anything while the pop-up is on the screen, and of course clicking to get rid of the pop-up will show the next players map. BUT if each player had a dummy civ and allowed the other player to see it, but NEVER build a city with a dummy civs settler, that would work, would it not?

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:17 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#69 Report this post to a moderator
Support Apolyton buy from Amazon

So player A controls civ 1 and 2(dummy civ), and player B controls civ 3 and 4(dummy civ).

Player A plays his turn with civ 1, ends turn, saves with civ 2, emails save to player B, player B plays turn with civ 3 ends turn, saves with civ 4, emails save to player A.

Am i missing something or would that not work?

Last edited by Maquiladora on 16-10-2002 at 01:23

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 16-10-2002 01:26 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#70 Report this post to a moderator
Put an end to popups!

That'd work fine I think.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:14
  Old Post 16-10-2002 01:28 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#71 Report this post to a moderator
Browse Apolyton AD-FREE

Can you go up to >8 players in Hotseat?

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 16-10-2002 01:33 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#72 Report this post to a moderator
Put an end to popups!

The only problem is when one of the humans 'meets' his dummy settler. Then they might be able to see something 'classified'. I expect some SLIC could render the settler blind somehow, but it wont be pretty.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:38 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#73 Report this post to a moderator
Get a bigger avatar today!

eep

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:38 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#74 Report this post to a moderator
Suffering from ads?

A barb might kill the dummy settler too throughout the game time. With only a vision range of 1 and no chance of exchanging maps though, it would be that classified until really late in the game.

I just tested it too, and it works perfectly with saving and restoring with a maximum of 8 players(4 dummies).

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:14
  Old Post 16-10-2002 01:39 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#75 Report this post to a moderator
Inflate your Upload Space

On an Earth map, you could probably just move the dummy settler to the arctic and I doubt it would ever see anything important.

OTOH, You can get at the screen blanking functions in SLIC, so all you have to do is blank the screen at the start of every dummy players turn, and then unblank it at the end.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:14
  Old Post 16-10-2002 01:42 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#76 Report this post to a moderator
Enter the AD-FREE zone

So you need to make the dummy settlers invincible too...

centrifuge is offline centrifuge
Prince
USA
Apr 2002
time: 22:14
  Old Post 16-10-2002 01:46
Edit/Delete Message Reply w/Quote
#77 Report this post to a moderator
Tired of ads?

On a custom map, where the "settlers" are on a worthless one tile arctic island...would work the best Of course these islands would have to be as far away from the main continent(s) as is possible and perhaps behind some sort of impassable terrain or invisible barrier. Sounds like a lot of work

centrifuge is offline centrifuge
Prince
USA
Apr 2002
time: 22:14
  Old Post 16-10-2002 01:47
Edit/Delete Message Reply w/Quote
#78 Report this post to a moderator
Support Apolyton, buy Civilization 2

oops, Jbytheway you beat me to it

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 16-10-2002 01:48 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#79 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Yeah, I was wondering how easy it would be to find a one-tile continent, or other empty area.

Invinsible is easy: CantAttackUnit(unit[0], 1);

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:14
  Old Post 16-10-2002 01:48 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#80 Report this post to a moderator
Support Apolyton buy from Amazon

If only we still had the space layer we could make them space engineers and then they'd be totally out of the way. I suppose that a sea engineer might still work... But I think that's complicating thing unnecessarily.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 01:50 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#81 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Thats not so hard, just give every player one of these "super settlers" at game start, the normal players will likely build cities with them and the dummies can be protected by themselves. This would be inside some kind of Mod Lite of course.

I wouldnt know how to blank the screen though.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
  Old Post 16-10-2002 01:50 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#82 Report this post to a moderator
Tired of ads?

Or do as they do in AoK, stick it in a boat, and float the boat right out the way, or stick in behind some mountains.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 16-10-2002 06:08 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#83 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

So whos gonna test this with me eh?

Ill move this over to the pbem thread.

Jambo is offline Jambo
Settler

Feb 2003
time: 05:14
  Old Post 24-07-2003 20:43
Edit/Delete Message Reply w/Quote
#84 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Has anyone been looking into getting this to work for Hotseat games?

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 25-07-2003 17:41 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#85 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Has anyone been looking into getting this to work for Hotseat games?


Do you mean the human-human diplomacy or the Hotseat fix for PBEM games?

I think the human diplomacy thing is on the backburner with the SLIC coder's, althoguh if we get the ctp2 source it looks good.

Jambo is offline Jambo
Settler

Feb 2003
time: 05:14
  Old Post 25-07-2003 19:37
Edit/Delete Message Reply w/Quote
#86 Report this post to a moderator
Enter the AD-FREE zone

Yeah,human-human diplomacy IN a hotseat game. I love playing CTP in hotseat mode, diplomacy would be excellent

Is there a good chance of the source code being released? I much prefer CTP2 with the apolyton patch then Civ 3, the mods for it with source code would be endless (just look at Freespace II community for example!)

Thanks for the reply

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:14
  Old Post 25-07-2003 19:54 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#87 Report this post to a moderator
Enter the AD-FREE zone

At the moment theres a good chance of the source code being released, without getting too excited anyway. Check out this thread
http://apolyton.net/forums/showthre...&threadid=82253

Best now to wait and see how that unfolds before trying to fix diplomacy through modding (which is very tricky reading some posts above).

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