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

[Utility] Civilization 5/BE: simple XML to SQL converter (PHP script)

Discussion in 'Civ5 - Utility Programs' started by Artisanix, Dec 6, 2014.

  1. Artisanix

    Artisanix Warlord

    Joined:
    Oct 6, 2013
    Messages:
    104
    Civilization 5/BE: simple XML to SQL converter
    v1.3, written by Artisanix, 2014/12/09


    This simple conversion script is based on PHP capabilities to process XML files.
    The script displays webpage with simple interface for conversion and the instructions what you need to do there (see attached screenshots for the idea).


    To use this script you need to have webserver installed on your machine with PHP support.
    If you know very little about setting up webservers, then you may want to download some integrated solutions like EasyPHP, The Uniform Server, etc. - they are easy to install and most of the time they work just after the install finishes without any special configuration.

    Then you need to copy this script file (civ_xml2sql.php) to the root folder of your webserver, and it should be accessed in the browser via this address:
    localhost/civ_xml2sql.php



    Well, happy converting...

    Of course, if you have any questions, just ask here... ;]





    EDIT3: Uploaded a 1.3 version
    EDIT2: Uploaded a fixed version... ("now should work" - programmer's most used words ;])
    EDIT1: Heh, I've spotted some error ;p The SQL text values are not in quotes, so you may want to wait for a minute until I fix it ;]
     

    Attached Files:

  2. Belzhorash

    Belzhorash Warlord

    Joined:
    Oct 24, 2008
    Messages:
    222
    Location:
    Germany
    This tool is gold.
    Thanks for the work!

    Sadly, I just converted my core files some days before by hand - but there are still files that wait to be converted... ;)
     

Share This Page