Civ4 PBEM Emailer

I tried to update the Game/Player options and when I enter my path, the program shut down as soon as I click OK. Any clues of what the problem is ?

I'm using Vista Home Premium.

Thanks alot.
Are you willing to help me debug this? I am about to up-load a version of the program (v1.7.2) that generates a log file if you start the program while holding down the shift key.
 
Are you willing to help me debug this? I am about to up-load a version of the program (v1.7.2) that generates a log file if you start the program while holding down the shift key.

Yeah sure !

For now the program seams to work but it fails to send the email. Do you think either my firewall or my rooter block the program ?
 
FYI: I cannot send emails when I am logged in at work. Might be firewall.
 
Hi Ruff,

Civ4PBEM_Emailer is crashing on startup for me under Vista Enterprise 64-bit. Unlike the other respondents, I am unable to run the program at all, it crashes when I click on it. A screenshot of the crash is attached.

I'm happy to help you debug this. Where is the log file generated by 1.7.2 stored? I don't see any "Civ4PBEM_Emailer" directory under "C:\Users\<win-user>\AppData\Local\VirtualStore\Program Files\" nor the corresponding "Program Files (x86)" directory.
 

Attachments

  • pbememailercrash.jpg
    pbememailercrash.jpg
    48.5 KB · Views: 176
the log file (Civ4PBEMEmailer.log) is stored in the same directory as the xml data file - 'C:\Users\<winuser>\AppData\Local\VirtualStore\Program Files\Civ4PBEM_Emailer' for me. Hold down shift when you double click on the short cut to generate the log file.
 
Hello to all. I'm an Italian boy, I apologize for my English!
I installed CIV4 BTS on Windows XP PRO. Then I downloaded Civ4PBEM_Emailer and I installed. When I start the program, I see the splash screen, it create an xml file (Civ4PBEMEmailer_Data.xml) in the same directory and stop. Nothing else. Can you tell me where I am wrong? Thank's !!
 
Hello to all. I'm an Italian boy, I apologize for my English!
I installed CIV4 BTS on Windows XP PRO. Then I downloaded Civ4PBEM_Emailer and I installed. When I start the program, I see the splash screen, it create an xml file (Civ4PBEMEmailer_Data.xml) in the same directory and stop. Nothing else. Can you tell me where I am wrong? Thank's !!
Hmm - any information in the Civ4PBEMEmailer_Data.xml file? It could be that the default game path in the data file is invalid for you.

Open the xml data file and see if any thing looks wrong. You could also hold down the shift key while you open the program - it will generate a log file that will help us debug what is going on.
 
thanks for the quick response!! The XML file start with
<?xml version="1.0"?><ROOT>
<XML_Version v="3" />
<smtp><address v="smtp.gmail.com" />
<port v="587" />
<enablessl v="TRUE" />
<userid v="gmail userid@gmail.com" />
<password v="gmail password" />
</smtp>
then there are another 30 lines..

Can I post here the LOG ??
 
sure - wrap it in spoiler tags so that it doesn't chew too much space. The balance of the xml file would be good too. In particular, the part with the save directory ...

Code:
  <PBEMs>
    <Count v="19" />
    <PBEM0001>
      <Name v="Imperial Tea House" />
      <Path v="C:\Documents and Settings\<winuser>\My Documents\My Games\Sid Meier's Civilization 4\Saves\pbem\Imperial Tea House\" />
      <Count v="4" />
      <Player0001>
 
Ok, I'll try.. :mischief:

the XML:

Spoiler :
<PBEMs><Count v="1" />
<PBEM0001><Name v="Dummy Game 1" />
<Path v="C:\" />
<Count v="1" />
<Player0001><Name v="Dummy Player 1" />
<email v="dummyemail@dummy.com" />
<Save v="FALSE" />
<GPS v="FALSE" />
</Player0001>
<Message v="FALSE" />
<Archive v="FALSE" />
<LatestSaveSent v="-" />
</PBEM0001></PBEMs></ROOT>


the log:

