.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #21  
Old October 22nd, 2006, 07:37 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Dom-III PBEM manager

Oh, I think I may have a hunch what's causing your issue.
Please make sure you follow step 3. of my first post.
After which libgmail should be correctly installed, please verify it as follows: open a shell (start->run->cmd in windows, or xterm in linux), run python (IDLE works as well), run import libgmail.
This should work w/o errors, if you hit an error this means libgmail isn't installed correctly. It should be fairly easy to install what with one command that installs it and up until now worked smoothly for me. Tell me if this helps.
Reply With Quote
  #22  
Old October 22nd, 2006, 07:58 PM

Cheezeninja Cheezeninja is offline
Sergeant
 
Join Date: Mar 2004
Location: cali
Posts: 325
Thanks: 0
Thanked 0 Times in 0 Posts
Cheezeninja is on a distinguished road
Default Re: Dom-III PBEM manager

I installed libgmail, I even managed to access the gmail account to make sure it worked, but I'm unsure what you mean by "run import libgmail" I don't see any import options, and doing a index search of the help documentation brings up a whole bunch of stuff I don't understand.
Reply With Quote
  #23  
Old October 22nd, 2006, 08:34 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Dom-III PBEM manager

I mean do the following.

1. start->run->cmd, should open up dos shell.

2. print:
python
and press enter, this should start python, you should see the prompt as >>>.

3. print:
import libgmail.

This should work with no messages. If you do get messages it means that installation of the lib has failed.
Reply With Quote
  #24  
Old October 22nd, 2006, 09:57 PM

Cheezeninja Cheezeninja is offline
Sergeant
 
Join Date: Mar 2004
Location: cali
Posts: 325
Thanks: 0
Thanked 0 Times in 0 Posts
Cheezeninja is on a distinguished road
Default Re: Dom-III PBEM manager

Yea, I get an error message that says there is no module named libgmail. I ran the setup.py file though, is there a specific folder I should put the libgmail files in?

Edit: I got it to not give me an error message by putting the libgmail files in the "libs" folder, but the pbem manager module still gives me the same error message.
Reply With Quote
  #25  
Old October 23rd, 2006, 05:12 AM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Dom-III PBEM manager

you should run:
$ python setup.py install

You shouldn't do anything manually with the lib. Install takes care of everything. After that you should be able to get the "import libgmail" to work. If you are there and still get errors when running the PBEM manager please give me the exact error.
Reply With Quote
  #26  
Old October 25th, 2006, 06:38 PM
Beorne's Avatar

Beorne Beorne is offline
Sergeant
 
Join Date: Apr 2004
Location: Forlì, Italy
Posts: 322
Thanks: 15
Thanked 0 Times in 0 Posts
Beorne is on a distinguished road
Default Re: Dom-III PBEM manager

I've had this error:

