Cabal_Common_Library

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

Moderators: another_commander, winston

m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: Cabal_Common_Library

Post by m4r35n357 »

Has anyone given any thought to making this lib part of the core game? It would encourage its use, and be less of an imposition on users to install it themselves.
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Cabal_Common_Library

Post by Zireael »

m4r35n357 wrote:
Has anyone given any thought to making this lib part of the core game? It would encourage its use, and be less of an imposition on users to install it themselves.
Seconded.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

m4r35n357 wrote:
Has anyone given any thought to making this lib part of the core game? It would encourage its use, and be less of an imposition on users to install it themselves.
Personally I think CCL is strictly OXP related and Oolite itself doesn't need it. Additionally the methods are in some cases not flexible/fast enough for a 'official' lib and would need a overhaul to qualify for a Oolite lib. And shifting the work from OXPers to the devs is maybe another point to leave it as it is. What I really would like to see is a OXP-Manager, probably a 3rd party app, which updates/enables/disables OXPs based on the infos in Info.plist, requires.plist, RSS or whatever.

btw: Yesterday I've spent some time with Cabal_Common_Briefing to make the fcbSetBinding() working as intended. The next step will be to think about other ways of bindings, but I'm not that familiar with the Math behind it, so it may take some time .-)
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.4.4 is online.

Changes:
- Briefing - new getOri
- Briefing - new getPos
- Briefing - new prepareBindings
- Briefing - new prepareOrientations
- Briefing - new preparePositions
- Briefing - new prepareProps
- Cabal_Common - new strNLZ()
- Cabal_Common - new arrShuffle()

Additionally this version ships a testversion of Cabal_Common_OXPStrength.js.
It is deactivated (this.testFeatures = false;), but you can change this if you want to test it.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.4.5 is online.

Changes:
- new Cabal_Common_Music, a helper for event driven mission music.
- new doc for Cabal_Common_Music.

Cabal_Common_Strength (still WIP preview for OXPers):
- added GJump for galactic jumps.
- added binary search for excluded entities.
- further tweaks on the suspend mechanism.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.5 is online.

Changes:
- Added Disclaimer
- Cabal_Common_Strength is finalized
- Cleanup Cabal_Common_Comms, Cabal_Common_Music
- Docs updated
- New Cabal_Common_SpecialMarkets
- New cargopods
- Reduced missionVariables ingame
- Timer behaviour changed
User avatar
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: Cabal_Common_Library

Post by Okti »

Code: Select all

	"ccl_crateB" = {
		ai_type = "dumbAI.plist";
		like_ship = "ccl_crateA";
		materials = {"ccl_crateB.png" = {diffuse_map = {"name"="ccl_crateB.png";}; normal_map = {"name"="ccl_crateB_n.png";}; specular_color = (0.1,0.1,0.1,1); shininess = 25; };};
		model = "ccl_crateB.dat";
		name = "Cargo container";
		roles = "cargopod 1t-cargopod ccl_crateB";
	};
Sure about role cargopod, that was a question about CCL overriding textures from other shipsets raised by Capt. Solo!

Any way merry Christmas and happy new year all
My OXP's
And Latest Mission Coyote's Run
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Okti wrote:
Sure about role cargopod, that was a question about CCL overriding textures from other shipsets raised by Capt. Solo!
No. CCL just adds to the pool of available cargopods. No overriding, no changing of other definitions. Otherwise every ship with standard roles would override all other definitions...

A example of an OXP which really overrides standard stuff is WonderWorm which redefines the standard ballturrets...
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Cabal_Common_Library

Post by Smivs »

Svengali wrote:
A example of an OXP which really overrides standard stuff is WonderWorm which redefines the standard ballturrets...
I'm not sure what you mean, Svengali. The WonderWorm uses the standard 'core' ballturrets....the shipdata.plist entry (which is probably redundant I know) is just a c&p from the core game's shipdata, and the model and textures used are again the core ones, and indeed are not even included in the OXP.
If I have 'redefined' them it was un-intentional, and if you can enlighten me as to what you think I've done (and what problems it might cause) I'll take a look with a view to correcting any problem.


