Cant start up Darkrp gamemode.

Creating a KingdomRP server, so ive made a kingdomrp gamemode folder. That derives from darkrp. When starting up the server i recieve these errors:


[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:30: attempt to index field 'Config' (a nil value)
  1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:30
   2. include - [C]:-1
    3. unknown - gamemodes/darkrp/gamemode/init.lua:79
     4. DeriveGamemode - [C]:-1
      5. unknown - gamemodes/kingdomrp/gamemode/shared.lua:7
 
 
[ERROR] gamemodes/darkrp/gamemode/libraries/modificationloader.lua:67: attempt to index field 'Config' (a nil value)
  1. loadModules - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:67
   2. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:147
    3. unknown - gamemodes/darkrp/gamemode/init.lua:86
     4. DeriveGamemode - [C]:-1
      5. unknown - gamemodes/kingdomrp/gamemode/shared.lua:7
 
Couldn't Load Init Script: 'darkrp/gamemode/init.lua'

I havent edited any of the darkrp files. Ask if you require any more information.

This is the line that causes this error: https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua#L30

GM.Config is nil. It’s declared in DarkRP’s init.lua, which I assume you’ve overridden in your gamemode.

Stop using cracked coderhire shit
GM.Config is the prob btw

You know, normally I agree with this, but there isn’t anything in this error to suggest that he’s using leaked scripts.

And by the way, Coderhire died over three years ago.

I’m not using any leaked scripts, i have very few scripts on the server at the moment.
Ive disabled all of the default jobs? in darkrp modification so surely i shouldnt be getting this error?
Do i need to add any code into my “kingdomrp” init.lua file?

[editline]8th November 2017[/editline]

Seems to be with my “kingdomRP” gamemode ive made, can anyone give me a low down on what i need to include in my gamemode folder? Im using it only so it will appear in the KingdomRP gamemode section.

[editline]8th November 2017[/editline]

This is my shared.lua File for my “kingdomRP” gamemode:


GM.Name = "kingdomrp"
GM.Author = "Badger"
GM.Email = "N/A"
GM.Website = "N/A"

function GM:Initialize()
DeriveGamemode( "darkrp" )
    
end

My init.lua file:


AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include( "shared.lua" )

My .txt file.
“kingdomrp”


"kingdomrp"
{
	"base"		"darkrp"
	"title"		"KingdomRP"
}


I’m pretty sure “base” should equal “base” so



    “base”    “base”


Why so?

[editline]9th November 2017[/editline]

DarkRP’s init.lua

Some things are defined there, your init.lua overrides that, so you’re getting errors because other darkrp files are trying to access variables that aren’t defined.

I have sorted this issue thankyou.

[editline]9th November 2017[/editline]

I re-did my “kingdomrp” gamemode after reading and watching some tutorials.