Page 1 of 1

Tianve Ad problem...

Posted: Sat Oct 18, 2008 5:55 pm
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.

Posted: Sat Oct 18, 2008 6:14 pm
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:"

Posted: Sun Oct 19, 2008 5:00 pm
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.

Posted: Sun Oct 19, 2008 9:36 pm
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

Posted: Mon Oct 20, 2008 5:51 am
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.

Posted: Mon Oct 20, 2008 7:45 am
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.

Posted: Mon Oct 20, 2008 10:49 am
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: