Oolite Bulletins

For information and discussion about Oolite.
It is currently Thu Sep 20, 2018 4:55 am

All times are UTC




Post new topic  Reply to topic  [ 59 posts ]  Go to page Previous 1 2 3 4
Author Message
 Post subject: Re: Library
PostPosted: Sun Mar 25, 2018 1:50 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
Quote:
Would one be able to insert a custom character pic?
Yep!


Top
   
 Post subject: Re: Library
PostPosted: Sun Mar 25, 2018 5:57 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Mon Apr 27, 2015 9:03 pm
Posts: 297
How does this addon interact with the ones it intends to replace ?
For instance, changing the difficulty level of NPCs (addon "Skilled NPCs") using OXPConfig also changes the values displayed in the "Config for Addons" menu tree. So it seems Library is designed to be compatible with the addons it intends to replace ?
Why is it not available in the addons manager ? My suspicion is/was because of conflicts ?
If some other installed addon depends on CCL, can I remove CCL now, after installing Library ? (I assume not though, probably all of the addons depending on CCL which I have installed need to be updated first...)

I wanted to configure the Navi MFD, but it only works with Library, so now I have OXPConfig and Library parallel.

_________________
warning sound if a missile is inbound: Missile warning


Top
   
 Post subject: Re: Library
PostPosted: Sun Mar 25, 2018 9:20 pm 
Offline
Commodore
Commodore
User avatar

Joined: Tue Jan 21, 2014 10:37 pm
Posts: 2162
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...
Quote:
For instance, changing the difficulty level of NPCs (addon "Skilled NPCs") using OXPConfig also changes the values displayed in the "Config for Addons" menu tree.
This is less to do with Library, and more to do with the fact that I added support for Library to Skilled NPC's, which should co-exist if both configuration OXP's are installed. However, more options are available through Library than through OXP Config, so if you have both installed, you should make Library your default place to change the config.
Quote:
I wanted to configure the Navi MFD, but it only works with Library, so now I have OXPConfig and Library parallel.
You can have both Library and OXP Config installed - they don't conflict with each other.
Quote:
If some other installed addon depends on CCL, can I remove CCL now, after installing Library ?
If an OXP requires CCL, it will still need it even after Library is installed. Library doesn't replace existing requirements, even though it is designed as a replacement to things like CCL. It must be specifically targeted by OXP authors in order to be used.
Quote:
Why is it not available in the addons manager ? My suspicion is/was because of conflicts ?
I think there are two reasons (1) Svengali is giving the pre-DM release plenty of time to bed down and for bugs to be discovered, and (2) Getting time to do the work required to do the upload.

_________________
My OXP's
YouTube: Oolite Teaser Trailer


Top
   
 Post subject: Re: Library
PostPosted: Sun Mar 25, 2018 10:58 pm 
Offline
Competent
Competent
User avatar

Joined: Sat Jan 20, 2018 4:08 pm
Posts: 53
Location: In The Dark
Very Impressive !!

Will the P.A.D. be accessible while in flight as well as when docked?

The ability to enter a player's own notes will be most welcome. Anything that eliminates at least some of the pieces of paper that crowd my desk while playing is a good thing.

Have you figured out the size of the custom portraits yet? Just a bit of anticipation so that something can be prepared ahead of time.

Looking forward to a release. Do take your time though. These things are never easy to get just right with all the bug squishing, feature adding, and such.

Worth repeating: Very Impressive !!

_________________
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon


Top
   
 Post subject: Re: Library
PostPosted: Mon Mar 26, 2018 9:42 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
Thanks phbk .-) A +1 answer .-)

As sidenote: CCL, OXPConfig and Hyperradio have been written for Oolite v1.77 (or earlier) and are marked deprecated. Library offers so much more flexibility and has many new features, using the cleaner ways Oolite offers since v1.80. And the transition from OXPConfig to Lib_Config is easy, as they are using similiar data-structures.
Quote:
Will the P.A.D. be accessible while in flight as well as when docked?
No. As it is using models on the screens it won't work. What could be possible is to add a method to display a text summary - e.g. through CommsLogMFD.
Quote:
Have you figured out the size of the custom portraits yet?
Any square resolution will do. The textures in Lib_PAD are 128x128 px.


Top
   
 Post subject: Re: Library
PostPosted: Mon Mar 26, 2018 6:39 pm 
Offline
Deadly
Deadly
User avatar

Joined: Thu Feb 15, 2018 9:30 am
Posts: 211
Location: Texas
Custom portrait adds is easy and works.
Running a test version and liking it.

_________________
Creativity is a gift, use it well.


Top
   
 Post subject: Re: Library
PostPosted: Tue Mar 27, 2018 2:26 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
Just a note about how the PAD will work.
As we really can't handle external resources without huge efforts, code and runtime (e.g. to declare for every resource the corresponding AddOn, etc.), Lib_PAD will leave the handling for loading and storing to the inserting AddOns - because I'm lazy. It's only a tiny bit of code AND players still have the freedom to move AddOns in and out as they want - without generating errors. A simple example may show what this technical blabla means.

