Tianve Ad problem...

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

Moderators: winston, another_commander

Post Reply
User avatar
drew
---- E L I T E ----
---- E L I T E ----
Posts: 2190
Joined: Fri May 19, 2006 9:29 am
Location: In front of a laptop writing a book.
Contact:

Tianve Ad problem...

Post by drew »

Dr. Nil has kindly donated some of his OXP code for me to use. We've got a problem - and don't recognise this area. Can anyone shed some light on it?

I'm using the code:
"addShipsAtPrecisely: tianve_small_billboard_01 1 pwm 17900 88100 30100"

and get the following in stderr
2008-10-17 21:30:57.500 oolite.exe[1448] [script.debug.note.addShips]: DEBUG Going to add 1 ship(s) with role 'tianve_small_billboard_01' precisely at point (17900.000, 88100.000, 30100.000) using system pwm
2008-10-17 21:30:57.515 oolite.exe[1448] [script.addShips.failed]: SCRIPT ERROR in <anonymous actions> ***** CANNOT addShipsAtPrecisely: 'tianve_small_billboard_01 1 pwm 17900 88100 30100' (should be addShipsAt: role number coordinate_system x y z)
This seems to be the same error I got when I was using the wrong role, but I've checked the shipdata.plist and it is the right role.... :?

Cheers,

Drew.
Drew is an author of SF and Fantasy Novels
WebsiteFacebookTwitter
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

After c&p the billboard clone into the shipdata for your oxp did you reboot oolite with shift held down? If not the changes in shipdata are not added to oolite's cache so it does not know the new object. I thought the "Precisely" was Ok, but Oolite looks to be complaning about that. Could try just "addShipsAt:" as it's saying to use that rather than "addShipsAtPrecisely:"
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
drew
---- E L I T E ----
---- E L I T E ----
Posts: 2190
Joined: Fri May 19, 2006 9:29 am
Location: In front of a laptop writing a book.
Contact:

Post by drew »

Found the problem. There was a 'condition' statement in the shipdata.plist which seemed to go nowhere. I deleted it and the tianve system was flooded with ads.... damn advertising! Gets everywhere!

See what happens when you let an amateur marketer loose in what was a beautiful spot in the ooniverse... :lol:

Hopefully get tianve.oxp out in the next few weeks.

Cheers,

Drew.
Drew is an author of SF and Fantasy Novels
WebsiteFacebookTwitter
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 »

drew wrote:
Found the problem. There was a 'condition' statement in the shipdata.plist which seemed to go nowhere. I deleted it and the tianve system was flooded with ads.... damn advertising! Gets everywhere!
This I'd like to see.

Captain Hesperus
The truth, revealed!!
Image
User avatar
drew
---- E L I T E ----
---- E L I T E ----
Posts: 2190
Joined: Fri May 19, 2006 9:29 am
Location: In front of a laptop writing a book.
Contact:

Post by drew »

It's on its way!!

One more problem though OXP geniuses.....

My Ads are using 'buoyAI', but they don't rotate - how do I make them do this?

Cheers,

Drew.
Drew is an author of SF and Fantasy Novels
WebsiteFacebookTwitter
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 »

My Ads are using 'buoyAI', but they don't rotate - how do I make them do this?
When you have problems with buoys, you should look into buoyRepair.oxp. Of cause this oxp suffers from the same problem. You can't get the fixed rotation the system gives them. Best alternative for oxp is use the "performTumble" command. That gives the buoys a random rotation between 0 and maximum rotation. But till today I never heard a complain that repaired buoys rotate at a wrong pace.
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 »

You should be able to give them a specific rotation speed.

Give me a moment to dive for some code of mine...


Oops! I am also doing it with performTumble. I guess I never noticed that it didn't tumble with max_flight_roll, but with something between that and 0... :oops:
Post Reply