I had a quick question if anyone knew how to add additional weapons or probes? The stock weapons appear in the cleverly named “weapon.txt”, and are pretty easy to figure out. I’m %95 sure I actually have the weapon in the game (at least… I can add it to my ships in scenarios).
The part I am hung up on is the UI element to actually be able to buy it from stations…
It looks like the portions I am looking for are in ui_x7.txt, specifically the below block:
button=168,174,134,`$E-10 EMP Torpedo,MECHANIC_BUYARMAMENT:2,MECHANIC_CAN_BUY_ARMAMENT:2
greyedbutton=168,174,134,E-10 EMP Torpedo,NONE,MECHANIC_CANNOT_BUY_ARMAMENT:2
button=168,187,134,`^M-12 Heavy Torpedo,MECHANIC_BUYARMAMENT:1,MECHANIC_CAN_BUY_ARMAMENT:1
greyedbutton=168,187,134,M-12 Heavy Torpedo,NONE,MECHANIC_CANNOT_BUY_ARMAMENT:1
button=168,200,134,`^M-10 Medium Torpedo,MECHANIC_BUYARMAMENT:0,MECHANIC_CAN_BUY_ARMAMENT:0
greyedbutton=168,200,134,M-10 Medium Torpedo,NONE,MECHANIC_CANNOT_BUY_ARMAMENT:0
button=168,213,134,`!TD-4 Science Probe,MECHANIC_BUYARMAMENT:3,MECHANIC_CAN_BUY_ARMAMENT:3
greyedbutton=168,213,134,TD-4 Science Probe,NONE,MECHANIC_CANNOT_BUY_ARMAMENT:3
I can figure out the form, and the buttons (looks like they are x/y coordinates to the button on the form)… What I can’t figure out is how numerical values 0,1,2,3 bind to the actual weapons. Is this hardcoded?