Call for Saved Games

EmperorFool

Deity
Joined
Mar 2, 2007
Messages
9,637
Location
Mountain View, California
This is a request to our users out there. I am working on the diplomacy events feature and need test games that are in a state where an AI will make a diplomacy request the next turn.

I prefer 3.13 saves since that's what I'm using, but I will be updating to 3.17 soon, so those saves will be useful as well.

Can some of you please set up Civ to autosave games every turn, and when you get an AI diplomatic request, post the saved game from the turn before? To be clear, these are cases when the AI comes to you.

I only need one of each type, so check the thread before posting. I'll update this post as I get them. If you don't want to post the save, you can PM it to me.

Don't worry, I won't chastise you if it looks like you WB'ed yourself some tanks. ;)

Thanks! :goodjob:

  • Offered trade deal (techs or resources)
  • Offered Open Borders - 3.17
  • Demand for tribute (tech or resource) - 3.17
  • Demand for help (tech or resource) - 3.17
  • Gift (AI giving you something for free at their initiative)
    .
  • Change Civics - 3.17
  • Convert Religion - 3.17
    .
  • Stop trading with ... - 3.17
  • Declare war on ... - 3.17
  • Sign peace with ... (does the AI do this?)
    .
  • Offer to become a vassal (rare)
  • Offer to make peace (does this happen?)
Bold means I have a save either of my own or posted here.

If I'm missing any, please let me know and I will add them to the list.
 
Err, do you want only 3.13 saves or can you use 3.17 ones too?

If you can use 3.17 here's an AI offers Open Borders save. Isabella should make the offer on the next turn.
 

Attachments

  • Offered trade deal (techs or resources)
  • Offered Open Borders - 3.17
  • Demand for tribute (tech or resource)
  • Request for help/gift (tech or resource)
  • Gift (AI giving you something for free at their initiative)
    .
  • Change Civics
  • Convert Religion
    .
  • Stop trading with ...
  • Declare war on ...
  • Sign peace with ... (does the AI do this?)Never saw it
    .
  • Offer to become a vassal (rare)
  • Offer to make peace (does this happen?)In BtS AI is coded to never ask for peace, Blake dixit
Bold means I have a save either of my own or posted here.

If I'm missing any, please let me know and I will add them to the list.
Only some reminders... about saves..... I have to dig a little in my save directory;)
 
Here's the most complex instructions for a save that I've ever written. This is a 2-for-1 bonus save :deal: where the demands you get will vary based upon in-game options! :crazyeye:

3.17 again; Official Patch recommended since that's what I was testing it under.

Option 1: Load with "Show Friendly Moves" checked and get yourself a drink or something because there are quite a few to wait through. Next turn, Zara will demand you switch to Theocracy! :woohoo: (and Ragnar asks for Open Borders.)
Spoiler sample logging from current SVN :
Code:
23:08:16 Diplomacy - AI_DIPLOCOMMENT_CIVIC_PRESSURE [-1] from 5 to 0 with (u'TXT_KEY_CIVIC_THEOCRACY', u'', u'')
23:08:16 Diplomacy - firing CivicDemanded
23:08:16 Diplomacy - Zara Yaqob asks Daveleiman to switch to Theocracy
23:08:16 FavoriteCivicDetectorEvent::onCivicDemanded(ePlayer = 5, eTargetPlayer = 0, eCivic = 22)
23:08:16 FavoriteCivic::setFavorite() attempting to set player 5 favorite civic to 22 (Theocracy)
23:08:19 Timer - findDealsByPlayerAndType took 0 ms
23:08:23 Diplomacy - USER_DIPLOCOMMENT_NO_REVOLUTION [-1] from 0 to 5 with (-1, -1)
23:08:23 Diplomacy - firing CivicRejected
23:08:24 Diplomacy - ignoring USER_DIPLOCOMMENT_EXIT from 0 to 5 with (-1, -1)
23:08:25 Timer - findDealsByPlayerAndType took 0 ms

Option 2: Load without "Show Friendly Moves" checked and Zara instead decides he'd rather demand you stop trading with the Celts.
Spoiler sample logging from current SVN :
Code:
22:59:49 Diplomacy - AI_DIPLOCOMMENT_STOP_TRADING [2] from 5 to 0 with (u'TXT_KEY_CIV_CELT_ADJECTIVE', u'', u'')
22:59:49 Diplomacy - firing EmbargoDemanded
22:59:52 Timer - findDealsByPlayerAndType took 0 ms
23:00:02 Diplomacy - USER_DIPLOCOMMENT_NO_STOP_TRADING [2] from 0 to 5 with (-1, -1)
23:00:02 Diplomacy - firing EmbargoRejected
23:00:04 Diplomacy - ignoring USER_DIPLOCOMMENT_EXIT from 0 to 5 with (-1, -1)
23:00:04 Timer - findDealsByPlayerAndType took 0 ms
 

Attachments

This is a 2-for-1 bonus save :deal: where the demands you get will vary based upon in-game options! :crazyeye:

I gotta say, that is very, very strange. Did you start the game with the "New Random Seed on Reload" option set? If not, that means that your graphics options affect game events. Odd to the extreme.

Thanks for the saves, and even more the logs as now I don't even have to run the saves! :goodjob: It's nice to have them for testing later, but if you just want to post the log of the event and keep the saves yourself, feel free. I don't know how close you are to your attachment limit. ;)

It's good to see that the favorite civic is indeed passed along. I'll update DiplomacyUtils to allow providing an argFunc that takes all the players and arguments (currently only passes eFromPlayer) so this can be handled better.
 
New random seed is unchecked; I never have that option on because I want stuff to be consistent if I have to debug some modding change later. And this behavior, while darned strange, is consistent. I've loaded the save a couple of times and it's always the same. I have no idea why showing friendly moves initiates any random number calls but it sure looks like it does; I even tried looking in MPLog but I can't really figure anything out from the way it logs random numbers.

My attachment limit is pretty low so I figured I'd post the save anyway but I do occasionally go around and clean up old save attachments.
 
@Single Malt - Thanks! :goodjob:

As I'm running 3.13 still, could you post the log of these events as Dresden did above? To do this, just turn on debug logging in BUG by editing CustomAssets/Python/BUG/BugUtil.py:

Code:
printToFile = [B]True[/B]

Then load the game, and do whatever you need to trigger the event. Now you can quit civ if you want.

Finally, open "My Games/BTS/Logs/PythonDbg.log" and either post/PM/email the entire file to me or cut just the parts that have "Diplomacy - " in them.

If this is too much, no worries. I'm trying to avoid upgrading to 3.17 a) before finishing a few games I have lying around and b) before 3.1 as I don't wanna rock the boat so soon before a release. :D
 
Hmmm, I don't have the program to open that file. Point me to where I need to go to get it (I am assuming its a free program, considering its required for modding civ4):)
 
Hmmm, I don't have the program to open that file. Point me to where I need to go to get it (I am assuming its a free program, considering its required for modding civ4):)

You can use Notepad to modify the file, though I recommend using any free text editor:

  • Notepad++
  • TextPad
  • IDLE - the Python interpreter and editor, from python.org
For now, though, I've attached a ZIP file containing the edited version of the file for you to use. I recommend keeping a backup of the original. :)
 
I loaded one of the saves, played a few rounds, and exited. I couldn't find a log file in the log folder. The only logs are an error log (which may have prevented the game logging), and a few unrelated other. The error log is from when I last loaded the game. I know what the problem may be, and I'll check it tomorrow after work. I've had a hard week and a half of exams behind me and bed is calling:)
 
No worries. Thanks for trying it. I think maybe you need to enable logging in the CivilizationIV.ini. I thought that was only for Python exceptions, but I guess I was wrong.

Code:
; Enable the logging system
LoggingEnabled = [B]1[/B]
 
Code:
PY:saveDesc:C:\Documents and Settings\malte01\My Documents\My Games\Beyond the Sword\Saves\WorldBuilder\WBQuickSave, curDir:C:\Program Files\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword
WBSave done

load_module CvGameInterface

load_module CvGameInterfaceFile

PY:City Vijayanagara's culture has expanded
load_module CvRandomEventInterface

PY:Washington has grown
PY:OnPreSave
PY:City Cologne's culture has expanded
PY:Izancanac has grown
PY:Yayoi has grown
PY:Tiwanaku has grown
PY:OnPreSave
load_module CvDiplomacyInterface

load_module CvDiplomacy

PY:Wonsan has grown
PY:City Ollantaytambo's culture has expanded
PY:City Corihuayrachina's culture has expanded
PY:OnPreSave
PY:OnUnInit
UnInit Python
Is this the code you are looking for? I am being asked to convert to religion. In the few turns I played a few other things happened, i.e. building completed and stuff, I'm surprised that that doesnt show up. The only mention of diplomacy is here
Code:
PY:OnPreSave
load_module CvDiplomacyInterface

load_module CvDiplomacy

PY:Wonsan has grown
 
Is this the code you are looking for?

That's the correct file, but the BUG debugging output is not enabled. Did you use the file I posted? Where did you put it?

Assuming you installed BUG to "My Games/Beyond the Sword/CustomAssets", it should go in there under "Python/BUG" as "BugUtil.py". If you installed BUG as a mod, BugUtil.py must go in "Mods/BUG Mod 3.0/Assets/Python/BUG".

I just checked and Notepad handles the file fine. Open it with Notepad and look for this:

Code:
## Debug and Error output

printToScreen = False
[B]printToFile = True[/B]
includeTime = True

The bold line is the important one. When it's working, the file you posted above will include lines like this:

Code:
23:08:16 Diplomacy - AI_DIPLOCOMMENT_CIVIC_PRESSURE [-1] from 5 to 0 with (u'TXT_KEY_CIVIC_THEOCRACY', u'', u'')
23:08:16 Diplomacy - firing CivicDemanded
23:08:16 Diplomacy - Zara Yaqob asks Daveleiman to switch to Theocracy
23:08:16 FavoriteCivicDetectorEvent::onCivicDemanded(ePlayer = 5, eTargetPlayer = 0, eCivic = 22)
23:08:16 FavoriteCivic::setFavorite() attempting to set player 5 favorite civic to 22 (Theocracy)
23:08:19 Timer - findDealsByPlayerAndType took 0 ms
23:08:23 Diplomacy - USER_DIPLOCOMMENT_NO_REVOLUTION [-1] from 0 to 5 with (-1, -1)
23:08:23 Diplomacy - firing CivicRejected
23:08:24 Diplomacy - ignoring USER_DIPLOCOMMENT_EXIT from 0 to 5 with (-1, -1)
23:08:25 Timer - findDealsByPlayerAndType took 0 ms

A ton of lines like that. You won't have to look far to find them. :) They will all start with the time (HH:MM:SS).
 
It seems I have a version of BUGutil.py on both file paths. I have had an issue with the planet generator, and certain other BUG bits. I had originally tried to install to the custom assets folder, but ctrl+alt+o options were not available, nor had the GUI changed. I'll remove BUG and reinstall. It may have to do with that, aside I want to try out the new map scripts that are with BUG:)
 
Oh, are you installing from SVN or using the EXE or ZIP? If the latter, you can ignore this request as you won't even have the diplomacy code. I can still use your save though.

Did you play those saves using BUG loaded as a mod?
 
That explains it. I don't have the one from the SVN. I just wanted to help a little. The BUG mod is free, and I do like to give something in return (provided its not cash, cos I ain't got any:cry:). I assume the SVN stuff is for BUG developers??
*edit* I just saw the SVN stuff can be accessed by registering, and downloading the SVN thingy. I'll do that at some stage over the week and see if I can get those diplo logs. Saves are BUG for 3.17
 
As I said, the saves help a ton as it is as that's the hardest part.

Correct, the SVN is public for all to use. We strive to keep it stable and free of bugs, but occasionally something slips through the cracks. We usually fix any problems we introduce within a day, and you can always checkout a previous version using TortoiseSVN (the client application that allows you to access SVN).

The reason to use the SVN version is mainly to get all the new features right away. That and it makes you cool. :cool:
 
Back
Top Bottom