(I was going to post this in the dungeon but I just discovered the rank system... so here it goes )
To any who are interested in a crusaders_unit_prod11.txt editor I have just uploaded a small prog to the org.
It is called crusaderUnitEditor, and does what it says. it's not as pretty as viewing the file in excel but you can save your changes, and it's easier than doing it in wordpad. here's the readme file I've put with it:
------------------------------------------------------------------------------------------
----------------------------------------
Crusader_Unit_Editorv1.0b 3/2/03
tool to view/edit crusaders_unit_prod11.txt
If like me you enjoy messing with the crusaders_unit_prod11.txt file you may find this program useful.
I adapted an old bit of vb code I had to do this because I was frustated by navigating the unit_prod11 file in wordpad, and try as I would I couldn't get excel to save the files in the right format. This editor isn't particularly pretty but it is at least functional.
Be warned though - the Editor does not do any error checking on the values you enter into the fields, it just reads/writes the string data to and from files in the correct format and makes it easier to navigate the data. It can cope with any number of units in the file (within reason, but far more than the game can probably cope with.), but I haven't included any functionality to add units to the file. Your best bet is to copy a units data to the end of the list (or wherever after data start) manually, save the file and then load/edit the new units data in the editor. I may add this function if I get into adding lots of new units myself. (you do know there is a massive ton of real work to add new units don't you? the data in prod11.txt is just the easy bit ) other functions that may never be added are: value checking, mdi, compareWithOtherFile function.
As this is a vb program it requires the vb6 runtimes to be installed on your system, you might well already have them but if not they can be got from microsoft or any download site. The files needed are: Msvbvm60.dll and comctl32.dll. I think comctl32.dll is a standard windows file (check in windows/system and /system32) so you may only need msvbvm60.dll if at all.
I have tested this program on win98 and win2000 and it seems to work fine, good luck with me/xp (it'll be nice if it works, but I have no idea.).
If you find a bug then feel free to drop me an email (attaching any botched file and/or some kind of description of the error) to crusadereditor@craven-griffiths.net.
This is a kind of beta, I think it should work okay but it has had exactly one tester on just two systems (and one of those is the development machine.) so who knows. If it dosen't work and you let me know I'll be sure to have a go at fixing it.
installation:
unzip the crusaderUnitEditorv1.0b.zip to wherever you like, if you check 'use folder paths' it will create a folder, but you can put it any folder you want. The program requires no registration etc. to run. The '.bak' file included contains the default data and can be replaced with a newer version of crusaders_unit_prod11.txt if we ever get a patch past 1.1. To uninstall the editor just delete the exe.
Of course you use this at your own risk, and please backup your original crusaders_unit file before you start over-writing it.
Lord Gnome.
------------------------------------------------------------------------------------------
-------------------------------------------
comments are welcome.
Bookmarks