|
Author
|
|
Topic: This ain't Tomb Raider! |  |
|
OmniGod ACS CtP2 Database Manager Philadelphia, PA, USA --> Really Canadian Dec 1999
|
 |
posted January 16, 2001 09:40
 |
 |
 |  |
Ahmmmm... *cough* http://ctp2.homestead.com *cough* |
Alpha Wolf Settler Prince of the Barbarians Feb 2001
|
 |
posted January 16, 2001 12:23
 |
 |
 |  |
Nasty cough you have there Omni....  The new design for your website is substantially better. ------------------ History is written by the victor. |
MrFun Prince United States, Iowa Nov 2000
|
 |
posted January 16, 2001 15:29
|
 |
 |  |
Eagerly waiting for Version 2.3.  |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 16, 2001 16:42
 |
 |
 |  |
Got a frog in ya throat Rich?  BTW, expect v2.3 (maybe v3.0 if I re-write the lot) after the weekend. I'm starting to code the full AI diplo-handling routines. In previous versions I left it to the program to handle the considerations, but now I've got the mod-skeleton I'm going to add them in. The AI diplo-handling routines will be the ones that look at the current position and force a proposal/response based on that analysis. EG. Player[a] looks at player[b] and says "Hmm, nice border-city. I'll extort that." Player[a] sends player[b] a request_give_city. Player[b] looks at the proposal and says "Hang on a second, he receives THIS bonus, and I receive THIS bonus. My bonus is less so I'll counter-request." Player[b] sends player[a] a counter-request for GOLD equalling value of CITY. Player[a] looks at player[b] and says "Hmmm...... I don't have much gold left so NO SALE!" and refuses counter-proposal. BTW, I got this routine running. It seemed like the easiest to do. Obviously, if player[b] receives a 'gift' proposal it's gunna say "Cool! Free stuff!" and accept.  ------------------ 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." |
Martina Settler Germany Jan 2001
|
 |
posted January 16, 2001 17:07
|
 |
 |  |
quote:
 Originally posted by Dale on 01-15-2001 07:59 PM I've found the problem. I used a "Consider" statement when I should've used a "Change" statement. Will fix for version 2.3

|
Could you please let us know the bugfix for this i.e. where we need to replace the "consider" statement with the "change" statement ? I feel I can change this on my own in the 2.2 version (so no publishing of the bugfix version necessary) but I would need to know where.... Thank you! Martina [This message has been edited by Martina (edited January 16, 2001).] |
Kinjiru Prince Chicago, IL USA b.02-15-99
|
 |
posted January 16, 2001 17:56
 |
 |
 |  |
One suggestion I would make is to take a look at the while Gift offer. Getting a free city can be a VERY bad thing.In SMAC you could cripple the AI by giving faction A a city of yours that is about to be overrun by faction B. Faction B is going to take that city, even if they are allied with faction A. You could keep doing this and always keep everyone fighting. If it is possible, I would suggest that the AI consider the diplomatic status outcome for accepting a free city. If the sender is at war with a faction that shares a border with the gift city, then the AI should probably turn down the free city offer. I have no idea what is possible through modifying the text files, so if this is too complex to implement, no big deal. It would be good to close that kind of loophole though. |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 16, 2001 21:32
 |
 |
 |  |
Martina:The AI wasn't changing it's diplomatic strategy. It considered it but didn't change it. Therefore, in the 'BeginTurn' routine you need to change all the ConsiderDiplomaticState's to ChangeDiplomaticState. Kinjiru: At lunch I drew up some flowcharts to map the flow of diplomatic proposals and what to check (on paper of course). Pity I got beetroot juice all over it. Anyways, I thought of just that problem you mentioned. I figure it could be overcome if CityToExtort is within 10 squares of OwnCity which would make the city a border-city. That way, at least it has a fighting chance of getting defense there quickly. If you take into account the reality of supply problems, you don't want to accept a city that is too far from your borders, or on another island totally. I think this simple measure could simulate that. Any suggestions anyone? ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
Martina Settler Germany Jan 2001
|
 |
