Forums
April 25, 2024, 08:14 PM

Author Topic: Worms 2 Weapons Config. (and eventually scheme) Editor  (Read 5597 times)

0 Members and 1 Guest are viewing this topic.

Offline olavnordmann

Worms 2 Weapons Config. (and eventually scheme) Editor
« 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!

Offline StepS

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #1 on: December 02, 2013, 11:28 AM »
Nice! What's the official name for your editor, I could add it to the 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 :)
Dec 30 2013 23:59:44 <StepS> windowed mode isn't the only thing you need about frontend
Dec 30 2013 23:59:49 <StepS> you need it to be actually bigger
Dec 31 2013 00:00:13 <StepS> it actually is very small on my 15-inch full HD screen
Dec 31 2013 00:00:25 <StepS> while running at 640x480 or stretched mode makes it fuzzy
Dec 31 2013 00:00:44 <StepS> this problem has been around since the Worms Armageddon's release and no one has even tried to beat it
[...]

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #2 on: December 02, 2013, 01:12 PM »
Nice! What's the official name for your editor, I could add it to the 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.

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #3 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());

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #4 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.
« Last Edit: December 03, 2013, 03:09 PM by olavnordmann »

Offline StepS

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #5 on: December 03, 2013, 04:47 PM »
If you need high-res weapon icons: http://worms2d.info/Category:Weapon_icons
Dec 30 2013 23:59:44 <StepS> windowed mode isn't the only thing you need about frontend
Dec 30 2013 23:59:49 <StepS> you need it to be actually bigger
Dec 31 2013 00:00:13 <StepS> it actually is very small on my 15-inch full HD screen
Dec 31 2013 00:00:25 <StepS> while running at 640x480 or stretched mode makes it fuzzy
Dec 31 2013 00:00:44 <StepS> this problem has been around since the Worms Armageddon's release and no one has even tried to beat it
[...]

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #6 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).

Offline Casso

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #7 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.

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #8 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.

Offline Muzer

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #9 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.

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #10 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.
« Last Edit: December 05, 2013, 07:34 PM by olavnordmann »

Offline DeimosVdPlas

  • New Member
  • *

  • Chile Chile
  • Posts: 14
  • Wasa wasa!
    • View Profile
Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #11 on: December 07, 2013, 07:57 PM »
I usually play Worms 2, so, thank you! but I can't make this program work  ???

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #12 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.

Offline DeimosVdPlas

  • New Member
  • *

  • Chile Chile
  • Posts: 14
  • Wasa wasa!
    • View Profile
Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #13 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!

Offline olavnordmann

Re: Worms 2 Weapons Config. (and eventually scheme) Editor
« Reply #14 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.