- Joined
- Jan 10, 2016
- Messages
- 4
- Reaction score
- 1
- First Language
- Finnish
I'm a noob who's trying to learn javascript through RMMV. So far I have worked through the issues I encountered with the aid of multiple tutorials, but now I have a problem and I can't for the life of me find any mention of something like this no matter how much I google.
My plugins crash instantly whenever I start the game.
The lines causing the problem work fine if used manually through the developer console in the middle of the game.
I imagine there's something simple I'm missing, but I can't figure out what and so far I haven't found a tutorial that mentions something like this.
Just to prove my point I made a 1 line plugin. When I playtest the game and hit F8. I am instantly told by the console: ".../js/plugins/1test.js:1 Uncaught TypeError: Cannot read property 'actor' of null"
if I type it manually?
"$gameActors.actor(1).hp" results in "100", which is the hp of the main character.
This is the entirety of the plugin:
$gameActors.actor(1).hp
My plugins crash instantly whenever I start the game.
The lines causing the problem work fine if used manually through the developer console in the middle of the game.
I imagine there's something simple I'm missing, but I can't figure out what and so far I haven't found a tutorial that mentions something like this.
Just to prove my point I made a 1 line plugin. When I playtest the game and hit F8. I am instantly told by the console: ".../js/plugins/1test.js:1 Uncaught TypeError: Cannot read property 'actor' of null"
if I type it manually?
"$gameActors.actor(1).hp" results in "100", which is the hp of the main character.
This is the entirety of the plugin:
$gameActors.actor(1).hp

