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