------------------------------------------------------------
Dom III PBEM Manager Interactive mode.
initing class...
Loading class configuration
section found: test1
section items: [('sent_turns_msg', '<message that will be added to the turn dis
tribution email>'), ('players', '<list of players in the following format: playe
r1_emaillayer1_nation, player2_emaillayer2_nation etc.\nExample: player@gmai
l.com:mid_oceania, [email protected]:mid_pythium, etc>')]
section found: GAMES
section items: [('games', '<list of games seperated by ,>')]
section found: GENERAL
section items: [('backup_path', 'D:\\temp\\domIII'), ('host_pwd', '<your passwo
rd>'), ('host_email', '<your gmail address>'), ('dom_path', 'D:\\Program Files\\
dominions3'), ('temp_turns_path', 'D:\\temp'), ('sig_msg', 'Thanks, <your name>'
), ('active_game', '<default for currently active game>')]
item in general: backup_path value: D:\temp\domIII
setting value of backup turns path to: D:\temp\domIII
item in general: host_pwd value: <your password>
setting value of host password
item in general: host_email value: <your gmail address>
setting value of host email to: <your gmail address>
item in general: dom_path value: D:\Program Files\dominions3
setting value of dominions path to: D:\Program Files\dominions3
item in general: temp_turns_path value: D:\temp
setting value of temporary turns path to: D:\temp
item in general: sig_msg value: Thanks, <your name>
setting value of signature to: Thanks, <your name>
item in general: active_game value: <default for currently active game>
setting value of active game to: [ <default for currently active game> ]
item in games: games value: <list of games seperated by ,>
loaded game name list: ['<list of games seperated by ', '>']
Traceback (most recent call last):
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 784, in <m
odule>
ineractive_mode()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 756, in in
eractive_mode
mgr = DomIIPbemMgr()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 116, in __
init__
self.loadConf()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 250, in lo
adConf
game_item = self.config.items(game_name.strip())
File "C:\Program Files\Python25\lib\ConfigParser.py", line 544, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: '<list of games seperated by'
------------------------------------------------------------
Reply With Quote
  #27  
Old October 25th, 2006, 07:05 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Dom-III PBEM manager

@Beorne, first nice to see that you've switched the debug on
The error stems for the fact that the configuration file is an example and not a working configuration file. A value that you should fill is indicated by <> braces, you should replace this including the braces with your values.

Try it yourself, create a new game with, say, two or more players, fill in the blanks in the configuration file and check if this works for you.
Reply With Quote
  #28  
Old October 26th, 2006, 04:37 AM
Beorne's Avatar

Beorne Beorne is offline
Sergeant
 
Join Date: Apr 2004
Location: Forlì, Italy
Posts: 322
Thanks: 15
Thanked 0 Times in 0 Posts
Beorne is on a distinguished road
Default Re: Dom-III PBEM manager

And I'm a professonal programmer ... what a pity.
Thank you, I'll try.

I'd liked very much to learn Python, but now for me at work is the time of C#, a very good prog language even if is M$. The dark side is Visual studio, a thin layer of complexity and mess covering all.
Reply With Quote
  #29  
Old October 26th, 2006, 11:04 AM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Dom-III PBEM manager

I recommend learning Python, as it embodies some very nice programming concepts. It is a cool language from the get go.
Reply With Quote
  #30  
Old November 4th, 2006, 09:29 AM
Beorne's Avatar

Beorne Beorne is offline
Sergeant
 
Join Date: Apr 2004
Location: Forlì, Italy
Posts: 322
Thanks: 15
Thanked 0 Times in 0 Posts
Beorne is on a distinguished road
Default Re: Dom-III PBEM manager

For now I'm using this great utility to send new turns to players.
But when it sends the turn to [email protected] it raises this error.
What is it?
Thanks.

---------------------------------------------------
Sending turn to [email protected] nation early_vanheim
turn path: C:\Giochi\dominions3\savedgames\Elevento\early_van heim.trn
Traceback (most recent call last):
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 784, in <module>
ineractive_mode()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 780, in in eractive_mode
switchAction.get(opt, help)()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 152, in mngGame
switchMngAction.get(opt, help)()
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 389, in send_turns
self.send_turn(turn_path, to, 'New '+self.active_game+' turn, number '+turn_
number+', for '+nation, body)
File "C:\Program Files\459268-PBEM_Util\domIII_PBEM_utils.py", line 374, in send_turn
self.ga.sendMessage(msg)
File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 592, in sendMessage
items = self._parsePage(req)
File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 352, in _
parsePage
items = _parsePage(self._retrievePage(urlOrRequest))
File "C:\Program Files\Python25\lib\site-packages\libgmail.py", line 333, in _
retrievePage
resp = urllib2.urlopen(req)
File "C:\Program Files\Python25\lib\urllib2.py", line 121, in urlopen
return _opener.open(url, data)
File "C:\Program Files\Python25\lib\urllib2.py", line 374, in open
response = self._open(req, data)
File "C:\Program Files\Python25\lib\urllib2.py", line 392, in _open
'_open', req)
File "C:\Program Files\Python25\lib\urllib2.py", line 353, in _call_chain
result = func(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 1109, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files\Python25\lib\urllib2.py", line 1076, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (10053, 'Software caused connection abort')>
---------------------------------------------------
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.