Advances this week, rewriting a lot of code
Well... this week spent on rewriting the same system agin and agin.
Namely the system that make possible call external mods.
Concept is as i written before to make possible my code indepedently from external code can be exist. in skyrim scritping archiving this is hard, but not impossible.
To archive it i need a inter mediar medium that recives and fowards the commands and data.
My first aproach to this is realtive simple: use keywords that if sent procesed by in game event system and keyword reciver notified this way scripts can be started and started script can give order to external mod.
Secund iteration skip out the event system, this is what i shared with my slavers of skyrim forum. this version uses form lists to store keywords and a script act as reciver of keyword then locate the valid mod that linked to that keyword and start it.
At smole scale this worked well. but i forsee a problem with stored data. this solution used a host script that store lot of data, to be used by the called mod. becuse i no way knwoning what type of data need to be stored and how many i need make big store for data. plus its possible multiple call go out same time so need very very big store.
This is aginst a princible of mods: use minimal resources... so i started working a next iteration.
Third iteration is when the data stored on the caller script the script or thing that send out the call for the external mod. Added beinifit of this the caller can tailor the called mod requirement the data storage. not perfect but better...
of crose if one caller uses multiple mod calls means multiple storage and evry caller has own data store so its waistfull too...
4th iteration then come, this case i drop the keywords instead use form lists, and strings as keys. so no more keyword needed to work more flexible.
This cahnge elimated the data storage need to... becuse this way can call directly the target script.
in theory works great. i not go very fine details how its works i complicated but i belive its works.
Then yestoday realised pointles to do this way...
becuse based on past expereinces very few of any going to make us this system.
i can build up but not worth the effort as i expect none going to make use of it. So... i droped to bin the last week advances.
Started write simple more direct api to my mod to call outsider mods.
this is the 5.th generation
i working on this the moment, done a lot minor re writing on this one.
Becuse i search for the perfect way... it seams to be its better if i go look for the way that:
-most simple
-works
and go on. until i see the full size of the things.
the system start to become so complext i need to build up parts of it to see how i can finish the work.
i started working on api side of things becuse... player slavery framework of mine need option to restrain player.
i made own script for that that can be used as fall back, just need to find a way to add the system.
Good news is: i started write ZaZ and Toys calls. this means if toys or zaz installed the system going to use them. Cosnidering Devious Devices has lot of users i might add it too.
this mods use are 100% optional. A wish keep this way.
in far future i probably add PAHE and Dom calls too. so player owened slaves can be "exported/imported" to this mods.
but first i need finish the player slavery modul... and finish my api writing...
4 Comments
Recommended Comments