subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
36
Reaction score
14
First Language
king's english
Primarily Uses
RMMV
Salve, fellow makers!

Behold the following snippet:
createDisplayObjects.png

Based on the first function, Scene_Map.prototype.createDisplayObjects, it is my belief that this.createWindowLayer (and therefore this.createRewardsLayer) should be executed before this.createTreasureChestSprites.

However, upon execution, this happens:
createDisplayObjectsDebug.png

As you can see in the console output- 0, 4, and the error- it appears as if this.createTreasureChestSprites is being executed before this.createWindowLayer (and therefore this.createRewardsLayer).

Now, I know how to "fix" this problem (by moving the createTreasureChestSprites command to createWindowLayer), but I am just wondering if anybody can explain to me why the command execution sequence isn't occurring in the order that I think it should?

Bonus question: how do I remedy the two SourceMap errors?

Thanks for the knowledge!
 

subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
36
Reaction score
14
First Language
king's english
Primarily Uses
RMMV
Never mind, I figured it out by doing this:
createWindowLayer.png

Still don't know about the SourceMap errors though. But they are not disrupting anything.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,104
Reaction score
3,163
First Language
EN
Primarily Uses
RMMZ
The SourceMap lines are warnings (yellow), not full errors. More info:
Yep, it's harmless. I think sourcemaps are just a kind of signpost for the debugger, apparently used for breakpoints etc:

You can either remove the sourcemap reference, by deleting this line at the end of your project's pixi.js file:
JavaScript:
//# sourceMappingURL=pixi.js.map
...or you can add the missing pixi.js.map file to your project's libs folder (by default RMMZ seems to be currently using PIXI v5.2.4, so I'm not sure which version of the sourcemap would be relevant):
 

Latest Threads

Latest Profile Posts

Can Elon crash Twitter faster? I want something as big to replace it so I can promote my game there. I also need to actually do promotion this time, heh.
Thinking of getting a mechanical keyboard, eventually! Would anyone be interested in a chill keycap-painting stream?
Walked through the rain to take pictures of an 50+ year old printing press for my students. Hope they will honor that effort xD
Can I promote my %75 OFF Creator Day Sale here, or it's against forum rules as well? :kaocry:
Tests for an alert system that spawns enemy reinforcements, as a stealth game should do :kaoswt2:

Forum statistics

Threads
126,910
Messages
1,182,257
Members
166,715
Latest member
IcarusCursed
Top