所以基本上我正在尝试启动一个 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
如果有人想问,是的,我已经使用命令来改变我的工作,但是当我这样做时我仍然无法重生。