thebigsleepjoe / TTT-Bots-2

Player bots for Garry's Mod TTT
Creative Commons Attribution Share Alike 4.0 International
10 stars 2 forks source link

[BUG] inventory bug #36

Closed EntranceJew closed 4 months ago

EntranceJew commented 5 months ago

Game version/server type

Describe the bug

A clear and concise description of what the bug is.

Stack trace/error

The error, if any. Example:

[TTT Bots 2.0] lua/tttbots2/components/sv_inventory.lua:187: bad argument #1 to 'ceil' (number expected, got nil)
  1. ceil - [C]:-1
   2. GetHeldWeaponInfo - lua/tttbots2/components/sv_inventory.lua:187
    3. StartCommand - lua/tttbots2/components/sv_locomotor.lua:1452
     4. fn - lua/tttbots2/sh_tttbots2.lua:139
      5. unknown - lua/ulib/shared/hook.lua:109

Reproducing the bug

Steps to reproduce the behavior:

  1. Reload the game files a few times in a live refresh.
  2. Roll the dice.

Expected behavior

This doesn't happen.

Additional context

Hard to say what really triggers it but the latest version of TTT2 on git causes it a lot.

thebigsleepjoe commented 5 months ago

What is it you're live-refreshing? Is it an SWEP?

thebigsleepjoe commented 5 months ago

Can you test again on the latest update to the steam branch?