YesNoOk
avatar

need help iroing out bugs in my "push start to pause" system (Read 5219 times)

Started by Memo, June 23, 2017, 12:01:53 AM
Share this topic:
Re: need help iroing out bugs in my "push start to pause" system
#21  June 28, 2017, 03:04:42 AM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
I'll try it out
Re: need help iroing out bugs in my "push start to pause" system
#22  June 28, 2017, 06:35:07 AM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
I was having issues pausing during sagats throws
P2 would gain Ctrl of the pause state,
Maybe its because of custom states but I put
Trigger1 = !AiLevel in the helper in - 2, AND in every
Script in the CNS pause states and it seems to work
Fine now for me in his grabs.
Try that on the chars you test with

ink

Re: need help iroing out bugs in my "push start to pause" system
#23  June 29, 2017, 01:18:11 AM
  • ****
  • inktrebuchet
    • USA
    • https://twitter.com/inktrebuchet
Are you able to pause when you are being thrown? I know you can pause when the opponent is being thrown.

That's what I was talking about before. I am working on a new piece of code that solves that but it only make since for a full game or people that don't mind patching their characters.
Re: need help iroing out bugs in my "push start to pause" system
#24  June 29, 2017, 01:22:46 AM
  • ******
    • www.justnopoint.com/
Make a helper that actually makes the pause? Then it could pause when you press start in any state.

ink

Re: need help iroing out bugs in my "push start to pause" system
#25  June 29, 2017, 01:43:30 AM
  • ****
  • inktrebuchet
    • USA
    • https://twitter.com/inktrebuchet
I tried that one, commands are disabled when put in a custom state. You have to selfstate to regain commands but doing that makes the selfstate in the throw no longer work.

My solution for that is to add a piece of code into each character. otherwise timing the end of a throw is impossible.
Re: need help iroing out bugs in my "push start to pause" system
#26  June 29, 2017, 01:54:02 AM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
My issue was grabbing the enemy, my hold fwd grab would make the enemy pause
And you could only unpause by hitting p2 key, once the grab was complete it would
Go back to normal

Edit*
I only experienced this vs CPU, it works fine so far in vs 2P
That trigger1 = !AiLevel I added was to prevent Ai from pausing
It fixed the problem I had too

ink

Re: need help iroing out bugs in my "push start to pause" system
#27  June 29, 2017, 03:10:38 AM
  • ****
  • inktrebuchet
    • USA
    • https://twitter.com/inktrebuchet
You are using the older code then. The new one doesn't have that problem.
Re: need help iroing out bugs in my "push start to pause" system
#28  June 29, 2017, 03:31:51 AM
  • ******
    • www.justnopoint.com/
Apply keyctrl to the helper

ink

Re: need help iroing out bugs in my "push start to pause" system
New #29  June 29, 2017, 03:57:48 PM
  • ****
  • inktrebuchet
    • USA
    • https://twitter.com/inktrebuchet
keyctrl worked great! Had to make some changes to other things for it to work. Can now pause during all custom states, one var used. (var(55) used in code below)

-2
Code:
;----------------------------------------------------------
;Pause by Inktrebuchet
[State -2, Pause Helper]
Type = Helper
Triggerall = !ailevel
Trigger1 = NumHelper(444444444) = 0
Name = "Pause"
ID = 444444444
Pos = 0, 0
PosType = P1
StateNo = 444444444
KeyCtrl = 1
supermovetime = 2147483647
pausemovetime = 2147483647

;No Button Pushing During Pause
[State -2, ctrl 0]
type = CtrlSet
value = 0
triggerall = roundstate=2
trigger1 = command = "s"
trigger1 = numhelper(444444444) = 1
trigger1 = helper(444444444), var(0)=1
trigger1 = ctrl = 1
trigger1 = var(55) := 1
ignorehitpause = 1
     
[State -2, ctrl 1]
type = CtrlSet
value = 1
trigger1 = numhelper(444444444) = 1
trigger1 = helper(444444444), var(0)=0
trigger1 = var(55) = 1
ignorehitpause = 1

[State -2, Reset]
type = null
trigger1 = numhelper(444444444) = 1
trigger1 = helper(444444444), var(0)=0
trigger1 = var(55) = 1
trigger1 = var(55) := 0
ignorehitpause = 1
;----------------------------------------------------------

CNS
Code:
;----------------------------------------------------------
;Pause by Inktrebuchet
[StateDef 444444444]
Type = S
PHYSICS = N
MOVETYPE = I
Ctrl = 0
Anim = 9741 ; blank
 
[State -2, reset]
type = varset
trigger1 = 1
v = 0
value = 1

[State 444444444, start pause]
Type = changeState
triggerall = roundstate=2
trigger1 = command = "s"
Value = 444444445
ignorehitpause =1

[State 444444445, BindToRoot]
type = BindToRoot
trigger1 =1
time = 1
facing = 1
pos =0,-2
ignorehitpause =1

[StateDef 444444445]
Type = S
PHYSICS = N
MOVETYPE = I

;pause sprite goes here

[State 444444445, No]
Type = AssertSpecial
Trigger1 = 1
Flag = nobardisplay
Flag2 = nomusic
ignorehitpause =1
 
[State 444444445, Pause]
Type = Pause
Trigger1 = 1
Time = 10
MoveTime = 10
ignorehitpause =1
 
[State 444444445, Un-Pause]
Type = DestroySelf
Trigger1 = Time >= 1 
trigger1 = command = "s"
ignorehitpause =1
;----------------------------------------------------------


Last Edit: July 03, 2017, 02:02:53 AM by ink
Re: need help iroing out bugs in my "push start to pause" system
#30  June 29, 2017, 07:08:33 PM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
I'm testing this once I get a chance later tonight, sounds awesome
got me hyped!
Re: need help iroing out bugs in my "push start to pause" system
#31  June 29, 2017, 07:55:17 PM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
Do I need to keep anything from the old system like
the custom state detectors?

Everything works great except I got some debug flood
With certain attacks if I mash buttons and continuously
Pause unpause I get a error saying theres no helper inside
Of the state I paused during, ill post exactly what it is in a bit
I'm bout to get "fresh" at the barber shop lol.
Its not game breaking or anything but it causes debug flood
A little
Re: need help iroing out bugs in my "push start to pause" system
#32  June 29, 2017, 10:12:47 PM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
this is the error I get, it happens if you pause unpause  while an
attack is happening.

edit*
IN STATE BLAH BLAH: HAS NO HELPER 444444444
Re: need help iroing out bugs in my "push start to pause" system
#33  June 29, 2017, 10:16:44 PM
  • *****
    • USA
That's a tight logo.
Re: need help iroing out bugs in my "push start to pause" system
#34  June 29, 2017, 10:19:15 PM
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com

ink

Re: need help iroing out bugs in my "push start to pause" system
#35  June 30, 2017, 12:36:17 PM
  • ****
  • inktrebuchet
    • USA
    • https://twitter.com/inktrebuchet
That is the whole code, no custom state detectors needed or anything else.