LTN Core, Day and Night, Time engine Type error

GigglePickle

Villager
Member
Joined
Jul 4, 2018
Messages
10
Reaction score
3
First Language
Polish
Primarily Uses
RMMV
For my game Im using the LTN core, time engine and day and night plugins.upload_2019-3-14_22-24-32.png
In testing, whenever I enter a battle I get this error:
upload_2019-3-14_22-24-32.png


I read a similar thread with this sort of error about changing one of the parameters on LTN core.js for the rescale backgrounds paramater for "battle" to false, however that was already set to false.
Heres a screenshot of my parameters:
upload_2019-3-14_22-26-28.png
upload_2019-3-14_22-26-52.png

Day and night plugin parameters:
upload_2019-3-14_22-28-26.png

Time engine plugin parameters:
upload_2019-3-14_22-28-58.png

Here's the dev tool error code:

rpg_managers.js:1949 TypeError: Cannot read property 'battle' of undefined
at Spriteset_Battle.$.rescaleImageBackground (releases_LTN_Core.js:1586)
at Spriteset_Battle.$.locateBattleback (releases_LTN_Core.js:1581)
at Spriteset_Battle.updateBattleback (rpg_sprites.js:2487)
at Spriteset_Battle.update (rpg_sprites.js:2454)
at rpg_scenes.js:262
at Array.forEach (<anonymous>)
at Scene_Battle.Scene_Base.updateChildren (rpg_scenes.js:260)
at Scene_Battle.Scene_Base.update (rpg_scenes.js:113)
at Scene_Battle.Scene_Base.update (releases_LTN_TimeEngine.js:588)
at Scene_Battle.update (rpg_scenes.js:2259)
 

GigglePickle

Villager
Member
Joined
Jul 4, 2018
Messages
10
Reaction score
3
First Language
Polish
Primarily Uses
RMMV
It also had this:

Uncaught TypeError: Cannot read property 'Game_Time' of undefined
at releases_LTN_DayNight.js:170
at releases_LTN_DayNight.js:410
 

GigglePickle

Villager
Member
Joined
Jul 4, 2018
Messages
10
Reaction score
3
First Language
Polish
Primarily Uses
RMMV
Here is the link to the reddit thread for more info:
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Can you provide a link to the plugins so people can double-check the instructions?

And are you sure it should be named "releases_LTN_DayNight.js" and not "LTN_DayNight.js"? If you rename it instead of keeping the name the author gave it, it might not load plugin parameters which would cause issues.
 

GigglePickle

Villager
Member
Joined
Jul 4, 2018
Messages
10
Reaction score
3
First Language
Polish
Primarily Uses
RMMV
I changed the names of the plugin file and that fixed the problem. How did I not think of that! Anyway, thank you for pointing that out Aloe Guvner. :)
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
That's OK, it's a common mistake because it's not always obvious.

The reason is from a coding perspective, the easiest way for the plugin to read what settings you have done is with the name of the plugin. The MV editor saves those settings next to the plugin name, so that's how the plugin author will program it to read the settings.

There's another way to do it without needing to use a specific name, but most plugin authors don't do it that way (myself included).
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top