Here is version 0.0.2 of the Editor:
[EDIT: See the first post of this thread for the download link]
I managed to get the behind the scenes stuff done quicker than anticipated as I was able to borrow some code from the Updater.
As mentioned before, I have done very little testing with the Editor so far. It makes the changes as planned and the limited testing I have done seemed fine (e.g. I was able to change the location of 'pictures' folder and edit the rules of the EIHL).
Installation is pretty straightforward. Just extract the zip file to a folder of your choice. Alternatively, you can place the Editor exe file in the same folder as your Updater folder. Both the Editor and the Updater use the same dll files and so they can sit in the same folder with the dll files. If the exes you'll be editing are located in your C:/Program Files/.../ folder then you'll need to use Run as Admin when running the Editor.
Please do let me know if you think the user interface of the Editor could be improved in any way (e.g. I think maybe the Folder Paths screen is a bit cramped). Also, if any line up rules don't work or don't work as described, any crashes, etc.
Hopefully the Editor is fairly intuitive, but here are some brief notes on how to use the two screens:
League Rules
- Simply select the league you want to edit and then use the drop-down menu to change the line up rules.
- You'll see that the "No Restrictions (Austria)" setting has a question mark next to it. When I tried using this setting with the EIHL, the line up rule didn't change (it was still at a 10 foreigner limit). The "No Restrictions (Denmark)" setting does work with the EIHL however. I don't know whether this is just a quirk with the EIHL or whether perhaps the Austria setting is wrong.
- You'll see that many leagues listed in the left-hand column are listed by their country name and not their league name. This is something I need to work on. I think for most leagues, it's straightforward (e.g. the Austria entry is clearly the EBEL). However, for leagues where there is promotion and relegation (e.g. Sweden and Finland) and the IIHL which falls under either Slovakia or Slovenia (I always forget which) it seems the line up rules are all merged into one entry - e.g. there is just a single entry for "Sweden" rather than there being individual entries for the SHL and Allsvenskan.
- There is various other information displayed on the screen (e.g. Offset A and B and Relative Position). I'll explain these when I have more time (they're only really useful if you want to try and find more settings in the exe using a hex editor).
- For those of you who have used Marek's guide, you'll notice that the hex codes are written backwards in the Editor. This is because, in the same way as looking at the DB dat files, the hex code in the exe is byte swapped (see diagram below). The Editor corrects for this by showing the hex in its correct order. You'll notice that when displayed in the correct order, the hex code settings look remarkably similar to the offsets listed in my ArtMoney guide. The similarity is no coincidence. I think the hex settings in the exe are in fact references to offsets in the memory. For example, the hex setting for the Czech Republic line up rule is 00 8F 24 30 whereas the offset in ArtMoney for editing the Czech line up rule is 00 08 24 3E (that's a difference of 14 bytes).
Folder Paths
- Again, this screen is pretty straightforward. Just edit the appropriate text box.
- There is a number in brackets next to each text box. This indicates the maximum number of characters you can enter (the Editor won't let you enter too many characters).
- Some of the folder paths use special wildcards. If you edit any of these, make sure you keep the wildcards in there. E.g. you'll see that the Players folder is named "players\%s.%s" - if you edit this path, make sure you keep the "\%s.%s". I think these wildcards mean the filename and file extension.
- Some of those folder paths I hadn't noticed before; such as the "user" face and background images, the left and right flag folders, the Czech PO.png logo, and the rink "boards" folder...

Here's the byte-swapping diagram I was talking about. The left hand side shows how the hex code appears in Marek's guide and when viewing the exe in a hex editor. The right hand side shows how the hex code is displayed in my Editor and this is the actual hex:
