vanilla alternator

A place to discuss mods in development and concepts for new mods.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Fri Mar 16, 2012 8:56 am

I am planning on making a mod that allows modders to get the xml of vanilla types.
With this in OnGlobalTypesInit you can overwrite an altered version.

v1 --
get the xml of an arbitrary vanilla type by the UNID
v2 --
store and get the vanilla type allowing several mods to alter the same type.
overwrite the vanilla type after all other mods are done altering the type
v3 --
helper functions allowing for easier use, ie. get/set item mass, add event ...

I think this will be very useful for modders to be able to change vanilla types without having to overwrite (making it incompatible with other mods) them in the xml.
Crying is not a proper retort!

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Fri Mar 16, 2012 9:12 pm

Yes! This would be very helpful for Sandbox as it will ease the difficulties of overwriting :D
This would be great for having a super-randomized star network - every time the player gates the system will be regenerated :D
(unless we can overwrite once in the game :/ )
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Fri Mar 16, 2012 11:25 pm

The only time OnGlobalTypesInit runs is when a player hits new game. The main power of this mod will come from several mods being able to alter the same thing.

for example your mod needs a certain event on all ships and a different mod adjusts masses to make things more realistic. Those mods would be incompatible normally but if they both use this mod they will be compatible.
Crying is not a proper retort!

User avatar
Star Weaver
Militia Commander
Militia Commander
Posts: 311
Joined: Sun Nov 07, 2010 10:20 pm
Location: . . . between the stars and the warm black sky . . .

Thu Jun 07, 2012 10:33 am

Unless I seriously missed something you can't actually retrieve the XML of anything in any way from tscript.
Image
Image
Image

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Thu Jun 07, 2012 1:10 pm

Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

Post Reply