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,489
Reaction score
3,521
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 Posts

Latest Profile Posts

I tried a new thing.

fg.png
Another night, another game dev stream in about 20 minutes or so.

I've been busy. Warming up so I don't forget how to draw.
Fr4yy7TaEAUB57Z
I'd make a joke about the post office, but I'm afraid you won't get it.
I've been on a really good streak lately of working on my game for at least a little bit each day. Even if I only complete one small task, it is still a much better pace than what I was maintaining previously!

Forum statistics

Threads
129,785
Messages
1,205,125
Members
170,893
Latest member
LeeYoung
Top