Garry's Mod

Garry's Mod

Universal Ballistics (please read message in desc.)
Andrew900460 .;UbErZ;.  [developer] Jan 12, 2018 @ 2:03pm
Bug Reports
Let's get things ironed out.
< >
Showing 1-15 of 30 comments
Taberone Jan 17, 2018 @ 9:31am 
Error spam when NPCs shoot at me with HL2 weapons like the SMG or AR2:

[Universal Ballistics] lua/entities/sent_physical_bullet/init.lua:103: attempt to compare userdata with number
1. unknown - lua/entities/sent_physical_bullet/init.lua:103
Andrew900460 .;UbErZ;.  [developer] Jan 17, 2018 @ 11:15am 
@Taberone Thanks for pasting the error from the console :D
It's probably an easy fix. I'm gonna check now
Andrew900460 .;UbErZ;.  [developer] Jan 17, 2018 @ 11:20am 
And also thank you for telling me that it was spammed, that's because that piece of code is in the entities physics loops so it was executed every simulation tick. I'll fix it right now, but I may or may not push an update because I think I was in the middle of another feature... Honestly, let me check right now, I'll probably push a hotfix update right now since everyone is probably getting the error.
Andrew900460 .;UbErZ;.  [developer] Jan 17, 2018 @ 12:44pm 
@Taberone Can you describe the situation when the NPCs were shooting at you? Were you close to them or far Away? Was this in a multiplayer game or singleplayer? Was there any other settings you changed?
Taberone Jan 17, 2018 @ 3:59pm 
NPCs close to me, inside a building, shooting at me with the HL2 SMG and AR2 while I was shooting back with a HL2 357. Singleplayer. Don't think I touched any settings.
Last edited by Taberone; Jan 17, 2018 @ 4:00pm
Andrew900460 .;UbErZ;.  [developer] Jan 17, 2018 @ 5:35pm 
Ok, I looked at the code that was firing the error you sent me, and at first nothing looked like it could have been causing an error, but just now I noticed why it was giving the error that it was giving, and I made an adjustment that should fix it. I know that doesn't explain much, but I'll get to my point.

Basically, a certain piece of code making a variable a number never fired, and left it as a "userdata" value, and it didn't fire because the physics object of the bullet entity wasn't 'valid' which could lead to another issue, but hopefully not another error.

I will be pushing another update with this hotfix, the update will also have some other changes to how the tracer is rendered, you probably won't notice anything immediately.
The Skibidinator Jan 20, 2018 @ 2:30pm 
When the Hunter Chopper tried to shoot at me
[ERROR] lua/ub_misc.lua:18: attempt to perform arithmetic on local 'damage' (a nil value)
1. BulletDamageToSpeed - lua/ub_misc.lua:18
2. unknown - lua/entities/sent_physical_bullet/init.lua:54
3. Spawn - [C]:-1
4. FirePhysicalBullet - lua/ub_bullet_creation.lua:35
5. v - lua/ub_bullet_creation.lua:77
6. old_hook_call - lua/includes/modules/hook.lua:84
7. unknown - lua/includes/modules/momo/compat.lua:23

The Skibidinator Jan 20, 2018 @ 2:31pm 
same for the Strider

[ERROR] lua/ub_misc.lua:18: attempt to perform arithmetic on local 'damage' (a nil value)
1. BulletDamageToSpeed - lua/ub_misc.lua:18
2. unknown - lua/entities/sent_physical_bullet/init.lua:54
3. Spawn - [C]:-1
4. FirePhysicalBullet - lua/ub_bullet_creation.lua:45
5. v - lua/ub_bullet_creation.lua:77
6. old_hook_call - lua/includes/modules/hook.lua:84
7. unknown - lua/includes/modules/momo/compat.lua:23

Andrew900460 .;UbErZ;.  [developer] Jan 20, 2018 @ 2:39pm 
Thanks for the console paste,
That should be a fix in the next update
Last edited by Andrew900460 .;UbErZ;.; Jan 20, 2018 @ 2:40pm
Taberone Jan 20, 2018 @ 6:36pm 
Bug when firing Alyx Gun (only way to get it is to spawn NPC with Alyx Gun and kill him before picking it up and shooting it):

[Universal Ballistics] lua/ub_misc.lua:18: attempt to perform arithmetic on local 'damage' (a nil value)
1. BulletDamageToSpeed - lua/ub_misc.lua:18
2. unknown - lua/entities/sent_physical_bullet/init.lua:54
3. Spawn - [C]:-1
4. FirePhysicalBullet - lua/ub_bullet_creation.lua:45
5. v - lua/ub_bullet_creation.lua:77
6. unknown - lua/includes/modules/hook.lua:84
Last edited by Taberone; Jan 20, 2018 @ 6:39pm
Andrew900460 .;UbErZ;.  [developer] Jan 22, 2018 @ 1:04pm 
that error is being caused by the same code as the error reported by the person above. This will definately by a fix in the next update. I'm getting over the flu and I have school work yet to do so this will be a while til the next update.
James Mar 12, 2018 @ 9:40am 
I've noticed that my bullets don't deal headshot damage, as well as crits whilst having this installed. As well as bullets going everywhere but to my crosshair!
Last edited by James; Mar 12, 2018 @ 9:40am
James Mar 12, 2018 @ 9:41am 
I've noticed that my bullets don't deal headshot damage, as well as crits whilst having this installed. As well as bullets going everywhere but to my crosshair!

It might be because of my 700 mods TTT modpack.... but this should work in ttt right?
Andrew900460 .;UbErZ;.  [developer] Mar 12, 2018 @ 11:22am 
If the gun normally has some spread to it, then that transfers over to the physical bullets, so the bullets don't fire exactly where your crosshair is. Unless you mean that the bullets are flying way off to the side like the gun is a sawed off shotgun, but it isnt.

It could be the sweps themselves and hwo they handle spread, and it makes it break with my addon.

I'd like to look into this and see what is going on. post a link to the addon your using here and ill see if it can look at it. I have some other code I was in the middle of working on and right now my version doesn't even work, so I have to finish what I was working on before I can get to this though.
James Mar 15, 2018 @ 12:45pm 
Originally posted by Andrew900460.com_.UbErZ.:
If the gun normally has some spread to it, then that transfers over to the physical bullets, so the bullets don't fire exactly where your crosshair is. Unless you mean that the bullets are flying way off to the side like the gun is a sawed off shotgun, but it isnt.

It could be the sweps themselves and hwo they handle spread, and it makes it break with my addon.

I'd like to look into this and see what is going on. post a link to the addon your using here and ill see if it can look at it. I have some other code I was in the middle of working on and right now my version doesn't even work, so I have to finish what I was working on before I can get to this though.

Well yes, the bullets fly way off. Let's say you have a deagle. Sometimes it goes where the crosshair is, sometimes it just spontainiously wants to ram the bullet into the nearest wall. Funny enough, i tried putting it into bullettime and checked the angle of the impact. It's a fixed 90 degree angle. Funny when you think about it.

Also, if you really want to test out the addonpack for compatibility, be my guest, I aint stoppin ya xD

Addonpack Steampage
Last edited by James; Mar 15, 2018 @ 12:46pm
< >
Showing 1-15 of 30 comments
Per page: 1530 50