Garry's Mod

Garry's Mod

Chemlight
 This topic has been pinned, so it's probably important
gost Nava  [developer] 27 Jan, 2023 @ 4:37am
Bugs
BugsBugsBugs, Bugs go here
Last edited by gost Nava; 27 Jan, 2023 @ 4:37am
< >
Showing 1-15 of 52 comments
Ace 27 Jan, 2023 @ 9:34am 
can't throw chemlight
gost Nava  [developer] 27 Jan, 2023 @ 9:47am 
Check if ammunition consumption option is checked in the settings (Q > Utilities > Chemlight > Server settings), and if so, uncheck it, or spawn yourself some sticks/spawn crate from fun+games entity group and use it to aquire more sticks
Rasmordem 27 Jan, 2023 @ 10:52am 
[Chemlight] lua/includes/util/color.lua:17: bad argument #1 to 'min' (number expected, got nil) 1. min - [C]:-1 2. Color - lua/includes/util/color.lua:17 3. unknown - lua/entities/ent_chemlight_glow_vmanip/init.lua:15 [Chemlight] lua/autorun/client/cl_glowsticks2022_menu.lua:158: Tried to use a NULL Panel! 1. SetText - [C]:-1 2. v - lua/autorun/client/cl_glowsticks2022_menu.lua:158 3. unknown - lua/includes/modules/hook.lua:96 (x763)

Top is highlighted in blue in console, and bottom is highlighted in yellow and spammed in console.

This was after it was eaten.
Last edited by Rasmordem; 27 Jan, 2023 @ 10:53am
Rasmordem 27 Jan, 2023 @ 11:00am 
[Chemlight] lua/includes/util/color.lua:17: bad argument #1 to 'min' (number expected, got nil) 1. min - [C]:-1 2. Color - lua/includes/util/color.lua:17 3. unknown - lua/entities/ent_chemlight_glow_vmanip/init.lua:15 (x5)

And I still get this spammed every time the custom Glowstick is equipped either as a weapon or through Vmanip
gost Nava  [developer] 27 Jan, 2023 @ 11:00am 
I will look into it, still, it's pretty strange
gost Nava  [developer] 28 Jan, 2023 @ 10:47am 
Changed some file names to avoid conflicts, still cannot find the reason of such errors, and probably wouldn't find
Rasmordem 28 Jan, 2023 @ 7:14pm 
I think I found the cause of the previous errors I posted, but I need to do more experimentation to be sure.

However, I did find another error (With the possible cause disabled):

[Chemlight] lua/autorun/client/cl_navachemlight_menu.lua:158: Tried to use a NULL Panel! 1. SetText - [C]:-1 2. v - lua/autorun/client/cl_navachemlight_menu.lua:158 3. unknown - lua/includes/modules/hook.lua:96 (x138)

This pops up when I click on the "options" button for the addon's settings to change the color of the light in the spawnmenu but does not always happen and I am unsure what triggers it.

Try equipping the custom light with vmanip and afterward, holster it and spawn it as a weapon, then holster that and click on the "options" button (for your addon) to change light color to try and reproduce.

This same error also breaks the experimental firstperson mode from Draconic Base also.
Last edited by Rasmordem; 28 Jan, 2023 @ 7:17pm
Rasmordem 28 Jan, 2023 @ 7:35pm 
Originally posted by Rasmordem:
I think I found the cause of the previous errors I posted, but I need to do more experimentation to be sure.

However, I did find another error (With the possible cause disabled):

[Chemlight] lua/autorun/client/cl_navachemlight_menu.lua:158: Tried to use a NULL Panel! 1. SetText - [C]:-1 2. v - lua/autorun/client/cl_navachemlight_menu.lua:158 3. unknown - lua/includes/modules/hook.lua:96 (x138)

This pops up when I click on the "options" button for the addon's settings to change the color of the light in the spawnmenu but does not always happen and I am unsure what triggers it.

Try equipping the custom light with vmanip and afterward, holster it and spawn it as a weapon, then holster that and click on the "options" button (for your addon) to change light color to try and reproduce.

This same error also breaks the experimental firstperson mode from Draconic Base also.


Correction, This error shows up on EVERY Tab in the spawnmenu except your "Server Settings" tab to control the behaviors.
Rasmordem 29 Jan, 2023 @ 5:28am 
Okay, the cause of the errors I posted at the top is RE: Base Which is to help optimization at the gamemode level. The creator of that is also aware of this issue and might try to fix it over there.
gost Nava  [developer] 29 Jan, 2023 @ 7:56am 
That addon removed ducking self.Owner statement from ENT XD
1 30 Jan, 2023 @ 1:07am 
I was playing in muliplayer with player bots and got this error

[Chemlight] lua/includes/util/color.lua:17: bad argument #1 to 'min' (number expected, got nil)
1. min - [C]:-1
2. Color - lua/includes/util/color.lua:17
3. v - lua/autorun/server/sv_navachemlights.lua:113
4. unknown - lua/includes/modules/hook.lua:96
5. Kill - [C]:-1
6. Call - gamemodes/base/gamemode/player.lua:358
7. unknown - gamemodes/base/gamemode/player.lua:465

---------------------------
It happened when a bot player died.
Last edited by 1; 30 Jan, 2023 @ 1:09am
gost Nava  [developer] 30 Jan, 2023 @ 1:33am 
kk will fix
gost Nava  [developer] 30 Jan, 2023 @ 6:51am 
Fixed
1 30 Jan, 2023 @ 9:41am 
Ty D

I actually broke the mod again, lol. This time i gave an NPC the glow stick.

[Chemlight] gamemodes/base/entities/weapons/weapon_base/shared.lua:250: attempt to call method 'GetAmmoCount' (a nil value)
1. Ammo1 - gamemodes/base/entities/weapons/weapon_base/shared.lua:250
2. PrimaryAttack - lua/weapons/weapon_chemlight_blue/shared.lua:175
3. unknown - gamemodes/base/entities/weapons/weapon_base/init.lua:95
--------------------
I used these console commands.

npc_create_equipment weapon_chemlight_blue
npc_create npc_barney

I guess i'm helping you find bugs lol
Last edited by 1; 30 Jan, 2023 @ 9:48am
gost Nava  [developer] 30 Jan, 2023 @ 10:01am 
As I said in the update log, I will not add bot support, at least for now, I am aware that giving bots chemlights is creating a ♥♥♥♥-tonn of errors
Last edited by gost Nava; 30 Jan, 2023 @ 3:28pm
< >
Showing 1-15 of 52 comments
Per page: 1530 50