posted January 17, 2001 02:21
|
 |
 |  |
quote:
 Originally posted by Dale on 01-16-2001 09:32 PM Therefore, in the 'BeginTurn' routine you need to change all the ConsiderDiplomaticState's to ChangeDiplomaticState.
 |
Thanks a lot, Dale! I did exactly that (in the 'BeginTurn' routine, changed from 'ConsiderDiplomaticState to ChangeDiplomaticState in total 3 times), however still I can get each and every city I request from others (independent from the tonality of my request). Did I miss something ? Martina
|
Changmai Beagle Chieftain The Great White North & warmer climes Oct 1999
|
 |
posted January 17, 2001 22:35
|
 |
 |  |
Dale, I'm having some trouble with your mod. I'm getting an array out of bounds slic error as soon as I startup. I'm also running Frenzy v1.03. Maybe I'll just wait until v. 3.0 and re-try. I unzipped into install, but the files were in a 'default' folder, so I copied them over their namesakes down a couple of levels. Maybe I missed something.P.S. Is there a way I can set this up with Frenzy as a scenario, and leave the base system alone? |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 18, 2001 01:04
 |
 |
 |  |
To those who have errors with my diplomacy mod, sorry bout that. Here's my suggestion. Instead of me spending time bug-fixing v2.2, I'll continue with v3.0. I now have the AI's swapping maps, advances and peace-treaties. Alliances are a little more complex to work out. I'm basing alliances on a combined overall rating of the two civs, whether they're at war or desire war with the same civs, and regard is fairly high. Now to get that part of the script running.So question for you guys: Do ya want me to bug-fix or continue till I get a v3.0 alpha for you to play with?  ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
Alpha Wolf Settler Prince of the Barbarians Feb 2001
|
 |
posted January 18, 2001 01:53
 |
 |
 |  |
i'm not much for temp fixes, so my vote is 3.0------------------ History is written by the victor. |
Tjoepie Settler Belgium Nov 2000
|
 |
posted January 18, 2001 05:19
|
 |
 |  |
Same for me , ... and keep up the good work Dale !Thanks! |
GreatDane Settler
Jul 1999
|
 |
posted January 18, 2001 12:49
|
 |
 |  |
One annying thing I noticed in the diplomod is that when I exchange an advance with the AI for gold I do not get any gold. I think they got my advance so they cheated.  I don't know if this is a bug in the game or in your mod cause I never tried exhanging advances for gold with the AI before. Maybe it is just my version or something so I would like to have it confirmed. Otherwise I will have to reinstall the game/mod. Keep up the good work. Looking forward to v. 3.0 GreatDane |
Calphor Settler Columbus, OH, USA Dec 2000
|
 |
posted January 18, 2001 13:29
 |
 |
 |  |
The advance for gold bug is part of the game not the diplomod. Hopefully it's something that can be addressed by future patches.Thanks for the great work on the mods everyone! |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 18, 2001 19:24
 |
 |
 |  |
Yeah, the advance for gold exchange ain't my bug. But the "array out of index" bug is. I know what it is now. It's when the "player[DIP_civx]" variable goes out of the amount actually there. Basically, the script trys to make a call to a player number that isn't there. I did a quick test on my machine and found that changing:DIP_NumOfPlayers = Preference("NumPlayers") + 5; TO DIP_NumOfPlayers = Preference("NumPlayers"); fixed the problem. Of course, if you're in a saved game you need to reload SLIC (either through the chat dialog or the cheat menu). Just on version 3.0, I had an interesting test last night. Started a hard - small map game (so contact is made quickly). Found the Greeks about turn 5. They immediately demanded my capital. Over the next ten turns they demanded my capital 3 times, and on the last one threatened war. I rejected all of them, they declared war and sent their army at me (which consisted of a hoplite and a warrior). He beat me as I only had a warrior in my captial. The other was getting ruins. This was all within 30 turns. So how's that folks? I just don't know if it was an isolated incident. ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
Changmai Beagle Chieftain The Great White North & warmer climes Oct 1999
|
 |
posted January 18, 2001 20:16
|
 |
 |  |
I'll probably wait until version 3.0 so that's my vote. (But just in case - in which files would I change the numplayers and the considerdiplo.... statements?) P.S Thanks for all the effort. Sounds good and I look forward. P.P.S It might be a while before you see any mods from me, being a beagle of little programming ability. For example. I was trying to do a bit of tweaking the other day and couldn't figure out why I was crashing. Then I realized I had left Net Nanny on and she had edited out all the "naughty bits", like "bomb_cabinet". |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 18, 2001 20:51
 |
 |
 |  |
quote:
 Originally posted by Changmai Beagle on 01-18-2001 08:16 PM I'll probably wait until version 3.0 so that's my vote. (But just in case - in which files would I change the numplayers and the considerdiplo.... statements?)
 |
diplomod.slc quote:

P.S Thanks for all the effort. Sounds good and I look forward.
 |
No problemo. quote:

P.P.S It might be a while before you see any mods from me, being a beagle of little programming ability. For example. I was trying to do a bit of tweaking the other day and couldn't figure out why I was crashing. Then I realized I had left Net Nanny on and she had edited out all the "naughty bits", like "bomb_cabinet".
 |
It'll do that. haha.  ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
WesW apolyton.net/wes Huntsville, Al., USA b.02-15-99
|
 |
posted January 19, 2001 06:42
  |
 |
 |  |
Nice site, Omnigod. There needs to be a central place where people can go to try out all the new things being worked on.Dale, I would be very interested in seeing your mod once you are a little further along in it. Are you just adjusting the original text files, or are you making slic for all this? |
Pintello Warlord Deland, Florida b.02-15-99
|
 |
posted January 19, 2001 08:52
 |
 |
 |  |
Hi Dale,quote: P.P.S It might be a while before you see any mods from me, being a beagle of little programming ability. For example. I was trying to do a bit of tweaking the other day and couldn't figure out why I was crashing. Then I realized I had left Net Nanny on and she had edited out all the "naughty bits", like "bomb_cabinet". That was very funny! Computers, you gotta love them! Timothy Pintello |
Huysmans_666 Chieftain Hoeven,Noord-Brbant,netherlands Jan 2001
|
 |
posted January 19, 2001 13:36
 |
 |
 |  |
Hi,I'm rathern new on the block here but that solution to the array out of bounds error don't work when you take away the + 5. In the for statements you have to change DIP_civ1 to player[DIP_civ1] and you have to change all of these statements ! This is a simple C programming language error...you have to let the SLIC know which array it's about ! The player array ! But having changed this leaves me with a new error. To many arguments in ConsiderDiplomaticState. What the heck is this ? How do I solve this. |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 21, 2001 18:53
 |
 |
 |  |
If you didn't see my post in the Activision statement post, then I'll repeat myself here.I'm very pissed off with the support we've received for CTP2. While a good game, the glaring problems will not be addresses (namely diplomacy and AI ferocity). In response to the frustration I'm facing in trying to get the AI to perform diplomacy, I'm putting Diplomod V3.0 on the shelf. If I don't have anything else to do, I may go into it. But considering how many crashes I get with patch 1.1, and the fact that the unpatched CTP2 has almost no diplomacy SLIC available, I doubt very much that I'll continue. Thanks for your support though. Except for the fact the AI will NEVER make a treaty or alliance (because of the internal programming settings and there is no SLIC to force a proposal/acceptance), I actually had a pretty decent AI diplomacy model working. But without treatys or alliances between AI's, what's the point of using diplomacy? These two options make diplomacy, not all the others which I have working well. PS. If there is interest for the AI diplomacy script that I do have working, then let me know and I'll send it to Rich to update his link on V2.2. Wes, it's a SLIC script, not just txt file changes. ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
kormer Chieftain
Jan 2001
|
 |
posted January 21, 2001 19:12
 |
 |
 |  |
Dale, please do not give up your efforts. I just installed your diplomod into my modern era scenario today. I already had treaties setup, and the game was going awesome. I was playing as the indians. After a few turns, the EU declared war on russia, and the next turn 4 other nations declared war on russia as well. |
MarkG Apolyton CS Co-Administrator Macedonia, Greece b.02-15-99
|
 |
posted January 21, 2001 19:36
  |
 |
 |  |
yeah, Dale, dont give up! i believe we have a lot to find out on what we can do with ctp2! |
OmniGod ACS CtP2 Database Manager Philadelphia, PA, USA --> Really Canadian Dec 1999
|
 |
posted January 21, 2001 19:54
 |
 |
 |  |
I agree with Mark there.. there is potential for this game, and we'll find all the things that we can change, and maybe MrOgre will pop back, once he's had a nice rest, and give us a little guidance or someone else will find part of your solution... there's enough of us, we should be able to improve this considerably.rich |
MarkG Apolyton CS Co-Administrator Macedonia, Greece b.02-15-99
|
 |
posted January 21, 2001 20:10
  |
 |
 |  |
speaking about discovering things... check out my last post in the thread about the medieval mod: an experiment with the gamefile.txt |
Huysmans_666 Chieftain Hoeven,Noord-Brbant,netherlands Jan 2001
|
 |
posted January 22, 2001 03:31
 |
 |
 |  |
Hey,I've tried Diplomod and it was great...for the first time since I bought the game I actually thought that it had some kind of intelligence. It activelly seeked out my civ and made diplomacy it's priority instead of conquest. Also it's extremely good in making contact and diplomacy with other civ's now. If you quit it will be a dark day in the history of CTP2, a day in which the players said : "The game sucks but we will make it work !". I hope sincerely that you continue your work ! greetings, a big fan of diplomod
|
Ganja Chieftain
Jun 2000
|
 |
posted January 22, 2001 08:43
 |
 |
 |  |
Dale - are you posting version 3.0 at all ? And thanks for your work on this mod  |
Ganja Chieftain
Jun 2000
|
 |
posted January 22, 2001 14:48
 |
 |
 |  |
Here's a question I hope someone can answer. Is it possible to use the diplomod in the MedMod2 mod ?If so, how do I go about doing it? |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 22, 2001 18:16
 |
 |
 |  |
Okay, thanks to a heap of emails and the comments here in the forums, I've been pressured back into finishing V3.0  Here's where it stands right now: 1 - The AI's will swap maps. 2 - The AI's will buy advances from each other. 3 - The code is in there (but the stupid internal programming of the game will never allow the AI to do it) for AI's to make peace-treatys, trade pacts and research pacts. 4 - The AI will use three different AI-Human diplomatic states (friendly, war and default) and a special AI-AI state (regard penalties don't hit so hard). 5 - The AI doesn't refuse everything by default (like in V2). 6 - The AI is more demanding of Human players (give me this, give me that, etc). 7 - I still need to code in withdraw troops and a couple of 'catch' commands. I left them out so I could test at this point. Eg. The AI can make proposals to people it hasn't even met.  8 - Refining and bug catching also need to be done. So I'm not that far off a Beta V3.0 Is there anyone who would like to beta-test for me? If so, email me and I'll send you the mod when it's ready for testing. Thanks guys for your support.  Dale - dale.kent@mel.alphawest.com.au ------------------ Author of Diplomod. The mod to fix diplomacy. 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 Prince Melbourne, Australia Dec 2000
|
 |
