Author Topic: Gamemode makes server initialization loop  (Read 627 times)

I'm trying to get my addon freebuild gamemode working, and every time I load it the "Loading Add-ons" bar resets to 50% after it reaches ~78%.

I inspected the console output and, quite literally, loading is looped. It knows that stuff has been already registered when it goes back to the start of server initialization, and once it is back at 78% it loops again, and so on. According to the log, it loops after all server addons are loaded. Any other gamemode (non-default too) works just fine.

Gamemode.txt: http://pastebin.com/ppK0NLYn

console.log: http://pastebin.com/kSKVtmvp

Additional Notes: Gamemode has custom colorset and blank save.bls.

What to?

Prepare to stuff bricks...

The problem was that I removed the comments. Yeah.

You know, "// Add-ons to load" "// music" "// environment", they are not comments. They are actually used by the game to properly load a gamemode.

I re-added them and the gamemode loaded smoothily.

Noedit: Nevermind, I had loaded the wrong gamemode. However, strangely enough, The progress bar now goes further before resetting to 50%.

Help, anyone?

Does it work properly if you enable all these add-ons in custom game mode?

Does it work properly if you enable all these add-ons in custom game mode?

Awkwardly enough, yes. Fully. I guess I can't do much else other than host it in Custom.

Try ordering the add-ons in reverse alphabetical order. That's the order they load in Custom.

Forgot to say it, but yes, reverse alphabetical order works. While I was looking around add-ons I found one I had already installed, and remembered it was called "Zzerver_*" so that it is loaded first. He did it for a reason - I'll have to put that one first.

Case closed.