The Ultimate Site of Worms Armageddon

Other Things => Other worms games => Topic started by: olavnordmann on December 02, 2013, 03:44 AM

Title: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 02, 2013, 03:44 AM
I know Worms 2 has long since been put to rest, but despite it's limitations; it was from my knowledge one of the most configurable Worms games to date. Due to this, I have decided to bring it back for a moment to experiment a bit.

The only problem is that most external weapons or scheme editors with support for Worms 2 looks like they were thrown together in no time and with little thought on usability. Thus I decided to write my own editor, which I have attached here. It's written in Java, so you'll need to be able to run .jar files.

What this thing can do: Edit weapon config files for Worms 2.
What can be improved: Better icon graphics, better description text, better representations of some options (not have all fields as numerical inputs), ammo and delay displayed on overview, default values that actually make sense (instead of clear all to zero), support for Worms 2 scheme files, support for Worms Armageddon scheme files...

Any comments will be appreciated, thanks!
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: StepS on December 02, 2013, 11:28 AM
Nice! What's the official name for your editor, I could add it to the software (http://worms2d.info/Software) page. Keep it up!
Btw do you know if it's possible there to detect system DPI scaling? To make the texts bigger with the DPI-scaled Windows. Thankfully nothing is wrecked here :)
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 02, 2013, 01:12 PM
Nice! What's the official name for your editor, I could add it to the software (http://worms2d.info/Software) page. Keep it up!
Btw do you know if it's possible there to detect system DPI scaling? To make the texts bigger with the DPI-scaled Windows. Thankfully nothing is wrecked here :)
I was thinking about having the sizes of everything depend on the window size. Ill look into it.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: zippeurfou on December 02, 2013, 03:18 PM
Good job, minor thing but that's always important I believe is changing the jframe icon:
Quote
ImageIcon img = new ImageIcon(pathToFileOnDisk);
mYFrame.setIconImage(img.getImage());
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 03, 2013, 03:28 AM
Managed to get most things to scale, and as such I decided to use twice the resolution for the parameter icons.

I will look into icon and ammo/delay on the overview tomorrow. It's 4AM over here right now (swing and scaling is no good combination).

-----

Done and done. I'll spend some time reading for upcoming exams, but I'll start working on the options-scheme-editor part later this month.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: StepS on December 03, 2013, 04:47 PM
If you need high-res weapon icons: http://worms2d.info/Category:Weapon_icons
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: zippeurfou on December 03, 2013, 05:12 PM
quick easy fix i'll do for the design is changing the basic gwt button on top left (menu,...) to more worms like button (e.g. background black and color red).
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: Casso on December 03, 2013, 05:39 PM
Well done man, Keep it up !

I'm studying Java too this year and it's really interesting.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 03, 2013, 11:22 PM
quick easy fix i'll do for the design is changing the basic gwt button on top left (menu,...) to more worms like button (e.g. background black and color red).
The idea was to have icons on them, but I decided regular buttons were good enough. Black buttons may also be slightly problematic since I'd like the weapon selection gird to stand out, and black buttons forces me to make changes that reduce its contrast compared to the rest of the GUI.

What I am more concerned about is how the game responds to unexpected values. The description of the file format is quite crude, and doesn't mention anything how things work in the game. I'm thinking of things like Crate Probability and more or less any option that just states it's unit as percentage. Or rather, if I could figure out what mechanics changed between Worms 2 and Worms Armageddon, then I can use some of the information already present in the Knowledge Base.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: Muzer on December 03, 2013, 11:54 PM
quick easy fix i'll do for the design is changing the basic gwt button on top left (menu,...) to more worms like button (e.g. background black and color red).
The idea was to have icons on them, but I decided regular buttons were good enough. Black buttons may also be slightly problematic since I'd like the weapon selection gird to stand out, and black buttons forces me to make changes that reduce its contrast compared to the rest of the GUI.

What I am more concerned about is how the game responds to unexpected values. The description of the file format is quite crude, and doesn't mention anything how things work in the game. I'm thinking of things like Crate Probability and more or less any option that just states it's unit as percentage. Or rather, if I could figure out what mechanics changed between Worms 2 and Worms Armageddon, then I can use some of the information already present in the Knowledge Base.

I mostly wrote the wiki pages on the W2 options and weapons formats (as well as a few others). I didn't spend time working out how each one works, though I expect it responds in a similar way to WA when IT is given unexpected values. If you find out through experimentation or other means, feel free to add it to the wiki.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 05, 2013, 12:41 AM
I have issues getting the game running on my laptop, so I'll look into getting a VirtualBox with Windows 95 up and running over the holidays.

Reinstalled using the primary CD ROM drive, and V1.01 (unpatched) Frontend.exe works. Here are some results:

Many of the values are limited to a byte, so things like damage and such are all modulus 256. Values with special meaning for value 10 seems to be limited to max 127, with values 128-255 equalent to value 10. Boolean values are as mentioned on the wiki; 0=false, 1-255 = true.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: DeimosVdPlas on December 07, 2013, 07:57 PM
I usually play Worms 2, so, thank you! but I can't make this program work  ???
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 07, 2013, 08:09 PM
I usually play Worms 2, so, thank you! but I can't make this program work  ???
You need Java to run it.

I have a more recent version of the program, though, with input values limited to the max game-engine values. I'll in some time make an options editor function too, and then I plan on releasing it here.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: DeimosVdPlas on December 07, 2013, 08:19 PM
Yeah, I just realize minutes after posting, stupid me  :-X

Anyways I tested it and I think it's pretty cool! putting more super secret weapons should be cool, also, an idea, for Nuclear Bomb it should be how much pixels it will consume, in comparison with the indian test from WA, the nuclear bomb it's pretty silly, it needs to 'drown' more terrain IMO.

Anyways, keep that good work!
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 07, 2013, 08:54 PM
Yeah, I just realize minutes after posting, stupid me  :-X

Anyways I tested it and I think it's pretty cool! putting more super secret weapons should be cool, also, an idea, for Nuclear Bomb it should be how much pixels it will consume, in comparison with the indian test from WA, the nuclear bomb it's pretty silly, it needs to 'drown' more terrain IMO.

Anyways, keep that good work!
The program can only configure the weapon files, which unfortunately don't store information on the super secret weapons.
Title: Re: Worms 2 Weapons Config. (and eventually scheme) Editor
Post by: olavnordmann on December 20, 2013, 08:11 PM
I have decided on a working-name for the project; "Worms 2 SuperConfig"

Also visual indicators, because of awesomeness. They have two levels of maximum, the maximum allowed through the Worms 2 UI and the maximum allowed within the game engine itself.