Bizarre Bug reseting autorun event on button push?

Status
Not open for further replies.

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
I might need to upload a video to show exactly what is going on here.. but..  [video POSTED BELOW]

In the middle of my combat tutorial the player is supposed to press 'S' to shield, however, during the time allowed to press 'S,' if the player accidentally pressed 'D' (input :Z), then entire autorun event will reset immediately and start from the beginning again (let me know if you would like a video). I have no scripts that would reset an autorun event, I've never heard of this happening. Any thoughts?

Edit:

Screenshots:









 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
we don't need a video to solve this, but we need screenshots of the event page.


Most probably you placed a conditional branch at the wrong level, resulting the command to skip to the end of the event, and then automatically looping to the beginning.


Since looping is default for all autoruns, there is no bug in the engine but a bug in your event code - that's why we need to see your code to find the position where you made a mistake in the event.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Posted, Andar.

My feeling is that I have never seen this before and I don't know why this autorun event is any different from any of the others? What's so special about pressing 'D' all the sudden that causes the event to reset?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Have you imported or created any scripts in your game? (I mean Ruby scripts)

A battle script for instance, there might be a code part that says than "if the user will press D, do unpleasant thing to Dymdez's game". :p   

In order to solve this, it might be helpful if you give us info about such scripts. :)
 
Last edited by a moderator:

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
The only battle script I have is falcao's Pearl ABS, but this has never happened before.

Is it positively a script issue and not an event/general bug?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
The only battle script I have is falcao's Pearl ABS, but this has never happened before.

Is it positively a script issue and not an event/general bug?
Well let's wait to see what Andar and the other experts have to say on this.

I am not sure what is causing this and mostly I hate misleading someone.

It is interesting though.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Ill post a video soon. Heading home now.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
From those event commands, I'm assuming that the "use_weapon"-script checks the buttons? Because nothing else seems to be able to do that. So I would like to see what that function does to check it.


Then another question: does the problem happen in the first loop, in the second or in both?


And where exactly does it restart in the case?


I would suggest you place additional show text commands into the event to check exactly which parts are processed and which are not. Especially because you have identical text reminders in both loops.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Sorry, had to stop for a doc appointment - video soon (it looks so bizarre a video is in order)

Andar the bug happens before any loop. When I press 'D' the auto event actually restarts. That is to say, no matter what positions the actor or any events are in, they act as if the event was starting the second I press 'D,' which causes the actor to walk into the wall and freeze the game (skip isn't checked off). When I get home ill post a video and try to recreate the problem in another project. I was just curious if anyone has run into something so absurd. One reason I ruled out a script issue is because how in the world would this function be inadvertently created by a script? I know all of my scripts quite well. (Haha watch me eat my words?)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
If that happens even before the loop, then a script has changed the engine input behavior - in this case you have to check your scripts, not your events, until you found the critical one.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Video: at :29 I press 'D' and at :31 I press "Ctrl"  (hahah dont judge what you see, its all place holder/filler currently)

You'll notice the second I press 'D' the autoevent literally restarts.

https://www.youtube.com/watch?v=wgD_Fb8UzL0&feature=youtu.be

Checking scripts again, I will let you guys know.
 
Last edited by a moderator:

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
Amazing ninjutsu script, Dymdez!

But yeah, you really have to check your scripts. I tried the Pearl ABS just now without any problems.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Hahaha I know right? "Prince rain boldly blocks!" Uhh no he just ran away
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
It just looks like jumped to hide in the shadows behind the walls, just like the Japanese ninjas. All you need is some smoke and leaves to complete the vanishing act.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
It's my Triple Triad script. It uses 'D' as the input to initiate a game of triple triad and for some reason it causes autoevents to restart. I don't expect anyone here to know the solution. You can close the threads, mods, I know who I'll ask.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
It's my Triple Triad script. It uses 'D' as the input to initiate a game of triple triad and for some reason it causes autoevents to restart. I don't expect anyone here to know the solution. You can close the threads, mods, I know who I'll ask.
May I please ask you to do something for me (and the rest of us probably)? :)

Please do not close the thread.  :D

If you know who you have to ask, ask the person, get the solution and please share it with us.  ;)

Then we can close the thread making it more useful, including a solution to the problem, right? 

It's up to you, but you know... I am curios to know about this problem now...  :p
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
I will get to this after I get home from my job.


I think I will just put in a comment check on the event, and if that event got that comment, the Triple Triad won't try to start when you press that button.


I will try at least. :)


Although, this should not happen in the first place.


Triple Triad should only initiate pages marked with the switch setup in that script.
 
Last edited by a moderator:

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
May I please ask you to do something for me (and the rest of us probably)? :)

Please do not close the thread.  :D

If you know who you have to ask, ask the person, get the solution and please share it with us.  ;)

Then we can close the thread making it more useful, including a solution to the problem, right? 

It's up to you, but you know... I am curios to know about this problem now...  :p
Yes, of course, I guess I am just embarrassed because I was nearly positive that this script would not have this effect (I'm sure Sixth would agree) so I ruled it out to begin with. The script doesn't seem to have any interaction whatsoever with a problem like this (of course, we know this is wrong now).

And as you can guess, Sixth was the person I was talking about, I'm not sure if anyone has a more comprehensive understanding of the script :)

I am curious too!
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Just to check, when you press the 'D' button, the player is in contact with the guard, facing towards him, and that guard is the autorun event itself?

I can't watch the video, unfortunately.

Or the autorun event is a whole separate event?

I need to recreate the bug before I could solve it. Already got a simple idea how it could be fixed, but I need to test it first.

And how is it even possible to initiate a button press while an autorun is going? Is that the 'use_weapon(x)' script call or you did that with something else?

Anyway, here is the little (hopefully) fix I made:

#=======================================================# Triple Triad Script - Activation by click# Author: Raizen# Comunity: www.centrorpg.com# #=======================================================# This script lets a key activate a switch and at the same time active# the Confirmation button command, basically, you add a new page of the# event with the switch here, and when you press the configured button, # it will consider that page.module Config_Triple_Triad# Mapped as the events keys# :X is A on keyboard for exampleKey_Activate = :X# Switch activated on clickSwitch = 5# Enable/disable the activation of duel challenge button with this switch in # the game. If the switch is ON, the duel requests will be disabled, if it # is OFF, the duel requests will be enabled by the above button press.# This does not affect force evented duels, only the ones you set up with a new# event page with the above switch as a condition to start the page.Disable_Switch = 13end#==============================================================================# ** Game_Player - !!UPDATED!!#------------------------------------------------------------------------------# Esta classe gerencia o jogador. # A instância desta classe é referenciada por $game_player.#==============================================================================class Game_Player < Game_Characteralias lune_triple_update_non update_nonmoving #-------------------------------------------------------------------------- # * Processamento se não está se movendo - !!UPDATED!! # last_moving : flag de movimento #-------------------------------------------------------------------------- def update_nonmoving(*args, &block) lune_triple_update_non(*args, &block) $game_switches[Config_Triple_Triad::Switch] = false if movable? && Input.trigger?(Config_Triple_Triad::Key_Activate) return if get_on_off_vehicle return if $game_switches[Config_Triple_Triad::Disable_Switch] == true $game_switches[Config_Triple_Triad::Switch] = true return if check_action_event end endend
Replace the activation script with this one.

Just simply designate a switch for turning off the duel request activation trigger, and turn it ON when these autorun events are running (or even at other evented scenarios), and turn it OFF when the autorun events are finished.

This works for me, but I doubt that I managed to replicate the exact issue at hand with the event, so report to me when you tried this out.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top