Oolite Bulletins

For information and discussion about Oolite.
It is currently Fri Dec 15, 2017 10:12 am

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Nov 30, 2017 11:56 am 
Offline
Dangerous
Dangerous

Joined: Mon May 25, 2015 5:23 pm
Posts: 109
Location: Russia
If you want find incorrect role in the ship's OXP quickly, then inputed in oolite console:
Code:
var roles = Ship.roles();
for( var i = 0; i < roles.length; i++ ) {
 var roleKeys = Ship.keysForRole( roles[i] );
 log("roles", i + ". "+roles[i] + ": " + roleKeys );
}
Details can seen in the [EliteWiki] Oolite JavaScript Reference wiki page (Static Methods).

I found in Latest.log file the next incorrect roles for in the my set of AddOns:
Quote:
... [fighters-shark]: fighters-shark
...

... (0.04): RNRL_Stormbrewer-vigilante
...

... (0.05): classic_mussurana_hunter,classic_mussurana_pirate
...

... (0.07): RNRL_Stormbrewer-vigilante
...

... (0.3): classic_mussurana_hunter,RNRL_Stormbrewer-pirate
...

... griff_processor_subent: griff_1_pipe,griff_4_pipe
I think not should be number role. Errors is consist in space between the name roles and role weights this OXP's.

So, may fixed in shipdata.plist, roles string for OXP's: The Classic Mussurana, Stormbrewer.


Top
   
PostPosted: Thu Nov 30, 2017 12:45 pm 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Tue Feb 09, 2010 11:31 am
Posts: 8311
Location: Disunited Kingdom
Hi Rustem,
Thanks for the heads-up on this. I had no idea I had spaces between the role and weight, and also had no idea that it was a problem!
It is now on my (rather long!) 'to do' list, so will be fixed when I can get round to this.

_________________
Commander Smivs, the friendliest Gourd this side of Riedquat.


Top
   
PostPosted: Fri Dec 01, 2017 7:46 am 
Offline
Dangerous
Dangerous

Joined: Mon May 25, 2015 5:23 pm
Posts: 109
Location: Russia
Quote:
It is now on my (rather long!) 'to do' list, so will be fixed when I can get round to this.
Hi, Smivs!

It is big 'to do' a deleting space :D.

Find space is difficult task :D.

I looking The GalCop MostWanted OXP code. There is use a role weights. Not sure exactly, but it seems that it affects the choice a ship for addition to GC MW list.


Top
   
PostPosted: Fri Dec 01, 2017 9:05 am 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 1840
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
Quote:
There is use a role weights. Not sure exactly, but it seems that it affects the choice a ship for addition to GC MW list.
I'm attempting to allocate ships with (kind of) the same frequency as the core code does it, so a rare ship doesn't get over-allocated. I use a similar method for Station Dock Control. I'm by no means sure I have the algorithm close to what the core code does, but it's workable.

_________________
My OXP's


Top
   
PostPosted: Fri Dec 01, 2017 4:09 pm 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Tue Feb 09, 2010 11:31 am
Posts: 8311
Location: Disunited Kingdom
Quote:
Hi, Smivs!

It is big 'to do' a deleting space :D.
Well, no, not in itself, but when taken in context (the number of updates I need to do!) it is. RL is crazy at the moment, but I hope to sort all of my backlog out within the next week or two.

_________________
Commander Smivs, the friendliest Gourd this side of Riedquat.


Top
   
PostPosted: Fri Dec 01, 2017 8:18 pm 
Offline
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
User avatar

Joined: Sat Jul 04, 2009 9:31 pm
Posts: 12966
Location: Corke's Drift
Quote:
RL is crazy at the moment
Fixed that for you!

_________________
The only good fnord is a dead fnord!


Top
   
PostPosted: Fri Dec 01, 2017 8:25 pm 
Offline
Retired Assassin
Retired Assassin
User avatar

Joined: Tue Feb 09, 2010 11:31 am
Posts: 8311
Location: Disunited Kingdom
Ah, that explains it, then...

_________________
Commander Smivs, the friendliest Gourd this side of Riedquat.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: pleiadian and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited