YesNoOk
avatar

p2 custom state / helper loop bug *solved* (Read 917 times)

Started by Shinnox, August 12, 2010, 09:40:25 am
Share this topic:
p2 custom state / helper loop bug *solved*
New #1  August 12, 2010, 09:40:25 am
  • avatar
  • ***
having a weird bug that i cant quite figure out the problem.

the moves:
(p1) noob calls out smoke, smoke throws stars, hitting the opponent....
(p2) subs ice ball.

for some reason, when i do these two specials at the same time, one gets stuck in a loop
(this ONLY happens when these two specials are done at the same time, but when the ice hits first)


PIC A:
the stars hit sub normally, and puts him into the correct state.

PIC B:
stars and ice are about to hit at the same time....

depending on distance and when exactly the players are hit, i get different state errors.

PIC C:
instead of going into noobs state 933, its saying that sub is in his own iceballs state. wtf?
it will also say hes in the "smoke poof" (when smoke vanishes) state...(as seen in PIC: D)

its saying p2 is in the correct state, 933, but gets stuck in a loop with anim 5000


i have no clue whats causing it. how can noobs star, thats putting sub in noobs state 933
be causing sub to go into his own helpers states?? or in noobs??








Last Edit: August 12, 2010, 07:01:49 pm by Shinnox
Re: p2 custom state / helper loop bug
#2  August 12, 2010, 10:01:46 am
  • avatar
  • ***
This looks like it's being caused because the players are being told to go to their own states instead of their opponents when being hit by the moves.

First, try adding this to the hitdefs that have "p2stateno" in them:

p2getp1state = 1

Also, add nothitbys to all the helper's states, just to be safe.

Neither may work so let me know if they don't.

didnt work :/


i dont think thats the case, bc if that were true, it would do it every time the move is done. its only doing it when these two moves are done at the same time.

its happening when sub is in the ice ball state (and noob is frozen) and gets hit by the 3rd ninja star thats putting him into p1s custom state.
Last Edit: August 12, 2010, 10:04:56 am by Shinnox
Re: p2 custom state / helper loop bug
#3  August 12, 2010, 10:13:29 am
  • *****
  • Most Dangerous Mugen
    • USA
    • caddie.smeenet.org
I realized that it wasn't going to help and removed my post before your reply. :-X

The players are being put into the helper's custom states, which should still be the same as the player's states. Makes no sense to me. Think it has something to do with the fact that you're using projectiles created from the helper, but I don't use the projectile state controller at all so I don't know how to help. Sorry.
Last Edit: August 12, 2010, 10:17:22 am by Caddie
Re: p2 custom state / helper loop bug
#4  August 12, 2010, 10:18:02 am
  • avatar
  • ***
actually, noob has that move by himself. (the 3 stars) and it happens regardless if the projectiles come from him, or the helper, i get the same result...:(  just dont get it.

heres a vid i did. the first time it shows what its supposed to do. then the rest is during both at the same time...

http://www.youtube.com/watch?v=RbmFbusU26w

Re: p2 custom state / helper loop bug
#5  August 12, 2010, 10:40:05 am
  • *****
  • Most Dangerous Mugen
    • USA
    • caddie.smeenet.org
Guessing it's a bug caused by Subzero being put into Noob's state while Noob is in Subzero's states. Try putting that state 933 into Subzero and see if it works right. Doing that will see if you're being put into the helper's states(and for some reason 933 isn't there), or if you're being put into Subzero's states.

It's a terrible patch fix for now but it might work if you're making a full game, if it works properly. Mainly it's just to try and fully understand what's happening.
Re: p2 custom state / helper loop bug
#6  August 12, 2010, 04:07:35 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Assuming that Smoke's custom state was/will work properly, its referencing p2's var(54) which may or may not be used by p2. Since theres no guarantee, I suggest rewriting those pieces of code to not use variables.

EDIT: Disregard what I said. I didnt notice the name triggers that accompany them
Re: p2 custom state / helper loop bug
New #7  August 12, 2010, 06:44:33 pm
  • avatar
  • ***
Assuming that Smoke's custom state was/will work properly, its referencing p2's var(54) which may or may not be used by p2. Since theres no guarantee, I suggest rewriting those pieces of code to not use variables.

EDIT: Disregard what I said. I didnt notice the name triggers that accompany them

the var 54 is the character style change var.




Guessing it's a bug caused by Subzero being put into Noob's state while Noob is in Subzero's states. Try putting that state 933 into Subzero and see if it works right. Doing that will see if you're being put into the helper's states(and for some reason 933 isn't there), or if you're being put into Subzero's states.

It's a terrible patch fix for now but it might work if you're making a full game, if it works properly. Mainly it's just to try and fully understand what's happening.

all the chars have the state. thats what is really puzzling about it.



perhaps this is just a winmugen bug in its self?

gonna mess with it some more. and if i cant get it, the only other thing i know to do is make noob un-hittable during that move...or make him turn invisible or something. :wall:

ive already blocked the states out in the cmd file for the ai, so that the ai cant do the star move if sub is in the freeze state, im trying that with the actual commands, but its not working. might have to decrease the time it takes to do the move so noob goes away quicker.



*edit*

so for sub, i copied state 933, making the new one 934.
then set up a changestate that triggers when a variable is active.

[state -3 ]
type = varset
trigger1 = stateno = 933
trigger1 = p2stateno = 4003
var(40) = 1


[state -3 ]
selfstate
trigger1 = var(40) = 1
value = 934
ctrl = 1

then in noobs state, i added the same thing but dif triggers


[state ]
type = selfstate
trigger1 = var(40) = 1
trigger1 = name = "sub-zero by gary fisher"
value = 934
ctrl = 1





worked! :D
Last Edit: August 12, 2010, 07:00:09 pm by Shinnox