Page 1 of 1

This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 6:05 am
by Aqua Kitty
...and being my WAD I'd like to know why. Here's a link to the WAD thus far if anyone wants to take a look at it.

http://www.filedropper.com/doommaku

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 7:09 am
by darkstar64
Well for starters, try telling us what is you're trying to do in your WAD. I started it in Zandronum and it ran fine, and then I figured out it was weapon mod. You didn't really give us enough information to work with. Do you get an error report? Does it happen mid-gameplay or only when you try to start it? Is it a DECORATE problem?

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 10:59 am
by Sonicteam Power
Tested, Did Crash...

The WAD did crash when i was in Underhalls (MAP02), using a Supershot Gun and exploding the Barrels (after picking up the card, etc,etc) with
Zandronum

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 11:02 am
by Aqua Kitty
It happens mid-gameplay and it's likely a DECORATE problem I don't know what. At the moment it's pretty much just a weapon mod but I'm planing on modding the monsters. It freezes mid-gameplay particularly when you change maps, and I have to force close.

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 11:53 am
by Torr Samaho
Aqua Kitty wrote: It freezes mid-gameplay particularly when you change maps, and I have to force close.
Freezing sounds like an infinite loop with zero duration in your DECORATE code.

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 12:01 pm
by Aqua Kitty
Torr Samaho wrote:
Aqua Kitty wrote: It freezes mid-gameplay particularly when you change maps, and I have to force close.
Freezing sounds like an infinite loop with zero duration in your DECORATE code.
Thanks. I noticed the firing states had a Refire with duration 0 so I changed those to 1 and it works fine.

EDIT: It is most definitely the select and deselect frames on all weapons. Is there a better way to make instant weapon switches?

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 4:59 pm
by Ænima
Aqua Kitty wrote: EDIT: It is most definitely the select and deselect frames on all weapons. Is there a better way to make instant weapon switches?
Put this in an ACS script that the player calls:

Code: Select all

SetPlayerProperty(0, On, PROP_INSTANTWEAPONSWITCH);

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 6:15 pm
by Cruduxy
If your going with decorate only spam A_raise with 0 tics and finish with a single line with a raise state with 1 tic as duration..
I haven't tested it tbh but I know from the wiki it'll raise faster by doing multiple instances of a_raise at once.

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 9:31 pm
by Aqua Kitty
Ænima wrote:
Aqua Kitty wrote: EDIT: It is most definitely the select and deselect frames on all weapons. Is there a better way to make instant weapon switches?
Put this in an ACS script that the player calls:

Code: Select all

SetPlayerProperty(0, On, PROP_INSTANTWEAPONSWITCH);
Thank you sir, giving the raise frames positive values stopped the WAD from freezing with that infinite loop crash.

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Wed Jan 02, 2013 9:32 pm
by Ænima
You're welcome. Lemme know if you have any other issues. c:

RE: This WAD randomly crashes Zandronum AND Zdoom

Posted: Thu Jan 03, 2013 5:13 am
by Aqua Kitty
Well no need for this thread anymore, the script worked perfectly and I can easily edit the DECORATE for my monsters now.