Jump to content

Need help getting more settlement attacks


shatsnazzle

Recommended Posts

  On 2/16/2018 at 6:23 AM, wim95 said:

Try start attack manually Trigger Attack Button

Read the description carefully (especially about red color immediately)

 

I have used that one a lot it's so much fun! I just realized from your sig that you made it, awesome work :smile: I'm also using your More Attackers Get Off My Buildzone mod, it's very fun and the fast travel fix is awesome. As much as I love the trigger button, I want to also be able to experience more attacks during my ordinary play time. I love having a group attack me and my settlement while I'm minding my own business, forcing me to panic sprint to the siren, hop in the power armor etc and fight for my life :smile: I really wish getting those few numbers changed in the script wasn't such a huge task lol

Edited by shatsnazzle
Link to comment
Share on other sites

1. Install Edited WorkshopScript from UFO4P v.2.0.3 compiled in debug mode

2. Check Documents\My Games\Fallout4\Fallout4Custom.ini have:

[Archive]
bInvalidateOlderFiles=1
sResourceDataDirsFinal=
3. Enable Debug Logging

4. Start game. Wait/sleep 24 hours. Don't wait/sleep next 24 hours. Do something.

5. Profit

 

I recieved 13 attacks. Then became lazy.

 

In Documents\My Games\Fallout4\Logs\Script\User\Workshop.0.log You can see something like this:

[02/16/2018 - 08:02:23PM]  ------------------------------------------------------------------------------ 
[02/16/2018 - 08:02:23PM]  	Check for attack: [workshopscript < (0009B19D)>]
[02/16/2018 - 08:02:23PM]  ------------------------------------------------------------------------------ 
[02/16/2018 - 08:02:23PM]  	Days Since Last Attack=114
[02/16/2018 - 08:02:23PM]  	Starting stats:
[02/16/2018 - 08:02:23PM]  		population=4
[02/16/2018 - 08:02:23PM]  		food rating=39
[02/16/2018 - 08:02:23PM]  		water rating=13
[02/16/2018 - 08:02:23PM]  		total safety=80
[02/16/2018 - 08:02:23PM]  		safety per NPC=20
[02/16/2018 - 08:02:23PM]  	Attack chance:
[02/16/2018 - 08:02:23PM]  		base chance=0.050000
[02/16/2018 - 08:02:23PM]  		resources=+2.600000
[02/16/2018 - 08:02:23PM]  		safety=-0.800000
[02/16/2018 - 08:02:23PM]  		population=-0.080000
[02/16/2018 - 08:02:23PM]  		TOTAL=1.770000
[02/16/2018 - 08:02:23PM]  	Attack roll = 0.259682
[02/16/2018 - 08:02:23PM]  	Try Trigger Attack
and conduct diagnostics.

 

Settlements Workshop RefID can be found hire

"0009B19D" after "workshopscript" in log is Finch Farm

Link to comment
Share on other sites

  On 2/16/2018 at 5:57 PM, wim95 said:

 

Wim95 you are a master of settlement attack modding! Thank you for doing this! I installed this with NMM, it put the 2 loose files where expected: Fallout 4\Data\scripts\Source\User for workshopscript.psc and Fallout 4\Data\scripts for workshopscript.pex. The loose files must be working over the ones in UFO4P - main.bs2 in this instance since I got several attacks and it produced a log (I'm assuming the script must be getting used over the UFO4P - main.bs2 script in order to make its log). Here is my log:

 

 

  Reveal hidden contents

 

 

I have a few questions:

1.) Is "Attack roll" the total probability that the settlement will get hit or is this the game's actual roll of the "dice" and the value it landed on?

 

2.) Are the values listed in my very first post the only ones needed to change in the script in order to change the probability and frequency of a settlement attack or did I miss some values?

 

  Reveal hidden contents

 

 

3.) How would I go about compiling the UOF4P's workshopscript.psc into a .pex if I ever wanted to alter those values or if an update for UOF4P came out that changed workshopscript? When I tried to compile it in Creation Kit it failed with this message:

 

 

  Reveal hidden contents

 

 

If helping me compile this is outside the scope of a few posts or you'd rather direct me elsewhere I understand completely.

 

Thank you so much wim95! And thank you so much to everyone else for your help!

Edited by shatsnazzle
Link to comment
Share on other sites

1) "Attack roll" a random number from 0.0 to 1.0, is determined each day on a new one, during daily update.

If "Attack roll" < "TOTAL", then "Try Trigger Attack"

2) Yes, only these.

3) Additionally copy WorkshopParentScript.psc and put it next to WorkshopScript.psc (...\Source\User\ folder). Both from UFO4P - that's important. No need to compile WorkshopParentScript.psc

Link to comment
Share on other sites

  On 2/17/2018 at 5:27 PM, wim95 said:

1) "Attack roll" a random number from 0.0 to 1.0, is determined each day on a new one, during daily update.

If "Attack roll" < "TOTAL", then "Try Trigger Attack"

2) Yes, only these.

3) Additionally copy WorkshopParentScript.psc and put it next to WorkshopScript.psc (...\Source\User\ folder). Both from UFO4P - that's important. No need to compile WorkshopParentScript.psc

 

It compiled perfectly! Thank you for answering my questions and thank you again for all your help!!! :) I can declare this thread officially solved!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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