Garry's Mod

Garry's Mod

Cloudbox - The new Toybox!
Complete Errors I Have Found!
Just thought I'd help and see if I could try and show you the errors I'm seeing, with complete details of the error and what SWEP/SENT etc it was!

Burnmaster 6000 (toybox_180182):

[ERROR] lua/includes/util.lua:304: attempt to perform arithmetic on local 'from' (a nil value)
1. Lerp - lua/includes/util.lua:304
2. func - RunString(Ex):1330
3. unknown - gamemodes/base/gamemode/cl_init.lua:564 (x6569)

Burnmaster 6000 ERROR Details: Whenever I spawn it in-game (so every time I use it), the Burnmaster 6000 just looks like an original HL2 crossbow, and it doesn't have all of the stuff on the crossbow (that are the parts that'll make up the Burnmaster 6000). So it just looks like a regular old crossbow and it has issues when you spawn it in and are using it, only when you're using it but if you switch from the weapon and holster it, it'll not create more errors in the game.

Dreadnaught Cannon (toybox_26593):

[ERROR] RunString(Ex):190: attempt to call field 'Create' (a nil value)
1. unknown - RunString(Ex):190

Dreadnaught Cannon ERROR Details: Every time when the cannon shoots the Dreadnaught's explosive, it'll blow up on the ground and will cause this error like shown there. So whenever it is hitting somewhere it'll blow up and cause this error.

Pixel Sword (toybox_180179):

[ERROR] RunString(Ex):234: attempt to index field 'AlphaBar' (a nil value)
1. Function - RunString(Ex):234
2. unknown - lua/includes/modules/usermessage.lua:80

Warning! Detected missing cam.End3D call! (x1865)

Pixel Sword ERROR Details: Basically like reiterated a couple of times here (with other SWEP issues of course), whenever I equip the weapon it'll just create these errors and you cannot go into the menu of the Pixel Sword SWEP when pressing R. So the menu of the SWEP can also be seen on the top left corner of the screen for the color wheel and stuff, and it'll have multiple problems as shown.

Ninja Knife (toybox_457), (There are two errors, one from Cloudbox and one from the SWEP itself):

[Cloudbox - The new Toybox!] RunString(Ex):530: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. unknown - RunString(Ex):530
3. RunString - [C]:-1
4. ExecuteCloudboxPackage - lua/cloudbox/shared/cloudbox.lua:65
5. func - lua/cloudbox/server/request.lua:120
6. unknown - lua/includes/extensions/net.lua:37

[ERROR] 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 - RunString(Ex):1052

Ninja Knife ERROR Details: It's just whenever you spawn in the weapon first, it'll create this error, I do notice the knife's animation speed itself is very fast, maybe a little too fast whenever you equip it. Now I do have other addons enabled, but not so much so maybe it's either the Cloudbox having issues on the first error I've shown, which is the [Cloudbox - The new Toybox!] one.

It could either be some other mod conflicting with this mod, or maybe not. Also not sure if this is supposed to happen but whenever I right-click when using the SWEP and it's equipped, I don't see it give me any invisibility cloak and it just has a sound whenever I press right-click, like a HL2 pistol out of ammo sound effect.

Real Desert Eagle (toybox_15018):

[ERROR] 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 - RunString(Ex):42

Real Desert Eagle ERROR Details: It has this error whenever It is given to the player, that's all that's wrong with it I think.

NPC Spawner (toybox_788):

[ERROR] RunString(Ex):460: attempt to call method 'SetIconSize' (a nil value)
1. MenuCreate - RunString(Ex):460
2. MenuOpen - RunString(Ex):563
3. Function - RunString(Ex):558
4. unknown - lua/includes/modules/usermessage.lua:80


[ERROR] RunString(Ex):521: attempt to index field 'TNpc' (a nil value)
1. MenuRebuildNpcList - RunString(Ex):521
2. MenuOpen - RunString(Ex):565
3. Function - RunString(Ex):558
4. unknown - lua/includes/modules/usermessage.lua:80 (x3)

NPC Spawner ERROR Details: Whenever I press R in-game this happens, and when I do so I see a broken page icon appear at the top left, and it has this white box/border on the top left of my screen.

Old Radio:

[ERROR] RunString(Ex):135: bad argument #1 to 'CreateSound' (Entity expected, got nil)
1. CreateSound - [C]:-1
2. unknown - RunString(Ex):135

Old Radio ERROR Details: It also just so happens to whenever I press E on the radio, nothing happens and this error gets created, (pretty obvious).

Flemming (Hunts you):