posted January 22, 2001 18:22
 |
 |
 |  |
quote:
 Originally posted by Ganja on 01-22-2001 02:48 PM Here's a question I hope someone can answer. Is it possible to use the diplomod in the MedMod2 mod ?If so, how do I go about doing it?
 |
I'm sure Wes and his gang will want to look at Diplomod to see if they can implement in future Med Mod. As for the current Med Mod out there, I don't know if it can be implemented.
------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
ASHBERY76 Settler ENGLAND Jan 2001
|
 |
posted January 22, 2001 19:00
 |
 |
 |  |
I cant understand why activision stopped treatys by a.i.s it sucks big time.So there will never be a.i treatys what a let down. |
WesW apolyton.net/wes Huntsville, Al., USA b.02-15-99
|
 |
posted January 22, 2001 19:17
  |
 |
 |  |
Dale, your mod sounds great. As you develop your mod, it would be a big help to everyone, yourself included, if you would try and keep track of which changes had which effects on the ai. I know that this can be quite difficult when dealing with diplomacy, but anything we can learn will help our efforts.I look forward to using any progress you make with the text files in the Med mod, and perhaps the slic parts as well, eventually. I will probably wait until the other slic parts of the Med mod are in place first, though. |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 22, 2001 19:48
 |
 |
 |  |
