FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
463 stars 710 forks source link

spawn jobs and doorgroups reset after restart #2810

Closed nasheitanamouk closed 5 years ago

nasheitanamouk commented 6 years ago

Description of the bug

After putting a spawn and the doorgroups I restart the server but the spawn jobs reset and the same for the doorgroups really need help really (I presume it's the latest version of the darkrp) and I've already scanned everything almost everything the topics that talk about that

Lua errors

Nothing

Why the developer of DarkRP is responsible for this issue

FPtje commented 6 years ago

Make sure you have the latest DarkRP. Then run darkrp_check_db_sv. What does the output say?

nasheitanamouk commented 6 years ago

Where in the console ?

FPtje commented 6 years ago

The server's console, though it should work if you put it in your client's console if you're superadmin.

nasheitanamouk commented 6 years ago

[ERROR] gamemodes/darkrp/gamemode/modules/base/sh_util.lua:267: attempt to call method 'IsSuperAdmin' (a nil value)

  1. unknown - gamemodes/darkrp/gamemode/modules/base/sh_util.lua:267
    1. unknown - lua/includes/modules/concommand.lua:54
FPtje commented 6 years ago

I should fix that, try joining the server and running from your own console.

nasheitanamouk commented 6 years ago

How do I start it from my own console? (and thank you answer very quickly)

FPtje commented 6 years ago

You start gmod join your server press the console key and then enter the command

nasheitanamouk commented 6 years ago

] darkrp_check_db_sv Your sv.db database file is good.

FPtje commented 6 years ago

Alright, so that means that your database file is not corrupt, so that's not the problem.

Damnit, many people seem to be having this problem. Could you give me a list of the addons you have installed?

nasheitanamouk commented 6 years ago

addon on workshop : https://steamcommunity.com/sharedfiles/filedetails/?id=829302315

addon on my ftp : Craftingmod Advanced survival farmingmod farm_system darkrpmodification handcuff npc_base meth npc_guide the_backpack npcstore ulib and ulx vcmod wiliamshopsystem wiliamcardealer

nasheitanamouk commented 6 years ago

Is ok ????

nasheitanamouk commented 6 years ago

in logs i have that : [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:223: attempt to index a nil value

  1. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:223
    1. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:305
    2. onFinished - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:206
      1. commit - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:194
      2. onFinished - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:203
      3. commit - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:194
      4. initDatabase - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:106
        1. Call - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:90
        2. unknown - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:163
FPtje commented 6 years ago

Could you try updating to the latest DarkRP to see if it still happens?

FPtje commented 5 years ago

@nasheitanamouk I just took a closer look at the error. It looks like the error isn't from the latest version of DarkRP. Could you try updating DarkRP? The least it should do is update the line numbers of the error, which should give me some more information as to what's going on.

FPtje commented 5 years ago

Closing for now, since this doesn't seem to apply to the latest DarkRP. Please comment in this issue if you have news.

mcNuggets1 commented 5 years ago

You still could fix the NULL error when using the db check concommand.

FPtje commented 5 years ago

Oh yeah

FPtje commented 5 years ago

done