Jump to content

[LE] Need help with adding support for new ingredients to my alchemy mod.


Recommended Posts

I'm trying to figure out the best way to streamline the process of adding new ingredient's to my mod's scripts. These scripts teach the effect of ingredients, but they are limited in that each ingredient has to be added to the script function. Every time I make a patch for a new mod that adds ingredients the new script overwrites the old, and there's no easy way to merge the two, and the patches overwrite each other too. Because of this every time I try to add support for a new mod, I have to add so many patches- one for the mod itself and then separate patches that also include the changes of any other mods. Would it be possible to add soft mod support? I have practically no modding experience- I barely managed to get this mod's script working, so I'm not sure where to start.

Link to comment
Share on other sites

Sorry, I wasn't really sure how to explain it. So what happens is that I attach my script to a book, and then when the book is read it tells the player to learn the effects of an array of ingredients. So lets say that that is-

 

Original - LearnAllEffects{ A, B, C}

 

Then when I add support for a new mod, I change the script to-

 

Patch for Mod 1 - LearnAllEffects{ A, B, C, D, E}

 

But if I try to add support to a new mod the patch is-

 

Patch for Mod 2 - LearnAllEffects{ A, B, C, F, G}

 

There's no easy way to merge these two patches and they conflict with each other, so I have to add a third patch that includes the changes of both mods. This isn't a problem initially, but for every mod I add support for I also have to add patches for every combination of mods and they add up quickly. I was just wondering if there is a cleaner way to do this.

Link to comment
Share on other sites

Oh, and I'm not talking about making changes in the script itself here- each version uses the exact same script- I just mean that I change what ingredients are attached to the script in each plugin.

 

the cleanest way to do it would be to edit the papyrus script itself to handle dynamic ingredients and checking what exists in the data records... it sounds like you need to edit the actual script you are attaching because making patches for every combination is not something that sounds feasible

 

the papyrus needs code to check if certain esp's exist... I have seen source code for other mods where they check if certain mods are loaded or not... and then the code can execute different things if certain mods are loaded... I know papyrus has a way to handle it just not off the top of my head without googling

 

also I think this is why people make those patchers in tes5edit or skyproc java patcher to create patches based on load order. So you have to write like a esp making macro... if you are familiar with macros in office for example

 

if you want to see an example of a te5edit script... download true medieval economy or true realistic item weights... those mods are tes5edit scripts and you might need to make oe to handle what you are doing... manually making every combo is not doable for one person

Link to comment
Share on other sites

You can start learning papyrus... it would be good for you and it will help you learn computer programming anyway, which would help you mod other games too so just put in the time to learn. Creation Kit wiki has a lot of good info... it won't teach you everything because it is lacking clarity in places but that's why you come here and by learning this stuff you can learn to ask your questions better... and just that alone will do a lot for you. When you are better able to describe your problem and ask proper questions, then the people who know all this stuff can easily help you. I will be honest when someone who knows all this stuff sees someone asking a very vague question, they know it will require work just to even understand what is going on and threads like this get ignored so even if you dont become a super coder at least you can ask the right questions and just that alone will help a lot and the more you do this, one day you will wake up and all of a sudden you will actually know how to code this stuff, you don't have to try to learn if you familiarize yourself with everything, learning is natural... learning programming is a slow process because every word you will hear is foreign so you go to google to understand it. Good luck, it;s how everyone starts. It sucks but you gotta go through that first.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...