PDA

View Full Version : Making New Scheme Editor


Misterags
5 Sep 2010, 18:56
i wants to make a nu scheme editor becuz the one in the game is hard to use. Can sum1 show me how to program 1?

If not i will figur it out myself. c u in 24 hours with a better 1...

misterags

_Kilburn
5 Sep 2010, 19:00
im sry d00d its not possibl 2 progrm a nu 1 cuz t17 sux rofl k lol kthxbai

_kilburn


On a more serious note I doubt it's possible, and if it was possible, I strongly doubt someone like you would manage to do something decent. Although I do agree that the current scheme editor is absolutely terrible.

Esbern
5 Sep 2010, 19:31
I really hope you can make a new one...

craz
5 Sep 2010, 19:59
I tried to make a other scheme buth when u edit the files urself, for example u modify the damage of bazooka 2x. or do anything else the damage goes to 1.
Because of this all we can't edit.

I hope team17 will fix this.

AngeloG
5 Sep 2010, 20:01
I laughed so hard. Sorry.

AngeloG
5 Sep 2010, 20:03
On a more serious note I doubt it's possible, and if it was possible, I strongly doubt someone like you would manage to do something decent. Although I do agree that the current scheme editor is absolutely terrible.

It's not impossible at all. I was studying how the profile file works, and it's not very hard to make such a program. (Except for mr. 1337sp34k up here)

Etho.
5 Sep 2010, 20:21
Kilburn I thought you made a scheme editor for Worms 4? I believe Worms Reloaded uses the same or a similar file structure that Worms 4 used. It's definitely not impossible to figure out.

I was (still might eventually) making an editor for Worms Reloaded (schemes, teams, tweaks, and everything else stored in that big file)... but I lost a lot of interest in it when I discovered there would be no easy way to use tweaks in online games.

Here are my rough research notes in case someone else wants to try:


675840 - total file length
129591 - important data length - 4
396388 - other length

header (1904 bytes)
4 bytes - length of data
10 TYPE

MOIK = 64 bytes
4 bytes - signature "MOIK"
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - #of TYPE
4 bytes - #of CTNR
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown

TYPE = 64 bytes
4 bytes - signature "TYPE"
4 bytes - unknown
4 bytes - #of CTNR
4 bytes - unknown
16 bytes - md5 hash value?
32 bytes - TYPE's string name

GUID = 16 bytes
4 bytes - signature "GUID"
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown

SCHM = 16 bytes
4 bytes - signature "SCHM"
4 bytes - unknown
4 bytes - unknown
4 bytes - unknown

STRS = varible
4 bytes - signature "STRS"
4 bytes - #of entries
4 bytes - length of string data
4 bytes - (ENTRY) position of the string data from end of the STRS
1029

weapon data length = 5
1 byte - unknown
1 byte - unknown
1 byte - unknown
1 byte - ammo value (0xFF/255 = infinite)
1 byte - delay value

scheme format:
12 bytes - data
1 byte - #of weapon data pointers (55)
? bytes - 55 weapon pointer values (1 or 2 bytes each)
4 bytes - data
1 byte - #of weapon data pointers (48, likely related to the game's 48 weapons)
? bytes - 48 weapon pointer values (1 or 2 bytes each)
1 byte - data
1 byte #of weapon data pointers (48, likely related to the game's 48 weapons)
? bytes - 48 weapon pointer values (1 or 2 bytes each)
29 bytes - data (misc. scheme settings)

scheme data length = 49 bytes + 151 pointer values = 351 bytes (usually, unless it contains 1 byte pointer values)
contains 151 CTNR weapon data pointers
CTNR pointers are 1 byte (Byte1) if <= 128
2 bytes (Byte1 * 128 + Byte2) if > 128 & <= 32768?
151 weapon data CTNR per scheme

_Kilburn
5 Sep 2010, 20:36
Isn't that for XOM files? Worms Reloaded uses a human readable structure if I remember correctly, so of course it's easy to make one.

For some reason, I thought he was talking about modding the in-game scheme editor, heh, that's why I said it's impossible.

Plasma
5 Sep 2010, 21:09
The schemes in the data folders are very much editable with Notepad and are very clear-cut (each weapon is listed by name, followed by two numbers: first is weapon number (255 is infinite), second is turn delay), but changing them doesn't seem to change anything in-game. I don't know whether it's because I'm only using the demo or whether it's because of a much-more-likely situation of the files aren't actually used. Try tinkering around with it anyway.