[ERROR] RunString(Ex):31: attempt to call method 'SetHullType' (a nil value)
1. unknown - RunString(Ex):31

Flemming (Hunts you) ERROR Details: Just whenever I spawn it this happens, and when you spawn it, it doesn't have that enormous head that it should have. Several other things are worthy to note here. Like as in for an example, the Flemming has issues with hitting the player, like it sometimes doesn't hit the player like it should. Meaning that whenever the Flemming tries to hit you, no damage is taken and it misses or something, and when it does hit you no errors happen that is noteworthy.

Goomba Stomp Rocketjump (toybox_447):

[ERROR] RunString(Ex):58: attempt to call global 'GetWorldEntity' (a nil value)
1. unknown - RunString(Ex):58 (x237)

Goomba Stomp Rocketjump ERROR Details: Whenever I rocket jump and then stomp on any NPC (maybe even prop or whatever too, haven't tried) does this exact error. So basically this is a bit broken.

Milkor MGL (toybox_137093):

[ERROR] RunString(Ex):97: bad argument #1 to 'SetDeploySpeed' (number expected, got nil)
1. SetDeploySpeed - [C]:-1
2. unknown - RunString(Ex):97

Milkor MGL ERROR Details: It's also whenever I equip this weapon, it'll have this issue where the deploy speed is all messed up and stuff, and then when I right-click, it does this blue text in console as an error which means it's on the server side of things, and it says the following: [ERROR] C++ exception.

So basically that's what happens for the Milkor MGL grenade launcher whenever I equip it, and whenever it's right-clicked it'll do that C++ error.

FiveSeven Akimbo (toybox_86513):

[ERROR] 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 - RunString(Ex):98

FiveSeven Akimbo ERROR Details: It's just whenever you equip the weapon, it'll just have this error here. And, there is issues with the ammo depleting for the left mouse button Five Seven, so it'll just not work entirely but it still works and doesn't have many issues, that's about it.

TMAR Colt Pythons (toybox_139296):

[ERROR] RunString(Ex):453: attempt to index field 'ViewModel_Right' (a nil value)
1. unknown - RunString(Ex):453 (x3829)

TMAR Colt Pythons ERROR Details: I see a HUGE amount of errors when I first spawn it in and when using the SWEP. So basically like reiterated there's tons of errors, but it's on Cloudbox's end, server and client related ones. So I'll show you what has been shown to me in-game.

[Cloudbox - The new Toybox!] language.Add expects string as first argument!
1. unknown - RunString(Ex):7
2. RunString - [C]:-1
3. ExecuteCloudboxPackage - lua/cloudbox/shared/cloudbox.lua:65
4. MountCloudboxPackage - lua/cloudbox/shared/cloudbox.lua:117
5. func - lua/cloudbox/client/request.lua:65
6. unknown - lua/includes/extensions/net.lua:37


[Cloudbox - The new Toybox!] lua/includes/modules/killicon.lua:29: table index is nil
1. AddFont - lua/includes/modules/killicon.lua:29
2. unknown - RunString(Ex):8
3. RunString - [C]:-1
4. ExecuteCloudboxPackage - lua/cloudbox/shared/cloudbox.lua:65
5. MountCloudboxPackage - lua/cloudbox/shared/cloudbox.lua:117
6. func - lua/cloudbox/client/request.lua:65
7. unknown - lua/includes/extensions/net.lua:37


[ERROR] RunString(Ex):387: attempt to call global 'CreateViewModelManager' (a nil value)
1. unknown - RunString(Ex):387
2. Give - [C]:-1
3. unknown - gamemodes/sandbox/gamemode/commands.lua:906
4. unknown - lua/includes/modules/concommand.lua:54


[ERROR] RunString(Ex):607: attempt to index field 'ViewModel_Right' (a nil value)
1. BuildViewModels - RunString(Ex):607
2. unknown - RunString(Ex):580
3. SelectWeapon - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:910
5. unknown - lua/includes/modules/concommand.lua:54

That's what it all says, and it is very weird and hopefully it'll get fixed! Also, when I die it also has an error and it says:

[ERROR] RunString(Ex):440: attempt to index field 'ViewModel_Right' (a nil value)
1. StopReloading - RunString(Ex):440
2. DestroyViewModels - RunString(Ex):618
3. unknown - RunString(Ex):575


[ERROR] RunString(Ex):561: attempt to index field 'ViewModel_Right' (a nil value)
1. unknown - RunString(Ex):561

So hopefully this all gets fixed for this SWEP!

PuntCannon (toybox_1870):

[ERROR] RunString(Ex):363: bad argument #1 to 'GetDTBool' (number expected, got string)
1. GetDTBool - [C]:-1
2. Function - RunString(Ex):363
3. unknown - lua/includes/modules/usermessage.lua:80

PuntCannon ERROR Details: This error shows up when spawning the SWEP and also when right-clicking on an object using the SWEP, and then after it does its animation it'll have this error, so it said for me the error above, just x2.

Chair Manipulator! (toybox_558):

[ERROR] RunString(Ex):117: bad argument #1 to 'AddAngleVelocity' (Vector expected, got userdata)
1. AddAngleVelocity - [C]:-1
2. Throw_Attack - RunString(Ex):117
3. unknown - RunString(Ex):75

Chair Manipulator! ERROR Details: I really don't know how this weapon really works, but I know for a fact that the weapon is being weird whenever I left click, it does this error as shown above, so please look into it! Thanks!

Earth Shaker (toybox_268):

Attempted to precache unknown particle system "rock_impact_stalactite"!
Attempted to create unknown particle system type "rock_impact_stalactite"! (x38)
Attempted to precache unknown particle system "Explosion_2"!
Attempted to create unknown particle system type "Explosion_2"!

Earth Shaker ERROR Details: I don't know why but as shown it just cannot precache the unknown particle system. I don't know why but this needs to be looked at, the weapon in-game now doesn't work as its supposed to and it doesn't have any effects when you left-click.

Duke Nukem 3D RPG (toybox_2458):

[ERROR] RunString(Ex):230: bad argument #1 to 'SetPos' (Vector expected, got userdata)
1. SetPos - [C]:-1
2. unknown - RunString(Ex):230

Duke Nukem 3D RPG ERROR Details: Just whenever I left-click it, it does this error. That's all it does.

Thunder Gun (toybox_168139):

[ERROR] bad argument #2 to 'numpad.OnDown' (number expected, got nil)
1. OnDown - lua/includes/modules/numpad.lua:176
2. MakeLight - gamemodes/sandbox/entities/weapons/gmod_tool/stools/light.lua:152
3. unknown - RunString(Ex):81


[ERROR] bad argument #2 to 'numpad.OnUp' (number expected, got nil)
1. OnUp - lua/includes/modules/numpad.lua:194
2. MakeLight - gamemodes/sandbox/entities/weapons/gmod_tool/stools/light.lua:153
3. unknown - RunString(Ex):81

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

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

Thunder Gun ERROR Details: Just whenever I left-click and shoot the weapon it does this numpad.OnDown and numpad.OnUp errors, and as well as it not having any sounds.

---EXTRAS---

These extras are for the issues with the SWEPs and SENTs that DO NOT have console errors, but they have graphical errors in-game or other issues.

Electrocannon (toybox_35462): In-game, the blueish shock waves from the Electrocannon whenever the Electrocannon is fired, it'll have this black texture from the materials of the SWEP's entity that it creates for the weapon, could possibly be where the line specifically says ents.Create or it could be just the SWEP in general.

Midas Cannon (toybox_224): It has some issues just in general whenever the golden statue that I have made from an NPC or an object or whatever, it has an issue whenever that golden version of it touches the ground. It should be metallic sounding, but instead it doesn't have that and it has a ragdoll sound to it instead.

Autofists (toybox_2329): It just doesn't have the sounds when you're throwing fists in the air, not hitting anything.

Akimbo AK-47s (toybox_36721): Whenever I shoot with LMB (left mouse button), it'll have this issue where the gun's ammo isn't even properly recognized maybe? So this means that whenever I shoot it, it seems like the ammo in the bottom right corner UI is not even depleting any ammunition. So it just won't do it, UNTIL I had found out when I kept on shooting the left AK-47 with LMB, it'll then make the ammunition deplete like usual.

Akimbo Desert Eagles (toybox_36692): Same thing with the Akimbo AK-47s, this time I don't think the left deagle is depleting any of the ammunition.

Akimbo Paras (toybox_45497): It's just that this Akimbo Paras weapon has a HECK-TON of weird graphical issues on the bottom of the weapon, this is really weird. I don't know how to explain it really so I might give out screenshots of what it looks like, but all the time it looks so weird... You'll see by Imgur screenshots or whatever, or just DM me on Discord or Steam and I'll show you the screenshots I've took.
< >
Showing 1-5 of 5 comments
UPDATE - NEW REPORT!

The following SWEPs have also been discovered to have errors and issues within the console, please check them down below.

Franchi SPAS-12 (toybox_115289):

Failed to load sound "weapons\mossberg590\m3_pump.wav", file probably missing from disk/repository
Failed to load sound "weapons\m3\590-1.wav", file probably missing from disk/repository

Franchi SPAS-12 ERROR Details: Just whenever I had left-clicked and started shooting the shotgun it had these issues in console.

Master Sword (toybox_3872):

Failed to load sound "zsword\oot-adultlink_sword3.wav", file probably missing from disk/repository
Failed to load sound "zsword\oot-adultlink_sword2.wav", file probably missing from disk/repository
Failed to load sound "zsword\oot-adultlink_sword1.wav", file probably missing from disk/repository

Master Sword ERROR Details: I guess it's just missing some sounds, that's probably it really.

Sticky Rifle (toybox_606):

[ERROR] RunString(Ex):64: attempt to call method 'Crit' (a nil value)
1. unknown - RunString(Ex):64

Sticky Rifle ERROR Details: This error only occurs when I left-click to shoot an exploding sticky bomb. And that's mainly about it.

Amraam Launching Gun (toybox_151638):

[ERROR] 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 - RunString(Ex):31

Amraam Launching Gun ERROR Details: It's just when you spawn in the weapon for the first time, this shows up in console.

ANS MK2 (toybox_127621):

[Cloudbox - The new Toybox!] 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_cs_base_cloudbox/shared.lua:69

ANS MK2 ERROR Details: It happens whenever you spawn in the weapon, the error will then occur.

Bag of Boulders (toybox_18029):

[ERROR] RunString(Ex):56: attempt to call method 'SetShouldDrawInViewMode' (a nil value)
1. unknown - RunString(Ex):56

Bag of Boulders ERROR Details: Whenever the SWEP is spawned, it will say this. And then also, the SWEP will have this graphical issue in-game where it'll have this boulder rock thingy floating in the air where the player's original coordinate was when they spawned in the SWEP. So basically that's what happens as well, and it gets stuck there.
Darth  [developer] 5 Jan @ 2:06am 
Thanks heaps for the detailed bug reports! We've fixed some of the issues and will look into the others soon. SetWeaponHoldType errors seem to be widespread so I'll try looking into that next.

Some of the fixes in the most recent update: Burnmaster's lua errors, Pixel Sword vgui, Ninja Knife's pairs error, and any of the SetShouldDrawInViewMode errors.

If you're interested in helping with code please check out https://github.com/flatgrassdotnet/cloudbox13 - most compatibility is handled in lua/cloudbox/shared/compatibility/compatibility.lua - and if you want to do a pull request or contact project lead Pancakes to add your patches that'd be great. Detailed bug reports are incredibly useful though so don't feel any obligation, but thought I'd let you know just in case you're interested.
Originally posted by Darth:
Thanks heaps for the detailed bug reports! We've fixed some of the issues and will look into the others soon. SetWeaponHoldType errors seem to be widespread so I'll try looking into that next.

Some of the fixes in the most recent update: Burnmaster's lua errors, Pixel Sword vgui, Ninja Knife's pairs error, and any of the SetShouldDrawInViewMode errors.

If you're interested in helping with code please check out https://github.com/flatgrassdotnet/cloudbox13 - most compatibility is handled in lua/cloudbox/shared/compatibility/compatibility.lua - and if you want to do a pull request or contact project lead Pancakes to add your patches that'd be great. Detailed bug reports are incredibly useful though so don't feel any obligation, but thought I'd let you know just in case you're interested.

Thank you so much for being on top of this!! I will continue to look for more errors and bugs in GMod, to tell you if there are more issues or more errors! I'm looking forward to doing this!

P.S. I don't know if I can do much for any coding/programming in development, because I only use GitHub Copilot or other AI tools to help code with me, so usually 95% is literally AI doing the job for me. If I really wanted to dedicate myself into coding all the time, then I'd learn a lot more! But thanks for the offer, I did try asking Pancakes but I believe we both agreed that coding for you guys wouldn't be the best bet is all.
Last edited by ✠CFalcon075✠; 5 Jan @ 10:34am
[Cloudbox - The new Toybox!] lua/cloudbox/client/content_vgui.lua:145: attempt to perform arithmetic on field 'BoxW' (a nil value)
1. DrawNameBox - lua/cloudbox/client/content_vgui.lua:145
2. unknown - lua/cloudbox/client/content_vgui.lua:134 (x11436)

If you pick any weapons, this error will popup
Also add killicons for weapons.
< >
Showing 1-5 of 5 comments
Per page: 1530 50