subengari

Veteran
Veteran
Joined
Dec 12, 2020
Messages
35
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
35
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
2,971
Reaction score
2,297
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

Remember when people had the ability to have meaningful conversations on platforms like twitter or facebook? Good times... Nowadays is absolute crap.
All aboard the Advent calendar train, riding Avery's coattails as an excuse to make more sprites. ;)
Advent2021-01.gif

Get 'em in my thread in General Resources.
I had a dream where it was Friday, and what happened in the dream was irrelevant, because I woke up and it's not Friday, so I'm sad.
edit: third time's the charm? some graphic text I whipped up that I like for the mid-game intertitle, now with all of the actual letters in the stupid damn words I was trying to spell :uswt2:
kcsmall.png

Forum statistics

Threads
117,097
Messages
1,104,546
Members
153,111
Latest member
Pazzow
Top