PDA

View Full Version : Plea for someone to code a Trampoline PX Library


raffie
27 Jun 2012, 17:51
For some time now I've been using the existing trampoline library (http://worms.am/downloads/apps/px/libraries/trampoline.pxl), and I've come to absolutely love/hate it! I just love what it adds to the gameplay, but unfortunately, the existing library coded by Tuomaz is so buggy, it is almost unusable... It crashes the game anytime a worm on Jetpack lands on it, or even a worm in the process of falling (rather than jumping) causes a WA freeze & crash. There are other bugs like mines/worms/anything really getting stuck @ the bottom of the trampoline and the original author has no interest in fixing the problems as the code is a mess.

If anybody, anybody, with the knowledge of coding a similar library I (and with me I'm sure a lot of fellow wormers) would literally be forever grateful. I would be more than willing to provide any & all necessary graphics!

StepS
27 Jun 2012, 20:36
I'll try to look into it. I can also do a rewrite if it's needed.
Thanks!

raffie
27 Jun 2012, 20:43
No man, thank you, for even considering it.

And as I said, if I can help in any way I can (making graphics) then I'd be very happy to!

GexGeko
27 Jun 2012, 20:52
Thanks Steps it would be much appreciated.


I'll try to look into it. I can also do a rewrite if it's needed.
Thanks!

raffie
28 Jun 2012, 17:35
Tuomatz posted over on the PX forums about the issue aswell:
http://wormspx.com/forum/viewtopic.php?f=13&p=1472&sid=3332e117c819813a41ca7e09871ff92f#p1472

StepS
29 Jun 2012, 15:16
ok, this was causing the crash (thanks to the unknown guy with the mysterious fix):
http://img845.imageshack.us/img845/2053/trampoline.png
as about other things, i'll see if they still happen, I also may add some features (like the jetpack bounce).

raffie
29 Jun 2012, 16:23
Steps, what crash should that prevent to happen? Because it still crashes here when landing a JetPack on it.

However, I've found a fix myself for the JetPack bug.
I removed (obj->ObjState == WS_JETPACK) from this line:

if ((obj->ObjState == WS_IDLE) || (obj->ObjState == WS_ROPING) || (obj->ObjState == WS_WALKING) || (obj->ObjState == WS_BLOWTORCH) || (obj->ObjState == WS_BUNGEE) || (obj->ObjState == WS_SLIDING)) return;

What happens now if you land a JetPack on it is the worm jumps in the trampoline and you lose the JetPack. Maybe you can find a way that the worm still remain on the JetPack even when landing on the trampoline?
ANd maybe the same for a falling worm?

StepS
29 Jun 2012, 16:33
Steps, what crash should that prevent to happen? Because it still crashes here when landing a JetPack on it.

its fine here, i'll post another fix, and this too, in some minutes

Edit: here you go ;) all fine, including the high speed landing, and also the jetpack now can bounce :)

still if a mine gets stuck under trampoline, it will roll - but i can easily fix that.

Update: a little fix about the rad, plus falling worm and bungee now bounce too.
Still working on the rolling mines fix

Update2: new info in new post

raffie
29 Jun 2012, 19:21
Meanwhile I redid the trampoline graphics. :)
If you can add in the code an additional frame (or even 2) before and after the current jumptramp.png, i could make an in-between graphic for that and make the animation smoother, just an idea.

StepS
29 Jun 2012, 19:26
Meanwhile I redid the trampoline graphics. :)
If you can add in the code an additional frame (or even 2) before and after the current jumptramp.png, i could make an in-between graphic for that and make the animation smoother, just an idea.

hey :) I just did a fix for the stuck rolling mines and weapons, however it currently only works for one trampoline. i'm searching for the ways to make it work on all trampolines in the game

Gabberarmy
1 Jul 2012, 09:51
Hey Raffie! Tramp is looking good =) Cant wait to see it in action xD

Big thx btw to StepS, who made good work on the Tramp !

