.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
  #11  
Old October 19th, 2006, 03:24 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dom-III PBEM manager

Python is one of the more "english" of programming languages. So I would rank it as one of the easiest to learn. But its also very full featured.

Of couse just about any language could have done this. If you want to compare programming languages here is a really fun site to look at. I love looking at this site.
http://www.99-bottles-of-beer.net/
It has 1019 different programming versions of simple programs to work thru the 99 bottles song.

Gandalf Parker
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #12  
Old October 19th, 2006, 03:49 PM
Nerfix's Avatar

Nerfix Nerfix is offline
Lieutenant General
 
Join Date: Sep 2003
Location: Hyvink��, Finland
Posts: 2,703
Thanks: 0
Thanked 1 Time in 1 Post
Nerfix is on a distinguished road
Default Re: Dom-III PBEM manager

Quote:
Endoperez said:You should be asking whether or not it would be worth it to learn Python. To answer that, the ones in the know would need to know what you'd use it for.
But Python leads to Ruby and Ruby and Java (Java I can handle somewhat) lead to Groovy and Groovy...Groovy is the future! And will lead to something else in future.
__________________

"Boobs are OK. Just not for Nerfix [img]/threads/images/Graemlins/Smile.gif[/img] ."
- Kristoffer O.
Reply With Quote
  #13  
Old October 19th, 2006, 04:12 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Dom-III PBEM manager

Quote:
Nerfix said:
But Python leads to Ruby and Ruby and Java (Java I can handle somewhat) lead to Groovy and Groovy...Groovy is the future! And will lead to something else in future.
Java is in the past. My personal work with Java, that is.

I haven't touched my map randomizer for a year or so. It was supposed to randomize poptypes/defenders/sites etc in totally new ways. A random .map generator instead of a random map graphics generator. It's written in Java, but probably only works in Windows.
Reply With Quote
  #14  
Old October 19th, 2006, 07:09 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

Quote:
Gandalf Parker said:
Python is one of the more "english" of programming languages. So I would rank it as one of the easiest to learn. But its also very full featured.

Of couse just about any language could have done this. If you want to compare programming languages here is a really fun site to look at. I love looking at this site.
http://www.99-bottles-of-beer.net/
It has 1019 different programming versions of simple programs to work thru the 99 bottles song.

Gandalf Parker
Wow, this site is spectacular. I think I'll need to spend some time there, to get all the strange languages.
Reply With Quote
  #15  
Old October 19th, 2006, 07:16 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 have worked with C, CPP, Perl and Java (for RT, not J2EE).
Python, I've heard a lot about and decided to check it recently. I think its a superb language, elegant and consice and with a giant code base on the web.

So Nerfix, It all boils down to what you need done. C is best for performance, Java for web, Perl for information mining and Python for prototypes I use them all depends on what I need done, Oh and don't forgot to use VIM as your text editor
Reply With Quote
  #16  
Old October 20th, 2006, 08:39 AM
Nerfix's Avatar

Nerfix Nerfix is offline
Lieutenant General
 
Join Date: Sep 2003
Location: Hyvink��, Finland
Posts: 2,703
Thanks: 0
Thanked 1 Time in 1 Post
Nerfix is on a distinguished road
Default Re: Dom-III PBEM manager

I think I should learn Java properly first. We had a longish course about it in the BC but we barely reached the objects. I studied it a bit in home but then schools started and work piled up on me. D: I did manage to program some sort of store software using objects & all with it though...

We'll have a course about PHP though and it's supposedly a lot like Java.

But studying a smitter of some easy to learn language that's still useful would be helpful in the future. i'm bizarrely interested in coding though I have recently heavily shifted toward HTML, CSS & all. Learning Javascript would propably be the next logical step.

Ahhhhh, so many choices....
__________________

"Boobs are OK. Just not for Nerfix [img]/threads/images/Graemlins/Smile.gif[/img] ."
- Kristoffer O.
Reply With Quote
  #17  
Old October 20th, 2006, 09:49 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dom-III PBEM manager

It depends.
JavaScript is good if you are interested in doing more with what the user sees on their screen.
PHP is good if you want to do more with what goes on at the server end for providing services.

On a Dom3 website JavaScript would be good for making a god-creation tool people could play with.
PHP would be good for making a web-based game managment system

IMHO
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #18  
Old October 21st, 2006, 08:17 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

Could you post a block of text showing what the PBEM_conf file would look like correctly filled out? Do you enter the information within the < >'s or just replace that whole part with the correct information. You leave the < >'s out completely right?

Also what does the /cygdrive/ in the path signify? Should I remove that since it is not part of the path on my computer, or is that something Python related?

edit: Also thanks a bunch!!!!!!!

Edit2: Also when I try running the module with Python (2.5) I get an indentation error of some sort. Any and all help would be appreciated, I really don't know what I'm doing.
Reply With Quote
  #19  
Old October 22nd, 2006, 08:28 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

1. Full config file:
[GENERAL]
# Windows values:
dom_path = D:\Program Files\dominions3
temp_turns_path = D:\temp
backup_path = D:\temp\domIII

host_email = [email protected]
host_pwd = 1234
sig_msg = Thanks, name
active_game = test

[GAMES]
games= test

[test1]
players = [email protected]:mid_oceania, [email protected]:mid_pythium, [email protected]:mid_vanheim

sent_turns_msg = have fun

2. /cygdrive, is for cygwin - a Linux flavour OS on top of MS windows. Just ignore it if you work on windows, use windows path instead.

3. Thanks for your interest

4. You should seriously consider upgrading to python 2.6. Also python is white space sensitive. The script was tested on windows and cygwin and should work ok. Could it be that the file was edited by mistake?- Maybe try to DL it again. If that fails please post here or PM me with the exact error you get and I'll look into it.
Reply With Quote
  #20  
Old October 22nd, 2006, 07:04 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

Okay. I think I've done everything right, I don't have libgmail in the python folder if that matters, which it doesn't seem like it should(?), or your module either. I open up the Python gui, open your file, and select run module. It gives me this error:

Error: Inconsistent indentation detected!

1) Your indentation is outright incorrect (easy to fix), OR

2) Your indentation mixed tabs and spaces.

To fix case 2, change all tabs to spaces by using edit->Select All followed by Format->Untabify Region and specify the number of columns used by each tab.

It also takes me to a line in the middle of your module and highlights the line that says "self.ga.login()"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 07:03 AM.


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