Permanent GalDrive OXP

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

Moderators: winston, another_commander

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2457
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Permanent GalDrive OXP

Post by Wildeblood »

Wildeblood wrote:
Righto, I just did the mission in question. The result was an almost 1 megabyte log file full of this junk...
Also three annoyed passengers who refused to pay because I delivered them to the wrong galaxy. Until then I had a perfect passenger reputation. All-in-all, I'm not very impressed with this "mission". I don't see what all the fuss was about.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Permanent GalDrive OXP

Post by Eric Walch »

Wildeblood wrote:
With, or without?
:oops: without of cause.

Before the escorts jumped on their own, but now those without the motor are unaffected and keep their original behaviour of following a mother.
Other ships like shuttles or Geckos are now also unaffected in their AI and try to do what they always did.
For geckos that will be no problem, but rising shuttles will have their own problem without station to go to.

Anyhow, this will lead internally to some discussion if the 'sendAllShipsAway' should really send them all away, of just those that can jump. The command was written for the nova mission to let all ships flee and in that light it is realistic that those without the right equipment stay trapped in the system.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Permanent GalDrive OXP

Post by Switeck »

Can't npcs that lack hyperdrives just seek out other npc wormholes?
...using enterTargetWormhole in its AI.plist.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Permanent GalDrive OXP

Post by Eric Walch »

Switeck wrote:
Can't npcs that lack hyperdrives just seek out other npc wormholes?
...using enterTargetWormhole in its AI.plist.
Problem is that ships generally can't target Wormholes. There is a lot of code inside Oolite that assumes that npc targets are ship entities. In the current state it could lead to crashes when allowing wormholes as target. To prevent crashes, the npc code needs probably in a hundred places a check for not being a wormhole.
Therefor in update, any wormhole used as target is immediately lost. 'enterTargetWormhole' only works in the same update cycle when the mother gives the wormhole target to the escorts.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Permanent GalDrive OXP

Post by Smivs »

Eric Walch wrote:
Clearly a bug in XeptatisSword :twisted:
No longer :) Updated to v1.0.2 to correct this.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Permanent GalDrive OXP

Post by Eric Walch »

Smivs wrote:
Eric Walch wrote:
Clearly a bug in XeptatisSword :twisted:
No longer :) Updated to v1.0.2 to correct this.
Thanks. But as similar incompatibilities will pop up in the future, I think we also should change it in Oolite itself. There "none" was used in the belief this would be a non-existing role in the old days. I think we should change it to "noneExistingRoleInTheWholeUniverse" (or similar) to be sure it will not exist in any oxp. :D
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Permanent GalDrive OXP

Post by Smivs »

Eric Walch wrote:
I think we should change it to "noneExistingRoleInTheWholeUniverse"
Yeah, that's a nice snappy name...I like that :P
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply