when I check "exclude unused files" the number of files from the effects folder goes down by a lot. however, it doesn't include animation files used by Visustella Custom action sequence commands. I need to decrease the number of files as much as i can. how can i know the files required for animations made with action sequences? even when the files are missing, when i play the game normally, the game doesnt tell me which files are missing, so that that is the only strategy i knew
Skill problems when deployment finished
RPG Maker MZ SupportThe base problem is that resources implemented by javascript code are unknown to the editor unless the plugin actively registers those resources with the editor - and while MV has a command for that listed in the help file, it doesn't work that way in MZ.
The usual workaround is to make a fake map that isn't linked anywhere and use the needed resources in event on that unlinked map - the editor cannot detect that the map isn't used and learns that all the resources linked on that map are needed in the game.
However that requires to know which files to use there.
Usually you should get that by error messages "failed to load".
If you don't get those messages, that means that one of your plugins redirected all error messages into the trash...
In my personal opinion as a programmer, anyone who even considers this idea as good is an idiot - you always need to know all error messages to solve the problems.
You have no choice but to find the plugin that hides or disables the error messages and make sure that they are displayed. If whoever did this was even halfway intelligent the plugin should have an option to disable this hiding of error messages.
The usual workaround is to make a fake map that isn't linked anywhere and use the needed resources in event on that unlinked map - the editor cannot detect that the map isn't used and learns that all the resources linked on that map are needed in the game.
However that requires to know which files to use there.
Usually you should get that by error messages "failed to load".
If you don't get those messages, that means that one of your plugins redirected all error messages into the trash...
In my personal opinion as a programmer, anyone who even considers this idea as good is an idiot - you always need to know all error messages to solve the problems.
You have no choice but to find the plugin that hides or disables the error messages and make sure that they are displayed. If whoever did this was even halfway intelligent the plugin should have an option to disable this hiding of error messages.
I have been struggling to replicate the problem in playtest. I can't find which file is missing. I tried removing all files and getting them as they are missing during playtest. When i finished adding all the files, i checked if the deployed version had them.... All files required for the animation seem to be there in the deployed version. I have no idea what's causing the problem... :s.
The only thing i know is that it gets stuck in the casting animation of the action sequence ... i love my casting animation tho so i get that going for me which is nice...
The only thing i know is that it gets stuck in the casting animation of the action sequence ... i love my casting animation tho so i get that going for me which is nice...
So does the game crash, or just freeze? If it crashes, what is the error message? It should be one that tells you which image or animation is missing, but if not then what?
And if it's just freezing, that is probably not due to a missing file but to something in your code.
And if it's just freezing, that is probably not due to a missing file but to something in your code.
It doesnt freeze like it stops, but it doesnt continue, it's during battle and only during the casting of the only skill i have that uses Action sequence, it doesnt go past the casting animation. but there is no error message. I already checked removing all the files to check which files are required for the animation and all of them are there. So you're right, it doesnt seem to be a missing file, at least not one from the Effects folder.
i guess you can call that freezing anyways.
I don't understand what that means. In computers, "freezing" means a program stops running and has to be closed. It's not a matter of what I call it, it's established terminology.
What is the difference between that and "it doesn't continue?" What exactly is your game doing?
Yup it freezes, I just didn't know the meaning of the term exactly. Now I know
It stops. I just thought because the characters were still moving (Being animated) it was not freezing.
The battle works perfectly fine, all skills work but i have one skill that i changed with ActionSequence commands, That skill works just fine in regular PlayTest. The problem only occurs when I deploy on web.
When playing on browser and only on browser when i use that skill it freezes.
I Know it stops in one specific part of the command so that's why I thought there was one missing file and because missing files is the most common error i have since i removed a lot of files to be able to upload it to Itch
It stops right where the first cross is. I know this because the character changes to Chant pose and continues to be animated chanting, then the Effect animation doesnt start and The game freezes. I repeat, this only happens on web. No error message.
It's not. If the animations are still playing, then the game is running and processing instructions and not frozen - images can't change on their own.
If you hit F8 and go to the Console tab, are there any error messages? If you remove the "wait for animation" instruction, does anything change? It sounds like the same kind of situation when someone makes a move route, says wait, and it ends up being blocked.
Can I open console tab in the deployed game on browser? I havent been able to. I tried again, can't.
If the deployed game is in a web page or launched to a browser tab, you can use the console log, specially if it is chrome, as it is basically the same, if there is an error, it should be listed in the console.
If the game is deployed as an executable, ie not to a web page, I think it's coded to not launch the console, so you would need to load it from a web browser tab and then open the console.
How do i do that on itch?
Why would you need to use itch to do something with your own game that you made and is on your own computer?
Because i need to test the game as it will be in the demo. I need to test that all my plugins work and do the right thing. Anyways, i found the error... it's a missing file.... I created another game exclusively to test the battle with all the Effects folders intact and erasing other image folders not necesary for battles.... result: the skill works. so....... I have no idea what file it needs as I tried individually without success.
If it's in a browser, it is irrelevant where it is hosted. In Chrome opening the log is CTRL + Shift + I, this will be different from browser to browser.
Ok That helped a lot. This is the error. I know theres 1 or more files missing but i have no idea what this means
this is what is shown in the console during the error in chrome... Im assuming i have no powerup1.efkec and that's what it means
Actually, it's basically telling you exactly what file is missing.
Powerup1.efkefc, the rest is basically a stack trace.
However, keep in mind, this only solves part of the problem, it will not spit all files that are missing, just the ones missing at the moment of execution. This has happened since the very first RPG Maker so, you will have to basically always try your game when it is deployed or the deployed version.
I added that file, it now works 🙂 Problem solved
Original thread: https://forums.rpgmakerweb.com/threads/skill-problems-when-deployment-finished.140300/