Forums » Bugs

Ammo bug

Jun 17, 2007 Impavid link
I have a previously unstacked Rail gun Advanced that, once equipped, can be reloaded indefinitely, won't fire, and shows a -70/10 ammo count.

Obviously, I'm poking more
Jun 17, 2007 Cunjo link
I have an HD mining beam that reports 0 ammo on the hud.
Jun 18, 2007 Syylk link
When I was doing tests for Mom, one of the two Mining MkII in my taur had the "0" ammo on the HUD. The other didn't.
Jun 18, 2007 momerath42 link
The 0 ammo thing is a separate bug from what Impavid is reporting, and ray knows about it. Will alert him to this new one, Impavid, thanks.
Jun 18, 2007 a1k0n link
Impavid: what happens when you reload? Does the ammo value change at all?
Jun 18, 2007 Cunjo link
Hey, I noticed the other day when hauling swarms in a moth, that upon arriving at my destination, I had a Reload All button active on the welcome screen, that cited a price of 170k or something like that. So apparently, the ammo in the swarms (they're fully loaded when you buy them) didn't register correctly or something? I didn't want to risk testing it by clicking reload, but it should be reproduceable.
Jun 18, 2007 Impavid link
I can reload indefinitely, but each time the -70 Rail launcher stays -70. The station will still take my money though!
Jun 19, 2007 look... no hands link
ive now got a pile of starflares (50 or so) that have been rendered un usable due to the same bug impavid mentioned i tried buying the ammo a bunch of times hoping to fully reload the stack but all i did was waste a couple 100k
Jun 20, 2007 a1k0n link
Update on this: we know what the problem is... Lack of foresight led to the storage of the stacked quantity of ammo being stored in a signed 8-bit value.

Ray is finishing up a script which will batch-convert to a 32-bit format (so you can have a stack of 4294967295 ammo) as well as restack all unstacked items in the universe. The trouble with the script right now is that it takes nearly an hour to run, and would thus result in a downtime of about an hour. But it's also heavily IO bottlenecked so we should easily be able to improve that.

He's now working on a parallel version (and I'm working on the database throughput issues) and I hope we can get the downtime to under five or ten minutes by farming it out on the cluster.
Jun 20, 2007 Syylk link
You can't run the script on the live server cluster? Of course with a lock-modify-unlock update paradigm on the ammo tables. If that's SQL, it should be trivial.
Jun 20, 2007 a1k0n link
It's a change of data format; the server needs updating, as does the client. Yes, we could do it live, too, with backward compatibility in the data, and we're discussing that option.
Jun 20, 2007 look... no hands link
you could always just take it down for an hour around 5am eastern there's usually about 4 players online then
Jun 21, 2007 hangroy link
It looks like others have found the same problem as me I loaded 18 sunflares in Latos h15 to transport up to n2 so I could have a stock and the first one I loaded required no ammo to shoot and no reloading however, it also seemed to not do any damage to anything. All the rest of the launchers I bought at the same time worked fine. So since it looks like you're already on top of this I just wanted to report what I saw.
Jun 21, 2007 davejohn link
I have noted the same problem with a chaos swarm launcher , so it seems fairly widespread.