Author Topic: Issues with dedicated server  (Read 3654 times)

Offline rBST Cow

  • Tinniest title on CG
  • Gold Member
  • *
  • Posts: 2,178
  • Awards [OCRP Award] Dedicated Player [OCRP Award] Millionaire [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon
    • View Profile
    • Awards
Issues with dedicated server
« on: June 01, 2014, 02:40:09 PM »
So basically I'm trying to learn how to code and I've been following Youtube tutorials on how to run a dedicated server so I can put my gamemode on it and test it out. The problem is that whenever I run it, the gamemode won't like play. It says "Game: Base Gamemode" and not "Game: Example"(I named my gamemode example. I then found an error in the console whenever I join and it says

 "[cow|2|STEAM_0:1:54217608] Lua Error:
Couldn't include file 'shared.lua' (File not found) (@gamemodes/example/gamemode/cl_init.lua (line 1))"

Could this be the issue? How do I fix it?
abbot common stop bad for you if u watch anime all day nigga u fuckn weaboo

Offline Sambolinski

  • Gold Member
  • *
  • Posts: 282
    • View Profile
    • Awards
Re: Issues with dedicated server
« Reply #1 on: June 01, 2014, 03:01:30 PM »
I think the issue is in the server.cfg file (Haven't loaded a game mode on my server in a while) and make the sv_defaultgamemode example. If that doesn't work check this link:
http://wiki.garrysmod.com/page/Gamemode_Creation

Offline wakeboarderCWB

  • Gold Member
  • *
  • Posts: 2,486
  • Awards [OCRP Award] Social Player [OCRP Award] You Own The Mall [OCRP Award] Dedicated Player [OCRP Award] Millionaire
    • View Profile
    • Awards
Re: Issues with dedicated server
« Reply #2 on: June 01, 2014, 03:10:17 PM »
Are you using a batch file to run the server? If so, paste the code here.

Offline rBST Cow

  • Tinniest title on CG
  • Gold Member
  • *
  • Posts: 2,178
  • Awards [OCRP Award] Dedicated Player [OCRP Award] Millionaire [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon
    • View Profile
    • Awards
Re: Issues with dedicated server
« Reply #3 on: June 01, 2014, 04:43:15 PM »
Are you using a batch file to run the server? If so, paste the code here.

I'm using srcds to run the server

These are the files located in C:\Users\nigger\Desktop\Coding\SteamCMD\Server\garrysmod\gamemodes as well as C:\Program Files (x86)\Steam\SteamApps\common\garrysmod\garrysmod\gamemodes

https://www.mediafire.com/folder/jylx9fn4b7jav/example


I'm not sure if it's an issue with the code or what, I like know very little about LUA...tryna' learn
abbot common stop bad for you if u watch anime all day nigga u fuckn weaboo

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal