Even tho the file is added and included the the "init.lua" file it wont work.
"sh_factions.lua"
include( "config/sv_config.lua" ) --line 13
"init.lua"
AddCSLuaFile( "config/sv_config.lua" ) --line 16
include( "config/sv_config.lua" ) --line 20
The error message
Couldn't include file 'config\sv_config.lua' (File not found) (@gamemodes/gamemodename/gamemode/functions/sh_factions.lua (line 13))
This might be an easy, if so please help xd
If file sv_config.lua is empty it will return this error. Add a print or comment at the top and retry
Still the same error. Even with the print.
Console:
Config yay
Couldn't include file 'config\sv_config.lua' (File not found) (@gamemodes/gamemodename/gamemode/functions/sh_factions.lua (line 13))
"sv_config.lua"
print( "Config yay" )
//Factions
scr_factions = {
one = {
name = "One",
model = "models/player/Group03/male_04.mdl",
color = Color( 255, 255, 255 ),
health = 10,
maxhealth = 10
},
}
Can you show me the your file structure
"gamemodes/gamemodename/"
https://files.facepunch.com/forum/upload/114140/5ab464f2-417e-46ec-916f-ba391dd2c616/Screenshot_78.png
"gamemodes/gamemodename/gamemode/"
https://files.facepunch.com/forum/upload/114140/2709fb15-bebc-4d9c-a1a7-33c406b8a43c/Screenshot_79.png
( Screenshot from sublime )
https://files.facepunch.com/forum/upload/114140/86a7b2bc-b6d0-401a-81b5-bb100783da59/Screenshot_80.png
FIXED IT!
The problem was the file path.
"config/sv_config.lua" Was wrong
but this works: "../config/sv_config.lua"
Sorry, you need to Log In to post a reply to this thread.