Docking Coordinates = 0,0,0?

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

Moderators: winston, another_commander

User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Docking Coordinates = 0,0,0?

Post by Griff »

Hi everyone
I've created a large freight train type ship as well as some small 'loader bots' i'm hoping to have ferry cargo pods between the freighter and a prison like station model i've built. here's a pic of the freighter (and the tiny specks are the loader bots, they're just big enough to carry a cargo pod each.)
Image

does anyone know if the docking slit for a carrier/station should be centered at 0,0,0 in the model? I've hacked a quick dockingAI script for the loaders that sort of works for the freighter but doesn't work at all on the station i've built - the loaders just fly into the side of it as if they are heading to the models centre instead of the slit on the Z axis edge.

i've finished the station:-
Image

i'm getting odd results with the 'addShipsAt:' and 'addShipsAtPrecisely:' commands, using 'addShipsAtPrecisely:' makes my station point in the opposite directon to when it's added using 'addShipsAt:'. Maybe i should re-export the model spun around 180 on Z.
Last edited by Griff on Sun Jan 21, 2007 12:33 pm, edited 2 times in total.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

I can't help at all but just wanted to say what amazing looking ship!

don't you just hated talent people? :wink:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

the little i know about 3d modelling suggests you are right - when modelling the origin is where the 3 axes are on your orthographic grid, so i assume that's what's referenced in your coordinates. i'd think you could either go back into your modeller and drag the entire model to line up the axes on your docking slot (might affect other things like roatation tho??) or work out the co-ords of your docking slit.
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

Man o man Griff, stunning work, you are setting standards that others aspire to.

I don't know how you are doing it, I thought there was some sort of limit on the level of detail that could be achieved on ships. Does this mean that potentially there is the ability to creat Battlestars, Generation ships, and space dredgers of the same ilk.
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

At the moment the stations docking port is at 0,0,533 in the models space, i'll try your suggestion KW and move the whole thing back on the z axis so that the ports midpoint is 0,0,0. if i leave the x & y untouched it should still rotate correctly in game i hope - otherwise docking is going to be a nightmare.
failing that i suppose i could use the 'addshipatprecisely' command to place the station at some known coordinate, then manually add a path of coordinates to the loaders ai script that if they follow they always line up with the stations docking port.

regarding the detail in the model, oolite does seem to have a bit of trouble registering laser hits on the trail of containers at the back of the ship unless you fire a few shots into the engine part first then it all works ok, but i think this is probably a problem with all the holes i've left in the model to cut down on polygons.
User avatar
Charlie
---- E L I T E ----
---- E L I T E ----
Posts: 262
Joined: Wed Sep 27, 2006 5:33 pm

Post by Charlie »

Damn! :shock: :D

On the subject of your question, this docking slit thing is new for me too so I don't know all the rules but as far as I understand they need to be more-or-less aligned on the front-back ( z ) axis of your ship, and co-ords of 0.0,0.0,0.0 is what I generally do with sub-entities. Necessary? Don't know, but so far I haven't had issues. ( I think )
Benulobiweed.inc
By Appointment to
--- : GalCoop : ---

Your nearest Benulobiweed.inc dealer:
http://www.box.net/public/b2tic3tjsk#main

Charlie
User avatar
Dr. Nil
---- E L I T E ----
---- E L I T E ----
Posts: 983
Joined: Thu Sep 28, 2006 5:11 pm
Location: Nearest Hoopy Casino
Contact:

Post by Dr. Nil »

Arh, ain't she a beauty! Image

On the subject of docks:

The easiest way might be to make your own custom dock. I usually turn to Giles' excellent and thorough guide to making your own dock. Then you're sure to get docks with the subentity coordinates you want.
Image

300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

thanks everyone for the help, i've moved the model back along the Z axis so the mouth of the docking bay is at 0,0,0 and the loader bots are now doing a fairly good job at flying into the docking bay and not straight into the side of the hull as they were doing before, now the next step is to get the freighters launching the bots in the first place and to get the bots to dock at the nearest station and not straight back in the freighter they just launched from...
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 »

Perhaps just giving the bots you want to fly to the station a tweaked native route1traderAI would do it (maybe change the distress calls to some bot-type hails), as this has a fly to station and dock script in it. Throw in a few launchDefenceShips to get the bots launched. If they didn't have interceptorAI then they'd do whatever their AI told em to do. A similar AI to the main ship, should get them flying along with it.
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
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

cheers for the tip! the route1trader ai has a whole "go_to_station" section already in it! heh, i only looked at the dockingAI script for inspration and then i quickly decided the bots were taking to long dithering about lineing up with the freighter so i cut out all the careful driving stuff and then posted on here in bafflement when the bots all started crashing into each other and the hulls of the stations.

Edit: Darn, ive hit a snag, moving the model back along Z has fixed docking for the bots but broken it for the player - the docking zone is now placed outside the station! I think i'll try placing the station at fixed co-ordinates next and then writing a short AI for the bots ro move them to a point in front of the station then switch the AI to the dockingAI already in oolite to do the clever stuff.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

[img][img]http://i105.photobucket.com/albums/m213 ... 3/tugs.jpg[/img][/img]
unbelievably i've got the cargo unloder bots working, here's two of them about to speedy dock. realised i could set a nav buoy for the station as a subentity of the station and then place it directly in front of the docking slit using co-ords like 0 0 2000 it's shipdata.plist entry and avoid the problems i've been getting with the addshipatprecisely command behaving oddly, the cargo bots AI then targets the buoy as a destination, flies up to it then turns and flies at the station, doing a 'landonplanet' when they get really close, this allows you spawn clouds of bots that all fight it out to dock together at top speed without all the 'after you..no i insist, after you' politeness that the rest of the ships do.
edit
oops, this didn't work after all, i had another other script in another .oxp that happened to be adding the buoy that made me thing the subentity idea was working, back to tthe drawing board
Last edited by Griff on Sat Feb 10, 2007 8:06 pm, edited 1 time in total.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

:shock: That's just so beautiful I wanna cry (with happiness) :D :cry:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

@DH after you with the Kleenex
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

man, i was in tears myself, i really, really have a hard time scripting! it's been a couple of months for me trying to get to this point and the oxp still doesn't really do anything usefull! anyway, hopefully this stuff can plug into the Tescoo oxp so we can have delivery ships etc stocking up the shelves and also have a lot of activity around the stations - can't find the thread but somebody had the great idea of a 'customs' point for ships to have their cargo checked.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

Looks awesome, can't wait to see it in game!
Regards,
David Taylor.
Post Reply