MV I need help fixing these issues

Hi everyone, I'm having some issues that seem to come up a lot on two levels of my game, and I'm not quite sure what's causing them. Could you please help me?

Here are the screenshots

Spoiler: Screenshots
Sin título.png
Captura de pantalla 2026-03-19 124357.png
Ocurrio mientras usaba un item.png
two of them are basically memory allocation errors.
that can have a number of different causes:

- your computer does not have enough RAM
or
- you have installed one plugin twice in your plugin list
or
- you have two incompatible plugins clashing with each other.

The second error (of NULL) means that the engine was told to access a data object that does not exist.
that can be
- a missing configuration in one of your plugins
or
- plugins installed in the wrong order (or missing)
or a few similar things.

so to help we need
1) full screenshots of your plugin manager with the list of all plugins and their order
2) your computer specifications, especially RAM and display chip
two of them are basically memory allocation errors.
that can have a number of different causes:

- your computer does not have enough RAM
or
- you have installed one plugin twice in your plugin list
or
- you have two incompatible plugins clashing with each other.

The second error (of NULL) means that the engine was told to access a data object that does not exist.
that can be
- a missing configuration in one of your plugins
or
- plugins installed in the wrong order (or missing)
or a few similar things.

so to help we need
1) full screenshots of your plugin manager with the list of all plugins and their order
2) your computer specifications, especially RAM and display chip
Got it. Here is what you requested.
Spoiler: Plug-Ins
1775402922831-png.364057
1775403695472.png
Spoiler: Specifications
Summary

Operating System
Windows 11 Pro 64-bit

CPU
Name AMD K19
Specification AMD Ryzen 7 5700G with Radeon Graphics

RAM
31,0GB

Motherboard
Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
%1 Chipset

Graphics
LG HD (1366x768@60Hz)
512MB ATI AMD Radeon Graphics (Gigabyte)

Storage
931GB Seagate ST1000DM010-2EP102 (SATA ) 37 °C
223GB ADATA SU630 (SATA (SSD)) 47 °C

Optical Drives
ELBY CLONEDRIVE SCSI CdRom Device

Audio
Sound Blaster X-Fi Surround 5.1 Pro

Computer type: Desktop

Installation Date: 29/11/2024 08:10:30 pm

Serial Number: TY4CG-JDJH7-VJ2WF-DY4X9-HCFC6

Windows Security Center
User Account Control (UAC) Enabled
Notify level 2 - Default
Firewall Enabled
Windows Update
AutoUpdate Not configured
Windows Defender
Windows Defender Enabled
Antivirus
Antivirus Enabled
Display Name Windows Defender
Virus Signature Database Up to date
.NET Frameworks installed
v4.8 Full
v4.8 Client
v3.5 SP1
v3.0 SP2
v2.0 SP2
Internet Explorer
Version 11.1882.26100.0
PowerShell
Version 5.1.26100.1882
Java
Java Runtime Environment
Path C:\Program Files\Java\jre1.8.0_481\bin\java.exe
Version 8.0
Update 481
Build 10
Environment Variables
USERPROFILE C:\Users\User
SystemRoot C:\WINDOWS
User Variables
JD2_HOME C:\Users\User\AppData\Local\JDownloader 2
OneDrive C:\Users\User\OneDrive
OneDriveConsumer C:\Users\User\OneDrive
Path C:\Users\User\AppData\Local\Microsoft\WindowsApps
C:\Users\User\AppData\Local\spicetify
C:\Users\User\AppData\Local\Microsoft\WindowsApps
TEMP C:\Users\User\AppData\Local\Temp
TMP C:\Users\User\AppData\Local\Temp
Machine Variables
__PSLockDownPolicy 0
ComSpec C:\WINDOWS\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
NUMBER_OF_PROCESSORS 16
OS Windows_NT
Path C:\Program Files (x86)\Common Files\Oracle\Java\java8path
C:\Program Files (x86)\Common Files\Oracle\Java\javapath
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0\
C:\WINDOWS\System32\OpenSSH\
F:\Veloren\
C:\Program Files\dotnet\
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL 25
PROCESSOR_REVISION 5000
PSModulePath %ProgramFiles%\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERNAME SYSTEM
VBOX_HWVIRTEX_IGNORE_SVM_IN_USE 1
windir C:\WINDOWS
Power Profile
Active power scheme Equilibrado
Hibernation Enabled
Turn Off Monitor after: (On AC Power) Never
Turn Off Hard Disk after: (On AC Power) 20 min
Suspend after: (On AC Power) Never
Screen saver Disabled
Uptime
Current Session
Current Time 5/4/2026 12:30:51 pm
Current Uptime 1.212 sec (0 d, 00 h, 20 m, 12 s)
Last Boot Time 5/4/2026 12:10:39 pm
your yanfly plugins are in the wrong order
please check the main list on yanfly.moe for the correct order and change that.

you can add other plugins between them, but yanfly's plugins have to be in exactly the order given or they can cause a lot of strange effects and bugs.

additionally, resorting plugins will make all current savefiles incompatible.
so after resorting you'll have to start a new playtest game, you cannot load older savefiles.

please do so, and if errors happen again then provide new screenshots of them as well as screenshots of the resorted plugin manager.
There are probably several bugs and errors, but we need to search for them one after another and solve each independently.
your yanfly plugins are in the wrong order
please check the main list on yanfly.moe for the correct order and change that.

you can add other plugins between them, but yanfly's plugins have to be in exactly the order given or they can cause a lot of strange effects and bugs.

additionally, resorting plugins will make all current savefiles incompatible.
so after resorting you'll have to start a new playtest game, you cannot load older savefiles.

please do so, and if errors happen again then provide new screenshots of them as well as screenshots of the resorted plugin manager.
There are probably several bugs and errors, but we need to search for them one after another and solve each independently.
Hi again. I did what you told me to do and have been testing my game for quite a while now, and so far I haven't encountered any errors, but the game crashes suddenly without displaying anything. Here's how I arranged the plugins—I followed this video to organize them because I couldn't find instructions on the Yanfly website. I look forward to your reply, and thanks for the help:

Spoiler: Plugins Order
imagen_2026-04-06_164618688.png
imagen_2026-04-06_164637466.png
a crash without an error message is usually caused by something external to the maker - it would be an extremely rare case if it is caused by plugins.

can you give a better description on when and how the crash happens?
depending on timing it could either be a driver issue or a false positive on a protection program or a few other options.
a crash without an error message is usually caused by something external to the maker - it would be an extremely rare case if it is caused by plugins.

can you give a better description on when and how the crash happens?
depending on timing it could either be a driver issue or a false positive on a protection program or a few other options.

It usually happens when a teleportation event triggers or when I use an item. Let me explain how these events work: My game is a survival and exploration title based on the urban legend of the “backrooms,” and each level has its own set of maps with the same aesthetic. These levels also have sub-levels that are somewhat similar to a level, as they usually have their own aesthetics, events, and enemies as well. The player has the following needs:

-Health

-Stamina

-Temperature

-Hunger

-Thirst

-Sanity

-Oxygen

To advance to the next level or sub-level, the player must find the exit of each map in the current level up to a certain number:
1775581003345.png


Every time the player finds an exit, one point is added to the exit counter, and two switches are activated: “Reset Events” and “Subtract Needs.”
When Reset Events is triggered, a common event is activated that deactivates the Temporary Light and Spot Light switches. This controls the lighting system for each level, since in some levels the light usually turns off after a while, and in others there is little or no light.
The Entities switch is also activated, since there are certain items or events on some levels that disable the appearance of enemies in the game; to prevent it from remaining off, this event activates it if there are no other events or items to deactivate it. Then, wait 10 frames before the Reset Events switch turns off:
1775581609810.png

And the event that reduces needs causes players to lose health, hunger, thirst, and sanity. If the hunger or thirst value reaches 10 or higher, a message appears warning the player that their needs are very low, since once they reach 0, the player loses health every time they find an exit and the teleportation event is triggered. Here is the event:
1775581806831.png
1775581830567.png
1775581850499.png