Also, on a related matter: which file was the one that changed the pre-set schemes in Worms4 again? I'd be needing that!

_Kilburn
5 Sep 2010, 21:11
changing them doesn't seem to change anything in-game.

Oh, I remember trying to change then, back then in the beta days. Too bad.
Just had a look, and it seems that Profile_PROFILES.DAT is yet another disguised XOM file, and has containers of type "SchemeData". I'll try to look into that, see if I can break it apart.

Also, on a related matter: which file was the one that changed the pre-set schemes in Worms4 again? I'd be needing that!

Local.xml, right?

Esbern
5 Sep 2010, 21:23
Too bad i don't speak this language, cos i would love to help xD

Misterags
6 Sep 2010, 05:48
We looked into it today, and the user data text files (the ones that look easily editable) only update when you make a new profile.

The good news is that the changes that you make to the files DO work as long as you make a new profile.

The bad news is that the game knows when a file is changed and disables your network play and all worms only inflict 1 damage no matter what.

I didn't have any luck editing the profile_PROFILES.DAT file. I don't know how to decrypt it. I made some changes to it, and the game basically became corrupt.

I'm frustrated with team17 and this game (please don't mod me for polite criticism). W:A had many features that this new game doesn't have (read: pro roper). All they needed to do was take some of the "community features" that made W:A so great and make them "official". I would have been perfectly happy if they ported W:A to Win 7/Steam and updated the graphics (...if they must).

AngeloG
6 Sep 2010, 15:56
Kilburn I thought you made a scheme editor for Worms 4? I believe Worms Reloaded uses the same or a similar file structure that Worms 4 used. It's definitely not impossible to figure out.

I was (still might eventually) making an editor for Worms Reloaded (schemes, teams, tweaks, and everything else stored in that big file)... but I lost a lot of interest in it when I discovered there would be no easy way to use tweaks in online games.

Here are my rough research notes in case someone else wants to try:

[snip]

Thanks, this is going to be usefull!

FYI, I changed my amount of cash to 999999 by editing the profile file. :P

hundreds
6 Sep 2010, 17:19
It'd be nice if could have schemes shareable as importable/exportable files. Not being able to do that is kind of silly.

vartaxe
6 Sep 2010, 18:26
Thanks, this is going to be usefull!

FYI, I changed my amount of cash to 999999 by editing the profile file. :P

OMG have to try that cause i already passed the full campaign plus 5 extra mission and still need cash to buy 5 hats @ 20 bucks everyone that is 100. the extra mission i passed none of them gave me any money i think thats the problem...

Etho.
6 Sep 2010, 18:34
Ideally, if someone was to make an editor... they should make it support saving, loading, mounting, & unmounting of individual schemes. This would probably mean designing a new single scheme file structure that can be easily shared with others.

Mounting would mean adding the single scheme file to your Profile_PROFILES.DAT. Unmounting would mean removing a single scheme from your Profile_PROFILES.DAT file (with the option to save it as a single scheme file).

Also, another good idea would be to make an automatic launcher for Worms Reloaded. Make it so that players will have a "Schemes" folder that they can easily add and remove the single scheme files from. Then when the automatic launcher is run, it will mount all the schemes in the folder to the player's Profile_PROFILES.DAT file, and then launch Worms Reloaded. (similar concept to WormKit)

hundreds
6 Sep 2010, 18:52
Ideally, if someone was to make an editor... they should make it support saving, loading, mounting, & unmounting of individual schemes. This would probably mean designing a new single scheme file structure that can be easily shared with others.

Mounting would mean adding the single scheme file to your Profile_PROFILES.DAT. Unmounting would mean removing a single scheme from your Profile_PROFILES.DAT file (with the option to save it as a single scheme file).

Also, another good idea would be to make an automatic launcher for Worms Reloaded. Make it so that players will have a "Schemes" folder that they can easily add and remove the single scheme files from. Then when the automatic launcher is run, it will mount all the schemes in the folder to the player's Profile_PROFILES.DAT file, and then launch Worms Reloaded. (similar concept to WormKit)

100% agree. Or Team17 could just do it.

bonz
6 Sep 2010, 22:47
OMG have to try that cause i already passed the full campaign plus 5 extra mission and still need cash to buy 5 hats @ 20 bucks everyone that is 100. the extra mission i passed none of them gave me any money i think thats the problem...
Have you done the 3 training missions?
With those and the 30 regular campaign missions, you get exactly the amount of "money" to buy everything.

vartaxe
8 Sep 2010, 20:35
oh thanks i had not