Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Railgun.oxp v 1.3 now available

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: Railgun.oxp v 1.1 now available

Post by m4r35n357 »

Commander McLane wrote:
Which ship are you flying? I'm interested to know which ship types need an adjustment of the firing position.
OK, I'm flying a fast ship (Contractor) on a slow machine, that makes sense. Thanks.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6571
Joined: Wed Feb 28, 2007 7:54 am

Re: Railgun.oxp v 1.1 now available

Post by another_commander »

Commander McLane wrote:
... I wonder why SHIFT-F doesn't bring up the display for Commander Wilmot. This used to be a vanilla Oolite key. Has that changed to be only available in connection with Debug.oxp recently?
Apparently Commander Wilmot is using a HUD configuration which does not define the FPS display. This can result in the FPS not showing up when Shift-F is pressed. I had to add that definition myself in some of the new HUDs that have been published relatively recently.
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Railgun.oxp v 1.1 now available

Post by Commander Wilmot »

Thanks.
Apparently Commander Wilmot is using a HUD configuration which does not define the FPS display. This can result in the FPS not showing up when Shift-F is pressed. I had to add that definition myself in some of the new HUDs that have been published relatively recently.
I do have a different hud installed.
Ahruman wrote:
Commander McLane wrote:
How do you know that you have a 'decent' frame rate, if not by checking it? The only way to check it is to read it from the upper right corner of your Oolite window after pressing SHIFT-F.
The only way to know whether you have a “decent” frame rate is to consider whether it feels annoyingly jerky or not. No magic number will make a subjective judgement for you.
My computer would generally run at 40-50 fps, not great, but more than enough to keep a game like oolite running smoothly.
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: Railgun.oxp v 1.1 now available

Post by Cmdr Wyvern »

100 fps, McLane? Wow man, what kind of supercomputer are you running it on?

I'm doing good to squeeze 50 - 60 fps out of my game. What I'm seeing at that framerate is out of a 100-round magazine, only two to three shots actually hit. The rest pass right through the target - usually asteroids - without causing any noticeable damage at all.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Railgun.oxp v 1.1 now available

Post by Cody »

Yeah, I'd like 100fps as well... I get between 60 and 64 on my machine, but the railgun seems quite effective.
I've taken out several bandits using only the railgun, and finished a Thargoid warship or two off with it, as well.
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
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: Railgun.oxp v 1.1 now available

Post by Commander McLane »

Cmdr Wyvern wrote:
100 fps, McLane? Wow man, what kind of supercomputer are you running it on?
MacBook Pro, 2.4 GHz Intel Core i5, NVIDIA GeForce GT 330M, 4 GB RAM. It is perhaps also important that I'm not running many shader-heavy OXPs. For instance I don't have any alternative ship set installed.

To test the new mining railgun I spawned enough Superhubs to bring my frame rate down to 15-20. It was a sight to behold, 30 Superhubs tumbling around a tiny main station. :D Then I spawned and asteroid and fired my projectiles at it. About two out of three shots were hits. So you shouldn't get a problem with the mining variant.
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: Railgun.oxp v 1.1 now available

Post by Commander McLane »

Version 1.2 of Railgun.oxp is now online and available for download via the [EliteWiki] Elite Wiki.

Major change: this version contains a civil version of the weapon with much heavier but slower projectiles for asteroid mining. It also contains many minor tweaks, bug fixes and improvements. For a complete list see the history in the readMe.

NOTE: Railgun.oxp v 1.2 currently only works in trunk. Players who are using normal download versions of Oolite will have to wait until Oolite 1.75.2 comes out. For them v 1.1 is also still available on the Wiki page.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Railgun.oxp v 1.2 now available

Post by JensAyton »

Re the 100 FPS thing: on Macs in windowed mode, the game runs on a 10 ms timer instead of being tied to screen refresh. In graphical terms, this is strictly worse than syncing to the screen, but it has advantages when you’re horribly abusing game physics that happens to be tied to graphical refresh rate. :-)

Doing it properly is much more tractable in modern versions of OS X (using Core Video), so this will probably be fixed for Oolite 2.
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: Railgun.oxp v 1.2 now available

Post by Commander McLane »

So it turns out that it fullscreen mode I have only 60 FPS displayed.

I never noticed the difference, because I never play in fullscreen.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Railgun.oxp v 1.2 now available

Post by Capt. Murphy »

Hi Commander McLane.

Version 1.2 is not working on either 1.75.2 test release or previous trunk 4554.

pressing n is not firing a projectile and is filling up the log with lots of:

06:00:05.984 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (railgun-firing 1.2): Error: Ship.spawn: Invalid arguments (undefined) -- expected role and optional quantity (1 to 64).
06:00:05.984 [script.javaScript.exception.ooliteDefinedError]: Resources/Scripts/oolite-global-prefix.js, line 70.
06:00:06.062 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (railgun-firing 1.2): Error: Ship.spawn: Invalid arguments (undefined) -- expected role and optional quantity (1 to 64).
06:00:06.062 [script.javaScript.exception.ooliteDefinedError]: Resources/Scripts/oolite-global-prefix.js, line 70.


I have got ammo in the save game.

I think it might be something to do with a missing missionVariable because I'm using a save that had the railgun installed from your previous release.

edit to add - confirmed - selling and repurchasing my railgun fixed the errors.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
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: Railgun.oxp v 1.2 now available

Post by Commander McLane »

Yes, you're right.

As per Capt. Murphy's report:

The internal handling of the railguns and their projectiles has changed significantly between v 1.1 and v 1.2 of the OXP. Therefore, if you had already a railgun on your ship, and then updated to v 1.2, you need to sell and repurchase your railgun. Sorry for the inconvenience!

(I hadn't noticed because when I made the changes my test commander had no railgun. I always had to buy it first.)
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Railgun.oxp v 1.2 now available

Post by pagroove »

I like the railgun! Good work and very original. It only need one thing more and that is: sound.
Its a bit silent.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1244
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Railgun.oxp v 1.2 now available

Post by UK_Eliter »

I agree with pagroove: the gun is interesting (and must have been fairly difficult to code, I imagine) and/but some sound would improve it!
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: Railgun.oxp v 1.2 now available

Post by Commander McLane »

pagroove wrote:
I like the railgun! Good work and very original. It only need one thing more and that is: sound.
Its a bit silent.
... and therefore doesn't fit the Space Is Noisy-trope. :wink:

But seriously, I'd love to have a sound effect, perhaps two sound effects: one for firing, and one for hitting. You're the man for sounds, would you like to provide some?

(And while you're at it, I'd also love to have a sound effect for the fireworks from fireworks.oxp.)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Railgun.oxp v 1.2 now available

Post by JensAyton »

Commander McLane wrote:
... and therefore doesn't fit the Space Is Noisy-trope. :wink:
Even then, it should have a firing sound.
Post Reply