FPtje / DarkRP

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

Error attempt to call field 'IsEmpty' (a nil value) (Default files no other addons) #3045

Closed kulcris closed 4 years ago

kulcris commented 4 years ago

Description of the bug

//: # (Describe the issue as accurately as possible All addons disabled, no edits made

How to make the bug happen

Clean install start server

Lua errors

[ERROR] gamemodes/darkrp/gamemode/libraries/tablecheck.lua:157: attempt to call field 'IsEmpty' (a nil value)

  1. f - gamemodes/darkrp/gamemode/libraries/tablecheck.lua:157
    1. f - gamemodes/darkrp/gamemode/libraries/fn.lua:185
    2. v - gamemodes/darkrp/gamemode/libraries/tablecheck.lua:67
      1. f - gamemodes/darkrp/gamemode/libraries/tablecheck.lua:85
      2. validateJob - gamemodes/darkrp/gamemode/libraries/fn.lua:174
      3. createJob - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:426
      4. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:8
        1. include - [C]:-1
        2. unknown - gamemodes/darkrp/gamemode/init.lua:104

[ERROR] gamemodes/darkrp/gamemode/libraries/simplerr.lua:530: [ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1. The best help I can give you is this:

GAMEMODE.DefaultTeam is not set to an existing job.

Hints:

The responsibility for the error above lies with (the authors of) one (or more) of these files: jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files. ------- End of Simplerr error -------

  1. error - [C]:-1
    1. error - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
    2. Call - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:1001
      1. Call - gamemodes/darkCouldn't Load Init Script: 'darkrp/gamemode/init.lua'

Why the developer of DarkRP is responsible for this issue

No other addons installed no scripts running as far as i can tell. srcds.exe -console -game garrysmod +map gm_construct +gamemode darkrp +maxplayers 4 -condebug

Other Info

My startup log startuplog.txt image image I have reinstalled darkrp

kulcris commented 4 years ago

Complete fresh install of server fixed issue, no idea what was causing it.

FPtje commented 4 years ago

Resetting your config fixed it. Look at this part of the error:

GAMEMODE.DefaultTeam is not set to an existing job.

Hints:
- This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
- GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
- The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
kulcris commented 4 years ago

No I full reinstalled darkrp and modifications multiple times. I copied over the "broken files" to the fresh install and they worked fine so it was something with my install

On Mon, Aug 17, 2020, 11:47 PM Falco Peijnenburg notifications@github.com wrote:

Resetting your config fixed it. Look at this part of the error:

GAMEMODE.DefaultTeam is not set to an existing job.

Hints:

  • This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
  • GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
  • The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.

The responsibility for the error above lies with (the authors of) one (or more) of these files: jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/FPtje/DarkRP/issues/3045#issuecomment-675246539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAULHARVE3YKV5VXFDGRQDTSBIBVFANCNFSM4QCTZJUA .

FPtje commented 4 years ago

Do you uses FileZilla by any chance?

kulcris commented 4 years ago

Not for this. It is a local server

On Tue, Aug 18, 2020, 9:13 AM Falco Peijnenburg notifications@github.com wrote:

Do you uses FileZilla by any chance?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/FPtje/DarkRP/issues/3045#issuecomment-675503628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAULHAXFF2I2L63KRTOHUHLSBKECNANCNFSM4QCTZJUA .

Kapppa commented 4 years ago

It was broken because the server was out of date. It was missing table.IsEmpty function which was added in the past year or so.

kulcris commented 4 years ago

Nope. fully up to date. But no worries fresh install fixed must have been currpt install

On Fri, Oct 16, 2020, 5:40 PM Jimbo notifications@github.com wrote:

It was broken because the server was out of date. It was missing table.IsEmpty function which was added in the past year or so.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/FPtje/DarkRP/issues/3045#issuecomment-710683651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAULHAUHBDDPXMSVYT2HXNLSLDDUPANCNFSM4QCTZJUA .