Trying to find out what caused "an invalid event was specified" crash.

Status
Not open for further replies.

AusterFan420

Villager
Member
Joined
Oct 18, 2021
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RM2k3
I'm making a mod for a game. It's standard RPG Maker 2003 fare, so it's not too complex in terms of its code as far as I can tell. I'm making a scene for the game, the cutscene goes pretty well until a choice pops up that does 3 things: Adds to a variable by +1, sets another variable to 22, and then calls a map event that calls the second variable's "Event ID" and another variable's page (the page is nearly identical to the problem page and has the same problem, but with different variables, so just I'm just ignoring it for now). I suspect that the crash is linked to the "Event ID" thing, mostly because I don't know what it means.
Thank you in advance (I'm saying this so I don't spam the thread with the word "thank you"), all help is appreciated and I'm willing to provide screenshots or further context if necessary.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,120
Reaction score
15,529
First Language
English
Primarily Uses
RMMV
Please post screenshots of your events. My guess is that the variable doesn't contain what you think it contains.
 

AkiraKotatsuhime

炬燵姫
Veteran
Joined
Jan 2, 2013
Messages
78
Reaction score
66
First Language
DE / ドイツ語
Primarily Uses
N/A
Try to catch the values before they get used as pointers by a command. Easiest way is to put a message box text inbetween showing up the variables.

Code:
EV: \v[1234] | Page: \v[5678]

At which values the crash happens might tell you where it's gonna derail into invalid numbers referencing events not present on the current map.

~炬燵あ
 

AusterFan420

Villager
Member
Joined
Oct 18, 2021
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RM2k3
Please post screenshots of your events. My guess is that the variable doesn't contain what you think it contains.
1634558085260.png
1634558214838.png
It gets to the tab in the first screenshot or other identical tabs just fine until I press the "Yes" or "No" option, which is supposed to set off the event from the second screenshot, but it causes the crash. (Like I said: This is a mod of a pre-existing game, so I don't fully understand the purpose of the whole "1~9 Confirm Time" variable, which is what I assume the problem has something to do with)
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,293
Reaction score
8,743
First Language
German
Primarily Uses
RMMV
The error message basically tells you that you tried to call an event that does not exist.
Events are identified by their event ID, which is basically their number in the event list.

You tried to call an event indirectly by the number stored in the variable, and the engine tells you that there is no event with that number - which basically means that you stored the wrong number in the variable before trying to call the event.
 

AusterFan420

Villager
Member
Joined
Oct 18, 2021
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RM2k3
The error message basically tells you that you tried to call an event that does not exist.
Events are identified by their event ID, which is basically their number in the event list.

You tried to call an event indirectly by the number stored in the variable, and the engine tells you that there is no event with that number - which basically means that you stored the wrong number in the variable before trying to call the event.
Thanks for the clarification. How would I go about finding the correct event ID? Sorry for any annoyances on my part.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,293
Reaction score
8,743
First Language
German
Primarily Uses
RMMV
all IDs are listed in the database - that is how the database works after all. Beginning with ID 1 at the top.

However I don't have 2K3 installed so I can't give a better explanation or screenshot.
 

AusterFan420

Villager
Member
Joined
Oct 18, 2021
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RM2k3
all IDs are listed in the database - that is how the database works after all. Beginning with ID 1 at the top.

However I don't have 2K3 installed so I can't give a better explanation or screenshot.
Thank you so much! It worked. (And just for future reference for anyone reading this thread after it has been closed: The solution was to open the event and look at the tab name next to "Event Editor," that will be your ID.)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,120
Reaction score
15,529
First Language
English
Primarily Uses
RMMV
If you are just incrementing the variable each time, then it's either exceeded the number of events you have on the map, or you deleted an event.

When you say "this is a mod of a pre-existing game", are you saying this is someone else's game? Note that provide support for people working on their own game, not modding someone else's, unless they have that person's permission.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Remember when people had the ability to have meaningful conversations on platforms like twitter or facebook? Good times... Nowadays is absolute crap.
All aboard the Advent calendar train, riding Avery's coattails as an excuse to make more sprites. ;)
Advent2021-01.gif

Get 'em in my thread in General Resources.
I had a dream where it was Friday, and what happened in the dream was irrelevant, because I woke up and it's not Friday, so I'm sad.
edit: third time's the charm? some graphic text I whipped up that I like for the mid-game intertitle, now with all of the actual letters in the stupid damn words I was trying to spell :uswt2:
kcsmall.png

Forum statistics

Threads
117,097
Messages
1,104,546
Members
153,110
Latest member
Sanerefusal
Top