Phantom Bugs and how to find running autorun events

mentaldrama

Warper
Member
Joined
Apr 4, 2015
Messages
4
Reaction score
0
First Language
German
Primarily Uses
Hi everybody.

I've been working on my project for quite some time now and it has reached a considerable size.

Lately I've noticed the occurence of what I call "Phantom Bugs".

Bugs which just start to appear out of nowhere,  mostly event pages which were set to action button are suddendely set on autorun or suddenly a movement command appears that I did not insert, sometimes refering to an event that doesn't exist, causing a freeze.

Has anybody else experiences this and maybe has a solution?

Another question I have related to this problem is:

Is there an easier way to find running autorun (maybe in the console) events aside from just clicking through every event and check the event pages (which can be really tedious if you have 120+ events on a map).

Thanks in advance. ^^
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Well, if the event DOES something, it should be pretty easy to find.

Otherwise, add this to a new script slot (and get rid of it again when you're done):

class Game_Event < Game_Character def check_event_trigger_auto if @trigger == 3 p 'starting map autorun event ' + @event.id.to_s + ' at ' + @event.x.to_s + ',' + @event.y.to_s start end endendclass Game_Map def setup_autorun_common_event event = $data_common_events.find do |event| event && event.autorun? && $game_switches[event.switch_id] end @interpreter.setup(event.list) if event p 'starting autorun common event ' + event.id if event event endendThat should tell you, in the console, whenever an autorun event starts.As far as your problems ...

Have you purchased the engine, or are you using a hacked version?

Is it possible you have several versions of your game and are looking at the wrong one?

Do you have any scripts that modify the files in the Data folder?

Do you have any scripts that use switches or variables and you've also used those switches or variables for another purpose?

Do you share your computer, or do you have your project on Dropbox or similar, where someone else might have access? Is it possible someone else has changed it?

Do you keep backups?
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Along with what Shaz said, I made a console script a while ago that has a command that checks for currently running parallel process and autorun events. You can get it here: https://adrarian.wordpress.com/2014/03/11/developer-console/

If I remember correctly, the is a password enabled in the script by default, so just find the password setting and disable it, and then it should be the 'check' command. It's been a while, so I don't remember exactly what to do :p

EDIT: You also need this script: https://adrarian.wordpress.com/2014/03/11/window_textbox/
 
Last edited by a moderator:

mentaldrama

Warper
Member
Joined
Apr 4, 2015
Messages
4
Reaction score
0
First Language
German
Primarily Uses
Well, if the event DOES something, it should be pretty easy to find.

Otherwise, add this to a new script slot (and get rid of it again when you're done):

class Game_Event < Game_Character def check_event_trigger_auto if @trigger == 3 p 'starting map autorun event ' + @event.id.to_s + ' at ' + @event.x.to_s + ',' + @event.y.to_s start end endendclass Game_Map def setup_autorun_common_event event = $data_common_events.find do |event| event && event.autorun? && $game_switches[event.switch_id] end @interpreter.setup(event.list) if event p 'starting autorun common event ' + event.id if event event endendThat should tell you, in the console, whenever an autorun event starts.As far as your problems ...

Have you purchased the engine, or are you using a hacked version?

Is it possible you have several versions of your game and are looking at the wrong one?

Do you have any scripts that modify the files in the Data folder?

Do you have any scripts that use switches or variables and you've also used those switches or variables for another purpose?

Do you share your computer, or do you have your project on Dropbox or similar, where someone else might have access? Is it possible someone else has changed it?

Do you keep backups?
Thanks for the fast reply.

That script worked like a charm to find the stray events. ^^

Unfortunately the changed events are usually events that do nothing. Maybe a pattern would be that it's often event pages after an autorun page that I stopped with a self switch.

I'm using a steam version which I purchased and a "offline version" so to speak because I do not want to be dependent on steam or my ****ty internet connection to work.

My scripts should not be responsible, none changes the data folder, non uses switches or variables which are used anywhere else and they do not appear in the mentioned phantom bug events.

Nobody but me hass access to the project files, they are not stored online anywhere and I make backups to 3 separate HDs at least once a week

Along with what Shaz said, I made a console script a while ago that has a command that checks for currently running parallel process and autorun events. You can get it here: https://adrarian.wordpress.com/2014/03/11/developer-console/

If I remember correctly, the is a password enabled in the script by default, so just find the password setting and disable it, and then it should be the 'check' command. It's been a while, so I don't remember exactly what to do :p

EDIT: You also need this script: https://adrarian.wordpress.com/2014/03/11/window_textbox/
Thanks, I'll try them out later.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
mmm ... can't imagine what'd cause that then.


Your "offline version" - is that just Steam in offline mode, or do you actually have 2 versions of the engine?


The event pages after the autorun - did you set them to autorun yourself? I always leave them as Action Button but I've seen a few people change them to autorun or parallel process (sometimes they add an Erase Event command)
 

mentaldrama

Warper
Member
Joined
Apr 4, 2015
Messages
4
Reaction score
0
First Language
German
Primarily Uses
I have 2 versions, 1 is a cracked steam version (the offline version, just copied the steam files and ran a crack over them), 1 is purchased and registered in steam. Never had such problems until 2 or 3 moths ago which made me bleieve it could be size related (the project is about 150 MB without the graphics folder).

As I said, the pages after the autorun page are set on action button and some have magically turned into autorun pages without my doing.

I'll stick to my steam version for a while now to see if the bugs still occur.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I don't think 150MB is the issue. Ace allows projects much larger than its predecessors.


Why don't you just use the Steam version offline?
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top