• [Linux/Ubuntu] Lua Autorefresh (Work Around?)
    3 replies, posted
So i've been developing a server on my computer for the past week or two and decided to move the files to an upgraded server running linux/ubuntu(12.04) Typical server: [I]4 core cpu 8gb ram 100gb hdd[/I] nothing special. I then come to find out that the linux version of gmod doesn't have a autorefresh for lua coding... So things like vgui which makes things a hell of alot easier when they update on file changes, now becomes 10x harder as you have to restart the server/map to see the changes. [B]So my question to any of you[/B], has anyone found a work around for this? I've tried researching workarounds but haven't come across anything helpful...
It does have auto refresh, it just doesn't send the new files to the client unless the client reconnects. Develop on a listen server or face the wrath of reloads.
[QUOTE=huntskikbut;47098141]It does have auto refresh, it just doesn't send the new files to the client unless the client reconnects. Develop on a listen server or face the wrath of reloads.[/QUOTE] See that's what I thought at first, which I would be fine with as I wouldn't have to run my start_server.sh every time. But I change things in my gamemodes cl_init and retry after saving and pushing the file to the server and BOOM... nothing changes. It requires a full damn restart/map change.
If you're writing a custom game-mode I can send you over my system... "Smart Auto-Refresh" which uses my autoloader and networking system. Networking is released and the autoloader is almost ready to be rolled out with a new update which makes everything a lot easier... Anyway, nothing beats creating SRCDS on your local computer; if you're using Windows you'll be set: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html[/url] You can also enable -multirun -steam in your game launch options ( launch using bat file ) and sv_lan 1 on the server; then you can open multiple Garry's Mod clients on your PC and connect to your local dev server. Make sure you set maxplayers to something higher than 1 or you'll be in single-player mode. Feel free to add me on Steam. Here's the info on my dev-base which has the old autoloader ( dev_networking has a newer version but not the newest )... If you're looking for an "empty" game-mode to start developing on ( for creating addons in an environment meant for dev work, developing a new game-mode, etc... ) which has a lot of building-blocks to make development easier, and dev-tools for debugging, etc.. I recommend running my dev-base ( supports smart-autorefresh for Linux or Windows with -disableluarefresh ) AcecoolDev_Base Skeletonized Game-Mode ( Never worry about Include or AddCSLuaFile ever again; comes with New Hooks, Console Commands, Meta-Table Objects, Helper Functions, Extended Functionality, and more! ) AcecoolDev_Networking: Only has the networking and data system with required files. Also has UMSG to NetMSG Conversion Mapper and will eventually include NW/DT/etc.. Var map through networking system... Find out more and Download here: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_acecooldev_base_gamemode_info.lua.html[/url] If you are running Linux on your PC I could definitely use a tester for the newest version of my autoloader before I release it ( need to see if latest version of file is sent on client retry or if they need to be sent manually... )
Sorry, you need to Log In to post a reply to this thread.