Garry's Mod

Garry's Mod

(read description) Toybox Sweps
 This topic has been pinned, so it's probably important
garry  [developer] 14 Jul, 2022 @ 5:40am
Lua errors {bugs}
Post bugs/ lua errors here.
< >
Showing 1-15 of 49 comments
Haron. 19 Jul, 2022 @ 4:52am 
[Toybox Sweps] lua/weapons/weapon_shutgun870/shared.lua:536: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Ironzoom - lua/weapons/weapon_shutgun870/shared.lua:536
3. unknown - lua/weapons/weapon_shutgun870/shared.lua:135
garry  [developer] 19 Jul, 2022 @ 5:22am 
Originally posted by Nope.Obobo:
[Toybox Sweps] lua/weapons/weapon_shutgun870/shared.lua:536: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Ironzoom - lua/weapons/weapon_shutgun870/shared.lua:536
3. unknown - lua/weapons/weapon_shutgun870/shared.lua:135
fixed
Haron. 19 Jul, 2022 @ 8:58am 
Bag of boulders
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_bagofrocks/shared.lua:182 (x9)
Duke nukem 3D RPG
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_ran_dukerpg/shared.lua:127 (x110)
garry  [developer] 19 Jul, 2022 @ 9:27am 
Originally posted by Nope.Obobo:
Bag of boulders
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_bagofrocks/shared.lua:182 (x9)
Duke nukem 3D RPG
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_ran_dukerpg/shared.lua:127 (x110)


