Fixing Old Crashing Modded Weapons
Fixing pre Starbound 1.4 weapons
Starcheat now supports fixing these types of broken items. Run the repair script from the
If you try and use one of your custom weapon's abilities and you get an error that says "randf max must be >= randf min" or something and the game kicks you back to the menu, don't fret. There's a possible way to fix it.
First option is to access the weapon .json yourself somehow, and look for random Lua ranges where the lower bound is higher than the upper bound. For some bizarre reason Starbound 1.4 enabled some sort of strict rule about this, whereas before this version these weapons would function as normal, I'm assuming it would've just flipped the array or taken the higher number as max.