What am I doing wrong?

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Mewtarthio
Uruivellas
Posts: 717
Joined: Mon Jul 16, 2012 6:03 pm

What am I doing wrong?

#1 Post by Mewtarthio »

I'm trying to make an addon for a custom event. The addon shows up in the list just fine; trouble is, when I try to start a new game, the module loads sluggishly and hangs when it gets to 100%. I've only got three files: The init file in the main directory, the new event file in data/general/events, and an overload of the infinite dungeon's events file for testing purposes (overload/data/zones/infinite-dungeon/events.lua). Is there anything that's obviously preventing the addon from loading properly?

Phoenix1
Thalore
Posts: 160
Joined: Mon Dec 05, 2011 8:25 pm

Re: What am I doing wrong?

#2 Post by Phoenix1 »

It sounds like you have a syntax error in the code. Take a look through your code and see if there are any code typos; not closing a loop, function, or if statement with an end, using != instead of ~=, and not separating an object parameter with a comma are some of the ones that I get frequently.

If you can't spot one, try deleting (and putting back) each page in turn, trying to start a new game each time. Don't bother waiting for it to reach 100%; usually somewhere around the teens to twenties percent it will start going slow (you might notice the loading bar flickering a little bit when it hits the error). Once it loads properly, you'll know which page the error is in. Then, delete and replace segments of that page, and reload until you see what section the error is in. Chances are you can then find the error by taking a good hard look at that section, or if not, delete progressively smaller subsections until you locate it.

And, you know, hope that you have only one error in one page. If not, you'll need to have multiple pages deleted at a time. Leave in any that work, and leave out any that don't, bringing them back in and systematically hunting errors in each.

Hope I explained that decently enough for it to be helpful. Good luck!

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: What am I doing wrong?

#3 Post by HousePet »

Or you can check the log file for the full error details about what went wrong.
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply