Arizard / deathrun

Arizard's Deathrun gamemode for Garry's Mod
63 stars 38 forks source link

Shared.lua Fatal ERROR #28

Closed chudders1231 closed 8 years ago

chudders1231 commented 8 years ago

Hello, I am trying to frantically fix my deathrun and i don't know what is causing this error. My console isnt being spammed by this error: http://prntscr.com/a4l523

shared.lua : http://prntscr.com/a4l8cc hook.lua : http://prntscr.com/a4l92k

I dont know what is causing it and i have looked at the lines of the code referencing to it and i cant see what the problems. Please help as this server is needing to be fixed asap due to a short timeframe that i am very worried about. I moved from mr.Gash's version to yours due to your versions function however it has thoroughly and royally broke my server.

Please help as i dont know what is causing this!

Thanks, Chad Masters

chudders1231 commented 8 years ago

I found that a thirdperson addon was breaking this gamemode HOWEVER i have got a new error.The gamemode is calling "DR" but GMOD doesnt know what it is. What is this?

The Error:http://prntscr.com/a4lv0w The Files its Referencing to: http://prntscr.com/a4lw50 http://prntscr.com/a4lxep

thanks, Chad

SunRed commented 8 years ago

Just to make sure, you are using the current ulx/ulib from here? The code snippet from the hook.lua file looks quite different than it is currently available.

chudders1231 commented 8 years ago

I thank you very much for your reply. I will try it right now! You may have saved my life!

thanks, Chad

chudders1231 commented 8 years ago

It has not fixed it. It is still calling the same error. What should i do?

Error: http://prntscr.com/a4mcgt File References: http://prntscr.com/a4md5o http://prntscr.com/a4mdvf

Thanks, Chad

Arizard commented 8 years ago

Temporarily uninstall all addons and then install them one by one to see which causes the errors. In future I would recommend testing the game mode before completely switching over because they are not the same game mode and do not support all the same addons

SunRed commented 8 years ago

It just seems like the global DR table used in this gamemode for storing all methods and stuff belonging to it gets overwritten or unset by one of your addons. This is generally hard to debug so I would just do what Arizard recommends...

chudders1231 commented 8 years ago

Ok i fixed it sort of, I found that is was xbeast's HUD that conflicted with your Deathrun gamemode. That may be a thing that should be brought up between ya's or fixed on either end. I am in-touch with xbeast so i could tell him if you'd like i guess.

Just while i am here, there have been a few issues that we have seen after getting it fixed. Firstly people can drop weapons and since the last deathrun gamemode i had to write a function that stops it but i don't have the file anymore. Is there a function that you know of that is capable of disable-ing it for your gamemode?

Also sometimes when people join, it doesn't start the next round. Could it be because of your afk-spectator function?

Thank you for all the help, we appreciate it! Chad Masters

Arizard commented 8 years ago

you have to understand that deathrun and deathrun neue are completely different gamemodes, deathrun neue is not just a modification of mr gash's deathrun. Not all addons will keep working if you switch over which is where some problems with joining/starting rounds may come from

dropping weapons is a feature of the gamemode, however you can add blacklisted weapons to the following line in init.lua (a bit of a clumsy solution I know, but for the most part weapons are prevented from dropping inside the swep file and not the gamemode) https://github.com/Arizard/deathrun/blob/master/gamemode/init.lua#L523