fixed
Haron. 19 Jul, 2022 @ 9:37am 
Originally posted by garry:
Originally posted by Nope.Obobo:
Bag of boulders
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_bagofrocks/shared.lua:182 (x9)
Duke nukem 3D RPG
[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_ran_dukerpg/shared.lua:127 (x110)


fixed
good, very good!
garry  [developer] 19 Jul, 2022 @ 9:43am 
Originally posted by Nope.Obobo:
Originally posted by garry:


fixed
good, very good!
yes
Haron. 19 Jul, 2022 @ 10:34am 
Valkyrie Rockets
[Toybox Sweps] lua/includes/modules/draw.lua:65: 'ArialNarrow18' isn't a valid font

1. SetFont - [C]:-1
2. SimpleText - lua/includes/modules/draw.lua:65
3. v - lua/entities/valkyrie_cr.lua:255
4. unknown - lua/includes/modules/hook.lua:96 (x57)
✠CFalcon075✠ 19 Jul, 2022 @ 1:04pm 
This post is all of the known errors that I know about the Toybox Sweps (for right now). Please update the mod when you can, these are the errors that are listed:

Beretta M9 Errors

[Toybox Sweps] lua/weapons/weapon_b9/shared.lua:395: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Sprint - lua/weapons/weapon_b9/shared.lua:395
3. unknown - lua/weapons/weapon_b9/shared.lua:134


[Toybox Sweps] lua/weapons/weapon_b9/shared.lua:395: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Sprint - lua/weapons/weapon_b9/shared.lua:395
3. unknown - lua/weapons/weapon_b9/shared.lua:134 (x4)

[Toybox Sweps] lua/weapons/weapon_b9/shared.lua:447: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Ironzoom - lua/weapons/weapon_b9/shared.lua:447
3. unknown - lua/weapons/weapon_b9/shared.lua:137

Bag of Boulders Error

[Toybox Sweps] lua/weapons/weapon_bagofrocks/shared.lua:56: attempt to call method 'SetShouldDrawInViewMode' (a nil value)
1. unknown - lua/weapons/weapon_bagofrocks/shared.lua:56

Erectin a Crossbow Error

[Toybox Sweps] gamemodes/base/entities/weapons/weapon_base/sh_anim.lua:31: bad argument #1 to 'lower' (string expected, got nil)
1. lower - [C]:-1
2. SetWeaponHoldType - gamemodes/base/entities/weapons/weapon_base/sh_anim.lua:31
3. unknown - lua/weapons/weapon_crossbowe/shared.lua:74
4. Give - [C]:-1
5. unknown - gamemodes/sandbox/gamemode/commands.lua:867
6. unknown - lua/includes/modules/concommand.lua:54

M-4 Rifle Errors & Missing Textures

[Toybox Sweps] lua/weapons/weapon_m4r/shared.lua:87: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. unknown - lua/weapons/weapon_m4r/shared.lua:87
3. SelectWeapon - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:871
5. unknown - lua/includes/modules/concommand.lua:54

[Toybox Sweps] lua/weapons/weapon_m4r/shared.lua:87: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. unknown - lua/weapons/weapon_m4r/shared.lua:87

[Toybox Sweps] lua/weapons/weapon_m4r/shared.lua:114: bad argument #1 to 'DefaultReload' (number expected, got no value)
1. DefaultReload - [C]:-1
2. unknown - lua/weapons/weapon_m4r/shared.lua:114

[Toybox Sweps] lua/weapons/weapon_m4r/shared.lua:182: attempt to call global 'SinglePlayer' (a nil value)
1. unknown - lua/weapons/weapon_m4r/shared.lua:182

[Toybox Sweps] lua/weapons/weapon_m4r/shared.lua:516: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Ironzoom - lua/weapons/weapon_m4r/shared.lua:516
3. unknown - lua/weapons/weapon_m4r/shared.lua:140

Failed to load sound "weapons\m4a2\boltback.wav", file probably missing from disk/repository

Failed to load sound "weapons\m4a2\boltforward.wav", file probably missing from disk/repository

M-4 Rifle (Missing Textures) Link [imgur.com]

Barrels. Error

[Toybox Sweps] lua/weapons/weapon_pewdie/shared.lua:60: bad argument #1 to 'AddAngleVelocity' (Vector expected, got userdata)
1. AddAngleVelocity - [C]:-1
2. Throw_Attack - lua/weapons/weapon_pewdie/shared.lua:60
3. unknown - lua/weapons/weapon_pewdie/shared.lua:41

M110 Sniper Errors

[Toybox Sweps] lua/weapons/weapon_110/shared.lua:86: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. unknown - lua/weapons/weapon_110/shared.lua:86
3. SelectWeapon - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:871
5. unknown - lua/includes/modules/concommand.lua:54

[Toybox Sweps] lua/weapons/weapon_110/shared.lua:469: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Sprint - lua/weapons/weapon_110/shared.lua:469
3. unknown - lua/weapons/weapon_110/shared.lua:142

[Toybox Sweps] lua/weapons/weapon_110/shared.lua:521: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Ironzoom - lua/weapons/weapon_110/shared.lua:521
3. unknown - lua/weapons/weapon_110/shared.lua:145

Failed to load sound "weapons\m110\sg550_draw.wav", file probably missing from disk/repository

Also a YouTube video about the M110 Sniper being very weird with the scope zoom:

M110 Sniper Bug

Duke Nukem 3D RPG Errors

[Toybox Sweps] lua/weapons/weapon_ran_dukerpg/shared.lua:223: bad argument #1 to 'SetModelScale' (number expected, got userdata)
1. SetModelScale - [C]:-1
2. unknown - lua/weapons/weapon_ran_dukerpg/shared.lua:223

[Toybox Sweps] lua/includes/extensions/entity.lua:192: attempt to index local 'col' (a number value)
1. SetColor - lua/includes/extensions/entity.lua:192
2. unknown - lua/weapons/weapon_ran_dukerpg/shared.lua:73

MP5SD Errors

[Toybox Sweps] lua/weapons/weapon_mp5rd/shared.lua:91: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. unknown - lua/weapons/weapon_mp5rd/shared.lua:91
3. SelectWeapon - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:871
5. unknown - lua/includes/modules/concommand.lua:54

[Toybox Sweps] lua/weapons/weapon_mp5rd/shared.lua:474: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. Sprint - lua/weapons/weapon_mp5rd/shared.lua:474
3. unknown - lua/weapons/weapon_mp5rd/shared.lua:147

Diamond Pickaxe Missing Textures

Diamond Pickaxe (Missing Textures) Link [imgur.com]

Minecraft Bow Errors

[Toybox Sweps] lua/weapons/weapon_mcbow/shared.lua:137: Tried to use a NULL entity!
1. Health - [C]:-1
2. unknown - lua/weapons/weapon_mcbow/shared.lua:137

Timer Failed! [Simple][@lua/weapons/weapon_mcbow/shared.lua (line 137)]

minecraft_arrow[129]: Changing collision rules within a callback is likely to cause crashes! (x4)
minecraft_arrow[131]: Changing collision rules within a callback is likely to cause crashes! (x4)
minecraft_arrow[132]: Changing collision rules within a callback is likely to cause crashes! (x4)

PINGAS SMG Error

[Toybox Sweps] lua/includes/modules/draw.lua:65: 'HL2SelectIcons' isn't a valid font

1. SetFont - [C]:-1
2. SimpleText - lua/includes/modules/draw.lua:65
3. unknown - lua/weapons/weapon_ran_pingas/shared.lua:165 (x48)

RPD Errors

[Toybox Sweps] lua/weapons/weapon_rsmg/shared.lua:87: bad argument #1 to 'SetFOV' (number expected, got nil)
1. SetFOV - [C]:-1
2. unknown - lua/weapons/weapon_rsmg/shared.lua:87
3. SelectWeapon - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:871
5. unknown - lua/includes/modules/concommand.lua:54

[Toybox Sweps] lua/weapons/weapon_rsmg/shared.lua:225: attempt to call global 'SinglePlayer' (a nil value)
1. unknown - lua/weapons/weapon_rsmg/shared.lua:225 (x10)

Other Errors

Error Vertex File for 'player/skeleton.mdl' checksum 818309534 should be 185546494 (x2)
[AddCSLuaFile] Couldn't find 'weapons/weapon_buzzer/shared.lua' (<nowhere>)
[AddCSLuaFile] Couldn't find 'shared.lua' (@lua/weapons/weapon_gunstrumental.lua (line 129))

[Toybox Sweps] lua/weapons/weapon_ran_portall/shared.lua:390: 'end' expected (to close 'function' at line 363) near 'else'


[Toybox Sweps] lua/weapons/weapon_uzi/shared.lua:216: ')' expected near '|'

Refusing to load dukenukempipebomb because it is missing Type and Base keys!
Refusing to load electromissile because it is missing Type and Base keys!
Refusing to load fire_controller because it is missing Type and Base keys!
Refusing to load ghor_arcbeam because it is missing Type and Base keys!
Refusing to load ghor_shuriken because it is missing Type and Base keys!
Refusing to load hmissile because it is missing Type and Base keys!
Refusing to load scout_nail because it is missing Type and Base keys!

[Toybox Sweps] lua/entities/sent_skullnpc/shared.lua:63: ')' expected (to close '(' at line 40) near 'function'

Refusing to load sent_skullnpc because it is missing Type and Base keys!
Refusing to load trace_particle because it is missing Type and Base keys!
Refusing to load valkyrie_cr because it is missing Type and Base keys!
Refusing to load zero_projectile_dreadnaught because it is missing Type and Base keys!

Other Stuff

Now, I want to talk about something that I am experiencing, there is no such thing when I search anywhere for the Gman Zombie or the Skeleton Zombie or even the DJ Core that was added. There is no such thing in entities, spawn lists, weapons, anywhere. So I would like to see a section where you add the entities to the entities section and label it as "Toybox Entities"

It would help big time if you would do this. Because I would love to have the entities and weapons from the Toybox era in Garry's Mod 13 badly. So with that said I would like to have that get done, so we can all enjoy the Toybox mods from back in the day and be able to locate them and spawn them in.

The other thing I'd suggest, is for the Barrels. swep is to add it to the Toybox Sweps section and not the "2" section. If you look at where the Barrels swep is at it is in the weapons section (obviously) but the name isn't in the Toybox Sweps directory, it is in the "number 2" directory. So if you go to the very top of the weapons list you'll see a weapon group called "2". Like said, remove the number 2 section and add it into the Toybox Sweps, so that way it is a lot easier to locate it so people don't have to search for it or go into the group that is called "2" so they can have it within the Toybox Sweps group if that makes sense.

And also, I cannot find the Diamond Sword weapon nor the Minecraft Torch 1.1 anywhere in weapons. Please add them in the Toybox Sweps section if you haven't already. I remember you had added those in. Like reiterated, please add those inside the Toybox Sweps weapons location. So that way we can spawn them in. Thanks for reading all of this! Remember to take your time and update the code when you feel free to. :)
Last edited by ✠CFalcon075✠; 21 Jul, 2022 @ 8:44am
garry  [developer] 19 Jul, 2022 @ 10:45pm 
Originally posted by ✠CFalcon075✠:
This post is all of the known errors that I know about the Toybox Sweps (for right now). Please update the mod when you can, these are the errors that are listed:

[
And also, I cannot find the Diamond Sword weapon nor the Minecraft Torch 1.1 anywhere in weapons. Please add them in the Toybox Sweps section if you haven't already. I remember you had added those in. Like reiterated, please add those inside the Toybox Sweps weapons location. So that way we can spawn them in. Thanks for reading all of this! Remember to take your time and update the code when you feel free to. :)







i can't upload "Minecraft Torch 1.1" rubat made it. i will add "MC Sword"
Last edited by garry; 19 Jul, 2022 @ 10:46pm
✠CFalcon075✠ 19 Jul, 2022 @ 11:50pm 
Originally posted by garry:
Originally posted by ✠CFalcon075✠:
This post is all of the known errors that I know about the Toybox Sweps (for right now). Please update the mod when you can, these are the errors that are listed:

[
And also, I cannot find the Diamond Sword weapon nor the Minecraft Torch 1.1 anywhere in weapons. Please add them in the Toybox Sweps section if you haven't already. I remember you had added those in. Like reiterated, please add those inside the Toybox Sweps weapons location. So that way we can spawn them in. Thanks for reading all of this! Remember to take your time and update the code when you feel free to. :)







i can't upload "Minecraft Torch 1.1" rubat made it. i will add "MC Sword"
Okay that is fine with me. Do you want to tell me why? I am kinda interested.

I am thinking it's because it's already in the Workshop. You don't have to tell me if you don't want to.
Last edited by ✠CFalcon075✠; 20 Jul, 2022 @ 12:00am
garry  [developer] 20 Jul, 2022 @ 1:34am 
Originally posted by ✠CFalcon075✠:
Originally posted by garry:







i can't upload "Minecraft Torch 1.1" rubat made it. i will add "MC Sword"
Okay that is fine with me. Do you want to tell me why? I am kinda interested.

I am thinking it's because it's already in the Workshop. You don't have to tell me if you don't want to.
Do NOT reupload any modifications of this gun. -the owner of mc torch 1.1
✠CFalcon075✠ 20 Jul, 2022 @ 5:48am 
Originally posted by garry:
Originally posted by ✠CFalcon075✠:
Okay that is fine with me. Do you want to tell me why? I am kinda interested.

I am thinking it's because it's already in the Workshop. You don't have to tell me if you don't want to.
Do NOT reupload any modifications of this gun. -the owner of mc torch 1.1
Ahh that makes sense! Thanks for letting me know.

Hopefully you can fix all the errors in the code that I have posted that were there happening.
Last edited by ✠CFalcon075✠; 20 Jul, 2022 @ 5:52am
garry  [developer] 21 Jul, 2022 @ 5:15am 
Originally posted by ✠CFalcon075✠:
This post is all of the known errors that I know about the Toybox Sweps (for right now). Please update the mod when you can, these are the errors that are listed:

[
[AddCSLuaFile] Couldn't find 'shared.lua' (@lua/weapons/weapon_gunstrumental.lua (line 129))



i didnt add "Gunstrumental".
Last edited by garry; 21 Jul, 2022 @ 5:15am
Haron. 21 Jul, 2022 @ 5:33am 
[Toybox Sweps] lua/weapons/weapon_lemon/shared.lua:57: bad argument #1 to 'SetMaterial' (IMaterial expected, got number)
1. SetMaterial - [C]:-1
2. unknown - lua/weapons/weapon_lemon/shared.lua:57 (x32)




(Lemon grenade does no damage to NPC)
Last edited by Haron.; 21 Jul, 2022 @ 5:36am
garry  [developer] 21 Jul, 2022 @ 6:23am 
Originally posted by Nope.Obobo:
[Toybox Sweps] lua/weapons/weapon_lemon/shared.lua:57: bad argument #1 to 'SetMaterial' (IMaterial expected, got number)
1. SetMaterial - [C]:-1
2. unknown - lua/weapons/weapon_lemon/shared.lua:57 (x32)




(Lemon grenade does no damage to NPC)

fixed, and checked line 57 and it's "function SWEP:Reload() end" i dont see "SetMaterial".
< >
Showing 1-15 of 49 comments
Per page: 1530 50