• Garry's update has anally screwed my gamemode and reason why?
    2 replies, posted
Ok, so I was working on my gamemode in my listen server. Everything was going well, I managed to get a few things done to my gamemode. That evening I was really excited to put my gamemode up on a public server. After doing so, I realize a few things going wrong. It was as if, my gamemode had completely broke it self. Everything was not WORKING! Player spawning was screwed, errors about emitters and shit, overall bugs, weapons fire rates screwing up. It was pure shit. Now, I have been looking for solutions and I have found out I am not the only one experiencing faults within this game. The reason why I blame this fickle update is because it was working perfectly before. For those who are wondering what gamemode I have it is a 'zombie survival' gamemode which was release by Jetboom. I had gone on many zombie survival servers especially and realized how bad the update had ruined them. If there is anyone willing to help me fix my gamemode so it is Garry proof so that it doesn't get fucked over again, please message me either on steam or facepunch. I have had enough of bullshit like this happening every-time and nothing is being said about it.
Jetboom I believe has fixed these since the most recent update (or at least the dev version has them fixed), have you considered updating to the latest version?
Alright; here's the issue. You're developing on a Listen-Server; Set up a SRCDS local dedicated. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html[/url] Second problem, when using Auto-Refresh you HAVE TO think recursively. The reason I say that is because if you write code like this: [lua]hook.Add( "PlayerSpawn", "MySpawnHook", SpawnHooker ); function SpawnHooker( _p ) print( "Test" ); end[/lua] The SpawnHooker function is not declared when the hook is called, so it looks like: [lua]hook.Add( "PlayerSpawn", "MySpawnHook", nil);[/lua] Which will NOT work. Now, if you have that same piece of code and you auto-refresh; it WILL work. The reason being that when the game-mode loaded, it defined SpawnHooker as a function; when you auto-refresh, SpawnHooker now existed so that hook.Add will now see SpawnHooker as function: @ADDR. So, you need to be 100% certain of what is executing when, where, and how. Here's a new ParticleEmitter fix: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/particle_emitter_fix_new.lua.html[/url] It requires all instances of ParticleEmitter to be replaced with LocalPlayer( ):GetEmitter( position, use3d ); Make sure you remove the old fix file, remove the code, or put do return; end at the top of the client-side particle emitter fix JetBoom includes. If you replace all instances of ParticleEmitter, then the function in that fix file will be changed too. Anyway; show us the errors, show us the code for each of the errors. It may be something very small which caused one file to not load which then caused all of the errors...
Sorry, you need to Log In to post a reply to this thread.