Hi, i have been working for the last few days to make a public garrys mod server and im setting up the init.lua, cl_init.lua and shared.lua files and there seems to be an error somewhere that i cant find, wondering if anyone with more experience than me could help, thanks in advance.
This is my cl_init.lua file
https://files.facepunch.com/forum/upload/468439/083586c1-ccec-4916-9fc4-ea2f59e70fde/image.png
My init.lua file
https://files.facepunch.com/forum/upload/468439/7294c126-80f8-48bd-8040-2a5c8c57507a/image.png
My shared.cfg file
https://files.facepunch.com/forum/upload/468439/d8477bad-0736-47c2-8275-2a94edc71861/image.png
My autoexec.lua file (just to change the gamemode to basewars when the server initialises)
https://files.facepunch.com/forum/upload/468439/e11cd8f7-d2cd-4e8a-9403-0fce0708de1b/image.png
Also a screenshot of my gmod console while im ingame of all error "Couldn't include file 'shared.lua' (File not found) (@gamemodes/basewars/gamemode/cl_init.lua (line 1))
"
https://files.facepunch.com/forum/upload/468439/8dbaaf4e-85d7-4c7e-a525-bdec409a10d3/image.png
Thanks again, any help is much appreciated, i can add more screenshots in necessary.
You need to set the directory of where "shared.lua" is. For instance, "lua/autorun/shared.lua".
If you're trying to run a gamemode, I'd recommend adding it to a collection from the workshop then making the server download it or use one that's been made on GitHub. Hope that helps.