Jump to content

Tweaking Feastday gifts


wizzyrm

Recommended Posts

Hi all,

I'm working on a mod that integrates and rebalances all DLC items throughout the campaign, including the Feastday gifts.

What I'm having trouble figuring out how to accomplish is how I would tweak the +/-50 approval bonus these items give.

 

My attempts:

I poked around the gift's .uti's and found that the bonus is defined by the APP_ITEM_MOTIVATION node on the VarTable. I couldn't find any documentation about what this is but I tried playing around with changing this value. When I changed it the gifts would no longer reward the bonus items, so I'm assuming this functionality is hardcoded somewhere tied to this value.

I suspect the code I need to change is in val_module.ncs and vala_module.ncs. If these weren't DLC items I'm sure I could find the code references with the toolset but I'm struggling to figure out how to access the .nss scripts with just the .ncs files.

I tried using xoreos-tools ncs decompiler but the results stripped the variable names making it near unreadable and formatted the code in a way that I wasn't able to recompile it. Edit: I spoke with one of the developers of xereos-tools apparently ncs decompiler is a little buggy anyways so this isn't a good solution to accessing the scripts.

 

If anyone can point me in the right direction I'd really appreciate it! I've been bashing my head at this problem but I think I'm stumped.

Edited by wizzyrm
Link to comment
Share on other sites

Well it wasn't pretty but I did find a solution. I used xoreos-tool's ncs deassembly tool to convert the ncs to assembly and then used a hex editor on the ncs to replace the constant 50 with my new value in hexadecimal at the same byte offset. Fun stuff

Link to comment
Share on other sites

  • Recently Browsing   0 members

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