Once the events are reset and the player's needs are subtracted, +1 is added to the exit counter, and a check is made to see if the exit counter is greater than or equal to the exit parameter (which defaults to 10). If this condition is not met, the player is randomly transported to any of the maps in the level, but if the exit condition is met, the conditional statement is triggered, which randomly determines whether the player finds an exit, remains in the level, or triggers a level event. Whenever one of the exit events is triggered, the exit counter resets to 0. I’ll leave you some screenshots of the teleportation event from one of the levels; it’s very long, so I’ll put it in a spoiler:
Spoiler: Teleportation Event
1775581573387.png
1775582152123.png
1775582180171.png
1775582196811.png
1775582221693.png
1775582237261.png
1775582254150.png
1775582268876.png
1775582282128.png

At the beginning of each level, the following events typically occur:
1775584440877.png


-Item spawner: Triggers a common event that spawns a set number of items specified in the event, along with item parameters.
1775583959989.png


-Item parameters: Sets the maximum number of items and entities that appear across all maps in the level, as well as their spawn probability.
1775583982583.png


-Object Contents: Sets the objects that can be found in bags and chests within the levels.
1775584040419.png

1775584065576.png


-Level Message: A message that informs the player which level they are on; it only triggers when the player advances to a new level. While remaining on the current level, the message stops appearing unless the player goes to another level and returns to the same one. It also determines whether the player will encounter a special entity while sleeping in the level.
1775584101726.png


-Disable swimming mode: Disables swimming mode if the player advanced to a new level by swimming or diving. The swimming and diving system works with a boat.
1775584259369.png


-Wi-Fi: The Wi-Fi level of the level; this is usually present on all maps within the level, if the level has Wi-Fi.
1775584285286.png


-Temperature: Determines the temperature of the level. If the temperature is very high, the player becomes much thirstier when the need loss switch is activated; however, if the temperature is very low, the player loses health if they are not wearing a coat as an accessory. The temperature is usually set only at the start of the level, but in some levels it changes depending on the map, so I’ve included this event on other maps as well.
1775584310094.png


-Level Visual Effect: Determines the level's lighting; if fog is enabled, the level's lighting will not activate if the temporary light event is present on the map
1775584336766.png


-Region Teleporter: Activates the teleportation event described above if the player reaches the edge of the map
1775584359142.png


As you can see, there are a lot of events that trigger when the teleportation event starts and at the beginning of each level. I may have forgotten to mention something, but honestly, I don't know what could be going wrong, since I've checked everything several times and nothing seems to be wrong.
This is far too complex for any general bughunt.
You have to determine the exact point of where and when the crash happens, no other choice.

And that means you'll have to add messages and status indicators to the screen to allow you to tell the exact moment in which part of which event the game is when it crashes.
Without that info finding the bug would be random chance.
This is far too complex for any general bughunt.
You have to determine the exact point of where and when the crash happens, no other choice.

And that means you'll have to add messages and status indicators to the screen to allow you to tell the exact moment in which part of which event the game is when it crashes.
Without that info finding the bug would be random chance.

Today I've been testing the game to try to figure out exactly when it crashes, and I got this error while using a game item repeatedly:

1775840794388.png

1775841494331.png


It also crashes when I quickly open and close the menu without selecting any items; when I do that, I don't get any error messages.
Every time I start a game, I get this error in the console; it always appears when I pick up an item. I assume it’s an error with the Item Synthesis plugin, but when I disable the plugin, the game still crashes. Sometimes it shows the errors mentioned above, and sometimes it doesn’t show any errors at all. I tried disabling most of the plugins and kept only the essentials needed for the game to run, but it still crashes when I repeatedly open and close the menu during gameplay:

1775944240515.png
basically any error "of undefined" means that the engine has been given a reference to a data object that does not exist.

if there was a check for isdead then that reference most likely was to an actor, because only actors can be dead in the game.

however one of the most common causes for this type of type error is loading an incompatible savefile, because people rarely go to the database and delete actors already used in their project.

given that the error happens or not based on activating and deactivating a plugin:
are you always starting a new playtest game after changing the plugin configuration?

because changing the plugin configuration is making older savefiles incompatible most of the time, and that effect can easily be done bye loading a savefile from the different configuration.
The trace wasn't indicating that the synth plugin has any part in the error. Do you have an event running a script command? Command 355 is the event script command, so to get that error from there either it's as Andar said where you've removed something while still trying to reference it, or the script command you're running needs doublechecking.
basically any error "of undefined" means that the engine has been given a reference to a data object that does not exist.

