Support (Read Only) > Suggestions

TTT Bug fix/Dev thread

(1/12) > >>

Deathie:
I figured I'd make a centralized post for any changes or updates I make.

Expect a weapon patch sometime tonight. I'll include a detailed list of the weapons base stats too, so you can get an idea of their fire rates, damage, etc.

Current bugs
- Weapons are unwieldy and hard to control [FIXED - Coolz's TTT runs at 66 tick while mine ran at 99 tick. Weapon recoil and spread is about 2/3'rds the normal speed. Rates have been adjusted.]
- Weapon stats sometimes don't load [FIXED - Old networked synchronization system for the stats were bad. Implemented new netcode that should  drastically improve server performance.]
- Last body to be killed sometimes despawns [FIXED - TTT dying shot function wasn't supported on the custom weapon base. Might re-add in the future.]
- Unable to drop weapons [FIXED - The points shop hotkey was overriding the default drop bind (+menu). Has been fixed by Coolz, use context menu (C) "impulse 201" (G) to use the pointshop now.]
- Loadout weapons spawn as spectator [FIXED - Loadout function now doesn't run if you're on the spectator team.]
- Unable to access traitor shop [FIXED - The points shop hotkey is now bound to "impulse 201" (G).]
- Spectators can break viewmodels by spamming alt-fire [FIXED - A weird bit of code in FA:S2's think function had it check for "+attack2" inputs and would spam viewmodels.]
- Weapon viewmodels still sometimes break! [UNKNOWN - It's hard to narrow down a problem when it happens almost at random and there's no errors associated to it. Until we can narrow down what exactly causes it, gg.]
- Weapon values get desync'd [FIXED - Weapons seem to be getting their values mixed up occasionally. I added a minor safety check on the weapons so they don't loop their RNG. Hopefully that fixes things.]
- F4 sometimes brings up attachment menu [FIXED - F4 now only brings up the stats screen to avoid confusion.]
- Red stat weapons did not spawn naturally [FIXED - Red attributes and weapons now spawn, albeit rarely.]
- Attachment lua error when switching weapons [FIXED -  Rapidly switching weapons shouldn't give you any more errors.]
- Attachments don't show until you switch weapons [DEBUGGED - When you spawn, if your weapon has an attachment, it may not show until you swap weapons. It happens because the attachment script runs when you switch weapons, and spawning with them bypasses it. I'll fix it once the server is back up.]
- 50 Cal T Sniper would glow while not equipped [FIXED -  Weapon glows are now disabled on 50 Cal Sniper.]
- Haste Mode not adding time to round [FIXED -  Fixed a bug that's persisted since June.]
- ttt_glacier would be full of errors and missing textures [FIXED -  You now download the addon instead of only the map.]

๖Ϝцzsioᴎ:
Hovering over weapons while spectating will cause script errors.

Spoiler (click to show/hide)[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84

Deathie:

--- Quote from: ๖Ϝцzsioᴎ on September 21, 2015, 03:04:21 PM ---Hovering over weapons while spectating will cause script errors.

Spoiler (click to show/hide)[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


[ERROR] gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. v - gamemodes/terrortown/entities/weapons/fas2_base/cl_drawfuncs.lua:26
    3. Run - lua/includes/modules/hook.lua:84
     4. v - lua/includes/modules/halo.lua:137
      5. unknown - lua/includes/modules/hook.lua:84


--- End quote ---

WOOPS.

That's fixed. I was testing something with my own weapons and didn't realize I modified the TTT's weapons.

Let me just uh, close that session.

Edit// Can't access server for some weird reason. I'll fix it as soon as I can.

Deathie:
Alright, updated all the weapons.

I might make a detailed post later, but the back end netcode makes way more sense now and is way more optimized. Each weapon only uses 6 bytes of data to network it's rarity values now and that info is only updated once when you either equip the gun, or look at it from within 500 hammer units (the distance needed to see the glow).

Before it was sending out about 1kb per second for each gun, meaning it was chugging out about 50-100kb's of extra bandwidth for each player, PER SECOND, trying to keep all the values synchronized.

Even then, it would sometimes desync and just give the client NO values and make them see guns that had no stats.

Now it's a handshake process. Your client asks for the rarity info, the server sends it back, then your client updates the weapon ONLY once it gets its info.

Basically, the rarity system is now practically invisible, resource-wise on the client and network, and is very accurate.

I also updated the spread cooldown and recoil on weapons to match 66 tick. Keep in mind that weapons are meant to handle like CSGO weapons, and have a high movement sensitivity. You won't land a headshot if you're running around at full speed trying to snipe someone from across the map with a deagle.

Feel free to suggest balance changes or other tweaks after you've had a chance to try them out. I can reduce the global cooldowns more if they still seem too high.

Monorail Cat:
Pressing C now opens the points shop, and it cancels out the traitor/detective buy menu.  I propose putting the points shop to \ or something unused.

Navigation

[0] Message Index

[#] Next page

Go to full version