Railguns OXP question

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Commander Learner
Dangerous
Dangerous
Posts: 123
Joined: Thu Aug 20, 2009 12:08 pm
Location: Somewheeeeeere over the rainbooooooooooow~

Railguns OXP question

Post by Commander Learner »

Hi commanders. Just noticed Railguns OXP and tested it. If I use this weapon to kill a mission critical ship, does the game register it? As I know, Primable Laser does not.

Oh, just to go off topic, 2 missions happening at the same time resulted in some light humour. I was in galaxy 4 taking a passenger somewhere and when I docked, the passenger got off, paid and the Nova mission got triggered. The poor guy just left my ship and now he's back again. :)
Shooting polygons since 2001
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Railguns OXP question

Post by Smivs »

Commander Learner wrote:
...some light humour. I was in galaxy 4 taking a passenger somewhere and when I docked, the passenger got off, paid and the Nova mission got triggered. The poor guy just left my ship and now he's back again. :)
I'd watch him...he'll be after some sort of discount next :wink:
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Railguns OXP question

Post by Cody »

Commander Learner wrote:
If I use this weapon to kill a mission critical ship, does the game register it?
No, I don't think it does.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Railguns OXP question

Post by DaddyHoggy »

A quote from Commander McLane I found:
Commander McLane wrote:
Ah, I hadn't caught the Random Hits reference. And yes, the observation is true.

For the game a railgun projectile is not connected to the player ship, therefore none of the usual hit or kill events are triggered, and the OXP has to "manually" manipulate the appropriate game counters. Obviously that doesn't help other OXPs which rely on the normal triggers.

Spontaneously I'd say that's an unfixable glitch, and I can only advise you to not use your railgun for the final shot on a mission-relevant target, if the mission requires you to kill your target personally.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Railguns OXP question

Post by Commander McLane »

Indeed, you can't use the railgun for a mission-critical kill.

Note that this only applies to the kill itself, which means the very last shot that hits and kills the target. You can use the railgun as much as you want to hammer down its defenses. You just have to switch to your laser for the final shot.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Railguns OXP question

Post by DaddyHoggy »

Commander McLane wrote:
Indeed, you can't use the railgun for a mission-critical kill.

Note that this only applies to the kill itself, which means the very last shot that hits and kills the target. You can use the railgun as much as you want to hammer down its defenses. You just have to switch to your laser for the final shot.
It's like a tvtrope of having your team of hired thugs to beat up your opponent so you can look good delivering the coup de grace
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Railguns OXP question

Post by BlackWolf »

I was wondering if there is a way to boost the projectile speed and give it a tracer color?
Maybe have different types of ammo with slight damage differences each with their own tell tale color.
Lets say basic rail gun ammo is Tungsten. (No tracer tail/base speeds)
Spike (No tracer tail/ slightly faster speed than base/slightly less damage than base)
Javelin (No tracer tail/ slightly faster speed than base/slightly more damage than base)
Iridium (silver tracer tail/slightly more damage than Javelin/little faster)
Thorium (yellowish tracer tail/little more damage than Iridium/base speeds)
Uranium (light blue tracer tail/same damage as Thorium/faster speed than Iridium)
Plutonium (light green tracer tail/little more damage than Thorium/Same speed as Uranium)
Antimatter (coblat blue or purple tracer tail/more damage than Plutonium/same speed as Uranium)

Another idea I had was to allow the small railgun to have an auto fire feature if you hold down the activation key, and possibly boost the ammo count for the small railgun.
I would also limit the small railgun to the base ammo, spike and maybe Uranium.

Just a thought I had to spruce up this old oxp and maybe bring some new life to it.
Creativity is a gift, use it well.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Railguns OXP question

Post by Cody »

If I remember right, you can adjust the velocity of the slugs, and their density (which affects the hit), very easily in the OXP's shipdata.plist.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Railguns OXP question

Post by BlackWolf »

Cody wrote: Tue Oct 23, 2018 2:19 pm
If I remember right, you can adjust the velocity of the slugs, and their density (which affects the hit), very easily in the OXP's shipdata.plist.
I know I have said this a time or two, I am not a coder. I know it's all lickitty split for all of you to do what it is you say to do, but for me it's all Greek. Even if you give me the code and tell me where to stick it, I will not know what the hell you're talking about, and chuckle to myself and say oh well I tried. Lmao.... Honestly I have tried to just do a simple color change on a skin in photoshop, repacked it and nope doesn't work. All I did was adjust the tone, easy. Nah....

