Uncaught Error: Header is Wrong ...?

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
181
Reaction score
28
First Language
English
Primarily Uses
RMMV
So, when testing my project, there's not a single problem with the game, everything loads correctly, I get no errors whatsoever.

When I deploy my project for Windows, I make sure to check encryption of image and audio files and I also check "Exclude unused files". The game deploys successfully however I get the following errors...

1. Certain audio files are excluded, when launching the deployed game, the game cannot find these audio files... Why did it exclude them if it has to load them after deployment?

2. Dragonbones textures can't be found (according to the console).

3. @SumRndmDde 's Timed Attack Gauge image file doesn't get encrypted and is excluded upon deployment. If it's being used by the plugin, why is it excluded?

4. Weird "Header is Wrong" error message. I have nooooo idea what is causing this. Maybe some plugins are being left out during the encryption process that are required?

Error p1.PNG
Error pt2.PNG
Error pt3.PNG
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,032
Reaction score
7,027
First Language
German
Primarily Uses
RMMV
1) "exclude unused files" removes all files that are not registered by the engine.
There are javascript commands to register files from plugins, but unfortunately most plugin writer don't use them, resulting in their files being deleted with that option.
The solution is to make a map that is never used in the game, and use the files there manually as pictures, sprites or whatever. As soon as a file is used by an event command, it will be registered with the engine and keep even if the option for unused files is set.

2) the "wrong header" is strange - did you copy the index.html from a different version or something like that?

3) are the missing audio files from RTP or did you add them?
 

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
181
Reaction score
28
First Language
English
Primarily Uses
RMMV
1) "exclude unused files" removes all files that are not registered by the engine.
There are javascript commands to register files from plugins, but unfortunately most plugin writer don't use them, resulting in their files being deleted with that option.
The solution is to make a map that is never used in the game, and use the files there manually as pictures, sprites or whatever. As soon as a file is used by an event command, it will be registered with the engine and keep even if the option for unused files is set.

2) the "wrong header" is strange - did you copy the index.html from a different version or something like that?

3) are the missing audio files from RTP or did you add them?
Hey so it seems like I'll have to be removing unused files manually because I deployed the game without checking "Exclude Unused FIles" and it works perfectly fine with no errors.

I'm not so sure if the game is 100% crash-free so I'm going to play through the game in its entirety.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

A mousefolk sprite I made, I think I did good.
Discovering math. functions for damage formulas was one of the greatest things for me.
It's very useful for balancing skills to work in a variety of possible circumstances.
For example if you have a skill that is supposed to work for both mages and warriors:
Code:
Math.max(a.atk * 2 - b.def, a.mat * 2 - b.mdf)
SpaceX: First-ever successful (manned) commercial spaceflight!! In these terrible and self-sabotaging times for the world, that's a ray of excitement and hope I needed badly.
GameDevJohn wrote on whtdragon's profile.
Hey I used you bunny and cat spritesheet for a game jam game. Thanks so much! You have really beautiful stuff here. I'll credit you at https://gamedevjohn.itch.io/bunny-boy

Forum statistics

Threads
98,016
Messages
948,567
Members
129,275
Latest member
Descent89
Top