StepS
1 Jul 2012, 23:35
Hey :) I am happy to say that I have finally fixed the crashes in trampoline and the "mines/weapons/jetpacks stuck under trampoline" bug! :D Now the Trampoline is set to play without any problems!

UPDATE: resolved the burning worms issue. :)

GexGeko
2 Jul 2012, 22:16
Looking good Steps, we tryed a few games and all looks well, however did not have the time to test completly in all cenarios but will later this week.
Thanks for all you're efforts with respect to tuomatz .

Thanks guys
;)



Hey :) I am happy to say that I have finally fixed the crashes in trampoline and the "mines/weapons/jetpacks stuck under trampoline" bug! :D Now the Trampoline is set to play without any problems! Notice: if you want to use antiglitch in your scheme, use antiglitch_revised from the archive which is compatible with trampoline and works fine! This is to prevent crashes caused by antiglitch.
Thanks again to the tuomatz (ravander), the man who created this wonderful library (along some others) for the grownups to play with.:cool:

UPDATE: resolved the burning worms issue. :)

Twicken
8 Jul 2012, 13:19
excellent work.

StepS
16 Jul 2012, 20:40
NEW UPDATE!

Enlarged the mask of the trampoline - it fits the terrain now
Fixed the "ninjarope" crashes forever. The revised antiglitch isn't required now.
Heavily improved the checks for stuck mines/weaps/worms.
Now the trampoline is launchable from rope/jetpack/bungee/jump/etc. (you may need to update your pxscheme)
Added new sprites of worms holding the trampoline by raffie.
Now the worm is on front while the trampoline is on back.
Bungee doesn't bounce anymore.

raffie
16 Jul 2012, 22:07
NEW UPDATE!

Enlarged the mask of the trampoline - it fits the terrain now
Fixed the "ninjarope" crashes forever. The revised antiglitch isn't required now.
Heavily improved the checks for stuck mines/weaps/worms.
Now the trampoline is launchable from rope/jetpack/bungee/jump/etc. (you may need to update your pxscheme)
Added new sprites of worms holding the trampoline by raffie.
Now the worm is on front while the trampoline is on back.
Bungee doesn't bounce anymore.

As I told you via msn, this update seems to have fixed the tramp and I am forever grateful :D
I'm loving the improved tramp!

GexGeko
22 Jul 2012, 02:34
Thanks!!!
Looking very good!
Cudo's to both of you.


NEW UPDATE!

Enlarged the mask of the trampoline - it fits the terrain now
Fixed the "ninjarope" crashes forever. The revised antiglitch isn't required now.
Heavily improved the checks for stuck mines/weaps/worms.
Now the trampoline is launchable from rope/jetpack/bungee/jump/etc. (you may need to update your pxscheme)
Added new sprites of worms holding the trampoline by raffie.
Now the worm is on front while the trampoline is on back.
Bungee doesn't bounce anymore.

Star&Moon
23 Jul 2012, 15:10
This looks interesting, but how does it work? How do I install it?

StepS
23 Jul 2012, 18:18
This looks interesting, but how does it work? How do I install it?

you need PX (http://px.worms2d.info) for it. The trampoline code and weapon is inside the library (pxl) which is in the archive. You need to unpack the pxl into /Libs folder of the WA directory. Then, you decide how you want the trampolines to be available - either via a weapon or pre-placed on the map. The latter requires opening the /Editors/MEd.exe, then selecting the needed map. In the "libraries" menu, check "trampoline.pxl". Then from the dropdown on your left choose it and put into the map.
If you want it to be as a weapon, open your PX Scheme, then "LIBRARIES" button, and check "trampoline.pxl". Then edit the weapon table (either replacing the existing weapon or adding a new weapon table). Choose the weapon slot, check "Use from library" on the right and select trampoline.pxl -> Trampoline. you're done (don't forget count if it isn't the first table). To switch weapon tables in game, use "+" (on the same button as "=").