Edit :- I've just had a quick look, and it seems Svengali is right. I'd forgotten I had played around with these while making the OXP, and had left some changes in place which I'd forgotten about. Specifically, the colour of the plasma has changed as has the weapon energy. My bad!
WonderWorm v1.1 which corrects this is now available. Apologies for the error.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.5.1 is online.

Changes:
- Raised internalVersion to 12.
- Info.plist added.
- Various tweaks and fixes.
- Docs updated.

Cabal_Common:
- New methods num2Prec(), strRandom(), strRandomInt(), strTrim(), screenChecks(), screenGCD(), screenAspect().

Cabal_Common_Briefing:
- method fcbFlightTo(), fcbModelVeloTo() added.
- action "clean", "flightTo" and "mVeloTo" added.
- action "continue" changed (returned value can be used as goto command).
- added second SoundSource.

New Cabal_Common_2DCollision:
- method boundingBox(), pointInPoly(), pointOnLine() and pointOnLineB().

New Cabal_Common_MissionHandling:
- Coordinate OXPs based on systems descriptions.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.5.2 is online.

Changes:
- Various tweaks and fixes
- Preparations for v1.77

Additionally I've uploaded a demo for CCL_Music.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16059
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Cabal_Common_Library

Post by Cody »

Svengali wrote:
Cabal_Common_Library1.5.2 is online.
Thank you, sir!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Following the discussion about global namespace I've uploaded new versions for BGS-A, CCL, Hyperradio, OXPConfig, Snoopers and Vector -> Folder

The required change is minimal. If you've had used before

Code: Select all

this.myVar = new Cabal_Common();
it is now

Code: Select all

this.myVar = new worldScripts.Cabal_Common_Functions.Cabal_Common();
The old versions have been moved in a extra folder.

Announcing, Wiki and docs updates will be done when the DNS stuff is completed.

A big thanks to m4r35n357 this time. Furball and Factions are already prepared and updated.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

v1.6 is online.

Changes:
- Changed namespace for Cabal_Common, Cabal_Common_BinSearch, Cabal_Common_2DCollision, Cabal_Common_ScreenFCB and Cabal_Common_OXPStrengthAPI
- Cabal_Common_Briefing clears now all former framecallbacks if .capture is set
- Cabal_Common_Briefing uses now a delta factor
- Added moreInfo object which gathers system infos (only primitives), counts jumps and entities
- Added new property .eID for Cabal_Common_Comms
- Started on docs for new stuff (not finished yet)
- internalVersion is now 14
- Various fixes

Please note:
Users of [EliteWiki] Factions, [EliteWiki] Furball, BGS, CCL_MaterialsFinder, Hyperradio, OXPConfig, Snoopers and Vector will need this version (see post above).

A big thanks here to m4r35n357 for catching up so soon.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Cabal_Common_Library

Post by Svengali »

Cabal_Common_Library1.7 is online.

Changes:
- CCL_Briefing FadeIn option
- CCL_Briefing Revolution joints, forward Kinematics
- CCL_Briefing added a replace relativePosition with position option
- CCL_Music - Added .shipScoopedFuel
- CCL_Overlay further tweaks
- CCL_Functions - Thargoid send some functions for string handling on screens - strAddAlignedText, strAddEdgeText, strAddIndentedText, strAdd2Columns and strAdd3Columns
- CCL_Functions - New object .galaxyStats (a binary search tree by ID)
- CCL_Functions - New property 'connected' in .moreInfo
- Adapted Oolites changed escort array (null -> [])
- Various tweaks and fixes
- internalVersion is now 15

Special thanks to Thargoid, cim and another_commander.
Post Reply