Let's say you need a page. Just define your data object, e.g.
Code:
this.$data = {
	GCI: {entry:clock.clockString,enlisted:"Sergeant",awards:["GCI Silver Cross"],t0:27,t1:1}
};
On .startUpComplete
Code:
this.startUpComplete = function(){
	// Does stored data exist? Load the data.
	if(missionVariables.MYMISSIONVARIABLE) this.$data = JSON.parse(missionVariables.MYMISSIONVARIABLE);
	// Insert. As Lib_PAD merges it with the template, missing declarations will be set to a default value.
	worldScripts.Lib_PAD._addPageInCategory("GALCOP.GCI",this.$data.GCI);
};
And save it.
Code:
this.playerWillSaveGame = function(){
	// Get data from Lib_PAD - with e.g. added notes.
	this.$data.GCI = worldScripts.Lib_PAD._getData("GALCOP.GCI");
	// Store.
	missionVariables.MYMISSIONVARIABLE = JSON.stringify(this.$data);
};
That's it.


Top
   
 Post subject: Re: Library
PostPosted: Thu Mar 29, 2018 1:35 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
For AddOn-developers:
A test-version has been uploaded and I've started to [EliteWiki] document the PAD. If you feel that something is missing it's time to speak up, before the data-structure settles down. Please note that the test-version does not store anything yet and most of the error handling and limiting (e.g. Array length) is still missing, but should be enough to see what it does and how it works.


Top
   
 Post subject: Re: Library
PostPosted: Tue Apr 03, 2018 12:00 am 
Offline
Deadly
Deadly
User avatar

Joined: Thu Feb 15, 2018 9:30 am
Posts: 211
Location: Texas
Was wondering if there could be a spot to list your crew. Just there position name and a mug shot.
Gunner
Engineer
Copilot
Cook
Just a thought.

_________________
Creativity is a gift, use it well.


Top
   
 Post subject: Re: Library
PostPosted: Tue Apr 03, 2018 12:22 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
Quote:
Was wondering if there could be a spot to list your crew. Just there position name and a mug shot.
It is already possible to add them in the PERSONS category. But crew handling (and the consequences) is probably something for a Companion-AddOn. The PAD can be used to display the data about them like name, picture, origin, species, gender, abilities, etc. and if a special property is set to call a function in that Companion-AddOn. A similiar approach is alreay used to decrypt specific messages (undocumented yet). I'm also thinking about a way to cross-link pages, but it will be a very simple system and space on screens is rather limited. We will see.

Changes:
- The new search functionality can handle now much more data. I've just tested it with >4100 pages on my really slow machine, so I guess it's even possible to insert something like the 'New Galaxy Guide'. Funny.
- _getData() returns now null instead of false if the path is not found.
- On GALCOP and GUILDS pages rank has been replaced by kills which is probably more suitable.
- Added PERSONS Curruthers, Fortesque and Blake (Lib_PAD_Events.js).

I'm still a bit unsure about the SYSTEMS pages, but hey.


Top
   
 Post subject: Re: Library
PostPosted: Thu Apr 05, 2018 10:01 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sat Oct 20, 2007 2:52 pm
Posts: 2313
Cross-linking between pages is now possible. The system works similiar to the WIKI Categories. A page defines its parents and the parent page will get it as member.

Changes:
- Added optional third argument parent in _addPageInCategory to relate a page to its parent(s).
- Added screenhandling for relations between pages.


Top
   
 Post subject: Re: Library
PostPosted: Fri Jun 15, 2018 7:30 pm 
Offline
Deadly
Deadly
User avatar

Joined: Thu Feb 15, 2018 9:30 am
Posts: 211
Location: Texas
Has there been any update to this OXZ?
What is the current version available?

_________________
Creativity is a gift, use it well.


Top
   
 Post subject: Re: Library
PostPosted: Fri Jun 15, 2018 9:41 pm 
Offline
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
User avatar

Joined: Sat Jul 04, 2009 9:31 pm
Posts: 13356
Location: Corke's Drift
Quote:
What is the current version available?
I believe 1.6 is current - that's what I have.

_________________
We pray for one last landing
On the globe that gave us birth
Let us rest our eyes on the fleecy skies
And the cool, green hills of Earth


Top
   
 Post subject: Re: Library
PostPosted: Wed Aug 01, 2018 9:43 pm 
Offline
Deadly
Deadly
User avatar

Joined: Thu Feb 15, 2018 9:30 am
Posts: 211
Location: Texas
Any update to the PAD feature?

_________________
Creativity is a gift, use it well.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 59 posts ]  Go to page Previous 1 2 3 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 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:
Powered by phpBB® Forum Software © phpBB Limited