I'm and artist and a creator, I create things, contemplate ideas and stuff. I generally do art or I write stories. I am teaching myself digital art, not bad at it but a lot I need to learn yet. I don't know anything about computers other than to search,play games, and draw. :) Simple guy, no college, dirt farmer with a talent for the pen.
Last edited by BlackWolf on Tue Oct 23, 2018 4:34 pm, edited 1 time in total.
Creativity is a gift, use it well.
User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Railguns OXP question

Post by BlackWolf »

I will say that if someone shows me how to do it and explains to me the whys and what nots, I am a quick learner. But there is no one nowhere even relatively close to me that knows anything about computers that I know, or know of, sad to say.
Creativity is a gift, use it well.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Railguns OXP question

Post by Cody »

You need absolutely no coding skills to make those changes - simply the ability to find the file within the OXP, open it in a text editor, alter a number, save it, and restart Oolite with the shift key held down 'til the spinning Cobra appears.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Railguns OXP question

Post by BlackWolf »

Cody wrote: Tue Oct 23, 2018 5:44 pm
You need absolutely no coding skills to make those changes - simply the ability to find the file within the OXP, open it in a text editor, alter a number, save it, and restart Oolite with the shift key held down 'til the spinning Cobra appears.
I'll play around with that, but I'd still like to figure out how to add more ammo type and color trails just to enhance the oxp.
Upgrade it so to speak. It works I mean, not perfectly and could be better and available in the in game manager maybe. lol

I don't know how to do it but I'm sure someone could.
I'll find someone eventually.
Creativity is a gift, use it well.
User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Railguns OXP question

Post by BlackWolf »

Okay here is my full idea:
Just need to know if it is possible to do.

Railgun OXZ Idea:

Railgun sizes = Small, Medium & Large. (SM/M/L)
*(Base railgun ammo =’s Tungston slug.)

Railgun Ammo Types:
⁃ Tungsten Slug. (No tracer tail/ base damage/ base speeds)
⁃ Tungsten Spike (No tracer tail/ slightly faster speed than base/slightly more damage than Base)
⁃ Tungsten Javelin**(No tracer tail/ slightly faster speed than base/ twice the damage as Spike)
⁃ Iridium (Silver tracer tail/ slightly more damage than Spike/ little faster than Spike)
⁃ Thorium (Yellowish tracer tail/ little more damage than Iridium/ Base speeds)
⁃ Uranium (Light Blue tracer tail/ same damage as Thorium/ faster speed than Iridium)
⁃ Plutonium (Light Green tracer tail/ little more damage than Thorium/ same speed as Uranium)
⁃ Antimatter (Cobalt Blue or Purple tracer tail/ more damage than Plutonium/ same speed as Uranium)

Notes: **{M&L Railgun only}. **{Javelin Ammo is half amount for base price}.

Small Railgun
1. Small railgun are limited in ammo types due to small size, but ammo amount carried is increased x5, price remains the same as base type.
2. Small railgun also receive an automatic fire function by holding down the activation key. ("n" or "Tab" key depending on which way you primed it on the F4 page).
3. Available Ammo - *Slug, *Spike, *Depleted Uranium.

Considering that only the ammo for the railgun equipped in the shop is displayed means your list won’t be cluttered up. Most you’d have 8 options for ammo available listed only by name, amount and price.
*(Example - Slug Ammo, 100 rounds, 500 credits.)

Suggested prices and amounts baed of OXP:
Slug - 500 rounds - 500 credits SM-RG. / 100 rounds - 500 credits M&L-RG.
Spike - 500 rounds - 550 credits SM-RG. / 100 rounds - 550 credits M&L-RG.
Javelin - 50 rounds - 500 credits M&L-RG only.
Iridium Enriched - 100 rounds - 525 credits M&L-RG only.
Thorium Enriched - 100 rounds - 550 credits M&L-RG only.
Depleted Uranium - 500 rounds - 1000 credits SM-RG. / 100 rounds - 1000 credits M&L-RG.
Plutonium Enriched - 100 rounds - 1200 credits M&L-RG only.
Antimatter - 100 rounds - 5000 credits M&L-RG only.