Spoiler :
30-lug-2009 19.07.10: Main-01: Start Splash Screen
30-lug-2009 19.07.11: Main-02: Splash Screen displayed
30-lug-2009 19.07.11: Main-03: Call Initialize
30-lug-2009 19.07.11: Initialize-01: Start
30-lug-2009 19.07.11: ReadXMLDataFile-01: start
30-lug-2009 19.07.11: ReadXMLDataFile-03: done
30-lug-2009 19.07.11: CreateDummyXMLFile-01: start
30-lug-2009 19.07.11: CreateDummyXMLFile-02: done
30-lug-2009 19.07.11: Initialize-02: Read XML, attempt 1
30-lug-2009 19.07.11: ReadXMLDataFile-01: start
30-lug-2009 19.07.11: ReadXMLDataFile-02: done
30-lug-2009 19.07.11: Initialize-04: XML Version check
30-lug-2009 19.07.11: XML_Check_Version-01: start
30-lug-2009 19.07.11: getXMLValue-01: start [XML_Version]
30-lug-2009 19.07.11: XML_Update-01: start
30-lug-2009 19.07.11: XML_Update-05: done
30-lug-2009 19.07.11: XML_Check_Version-02: done
30-lug-2009 19.07.11: Initialize-05: XML to interal
30-lug-2009 19.07.11: XML_to_Internal-01: start
30-lug-2009 19.07.11: Kill_Interal-01: Start
30-lug-2009 19.07.11: Kill_Interal-02: All Done
30-lug-2009 19.07.11: XML_to_Internal-02: smtp
30-lug-2009 19.07.11: FindXMLNode-01: start [smtp]
30-lug-2009 19.07.11: getXMLValue-01: start [address]
30-lug-2009 19.07.11: getXMLValue-01: start [port]
30-lug-2009 19.07.11: getXMLValue-01: start [enablessl]
30-lug-2009 19.07.11: getXMLValue-01: start [userid]
30-lug-2009 19.07.11: getXMLValue-01: start [password]
30-lug-2009 19.07.11: XML_to_Internal-03: email stuff
30-lug-2009 19.07.11: FindXMLNode-01: start
30-lug-2009 19.07.11: getXMLValue-01: start [from]
30-lug-2009 19.07.11: getXMLValue-01: start [Subject]
30-lug-2009 19.07.11: FindXMLNode-01: start [email/SaveBody]
30-lug-2009 19.07.11: getXMLValue-01: start [Count]
30-lug-2009 19.07.11: getXMLValue-01: start [line1]
30-lug-2009 19.07.11: getXMLValue-01: start [line2]
30-lug-2009 19.07.11: getXMLValue-01: start [line3]
30-lug-2009 19.07.11: getXMLValue-01: start [line4]
30-lug-2009 19.07.11: getXMLValue-01: start [line5]
30-lug-2009 19.07.11: FindXMLNode-01: start [email/GPSBody]
30-lug-2009 19.07.11: getXMLValue-01: start [Count]
30-lug-2009 19.07.11: getXMLValue-01: start [line1]
30-lug-2009 19.07.11: getXMLValue-01: start [line2]
30-lug-2009 19.07.11: getXMLValue-01: start [line3]
30-lug-2009 19.07.11: getXMLValue-01: start [line4]
30-lug-2009 19.07.11: XML_to_Internal-03: pbem stuff
30-lug-2009 19.07.11: FindXMLNode-01: start [PBEMs]
30-lug-2009 19.07.11: getXMLValue-01: start [Count]
30-lug-2009 19.07.11: FindXMLNode-01: start [PBEMs/PBEM0001]
30-lug-2009 19.07.11: getXMLValue-01: start [Name]
30-lug-2009 19.07.11: getXMLValue-01: start [Path]
30-lug-2009 19.07.11: getXMLValue-01: start [Message]
30-lug-2009 19.07.11: getXMLValue-01: start [Archive]
30-lug-2009 19.07.11: getXMLValue-01: start [LatestSaveSent]
30-lug-2009 19.07.11: LatestGameSave-01: start
30-lug-2009 19.07.11: LatestGameSave-02: done
[/SPOILER]
 
thx for that - I will have to dig into my code and see what might be causing the crash. One question ... is "C:\" a valid directory on your machine? You don't have it installed on the D:\ drive or something like that?
 
