Garry's Mod

Garry's Mod

Chemlight
 此主题已被置顶,因此可能具有重要性
gost Nava  [开发者] 2023 年 1 月 27 日 上午 4:37
Bugs
BugsBugsBugs, Bugs go here
最后由 gost Nava 编辑于; 2023 年 1 月 27 日 上午 4:37
< >
正在显示第 1 - 15 条,共 53 条留言
Ace 2023 年 1 月 27 日 上午 9:34 
can't throw chemlight
gost Nava  [开发者] 2023 年 1 月 27 日 上午 9:47 
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 2023 年 1 月 27 日 上午 10:52 
[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.
最后由 Rasmordem 编辑于; 2023 年 1 月 27 日 上午 10:53
Rasmordem 2023 年 1 月 27 日 上午 11:00 
[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  [开发者] 2023 年 1 月 27 日 上午 11:00 
I will look into it, still, it's pretty strange
gost Nava  [开发者] 2023 年 1 月 28 日 上午 10:47 
Changed some file names to avoid conflicts, still cannot find the reason of such errors, and probably wouldn't find
Rasmordem 2023 年 1 月 28 日 下午 7:14 
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.
最后由 Rasmordem 编辑于; 2023 年 1 月 28 日 下午 7:17
Rasmordem 2023 年 1 月 28 日 下午 7:35 
引用自 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 2023 年 1 月 29 日 上午 5:28 
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  [开发者] 2023 年 1 月 29 日 上午 7:56 
That addon removed ducking self.Owner statement from ENT XD
Cheerful 2023 年 1 月 30 日 上午 1:07 
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.
最后由 Cheerful 编辑于; 2023 年 1 月 30 日 上午 1:09
gost Nava  [开发者] 2023 年 1 月 30 日 上午 1:33 
kk will fix
gost Nava  [开发者] 2023 年 1 月 30 日 上午 6:51 
Fixed
Cheerful 2023 年 1 月 30 日 上午 9:41 
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
最后由 Cheerful 编辑于; 2023 年 1 月 30 日 上午 9:48
gost Nava  [开发者] 2023 年 1 月 30 日 上午 10:01 
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
最后由 gost Nava 编辑于; 2023 年 1 月 30 日 下午 3:28
< >
正在显示第 1 - 15 条,共 53 条留言
每页显示数: 1530 50