![[EliteWiki]](/images/elitewikismall.png)

Moderators: winston, another_commander
Does the function select a ship using role weightings? If so, then this will be extremely useful for dynamic mission generation. For example in Rescue Stations (on it's way for 1.79 btw) and Random Hits.cim wrote:Got it. Ship.shipDataForKey will be available in tonight's build. Note that there are at least four [wiki]shipdata.plist[/wiki] properties ("name", "ship_class_name", "ship_name" and "display_name") which can make up a ship's name, so it's not completely straightforward.
No but you can get keys from Ship.keysForRole then parse the weights from Ship.shipDataForKey(key).roles imho.spara wrote:Does the function select a ship using role weightings?
I'm a bit confused here. Is the documentation correct? It says:Norby wrote:No but you can get keys from Ship.keysForRole then parse the weights from Ship.shipDataForKey(key).roles imho.spara wrote:Does the function select a ship using role weightings?
Code: Select all
function shipDataForKey(role : String) : Object
dataKey : String
or something?keysForRole
and then parsing the roles with shipDataForKey.Yes, fixed. Thanksspara wrote:Should that bedataKey : String
or something?
The [wiki]HoOpy_Casino[/wiki] is a dockable moving ship so should be appear in Exhibition, regardless from the big size.vsfc wrote:the so called Exhibition. Even Casino was there
This is a feature: ships in Exhibitions is not rotating by default except the never encountered ones to highlight these for target locking which will gather into your Gallery. Others are stopped but you can watch one in rotation if you lock it.vsfc wrote:when I targeted it, it started to rotate
I am sorry, there is a prevention which pull the large ships out of lines and this is working well at me, but I can not prevent the unexpected accidents. Now I increased further the safety distance in Gallery v1.19 to reduce the possible collisions.vsfc wrote:smashing everything around it
You are right, if a huge ship pulled out of normal lines then placed nearer to the player, too near in this case, so now the whole Exhibition is moved forward to 10km. The largest ships has about 4km length so this should be enough, else the normal 50-100m long ships will be almost invisible when arrive.vsfc wrote:I had very little time to pull away to avoid a straight line collision.
I think visitors should be able to look into the interior of dockable ships.I managed to dock at the exhibitor casino
There are Viper exhibition guards around and you will be fined heavily by GalCop for each destroyed ship, so I do not recommend it.I am really itching to put a Q bomb nearby and watch the fireworks.
I am sorry for miss information. That was the seedy space bar from random hits, not the [wiki]HoOpy_Casino[/wiki].Norby wrote:The [wiki]HoOpy_Casino[/wiki] is a dockable moving ship so should be appear in Exhibition, regardless from the big size.vsfc wrote:the so called Exhibition. Even Casino was there
In that particular incident, the witchpoint beacon was inside the exhibition mass of ships.Norby wrote:I am sorry, there is a prevention which pull the large ships out of lines and this is working well at me, but I can not prevent the unexpected accidents. Now I increased further the safety distance in Gallery v1.19 to reduce the possible collisions.vsfc wrote:smashing everything around it
Ok, there is a fix in Gallery v1.20 (all ships with max_flight_speed=0 are excluded from Oolite 1.80 and spacebar from older versions).vsfc wrote:That was the seedy space bar from random hits
Maybe the "nullAI" what I attached is smarter than usually.vsfc wrote:ships marked as 'exhibition' are flying around sometimes tagged as offender, fighting with police or even attacking me.
There are many events which put a ship into your gallery, probably some fire while you are in a station also. I think this is imaginable as you are lucky enough to find a new ship type in the hangar so I leave it in.cbr wrote:Is it normal for the gallery to add ships while inside the main station?
Norby wrote:I can not reproduce, in my test works well over 10000 also. Maybe you visit an exhibition what you already saw a few days before? If not then a galaxy jump should reset exhibitions, or If you send me a savegame then I look into. My email is norbylite at the mail service of google.