Two things

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

Moderators: winston, another_commander

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Two things

Post by Lestradae »

One:

There will soon be a complete list of all Oolite ships in existence stats. :shock: I am making one. I don`t know when it will be complete, but perhaps end of march is reasonable. So no one else needs to do the work twice, as this was discussed concerning ship stubs on the wiki.

But I think the probability that after creating my first oxp I want to enter the data into the wiki is low. So, my ship stats file can be used by whomever wants to use it in whatever way ... wiki, trunk ship stats table bla etc. ... but perhaps not by me, besides for the aforementioned oxp. :?

Two:

I found something in the A-Wing oxp I don`t understand. It says there
<key>weapon_facings</key> <integer>20</integer>
But. As far as I understand, the laser mountings are numbered as 1, 2, 4 and 8 and the number between the integers refers to the sum, thereby cunningly encoding all possible laser combinations a ship might have.

So what the :evil: is 20 :?: I mean, all four mountings would be 15, is that a turret or a typo or some unknown supercode?

If someone knows, please help me out,

L
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

I don’t know why it says that, but I feel confident in saying it serves no useful purpose. From the game’s persecutive, it’s the same as 4.
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James »

My guess would be that its a bit mask, and anything to the left of 8 is ignored.

20 is
00010100
00008421

So its the same as just 4.

Edit, as Ahruman just said :lol:
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Ok thanks, I`ll just go ahead and edit it then! n/T

Post by Lestradae »

...
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

I like the idea that it's a super code, something between an AK47, a trail gun and and a plasma cannon!!!!!


:oops: too much red wine.............again!
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

That`s ...

Post by Lestradae »

:lol:

Oh, and nastrovje! :)
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: Two things

Post by Commander McLane »

I think the question isn't yet properly answered:
Lestradae wrote:
So what the :evil: is 20 :?: I mean, all four mountings would be 15, is that a turret or a typo or some unknown supercode?

If someone knows, please help me out,
The concise answer would be (my guess, but I'm pretty sure): It is neither of the aforementioned, but simply the OXP-creator's lack of understanding of how the weapon_facings work.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Weapon Facings

Post by Lestradae »

simply the OXP-creator's lack of understanding of how the weapon_facings work.
I think so too, especially after I found out what he did to the B-Wing :shock: ... there the integer was 30 :?

With the Realistic Shipyards OXP, the A- and B-Wings will simply have four weapon mountings, I re-set the integer to 15 for both.
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: Weapon Facings

Post by Commander McLane »

Lestradae wrote:
... what he did to the B-Wing :shock: ... there the integer was 30 :?
30 is very nice. The same as 14: Everywhere but in the front. :wink: Perhaps a little frustrating for a fighter pilot? :twisted:

Anyway, I wonder why we never had complaints about the A-Wing (one side laser only) or the B-Wing (no front laser). Can it be that nobody actually ever tried to fly one of these ships??? :shock:
User avatar
goran
---- E L I T E ----
---- E L I T E ----
Posts: 294
Joined: Sat Feb 23, 2008 12:32 am
Location: Zagreb, Croatia
Contact:

Post by goran »

I tried the b-wing and it has front, back and left laser mountings.
User avatar
Captain Hesperus
Grand High Clock-Tower Poobah
Grand High Clock-Tower Poobah
Posts: 2310
Joined: Tue Sep 19, 2006 1:10 pm
Location: Anywhere I can sell Trumbles.....

Post by Captain Hesperus »

gorans wrote:
I tried the b-wing and it has front, back and left laser mountings.
I concur, the B-wing has the front laser off-set waaaaay to the right. Very confusing when you are fighting and almost useless if you get too close....

Captain Hesperus
The truth, revealed!!
Image
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:

Post by Commander McLane »

Strange. It indicates that the bitmask might work differently from what is explained in the wiki...?
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Commander McLane wrote:
Strange. It indicates that the bitmask might work differently from what is explained in the wiki...?
The key is not read in at the usual place. (I couldn't find it there) Maybe it is only used when buying the stuff. Than a ship that was pre-equipped with it would still have it no mater what the key said.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Yep, I can confirm that weapon_facings is used when buying equipment. It' s an interesting way of stopping the player from changing their front laser... :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply