Page 4 of 4
Re: Oolite Unable To Identify A Property List
Posted: Wed Oct 05, 2011 8:27 am
by m4r35n357
Killer Wolf wrote:Okti wrote:Killer Wolf wrote: it's a given in the Oolite universe that players can't have more than one laser ...
Sure?
prove otherwise.
I have two . .
Re: Oolite Unable To Identify A Property List
Posted: Wed Oct 05, 2011 9:32 pm
by DaddyHoggy
I have 4x Mil front and rear, mining port and starboard...
Re: Oolite Unable To Identify A Property List
Posted: Wed Oct 05, 2011 10:33 pm
by mandoman
DaddyHoggy wrote:I have 4x Mil front and rear, mining port and starboard...
Oh, I didn't know that would work. You mean you just assigned a different laser to each position, and the game processed it? Wouldn't you still have to list the extra lasers as sub-entities? Wait, that's just one gun per direction, so it wouldn't be a problem. I've never really seen the advantage of port and starboard guns, unless you have a huge ship, with auto ball turrets, or something of that nature.
Re: Oolite Unable To Identify A Property List
Posted: Wed Oct 05, 2011 10:42 pm
by Smivs
mandoman wrote:DaddyHoggy wrote:I have 4x Mil front and rear, mining port and starboard...
Oh, I didn't know that would work. You mean you just assigned a different laser to each position, and the game processed it? Wouldn't you still have to list the extra lasers as sub-entities? Wait, that's just one gun per direction, so it wouldn't be a problem. I've never really seen the advantage of port and starboard guns, unless you have a huge ship, with auto ball turrets, or something of that nature.
I think DH meant he has four lasers. A mil at the front and the back and miners on both sides. It was a joke.
Re: Oolite Unable To Identify A Property List
Posted: Wed Oct 05, 2011 10:59 pm
by mandoman
Smivs wrote:mandoman wrote:DaddyHoggy wrote:I have 4x Mil front and rear, mining port and starboard...
Oh, I didn't know that would work. You mean you just assigned a different laser to each position, and the game processed it? Wouldn't you still have to list the extra lasers as sub-entities? Wait, that's just one gun per direction, so it wouldn't be a problem. I've never really seen the advantage of port and starboard guns, unless you have a huge ship, with auto ball turrets, or something of that nature.
I think DH meant he has four lasers. A mil at the front and the back and miners on both sides. It was a joke.
Yeah, I figured that out. I would still like to know the trick of putting on two to front and back by using sub-entities. It's evidently been done before, so it wouldn't hurt to do it again. Let me ask you, if I put a laser on the far left aft wing, and far right aft wing and called the port and starboard lasers, would they shoot to the side, or back from the ship as they are pointed? I didn't try it, but I thought about it.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 12:36 am
by CommonSenseOTB
Smivs wrote:mandoman wrote:DaddyHoggy wrote:I have 4x Mil front and rear, mining port and starboard...
Oh, I didn't know that would work. You mean you just assigned a different laser to each position, and the game processed it? Wouldn't you still have to list the extra lasers as sub-entities? Wait, that's just one gun per direction, so it wouldn't be a problem. I've never really seen the advantage of port and starboard guns, unless you have a huge ship, with auto ball turrets, or something of that nature.
I think DH meant he has four lasers. A mil at the front and the back and miners on both sides. It was a joke.
Or was it?
A while back it was posted that Okti and Thargoid have an experimental entity slaved to the player ship. This entity also has a laser and I would assume it fires at your target. Done correctly this would simulate multiple lasers on a player ship but is probably not a perfect solution. I'm sure its not available because we don't need a multiple lasers per ship's weapon position uber war. If anything we probably should label anything with multiple lasers in one direction as"Uber: May destabilize game balance. Use at own risk."
Mandoman, all you can do is have sub-entities for the NPC version of your ship, each of those with a weapon defined in its shipdata entry.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 2:16 am
by mandoman
CommonSenseOTB wrote:Mandoman, all you can do is have sub-entities for the NPC version of your ship, each of those with a weapon defined in its shipdata entry.
Oh yeah, I do remember reading that somewhere. I forget things too easily.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 5:36 am
by Thargoid
It is Okti's experimental OXP - I was nothing to do with it other than he was kind enough to share a version with me. It is very much as described - the fire key still only fires a single laser, but the "n" key can be used to fire a different weapon which could be configured to simulate multiple lasers.
But as has been said in this thread, true multiple lasers on a player ship is currently (and deliberately) not possible, by the sub-entity route or any other. Okti's route is a clever work-around for that, but I'll leave it to him as to whether he wants to share things more widely as it's his work.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 6:50 am
by Killer Wolf
Code: Select all
if I put a laser on the far left aft wing, and far right aft wing and called the port and starboard lasers, would they shoot to the side, or back from the ship as they are pointed? I didn't try it, but I thought about it.
someone more knowledgeable might correct me, but i think it's a moot point as i'm sure i read somewhere that NPCs are coded to only use front and rear lasers.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 8:10 am
by Eric Walch
Thargoid wrote:But as has been said in this thread, true multiple lasers on a player ship is currently (and deliberately) not possible, .....
When a npc ships fires the main laser, the code explicit checks all subentities if they have a laser. For the player there is no such check. That is to avoid creating über-ships with ziljons of lasers.
I just wondered what would happen when firing a main aft laser: As expected, all subentity lasers also fired. But those only can fire forward and fire in the wrong direction than. That seems a bug that is easy fixable. I added now a check for only firing subentity lasers when firing forward.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 1:24 pm
by mandoman
Killer Wolf wrote:Code: Select all
if I put a laser on the far left aft wing, and far right aft wing and called the port and starboard lasers, would they shoot to the side, or back from the ship as they are pointed? I didn't try it, but I thought about it.
someone more knowledgeable might correct me, but i think it's a moot point as i'm sure i read somewhere that NPCs are coded to only use front and rear lasers.
Are Port and Starboard lasers considered sub-entities though? What I'm asking is if I put lasers on my the far tips of two of the wings on my SunBat, and labeled them in shipdata.plist as port and starboard lasers, would they shoot out to the side of the ship in the game, or toward the back, or front, depending on which wings I installed them? I'm not talking in terms of sub-entities here, but in the defined actions of two main lasers, port and starboard. Neither am I speaking in terms of NPC ships, but in actual player ships. It's no big deal, I just don't know, and wanted to know if someone had tried it.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 1:31 pm
by Smivs
They'd shoot out the side. You put them there by defining the weapons_position in shipdata, not by physically putting a sub-ent there, so there is no choice in the direction they fire.
Re: Oolite Unable To Identify A Property List
Posted: Thu Oct 06, 2011 1:38 pm
by mandoman
Smivs wrote:They'd shoot out the side. You put them there by defining the weapons_position in shipdata, not by physically putting a sub-ent there, so there is no choice in the direction they fire.
That's what I suspected, which is why I didn't try it.
Thanks, Smivs.