|
Post by megaxanimexopenings on Sept 28, 2020 15:04:12 GMT -5
Hi there i'm new to modding, and i was working on a mod of taking the mind control interaction of the simray and making it exclusively that, basically removing the freeze ray part and making it only a Mind Control Ray. I already made the SimRay buyable and i recolored it to a black and red theme. But then i went into the xml and i saw to access the mind control interactions of the simray you have to upgrade it. Is there a way i can remove this functionality so that you dont have to upgrade the simray to have access to these interactions they're automatically avaliable. Below is a screenshot of what i mean.
|
|
|
Post by MizoreYukii on Sept 29, 2020 11:19:24 GMT -5
Make the object tuning into a custom one, then above the affordance list is a list of default states:
<U> <V n="default_value" t="reference"> <T n="reference">114388<!--osv_Upgrade_SimRay_MindControl_Clean_NotStarted--></T> </V> </U> Instead of deleting these what you can do is switch them to the completed state. So instead of saying the above, it can say:
<U> <V n="default_value" t="reference"> <T n="reference">114380<!--osv_Upgrade_SimRay_MindControl_Clean_Completed--></T> </V> </U> And once you've done all the mind control states (and removed the transform states/affordances you don't want) this should unlock the mind control interactions you want without having to clone the interactions, etc. At least in theory, I've never made a mod this way, but considering the states control the access this should work.
|
|
|
Post by megaxanimexopenings on Sept 29, 2020 14:51:19 GMT -5
Make the object tuning into a custom one, then above the affordance list is a list of default states: <U> <V n="default_value" t="reference"> <T n="reference">114388<!--osv_Upgrade_SimRay_MindControl_Clean_NotStarted--></T> </V> </U> Instead of deleting these what you can do is switch them to the completed state. So instead of saying the above, it can say: <U> <V n="default_value" t="reference"> <T n="reference">114380<!--osv_Upgrade_SimRay_MindControl_Clean_Completed--></T> </V> </U> And once you've done all the mind control states (and removed the transform states/affordances you don't want) this should unlock the mind control interactions you want without having to clone the interactions, etc. At least in theory, I've never made a mod this way, but considering the states control the access this should work. Thank you i noticed you also changed the number from 114388 to 114380 where did you get that number i thought the new number is something you got from the super_affordances but i did not see it there.
|
|
|
Post by MizoreYukii on Sept 29, 2020 15:01:59 GMT -5
That's the tuning ID of that state value file. Ignore the super affordances as those are just the upgrading interactions, they don't affect the interactions appearing on sims. If you open any of the mind control interactions it tests for the 114380<!--osv_Upgrade_SimRay_MindControl_Clean_Completed--> state value. The state value file is 5B02819E!00000003!000000000001BECC.osv_Upgrade_SimRay_MindControl_Clean_Completed.ObjectStateTuning.xml and it looks like this inside. <?xml version="1.0" encoding="utf-8"?> <I c="CommodityBasedObjectStateValue" i="object_state" m="objects.components.state" n="osv_Upgrade_SimRay_MindControl_Clean_Completed" s="114380"> <U n="range"> <T n="lower_bound">99</T> <T n="upper_bound">100</T> </U> </I> I recommend downloading XML File Finder, same download as XML Extractor, and use that to find file connections and references. modthesims.info/d/563256/xml-extractor-for-the-sims-4.html
|
|