deriving xml from items and objects

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

One common thing to do in modding is making variants on a given item. ie you need a certain event on that item or you are making a variant to overwrite the original (ie making the original notrandom)

In OnGlobalTypesInit you can overwrite anything you want with dynamic types. The issue is you often don't know the original (it might be a modded item or it might be changed in a different OnGlobalTypesInit).

What I propose is a function that returns a string that fulfills this condition. (assuming not the trivial case of deriveItemXML returning a constant)

(typCreate myID (deriveItemXML otherID))
(eq (deriveItemXML myID) (deriveItemXML otherID))

This would make all mods that using this compatible with each other and would make it much easier to make existing mods compatible with each other. You could even make a system where all future mods would be compatible with your mod without changes. (not counting the changes made to the translisp)

Any thoughts or problems?
Crying is not a proper retort!
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?

Seconded! This would be a great check so that you don't accidentally overwrite ssHeretic or something ;)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
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