Author Topic: Gamemode problems.  (Read 2715 times)

i made a gamemode for my server because 1. i wanted a loading screen background (a part of blockland glass) 2. it will be easier to enable/disable add-ons/music.
i only have two problems one which is annoying and one which is loving ANNOYING aka one is worser than the other
the first issue i have is that the loading screen doesn't appear, i put it in a server.cs file because i thought it would make sense and plus they don't really say if it needs to go into any specific file.
the second issue is that when i join my server (hosted on ubuntu 16.04 lts with greek2mes script) with the gamemode it gets stuck loading it (BEFORE DATA BLOCKS, ADD-ONS AND MUSIC)

Client Log: https://puu.sh/v104s.log

Server Log: https://puu.sh/v108W.log

Gamemode server.cs: https://puu.sh/v10aL.cs

Gamemode gamemode.txt: https://puu.sh/v10ak.txt

OTHER ONGOING ISSUES
---------------------------
https://forum.blockland.us/index.php?topic=308565.0
---------------------------
https://forum.blockland.us/index.php?topic=308617.0
---------------------------
https://forum.blockland.us/index.php?topic=308564.0
« Last Edit: March 30, 2017, 07:59:04 PM by yeTenszi »

First of all, that's not how a cs works, you can keep the registerLoadingScreen but ditch everything else because it's not the correct syntax. Pretty sure you do not need a server.cs in GameModes.
« Last Edit: March 28, 2017, 05:45:34 PM by Kyuande »

Second, like I said in your help you should disable BLG, doesn't matter if you need it or not, it could be your problem but you aren't even trying. We can't help you any further if you do not try an option we recommend, if I am wrong about BLG being a problem then we will try the next step.

You should at least disable/remove BLG and see if it loads for you instead of assuming it does not. You can't just assume it's not the problem until you disable/remove it. I recommend removing it completely because if you have preload it will load it regardless if it is enabled or not.

I am not hating on BLG but people have said that RTB was fine until they crashed when they hosted a non-dedicated server.

More editing:
I also see that your events are not loading, disabling BLG on my server also prevented this from happening and it only affects users using BLG. I'll make a video and replicate the problem so I'm not crazy and hating on BLG.

So I found the problem and it seems when you enable an add-on that has RTB prefs (like my autosaver) while having BLG, that's when the loading breaks.
GameConnection::onConnectRequest is involved in this for Glass stuff which is called right when you connect.
Video: https://drive.google.com/file/d/0B7GxvN-ySa6JZ3B5ZGZwVEpBWnM/view?usp=sharing
« Last Edit: March 28, 2017, 06:14:46 PM by Kyuande »

i don't understand because if it is blockland glass it shouldn't be working for everyone else.

also the problem is it gets stuck on CONNECTION ACCEPTED now.

i don't understand because if it is blockland glass it shouldn't be working for everyone else.
No what happens is when it sends those preferences over to the client, for some reason it prevents you from loading datablocks, see my video. It only happens to people who have BLG when the server has BLG.

i don't understand because if it is blockland glass it shouldn't be working for everyone else.
whether or not it should or shouldnt be working for anyone else, you need to at least attempt removing glass and everything associated with glass as instructed by visolator to identify that it IS that causing the issue. saying things like this does not help as it prevents us from making progress helping you fix your issues.

yes, nothing should be broken. telling us it shouldnt be broken wont fix your problems

i have removed it and it didn't fix the problem it may have let me join once but then after joining a second time with it still removed the problem came back
also i'm not sure if it has to do with wine or the script but it lets me join if hosted non dedicated via blockland it self.

If one of your add-ons modifies gameconnection::startload without parenting the original function, you can get stuck loading like that.  But that is usually ironed out when the mod maker tests his add-on.

You could try running a trace on the server while you attempt to connect, to see what add-ons are doing stuff at that time.

If one of your add-ons modifies gameconnection::startload without parenting the original function, you can get stuck loading like that.  But that is usually ironed out when the mod maker tests his add-on.

You could try running a trace on the server while you attempt to connect, to see what add-ons are doing stuff at that time.
If i am correct you run a trace by doing trace(); in console?

If i am correct you run a trace by doing trace(); in console?
trace(1);, to be exact

trace(0); to turn it off

i left the trace on for a while and it says wine: Unhandled page fault on read access 0x507e3192 at address 0x7bc367a1 (thread 0085), starting debugger...
i'm gonna post the console soon
also i forgot that i had installed rtb after i tried removing blockland glass (i tried the server without rtb or blockland glass first but then i tried rtb but forgot to remove it neither options work)

here it is

BLG is still loading. Remove it completely, restart the server and post a new console log with trace.

given how blg works you need to delete it from your folder or remove it from your addons folder. it auto enables whenever you start the game since its a client mod and there's no options to turn off client mods.