kinggath Posted September 30, 2016 Share Posted September 30, 2016 Is anyone working on or considered a series of wrappers for the workshop scripts? I ask because, while we can extend the scripts and add functionality that way, there are a lot of hard coded values and a very lackluster hook system. Would be nice to have a community resource so that we could all edit the workshop functionality without stepping on each other's toes and causing compatibility issues. Link to comment Share on other sites More sharing options...
StuykGaming Posted September 30, 2016 Share Posted September 30, 2016 This is a pretty ballpark question. No idea what you're talking about. Link to comment Share on other sites More sharing options...
kinggath Posted October 3, 2016 Author Share Posted October 3, 2016 Imagine you want to make a mod that modifies the formula for how settlement attack outcomes are calculated off screen. While I want to make a mod that modifies the formula for happiness calculations. While we can both do so, a lot of the numbers for both are hard-coded in the WorkshopParentScript, so our mods are inherently incompatible as they would often both involve rewriting portions of the same script file. If instead we had a replacement community resource WorkshopParent script that tied the hard-coded numbers to globals, and added in function hooks to the points without events, we could each make our respective hypothetical mods, and both would work together beautifully. I'm speaking from experience programming in other languages, so perhaps this will end up causing too many speed issues, and the hard-coded values are a necessary evil. If someone else is working on something like this, or it already exists - great! If I just haven't delved deep enough into the scripts, and all this is possible already (and someone can tell me as much) - also great! Link to comment Share on other sites More sharing options...
tarsis31 Posted October 4, 2016 Share Posted October 4, 2016 Speaking as someone with no experience with what you are describing, I was wondering why it wasn't already like that. I mean, it just seems like this whole workshopparent script, workshopinitialize script, various alias setups, and the way Nuka is set up (from an outsider looking in type of way) was all just cobbled together in some sort of train with no thought at all of optimization or customization. I'm no programmer or script writer (AHK is as far as I've really gone) but I just keep feeling like there HAS to be a better way. Link to comment Share on other sites More sharing options...
Recommended Posts