***I will admit the prices listed for the Large Railgun maybe more than the medium, I am unsure at the time I wrote this up, so if wrong, correct accordingly. Thanks.

Someone really creative could also add chances or % or specific damage types or effects depending on the ammo type.
Such as the effects of antimatter rounds or the Javelins % to damage internal equipment and systems.
All of this would greatly enhance this old OXP and make it a great addition to the up coming 1.88v on the way.
Just a well contemplated thought. lol
Creativity is a gift, use it well.
User avatar
Josef
Competent
Competent
Posts: 60
Joined: Sat May 29, 2021 6:20 pm
Location: Wien

Re: Railguns OXP question

Post by Josef »

Hi everybody,
does anybody know how much the different railguns cost and on what TL it is possible to buy them?
Josef
User avatar
Cholmondely
Archivist
Archivist
Posts: 5365
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Railguns OXP question

Post by Cholmondely »

Josef wrote: Sun Jul 11, 2021 5:27 am
Hi everybody,
does anybody know how much the different railguns cost and on what TL it is possible to buy them?
Here is the equipment.plist:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
	<array>
		<integer>3</integer>
		<integer>25000</integer>
		<string>Small Railgun</string>
		<string>EQ_RAILGUN_1</string>
		<string>The Fauchon-Oliphant X-100 Small Railgun shoots kinetic projectiles with a high velocity. It has a high firing rate, comparably low energy requirements and a good range, but the destructive power of the small projectile is limited.</string>
		<dict>
			<key>available_to_NPCs</key>
			<false/>
			<key>available_to_all</key>
			<true/>
			<key>incompatible_with_equipment</key>
			<array>
				<string>EQ_RAILGUN_2</string>
				<string>EQ_RAILGUN_3</string>
				<string>EQ_RAILGUN_4</string>
			</array>
			<key>script</key>
			<string>railgun-firing.js</string>
		</dict>
	</array>
	<array>
		<integer>2</integer>
		<integer>4000</integer>
		<string>Small Railgun Ammunition</string>
		<string>EQ_RAILGUN_1_AMMUNITION</string>
		<string>100 kinetic projectiles for your Fauchon-Oliphant X-100 Small Railgun. Currently stored projectiles will be discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_1</string>
		</dict>
	</array>
	<array>
		<integer>3</integer>
		<integer>100</integer>
		<string>Sell Small Railgun</string>
		<string>EQ_RAILGUN_1_REMOVAL</string>
		<string>Unmount and sell the Fauchon-Oliphant X-100 Small Railgun. Any remaining projectiles are discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_1</string>
		</dict>
	</array>
	<array>
		<integer>6</integer>
		<integer>50000</integer>
		<string>Medium Railgun</string>
		<string>EQ_RAILGUN_2</string>
		<string>The Fauchon-Oliphant X-150 Medium Railgun is the bigger sister of the X-100. Heavier projectiles yield more destructive power with a better firing range, but the gun also needs more time and energy to recharge.</string>
		<dict>
			<key>available_to_NPCs</key>
			<false/>
			<key>available_to_all</key>
			<true/>
			<key>incompatible_with_equipment</key>
			<array>
				<string>EQ_RAILGUN_1</string>
				<string>EQ_RAILGUN_3</string>
				<string>EQ_RAILGUN_4</string>
			</array>
			<key>script</key>
			<string>railgun-firing.js</string>
		</dict>
	</array>
	<array>
		<integer>2</integer>
		<integer>5000</integer>
		<string>Medium Railgun Ammunition</string>
		<string>EQ_RAILGUN_2_AMMUNITION</string>
		<string>100 kinetic projectiles for your Fauchon-Oliphant X-150 Medium Railgun. Currently stored projectiles will be discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_2</string>
		</dict>
	</array>
	<array>
		<integer>3</integer>
		<integer>100</integer>
		<string>Sell Medium Railgun</string>
		<string>EQ_RAILGUN_2_REMOVAL</string>
		<string>Unmount and sell the Fauchon-Oliphant X-150 Medium Railgun. Any remaining projectiles are discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_2</string>
		</dict>
	</array>
	<array>
		<integer>9</integer>
		<integer>75000</integer>
		<string>Heavy Railgun</string>
		<string>EQ_RAILGUN_3</string>
		<string>The projectiles of the Fauchon-Oliphant X-200 Heavy Railgun pack a much bigger punch and a better range than the other variants. The downside is the considerable energy and time needed to load the gun.</string>
		<dict>
			<key>available_to_NPCs</key>
			<false/>
			<key>available_to_all</key>
			<true/>
			<key>incompatible_with_equipment</key>
			<array>
				<string>EQ_RAILGUN_1</string>
				<string>EQ_RAILGUN_2</string>
				<string>EQ_RAILGUN_4</string>
			</array>
			<key>script</key>
			<string>railgun-firing.js</string>
		</dict>
	</array>
	<array>
		<integer>2</integer>
		<integer>6000</integer>
		<string>Heavy Railgun Ammunition</string>
		<string>EQ_RAILGUN_3_AMMUNITION</string>
		<string>100 kinetic projectiles for your Fauchon-Oliphant X-200 Heavy Railgun. Currently stored projectiles will be discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_3</string>
		</dict>
	</array>
	<array>
		<integer>3</integer>
		<integer>100</integer>
		<string>Sell Heavy Railgun</string>
		<string>EQ_RAILGUN_3_REMOVAL</string>
		<string>Unmount and sell the Fauchon-Oliphant X-200 Heavy Railgun. Any remaining projectiles are discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_3</string>
		</dict>
	</array>
	<array>
		<integer>5</integer>
		<integer>75000</integer>
		<string>Mining Railgun</string>
		<string>EQ_RAILGUN_4</string>
		<string>The Fauchon-Oliphant Z-300 Mining Railgun is designed specifically with asteroid mining in mind. Its projectiles are much heavier and slower than the other variants, and it has much larger energy requirements and build-up times between shots.</string>
		<dict>
			<key>available_to_NPCs</key>
			<false/>
			<key>available_to_all</key>
			<true/>
			<key>incompatible_with_equipment</key>
			<array>
				<string>EQ_RAILGUN_1</string>
				<string>EQ_RAILGUN_2</string>
				<string>EQ_RAILGUN_3</string>
			</array>
			<key>script</key>
			<string>railgun-firing.js</string>
		</dict>
	</array>
	<array>
		<integer>2</integer>
		<integer>8000</integer>
		<string>Mining Railgun Ammunition</string>
		<string>EQ_RAILGUN_4_AMMUNITION</string>
		<string>50 kinetic projectiles for your Fauchon-Oliphant Z-300 Mining Railgun. Currently stored projectiles will be discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_4</string>
		</dict>
	</array>
	<array>
		<integer>3</integer>
		<integer>100</integer>
		<string>Sell Mining Railgun</string>
		<string>EQ_RAILGUN_4_REMOVAL</string>
		<string>Unmount and sell the Fauchon-Oliphant Z-300 Mining Railgun. Any remaining projectiles are discarded.</string>
		<dict>
			<key>available_to_all</key>
			<true/>
			<key>requires_equipment</key>
			<string>EQ_RAILGUN_4</string>
		</dict>
	</array>
</array>
</plist>
Looking at the other files in the oxp, the only obvious pieces of information I can see are that one gets 100 bullets for each version except the mining railgun (50 bullets). Oh - and a 60% refund on the guns.

I would guess that for the Small Railgun: "3" ⇒ TL4 ; "25000" ⇒ cost 2,500


If this is true, then

Fauchon-Oliphant X-100 Small Railgun: TL4; 2,500₢
Small Railgun Ammunition: TL3; 400₢

Fauchon-Oliphant X-150 Medium Railgun: TL7; 5,000₢
Medium Railgun Ammunition: TL3; 500₢

Fauchon-Oliphant X-200 Heavy Railgun: TL10; 7,500₢
Heavy Railgun Ammunition: TL3; 600₢

Fauchon-Oliphant Z-300 Mining Railgun: TL6; 7,500₢
Heavy Railgun Ammunition: TL3; 800₢

Can someone just run a friendly eye over this and make sure that I'm right?

Edited to add:
I've not tested this with Oolite v.1.90. I presume that it would need to have the kills problem fixed and possibly take up some cargo space if it were to be OXZed'ed
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply