Function for checking extension/library availability?

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

It would be really handy if there would be a function available to us modders, that could check for an extension and libraries to be available/selected, both upon game creation and when the game is running.

Something like:

Code: Select all

(unvExtensionSelected 0x00800000) -> True/Nil
(unvLibraryAvailable 0xd9120000) -> True/Nil
It would make it easier to build upon the work of others.

Cheers,
Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

 Holy kack yes. All of my yes. I would give even more of it if I had it to give. Please make this be a thing.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

I think the function request I made in relation to 'modular modding' (Part II: Scripting) could replace the two functions requested in this thread:
pixelfck wrote:check for UNID to be defined:

Code: Select all

  (unvIsType &scWolfen;) -> True/Nil
  (unvIsType &scWolfen; 'shipType) -> True/Nil
This checks to see if there is an entity defined as &scWolfen;.
The first call return True if such an entity exists for the current game instance,
the second call returns True if the entity exists and is of the requested Type.
Using the above syntax, it could also be possible to check for an extension to be selecte/dactive or library to be available:

Code: Select all

  (unvIsType 0x00800000 'TranscendenceExtension) -> True/Nil
  (unvIsType 0xd9120000 'TranscendenceLibrary) -> True/Nil
Cheers,
Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
Post Reply