Проблемы с Gmod — SWRP (DarkRP)

#lua #garrys-mod

#lua #garrys-mod

Вопрос:

Итак, в основном я пытаюсь запустить Gmod-сервер, но когда я появляюсь на своем сервере, я автоматически умираю, не могу открыть меню F4 и не могу возродиться. После изучения этой проблемы я выяснил, что это было связано с тем, что мое задание по умолчанию в моих пользовательских заданиях работало некорректно. (но не нашел ответа на проблему) Это два сообщения об ошибках, которые я получаю:

 [ERROR] A runtime error has occurred in "gamemodes/starwarsrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 710.
The best help I can give you is this:

DarkRP was unable to introduce player "RoboOrSomething" to the game. Expect further errors and shit generally being fucked!

Hints:
    - This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
    - Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
    - This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
    - Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

------- End of Simplerr error -------
  

Это первая ошибка, которую я получаю всякий раз, когда захожу в игру.

И вот строки с 708 по 712

  function GM:PlayerSpawn(ply)
    if not ply.DarkRPInitialised then
        DarkRP.errorNoHalt(
            string.format("DarkRP was unable to introduce player "%s" to the game. Expect further errors and shit generally being fucked!",
                IsValid(ply) and ply:Nick() or "unknown"),
  

Этот:

 function GM:PlayerSpawn(ply)
    if not ply.DarkRPInitialised then
        DarkRP.errorNoHalt(
            string.format("DarkRP was unable to introduce player "%s" to the game. Expect further errors and shit generally being fucked!",
                IsValid(ply) and ply:Nick() or "unknown"),
  

это ошибка, которую я получаю всякий раз, когда нажимаю F4, чтобы попытаться открыть меню F4.
Это ошибка, которая постоянно повторяется в консоли:

 [ERROR] gamemodes/starwarsrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
  1. Call - gamemodes/starwarsrp/gamemode/modules/base/cl_gamemode_functions.lua:23
   2. unknown - gamemodes/starwarsrp/gamemode/modules/base/cl_gamemode_functions.lua:62
  

И если кто-нибудь хочет спросить, да, я использовал команды, чтобы изменить свою работу, но я все еще не могу возродиться, когда делаю это.

Комментарии:

1. Ваша строка 710 является errorNoHalt … Это строка, которая на самом деле предназначена для того, чтобы сообщить вам об ошибке. На самом деле ошибка кроется где-то в другом месте, где инициализируется игровой режим (для каждого игрока). Поскольку ваша строка 710 может быть достигнута только тогда, когда Player.DarkRPInitialised является false y

2. Причина ошибки, скорее всего, в неправильной конфигурации. Такая проблема будет выявлена в результате ошибки во время запуска сервера, так что следите за этим.