Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Undefined is not a function...

Status
Not open for further replies.

hbn

Towns Guard
Xy$
0.00
*Sighs*

So I've updated my project, following the rules and now I can't seem to get my project to run at all. In the editor it seems fine. I've made sure not to overwrite the index.html file or the plugins.js file but if I hit playtest in the editor, I get the "Undefined is not a function" error. F8 is not opening the debugger. Doubt they've changed it but it's no longer letting me open it.

Deploying the project to web, when I run it I get

"TypeError
WebAudio.initialize is not a function"

This error is occurring regardless of which plugins are loaded. I've tried them with the ones I've had set up. I've tried it with them all turned off. Same error.

I only tried to update the project to 1.31 to use Yanfly's Save Core plugin only to find out I now can no longer run the project. Fortunately I have got a backup available and putting the old files back in allows the project to run fine, but updating it breaks things somewhere.

Why always me :(


UPDATE:

So it turns out, creating a new project, and copying over my project data, images, plugins.js and the plugins folder and running the project works fine. The old one on the otherhand is broken. This new one is perfectly fine though.
 
Last edited:

Dad3353

Praised Adventurer
You're right to not over-write the 'plugins' stuff, but the index.html should be copied over, when updating. The old, original, one won't work properly with the updated js stuff.
All of the new js folder contents should be copied over, including the 'plugins' folder contents and 'libs' folder inside. It's only the Plugins.js which is to be retained.
It's wise to copy the original js folder, completely, to somewhere safe, along with your plugins.js file, before starting the update, just in case a mistake is made.
 
Last edited:

hbn

Towns Guard
Xy$
0.00
I misread the instructions. I thought it said don't copy index.html. I didn't see the brackets. Why am I so oblivious to instructions.
 

Lore

Resident Dragon
Step 1: Read Instructions
Step 2: ...
Step 3: Profit
OR
Step 3: Hospital

Something like that it seems. :D

Apparently, "undefined is not a function" is the best error. Likely because it's easy to fix.
 

hbn

Towns Guard
Xy$
0.00
Well it is when you get to have a debug console, otherwise to someone like me who knows nothing about JavaScript, it has me going through everything with a confused expression.

Now a good, old fashioned BSoD on the other hand? They're easy to fix because at least that tells you where it's gone wrong :P
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Closing this topic due to being solved, if for any reason you would like this re-opened please report the post or contact a moderator.
 
Status
Not open for further replies.
Top