Reproduce Event Crash

mylafter

I’m a creep... I’m a weirdo...
Veteran
Joined
Dec 30, 2012
Messages
196
Reaction score
176
First Language
English
Primarily Uses
N/A
I'm using Eshra's Reproduce Event script found here.
My problem is, when I use the script call in an event that is set to parallel process, the game crashes when I play it.
The script call I use is: "EventSpawn.spawn_event(2,1,1, 1, false,2)"
When the game crashes, it says this:
Another note: When I play the event in parallel process, I end it with a self switch so that I doesn't play over and over again.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I think the error means you can't do it inside a parallel process event..

Basing from it (the error message), it seems like you're trying to add a new event which means adding a new entry to the Event hash but parallel process events are ran while iterating that hash so you cannot run actions that will modify that hash inside the parallel event..
 

mylafter

I’m a creep... I’m a weirdo...
Veteran
Joined
Dec 30, 2012
Messages
196
Reaction score
176
First Language
English
Primarily Uses
N/A
I think the error means you can't do it inside a parallel process event..

Basing from it (the error message), it seems like you're trying to add a new event which means adding a new entry to the Event hash but parallel process events are ran while iterating that hash so you cannot run actions that will modify that hash inside the parallel event..
Ahh i see. Thanks for the info. Well, I wanna use Yanfly’s Event Spawn script instead but I have a few questions.
Maybe I’m using the script wrong but I noticed Yanfly’s Event Spawn script replaces the last event created in the map with the new event that is spawning.
So for example, event ID20 would be created but if an event spawns into that map, the new event will replace event ID20. I was wondering if there were a way so that spawned events DON’T replace anything.

Also again, maybe I’m using the script wrong, but i noticed you can only have one spawned event in a map only at once. There’s no way to have more than one event spawn. I’m sure I used the script call correctly, so I’m not sure if I’m doing anything wrong.

You can find the script here: https://github.com/Archeia/YEARepo/blob/master/Utility/Spawn_Event.rb
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Replace this line:
Code:
key_id = @events.keys.max || -1 + 1
With this one:
Code:
key_id = (@events.keys.max || 0) + 1
In Yanfly's script.

You didn't do anything wrong, the script itself is bugged, both of your issues came from that line I mentioned above.
 

mylafter

I’m a creep... I’m a weirdo...
Veteran
Joined
Dec 30, 2012
Messages
196
Reaction score
176
First Language
English
Primarily Uses
N/A
Replace this line:
Code:
key_id = @events.keys.max || -1 + 1
With this one:
Code:
key_id = (@events.keys.max || 0) + 1
In Yanfly's script.

You didn't do anything wrong, the script itself is bugged, both of your issues came from that line I mentioned above.
Thank you so much! I figured that was the problem but I wasn't 100% sure. Thanks again!
 

AgentN107

Bringer of laughter
Member
Joined
Aug 21, 2018
Messages
24
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Replace this line:
Code:
key_id = @events.keys.max || -1 + 1
With this one:
Code:
key_id = (@events.keys.max || 0) + 1
In Yanfly's script.

You didn't do anything wrong, the script itself is bugged, both of your issues came from that line I mentioned above.
Hello, I know this thread is technically done but I am using Eshra and not planning to switch to a different one. You mention that both issues came from the same line did you mean the same line in Yanflys or in both scripts. I did find a similar code in Eshra's but no clue if it's what am looking for to fix the parallel process.
 

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

Latest Threads

Latest Posts

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,090
Members
137,586
Latest member
Usagiis
Top