Civ4 XML Editor

@ General Tso:
Downloaded and run a quick test. Everything seems to work just fine.

Thanks for your efforts and :goodjob:

Edit:
@Jerrymander:
Your posting was neither helpful nor very polite towards the creator of that program. As long as you cannot contribute to any improvement, it would be nice of you to abstain from such postings in the future.
 
What do you mean by using notepad? I tried both options above and its all Pete Tong.
Did you download the updated version 1.03 from the initial posting?

For me it worked to extract it to the place where I wanted it to be and then just to run this little nice program.
The load/save/change/help buttons are on the right side, but are easy to find, and it shows you and allows you to easily change the values of a given .xml-file.
 
Did you download the updated version 1.03 from the initial posting?

For me it worked to extract it to the place where I wanted it to be and then just to run this little nice program.
The load/save/change/help buttons are on the right side, but are easy to find, and it shows you and allows you to easily change the values of a given .xml-file.

Ah, ok, I'll try it again when I get home.

Can someone post a screenshot for future downloaders?
 
Commander Bello,
Thank you for the kind words. I hope you can get some use out of the editor.

Jesus Civs,
I'll try to post a screenshot tonight, the computer I'm on right now doesn't have any software for reducing the size of a picture. I'll try to give an an example for now. If you load the Civ4UnitInfos.xml file into the editor, you would end up with a list of units on the left side and a compact list of the data for the selected unit on the right. You can quickly select different units then scroll through the data for that unit and change it. With notepad you have to do a lot more searching.
 
Hi

I downloaded v 1.03 but nothing happens and the log file says the following:

Code:
Traceback (most recent call last):
  File "Civ4 XML Editor v103.py", line 10, in <module>
  File "win32ui.pyc", line 12, in <module>
  File "win32ui.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.

Any ideas what I can do?

Thanks.
 
Jesus Civs,
It looks like the program is having a problem loading a library file needed by the dialog boxes that are used to load and save files. I have only tested this program on Vista and XP, are you using an older version of windows?
 
Jesus Civs,
It looks like the program is having a problem loading a library file needed by the dialog boxes that are used to load and save files. I have only tested this program on Vista and XP, are you using an older version of windows?

I'm using XP with SP2 and all that jazz.

Is it just a case of downloading those dlls? What directory should I save them in?
 
Jesus Civs,
If the win32ui.pyd file is missing from the program folder that would cause that error message to be displayed. Is the file win32ui.pyd in the program folder?
If that file is missing, try downloading the program again.

Is anybody else having any problems getting the editor to run? I'll be uploading a new version soon - it has several major improvements. If a lot of people are having problems in getting the program to run, then I'd better concentrate on fixing that first. :rolleyes:
 
I just posted a new version (v107f).

New things for v107:
1. Added the ability to search within the class list and the element list.
2. The editor now remembers it's window size and file path between uses.
3. The element list now tries to stay centered on the current element when the user clicks on a different item in the class list. This makes it easier to
cycle thru different class entries and change a given element value in each one. (Like cycling thru a bunch of units and changing their "iMove" value.)
4. Improved graphics. Removed some graphical glitches and small bugs.

I'd be interested in any feedback regarding the editor.
 
Jesus Civs,
If the win32ui.pyd file is missing from the program folder that would cause that error message to be displayed. Is the file win32ui.pyd in the program folder?
If that file is missing, try downloading the program again.

Hi, the file is there alright (see attached screenshot which shows the unzipped directory). I downloaded the newer version, but still the same.

I'm still getting the same error message.

Any more ideas? Thanks btw for helping!
 

Attachments

  • untitled.JPG
    untitled.JPG
    133.4 KB · Views: 250
Jesus Civs,
I'm glad to help. I noticed in your screenshot that you have 2 "Civ4 XML Editor v107f" directories. That's different then my computer (I only have 1). This might have the shortcut confused. Try double clicking on the program file itself. Thats "Civ4 XML Editor v107f.exe". Let me know what happens.
 
Jesus Civs,
I just noticed another problem. In the picture below I have your screen shot and my own window open at the same time. There are 2 thing that are incorrect in your screen shot. First the program file (Civ4 XML Editor.exe, size = 48KB) doesn't have the .exe extension like it should. Second there is another file(Civ4 XML Editor.exe, size = 1KB) that shouldn't even be there! (And why is it listed as a text file?) I'd recommend downloing the program again and making sure that your new folder looks like my picture below. Then double click on the 48KB file "Civ4 XML Editor.exe". Please let me know what happens, hopefully this will solve your problem.
 

Attachments

  • Screen Shot.JPG
    Screen Shot.JPG
    164.6 KB · Views: 250
Jesus Civs,
I just noticed another problem. In the picture below I have your screen shot and my own window open at the same time. There are 2 thing that are incorrect in your screen shot. First the program file (Civ4 XML Editor.exe, size = 48KB) doesn't have the .exe extension like it should. Second there is another file(Civ4 XML Editor.exe, size = 1KB) that shouldn't even be there! (And why is it listed as a text file?) I'd recommend downloing the program again and making sure that your new folder looks like my picture below. Then double click on the 48KB file "Civ4 XML Editor.exe". Please let me know what happens, hopefully this will solve your problem.

Ok, I'll remove the text file. That was generated automatically when I ran the 48k exe file. It's the log file I think.

Cheers. Will provide more feedback later when I get home.
 
Hi again,

I tried all those ideas you mentioned but no avail. I downloaded a fresh copy and no luck.

When I deleted the text file "Civ4 XML Editor v 107f.exe" it reappeared once I ran the application again, and this is the file that is producing the following message:

Code:
Traceback (most recent call last):
  File "Civ4 XML Editor v107f.py", line 10, in <module>
  File "win32ui.pyc", line 12, in <module>
  File "win32ui.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.

Does anyone else have/had the same problem?
 
Nice. If I'm understanding correctly this is python based, so I was thinking that I could use the code to read XML file for my MOD Maker/World Builder. So could you PM me the original source? :thumbsup:
 
Zebra 9,
I'm working on an improved version of the program that allows the user to clone and delete parts of the XML file. When I upload that I'll also include the source code (hopefully within the next week).
I'm also trying to find the solution to a problem that some users are having when trying to run the program in windows XP. The above post by Jesus Civs explains the problem. I would like to fix that before uploading the next version. Does anybody have any ideas on what could be causing it? I'm using Py2exe to convert the python program to an executable. I think py2exe is assuming that there will be a certian dll file on the user's computer, but it's not on all computers.
 
GarretSidzaka,
Thanks for the good idea concerning the file database. As mentioned above I'll be uploading a new version soon. I'll place that one in the database.

The keyboard arrows work OK for me. What kind of problems are you having?
 
Back
Top Bottom