Bang

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

Moderators: winston, another_commander

User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2280
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

Right - i think i'm making progress :-O

thaks to LittleBear's little script here https://bb.oolite.space/viewtopic.php?t=2875 (BTW bud (in case anyone else c/p this and got stumped) there's a > missing from the addsystemships closing string - took me yonks to spot it!) and Heretic's "spawn" advice, i've now got a tanker that has 4 Asp Escorts \o/ (in case anyone wonders/cares the reason it was hit & miss as i stated earlier was actually because i'd done it wrong : it wasn't working at all for the tanker but musta been spawning Asps some place else cos at that point they had a generic Escort Role. what i did this time was put the spawny bit in a SetUp Actions bit.)

...however...

firstly, i'm coming across the prob of the Asps changing to route1patrol and coming after me (was Offender at the time). i'll have a bit more look about to see if i can sort this.

secondly, i tried using the Asp from the OXP Giles did of the WIngs versions. Exported it into Milkshape etc and it was showing all the faces showin inwards :-/ . fixed that, skinned it, but it just will NOT texture the bugger, dunno if i've messed summat up along the way. shows the materials/groups etc ok...ended up just like_shipping the Asp instead.

also, the tanker originally had "tankerAI", which - as i said earlier - did the spawny bits and then "setAITo..." ~ when i tried it, the tanker was dead in the water. STDERR said "entity does not respond to setAITo" but gave no reason WHY. my syntax looked ok, does anyone know why this might be? suppose it's irrelevant, but i'm just curious.
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 »

Perhaps a misspelling in the following AI-name?

Or try switchAITo instead of setAITo, which actually changes the AI. With setAITo the current AI is only packed onto the AIstack and then the new one started. But if that new one is exited again tankerAI is restarted, which you probably don't want.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2280
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

Sorted, cheers Commander, i'll try that one. pretty sure i got the spelling right but that Switch sounds far better.
Post Reply