the log file (Civ4PBEMEmailer.log) is stored in the same directory as the xml data file - 'C:\Users\<winuser>\AppData\Local\VirtualStore\Program Files\Civ4PBEM_Emailer' for me. Hold down shift when you double click on the short cut to generate the log file.

Hi Ruff,

Civ4PBEM_Emailer doesn't seem to be creating a directory for itself under the directory you specified, or perhaps its crashing before it has the chance to create that directory.

In my case, the path is c:\Users\Jim\AppData\Local\VirtualStore\Program Files\ (or program files (x86)). But the Civ4PBEM_Emailer directory is just not there. I've attached a screenshot showing the folder layout.
 

Attachments

  • debug.jpg
    debug.jpg
    106.1 KB · Views: 160
@dogshu - check under to program files directory - not the virtual store.
 
@dogshu - check under to program files directory - not the virtual store.

Hi Ruff,

Looks like we've figured out the issue. Civ4pbem_emailer does indeed try to write to my c:\program files (x86)\Civ4PBEM_Emailer directory. However by default it cannot, since the installer installs as an administrator, but the desktop shortcut is run without admin privileges.

I changed the security permissions on c:\program files (x86)\Civ4PBEM_Emailer to be writable by all users. After that, Civ4PBEM_Emailer starts up fine.

Here's a log of the working startup:
Spoiler :
30-Jul-2009 23:07:06: Main-01: Start Splash Screen
30-Jul-2009 23:07:06: Main-02: Splash Screen displayed
30-Jul-2009 23:07:06: Main-03: Call Initialize
30-Jul-2009 23:07:06: Initialize-01: Start
30-Jul-2009 23:07:06: ReadXMLDataFile-01: start
30-Jul-2009 23:07:06: ReadXMLDataFile-03: done
30-Jul-2009 23:07:06: CreateDummyXMLFile-01: start
30-Jul-2009 23:07:06: CreateDummyXMLFile-02: done
30-Jul-2009 23:07:06: Initialize-02: Read XML, attempt 1
30-Jul-2009 23:07:06: ReadXMLDataFile-01: start
30-Jul-2009 23:07:06: ReadXMLDataFile-02: done
30-Jul-2009 23:07:06: Initialize-04: XML Version check
30-Jul-2009 23:07:06: XML_Check_Version-01: start
30-Jul-2009 23:07:06: getXMLValue-01: start [XML_Version]
30-Jul-2009 23:07:06: XML_Update-01: start
30-Jul-2009 23:07:06: XML_Update-05: done
30-Jul-2009 23:07:06: XML_Check_Version-02: done
30-Jul-2009 23:07:06: Initialize-05: XML to interal
30-Jul-2009 23:07:06: XML_to_Internal-01: start
30-Jul-2009 23:07:06: Kill_Interal-01: Start
30-Jul-2009 23:07:06: Kill_Interal-02: All Done
30-Jul-2009 23:07:06: XML_to_Internal-02: smtp
30-Jul-2009 23:07:06: FindXMLNode-01: start [smtp]
30-Jul-2009 23:07:06: getXMLValue-01: start [address]
30-Jul-2009 23:07:06: getXMLValue-01: start [port]
30-Jul-2009 23:07:06: getXMLValue-01: start [enablessl]
30-Jul-2009 23:07:06: getXMLValue-01: start [userid]
30-Jul-2009 23:07:06: getXMLValue-01: start [password]
30-Jul-2009 23:07:06: XML_to_Internal-03: email stuff
30-Jul-2009 23:07:06: FindXMLNode-01: start
30-Jul-2009 23:07:06: getXMLValue-01: start [from]
30-Jul-2009 23:07:06: getXMLValue-01: start [Subject]
30-Jul-2009 23:07:06: FindXMLNode-01: start [email/SaveBody]
30-Jul-2009 23:07:06: getXMLValue-01: start [Count]
30-Jul-2009 23:07:06: getXMLValue-01: start [line1]
30-Jul-2009 23:07:06: getXMLValue-01: start [line2]
30-Jul-2009 23:07:06: getXMLValue-01: start [line3]
30-Jul-2009 23:07:06: getXMLValue-01: start [line4]
30-Jul-2009 23:07:06: getXMLValue-01: start [line5]
30-Jul-2009 23:07:06: FindXMLNode-01: start [email/GPSBody]
30-Jul-2009 23:07:06: getXMLValue-01: start [Count]
30-Jul-2009 23:07:06: getXMLValue-01: start [line1]
30-Jul-2009 23:07:06: getXMLValue-01: start [line2]
30-Jul-2009 23:07:06: getXMLValue-01: start [line3]
30-Jul-2009 23:07:06: getXMLValue-01: start [line4]
30-Jul-2009 23:07:06: XML_to_Internal-03: pbem stuff
30-Jul-2009 23:07:06: FindXMLNode-01: start [PBEMs]
30-Jul-2009 23:07:06: getXMLValue-01: start [Count]
30-Jul-2009 23:07:06: FindXMLNode-01: start [PBEMs/PBEM0001]
30-Jul-2009 23:07:06: getXMLValue-01: start [Name]
30-Jul-2009 23:07:06: getXMLValue-01: start [Path]
30-Jul-2009 23:07:06: getXMLValue-01: start [Message]
30-Jul-2009 23:07:06: getXMLValue-01: start [Archive]
30-Jul-2009 23:07:06: getXMLValue-01: start [LatestSaveSent]
30-Jul-2009 23:07:06: LatestGameSave-01: start
30-Jul-2009 23:07:06: FileDateTime-01: start
30-Jul-2009 23:07:06: FileDateTime-02: done
30-Jul-2009 23:07:06: FileDateTime-01: start
30-Jul-2009 23:07:06: FileDateTime-02: done
30-Jul-2009 23:07:06: LatestGameSave-02: done
30-Jul-2009 23:07:06: getXMLValue-01: start [Count]
30-Jul-2009 23:07:06: FindXMLNode-01: start [PBEMs/PBEM0001/Player0001]
30-Jul-2009 23:07:06: getXMLValue-01: start [Name]
30-Jul-2009 23:07:06: getXMLValue-01: start [email]
30-Jul-2009 23:07:06: getXMLValue-01: start [Save]
30-Jul-2009 23:07:06: getXMLValue-01: start [GPS]
30-Jul-2009 23:07:06: XML_to_Internal-04: sort
30-Jul-2009 23:07:06: XML_to_Internal-05: done
30-Jul-2009 23:07:06: Initialize-06: All Done
30-Jul-2009 23:07:06: Main-04: Initialize complete
30-Jul-2009 23:07:06: Main-06: Create Forms
30-Jul-2009 23:07:07: Main-07: Create Tooltips
30-Jul-2009 23:07:07: SetUpToolTips-01: start
30-Jul-2009 23:07:07: SetUpToolTips-02: done
30-Jul-2009 23:07:07: Main-08: Splash Screen hidden
30-Jul-2009 23:07:07: Main-09: build tree
30-Jul-2009 23:07:07: treeBuild-01: Start
30-Jul-2009 23:07:07: treeBuild-02: smtp
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeBuild-03: civ4 pbem info
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeBuild-04: pbem games
30-Jul-2009 23:07:07: PBEMName_File-01: start
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeAddNodes-01: start
30-Jul-2009 23:07:07: treeAddNodes-02: done
30-Jul-2009 23:07:07: treeBuild-05: archived games
30-Jul-2009 23:07:07: treeBuild-06: done
30-Jul-2009 23:07:07: Main-10: Display main form
30-Jul-2009 23:07:45: Main-17: Quit App
[/spoiler]
 
ok - so you, at least, are good to go.
 
If possible I would like to know one thing: how the Emailer works?
If the utility is an interface that creates an XML file to be placed in a certain directory of BTS, perhaps I could create this file even if I do not use the utility. Enough to have a model of files and know where to put them. Provided that it is so easy ..

Of course, if the program works is much better! :D

thanks all
 
yo it works now.

And it does create the XML file... that's strange I did the same thing...

Thanks anyway !

I'll try to make it work now

Hey, how did you manage to fix your program? I have the same problem where it crashes if I try to change the path to the save file in Vista 64. Any help would be appreciated!
 
And now one of the most frustrating things is that the program doesn't seem to recognize a hand edited xml file. XD
 
Top Bottom