Good idea. I'd get a well-rounded AI first before trying anything with diplomacy.  I've got a history file in my mod that tracks changes and what they do. Does this cover it? If not I should be able to come up with something more detailed. Though a lot of my experimentations have ended in CTP2 crashing severely or hardware locking. Don't ask me how, but it can hardware lock on ya.  ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
thanatos.tod Settler Germany Jan 2001
|
 |
posted January 23, 2001 16:06
 |
 |
 |  |
as i said in the sec/mod forum, u made the AI somewhat too diplomatic  |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 23, 2001 18:22
 |
 |
 |  |
I've found the cause of all my crashes in the patched CTP2. It was occuring within the exchange advance for gold section. It appears that the bug within the diplomacy causes a program crash with my mod. I had to disable it and got no crashes after testing for over an hour (used to get a crash on average every five minutes of gameplay). I'll try to find a workaround, but I doubt I'll get anything to work properly. In the meantine, I'll have a beta of V3.0 ready tomorrow, and will email to the couple of replys I've had. If you want to help me test the diplomacy, let me know.BTW, I've toned down (read that as refined ) the acceptance levels so that you can't just get everything from the AI. I'll try to get a proper withdraw troops going so the AI actually does retreat instead of fortifying in your territory. This (I hope) should also help the AI's in reaching their limitation of a turn-limit without troops in another AI's territory before requesting/accepting agreements. ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
kormer Chieftain
Jan 2001
|
 |