if there was a check for isdead then that reference most likely was to an actor, because only actors can be dead in the game.

however one of the most common causes for this type of type error is loading an incompatible savefile, because people rarely go to the database and delete actors already used in their project.

given that the error happens or not based on activating and deactivating a plugin:
are you always starting a new playtest game after changing the plugin configuration?

because changing the plugin configuration is making older savefiles incompatible most of the time, and that effect can easily be done bye loading a savefile from the different configuration.
Whenever I test the game, I start a new game; I'm aware that saved games can get corrupted after making changes, so I usually don't use them

The trace wasn't indicating that the synth plugin has any part in the error. Do you have an event running a script command? Command 355 is the event script command, so to get that error from there either it's as Andar said where you've removed something while still trying to reference it, or the script command you're running needs doublechecking.

This is the common event that contains the isDead script; I use it so that when the character dies, they disappear from the party:
1776008753175.png
When you run that as is, youll crash any time you dont have 4 actors in the party.
change each of your IFs to
Code:
if ($gameParty.members()[x] && $gameParty.members()[x].isDead())
or use a forEach loop on members()
Additionally to the above, removing an actor from the party will resort the party index.
so if multiple actors are dead, then even four or more actors will not prevent the sequence above from crashing. because if the first and the third actor in the party are dead, then the third check after removing two will go to the former fifth actor.
The second would already be skipped because after removing the first dead actor the second actor now has the index 0 but the second command goes to index 1, which now contains the former third actor.

The entire command structure should be turned into a loop over all party members, checking each index multiple times until one actor is not dead.
Additionally to the above, removing an actor from the party will resort the party index.
so if multiple actors are dead, then even four or more actors will not prevent the sequence above from crashing. because if the first and the third actor in the party are dead, then the third check after removing two will go to the former fifth actor.
The second would already be skipped because after removing the first dead actor the second actor now has the index 0 but the second command goes to index 1, which now contains the former third actor.

The entire command structure should be turned into a loop over all party members, checking each index multiple times until one actor is not dead.

I modified it this way to make it a loop, but the game doesn't start and freezes:
1776015265466.png


So I left it like this:
1776015370122.png


When you run that as is, youll crash any time you dont have 4 actors in the party.
change each of your IFs to
Code:
if ($gameParty.members()[x] && $gameParty.members()[x].isDead())
or use a forEach loop on members()
By the way, I changed the code like you told me, but it doesn't work. In this case, one of the actors died but doesn't disappear from the group. I guess the “x” in the brackets needs to be replaced with the actor's number, right?
1776015443387.png
I modified it this way to make it a loop, but the game doesn't start and freezes:
When he said to make it a loop, he didnt mean an event loop. He meant a manual loop via JS.


So I left it like this:
His point still stands, but a loop isnt completely needed. Check the indices backwards so that 3 is first and 0 is last.


I guess the “x” in the brackets needs to be replaced with the actor's number, right?
Yes
not actor's number, but party index number.

basically the same four segments you're doing, just starting the first check with index 3 and then counting down to zero instead of the javascript loop I meant.
When he said to make it a loop, he didnt mean an event loop. He meant a manual loop via JS.



His point still stands, but a loop isnt completely needed. Check the indices backwards so that 3 is first and 0 is last.



Yes
It's not working for me. Could you tell me exactly how to do it? Because I'm having trouble understanding it.

By “loop,” do you mean that I don't have to repeat the command multiple times? I just set it up that way, but it's not working—the game freezes:
1776033679306.png
It's not working for me. Could you tell me exactly how to do it? Because I'm having trouble understanding it.
You needed to replace the x's. Both of them.
change each of your IFs to
Code:
if ($gameParty.members()[x] && $gameParty.members()[x].isDead())
Then past that, youve removed the index on the next line. It needs to be the same one as the previous line.


By “loop,” do you mean that I don't have to repeat the command multiple times?
Do as you did before with the 4 sections, but with the changes i added and use the right indices in all 3 places in each section

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-fixing-these-issues.183144/