Garry's Mod

Garry's Mod

Quick Weapon Menu
GodMode  [ontwikkelaar] 2 sep 2014 om 1:12
Bugs
If you found a bug this addon you can report it here. i will fix it as soon as i can :)
< >
1-12 van 12 reacties weergegeven
I changed all of the quick menu equipment to cstm weapons, turned on sv_cheats 1 and suicided, then tried to use it. Now it won't change to them (and yes, I typed in the spawn code for them. Example: cstm_pistol_glock17 for the glock 17, but it still won't work regardless if I have sv_cheats on or not)
On trying to use this on a multiplayer server, attempting to change the settings (via hitting OK) causes this error to appear:
[ERROR] addons/quick weapon menu/lua/autorun/client/menu.lua:275: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. GetValue - [C]:-1
2. QM_Settings_ButtonClick - addons/quick weapon menu/lua/autorun/client/menu.lua:275
3. DoClick - addons/quick weapon menu/lua/autorun/client/menu.lua:248
4. unknown - lua/vgui/dlabel.lua:206
Odd, that's what it says.. although I'm in singleplayer. Although I DO usually break something just by installing it.
GodMode  [ontwikkelaar] 10 sep 2014 om 5:27 
Cycle, Did you by change leave an input field empty? Because it looks like one of the input fields does not have a value, and thats why lua gets an error when trying to get the (non existing) error
GodMode  [ontwikkelaar] 10 sep 2014 om 5:27 
though i will fix the script to use a default value when its fails to get a value
GodMode  [ontwikkelaar] 10 sep 2014 om 5:28 
Eono, i have no idea why it would not give the weapon. did you enter a faulty entity name? in that case you can find an error in the console telling you that it couldnt give you the non existing entity. and if thats not the case i realy dont know what causes it :/ does it give you lua errors?
It doesn't give me lua errors; surprisingly I haven't had those for a LONG time. cstm_ is the correct value for it, according to the console. It works when I spawn all the weapons in though.
(another example is cstm_rif_ak47 to spawn in the AK47 from the Assault Rifles menu in Extra Customizable Weaponry)
Both slots had values. Here's what I had:
weapon_zs_owens (a pistol I ripped and converted to Sandbox), named 'Owens'.
All other fields were left untouched, with their default values.
Laatst bewerkt door Global; 10 sep 2014 om 13:44
@megatigereye i cant change the weapons in the menu and ive tried everything i can think of ive went to your previous comments pages and got advice from your earlier comments and it still not working it just keeps saying your addon is creating errors and this is wat it keeps saying in the console [Quick Weapon Menu] lua/autorun/client/menu.lua:275: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. GetValue - [C]:-1
2. QM_Settings_ButtonClick - lua/autorun/client/menu.lua:275
3. DoClick - lua/autorun/client/menu.lua:248
4. unknown - lua/vgui/dlabel.lua:206
AND I DONT KNOW WHY so can you please tell me wats wrong?
Upon changing weapons in quick wheel error pops up:

[ERROR] workshop/lua/autorun/client/menu.lua:275: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. GetValue - [C]:-1
2. QM_Settings_ButtonClick - workshop/lua/autorun/client/menu.lua:275
3. DoClick - workshop/lua/autorun/client/menu.lua:248
4. unknown - lua/vgui/dlabel.lua:218

[Leo1250|2|STEAM_0:>>gonna just remove this from here<<] Lua Error:

[ERROR] workshop/lua/autorun/client/menu.lua:275: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. GetValue - [C]:-1
2. QM_Settings_ButtonClick - workshop/lua/autorun/client/menu.lua:275
3. DoClick - workshop/lua/autorun/client/menu.lua:248
4. unknown - lua/vgui/dlabel.lua:218
[Quick Weapon Menu] lua/autorun/client/menu.lua:275: Tried to use a NULL Panel!
1. GetValue - [C]:-1
2. QM_Settings_ButtonClick - lua/autorun/client/menu.lua:275
3. DoClick - lua/autorun/client/menu.lua:248
4. unknown - lua/vgui/dlabel.lua:237

i get this when trying to change the weapons
Quite an specific bug:
while using any TFA weapons, the custom TFA menu won't work, it'll open but i won't be able to interact with anything
it can be solved if i hold the keybind for this wheel, but it doesn't feel right to say at least.
< >
1-12 van 12 reacties weergegeven
Per pagina: 1530 50