posted January 23, 2001 22:01
 |
 |
 |  |
Dale, I had to take your mod out of my scenario for it to work. I kept getting an error, diplomod:39 array index 1 out of bounds. Might want to check that one out, I think that was the variable for # of players in a game, and since I have more than 8 it might create a problem somewhere. |
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 23, 2001 22:25
 |
 |
 |  |
Kormer, yeah I know of that one. V3.0 covers that bug.  ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |
kormer Chieftain
Jan 2001
|
 |
posted January 23, 2001 23:35
 |
 |
 |  |
Odd, I wonder why it was working for me before. Oh well, guess it had to do with my other problems of the slic coding not working at all. Make sure to include my name on the list getting version 3.0 tomorrow. |
John Barbarossa Warlord Halifax, England. b.02-15-99
|
 |
posted January 30, 2001 13:22
 |
 |
 |  |
Huge pat on the back to you Dale. I always admired those mod designers for the old Civ 2, but their work was as nothing compared to the challenge of getting CTP2 to behave more realistically. You are to be praised for the mere attempt, but the fact you have pulled it off to such wide aclaim is to your great credit. Thanks.On to my (probably silly) question. If you make the science pact a part of the peace treaty (great idea btw, much more realistic) will it not mean that the science bug that gives the AI a new advance every turn or two be exaserbated?
|
Dale Prince Melbourne, Australia Dec 2000
|
 |
posted January 30, 2001 18:04
 |
 |
 |  |
John, thanks. You got me all embarrased now.  As to your research question: The research bug is unfortunately inherited into the diplo script due to the fact it's internal to CTP2.EXE. This is the same for the advance-for-gold bug. Sorry folks. ------------------ Author of Diplomod. The mod to fix diplomacy. 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." |