1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

CivMail - a simple mail client for Civ4. Formerly known as CivPop3

Discussion in 'Civ4 - Mod Components' started by Teg_Navanis, Jul 28, 2007.

  1. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    current version: 0.42 (June 20, 2008)

    Compatible with: BtS 3.17
    (Vanilla and Warlords also possible, see Installation Instructions)

    Download

    Version 0.42

    Description

    This mod adds a simple POP3 Client to Civ4, allowing you to check your mails from inside the game.
    Open civPop3.py in a text editor and change the first few lines to configure your account.

    Installation Instructions

    Unzip this into the "civ4_install_folder\Mods\" folder.

    For configuration instructions, open CivMail.py and check the comments at the beginning of the file.

    If you are not playing with Beyond the Sword, delete CvMainInterface.py and CvScreenEnums.py and use CvMainInterface(vanilla).py or CvMainInterface(Warlords).py and CvScreenEnums(vanlila_warlords).py by moving them to the Assets/python/screens folder and renaming them to the original file's name (CvMainInterface.py and CvScreenEnums.py).


    Known Issues

    The password is stored without encryption. This can be a security risk. You can, however, choose not to store your password and change it in-game every time you start Civ4.

    The game hangs for up to 30 seconds when you end it while it is trying to connect to a POP3 server.

    Only plain text e-Mails can be opened. HTML is not supported.

    Version Information
    Spoiler :


    -----v0.42-----

    - compatibility with BtS 3.17

    -----v0.41-----

    - compatible with BtS 3.13

    - converted FfH Editor to open document format (including new export script)

    -----v0.4-----

    - it is finally possible to send a mail using CivMail

    - a mail being sent will trigger a mail delivery report,
    indicating whether a mail was sent successfully or not

    - it is now possible to configure CivMail ingame (data isn't stored on the hard disk)

    - dropped support for vanilla and Warlords.

    -----v0.3-----

    - replaced PopUp by 'real' screen, including ability to read entire mails.

    - smtp code included. only thing not yet possible is capability to actually *write* a mail in-game.

    - renamed from CivPop3 to CivMail

    - BtS compatibility

    -----v0.2-----

    - automatically fetches mails every 5 minutes

    - some code optimisations

    - better commenting

    -----v0.1-----

    -initial release



    ===Credits & Thanks===
    a part of the code is from Simon Burton:
    http://www.thescripts.com/forum/thread22928.html

    Screen is based on Mercenary Mod by TheLopez

    Screenshots
     

    Attached Files:

  2. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    The original thread is here. I renamed the current version since the first name was confusing to some and is inaccurate for a mod that can both receive and send mails. I still need some help with the latter, though... ;)

    Does anyone know how to implement edit boxes in a screen interface? Sending mails is not of much use if you can't edit the message you want to send in-game, hence my inability to include such a feature is a major obstacle to a convenient send-mail functionality.
     
  3. Dom Pedro II

    Dom Pedro II Modder For Life

    Joined:
    Apr 3, 2002
    Messages:
    6,811
    Location:
    Exit 16, New Jersey
    Awesome! This is really great, Teg. Nicely done!
     
  4. Primax

    Primax CivPlayers Modder

    Joined:
    Jul 31, 2006
    Messages:
    73
    Location:
    Australia
  5. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    Alright, since I didn't manage to make screen edit boxes, I did everything with PopUps. It may not look as nice as a new screen, but you can now send a message and configure your CivMail account in-game. Have a look at the new screenshots in the original post.
     
  6. mauks37

    mauks37 Chieftain

    Joined:
    Nov 20, 2007
    Messages:
    23
    Im trying to use the cliente. How can i open CivMail.py ?
    Im trying to play with Warlords, and there's this instruction in read me:

    "If you are not playing with Beyond the Sword, delete CvMainInterface.py and CvScreenEnums.py and use CvMainInterface(vanilla).py or CvMainInterface(Warlords).py and CvScreenEnums(vanlila_warlords).py by moving them to the Assets/python/screens folder and renaming them to the original file's name (CvMainInterface.py and CvScreenEnums.py)."

    I dont understand where i delete the file, and where get the new file.

    Hope you can help me...:)
     
  7. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    You can open the .py files with any text editor (notepad in Windows for example).

    The files you have to replace are in the folder "My Documents\My Games\Warlords\MODS\CivMail\Assets\python\screens" (the first part might be different, depending on your operating system and on which version of Civ4 you use).

    The files you have to replace them with are missing in the latest version though. I updated the mod to include them again. If you download and install it again, they will now be in the right folder, but with a different name. If you're playing with Warlords, delete CvMainInterface.py and CvScreenEnums.py from the folder mentioned above, then rename CvMainInterface(warlords).py to CvMainInterface.py and CvScreenEnums(vanlila_warlords).py to CvScreenEnums.py.
     
  8. mauks37

    mauks37 Chieftain

    Joined:
    Nov 20, 2007
    Messages:
    23
    Thanks.....its working now.
    But i can't send or receive mail ....... Im trying to use yahoo mail.
    I don't find the civpop3.py to configure, and i don't now how to configure civmail.py....
    Could you help me?
    This mod is very cool!!
     
  9. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    The mod was renamed some time ago, so civPop3.py is now civMail.py. Open the file with any text editor (notepad or whatever).

    There are four entries you need to edit:

    Your POP server, your SMTP server, your user name and your password (you can leave the entry empty and enter the password in-game if you think it's safer).

    If you don't know what your POP3 and SMTP server are called, check the yahoo mail help page.
     
  10. mauks37

    mauks37 Chieftain

    Joined:
    Nov 20, 2007
    Messages:
    23
    Im still getting an error to connect mensage.
    I configured civmail.py, and im trying to use gmail:
    pop3= pop3.gmail.com
    smtp= smtp.gmail.com


    Im sorry annoying......:(
     
  11. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    the POP3 server of gmail is pop.gmail.com , not pop3.gmail.com

    Also, make sure you enabled POP3 on your account (see here).
     
  12. mauks37

    mauks37 Chieftain

    Joined:
    Nov 20, 2007
    Messages:
    23
    I did it. But im still getting connection error.

    What mail do you use?
     
  13. Teg_Navanis

    Teg_Navanis King

    Joined:
    Jan 21, 2006
    Messages:
    737
    I was using GMX.

    I can try helping you by telling you how to get a more meaningful error message. First, open civMail.py and put a '#' in front of the lines 100-103. This sign 'comments' the code, making sure it is not executed.

    Then, open the CivilizationIV.ini (it's in the game folder (*\My Games\Warlords)) and set 'LoggingEnabled' to 1 and 'HidePythonExceptions' to 0.

    Then, try civMail again. There will probably be a popup-error message. Either make a screenshot of it that you upload or close the game, go to '*\My Games\Warlords\Logs', open PythonErr.log and copy & paste the error message here.
     
  14. The Monster

    The Monster Chieftain

    Joined:
    Feb 15, 2009
    Messages:
    29

    “Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.”
     

Share This Page