Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.9.1a] Resist AI Inspections By Default (2019-12-15)  (Read 5749 times)

Nick XR

  • Admiral
  • *****
  • Posts: 713
    • View Profile
[0.9.1a] Resist AI Inspections By Default (2019-12-15)
« on: December 05, 2019, 08:49:45 PM »

Resist AI Inspections By Default
-=Download=-

Ever forget to resist an inspection and have your colony of alpha cores stolen, then realized you last saved 45 minutes ago? 
I have, so I made this mod.





Features:
  • Hegemony inspections are resisted by default

Known Issues:
  • An intel event will be generated saying defenders will comply, then that intel event gets deleted and the resist intel event is generated.

-=Download=-

How to use:
1. Download & install this mod
2. You're done!

How to uninstall:
1. Disable/remove mod
2. Locate your current save
3. Edit your save file (I'm a vscode fan)
4. Replace the string 'data.scripts.inspection.ResistHegemonyInspectionManager' with 'com.fs.starfarer.api.impl.campaign.intel.inspection.HegemonyInspectionManager'
5. Save

Mod compatibility:
  • Works with Nexerlin, sort of.  If you're in an alliance with Hegemony, you'll still get inspected and resist.  Work around: Don't be in an alliance with Hegemony, it's like being a Yankee's fan.
  • Might work with other mods that mess with inspections and have the string 'HegemonyInspectionManager' in their class name
  • If another mod is messing with inspections, they should probably include this fix, it's only one line...


Using this mod in other mods:
This mod is covered by the MIT license, you can do what ever you want with this, no need to ask.  Just be nice and mention that this mod exists and where you got it from :)


Change Log:
Spoiler
1.1: Fix for debug code that was left in the release package
 1.0 - Created
[close]

Forum: http://fractalsoftworks.com/forum/index.php?topic=17402.0
Source: https://bitbucket.org/NickWWest/starsectortweaks
License: MIT License (Do what ever you want, creators not liable)
« Last Edit: December 15, 2019, 10:08:09 AM by Nick XR »
Logged

iamlenb

  • Ensign
  • *
  • Posts: 17
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-05)
« Reply #1 on: December 05, 2019, 10:32:02 PM »

Holy crap, sorely needed, never knew it was possible.  You rock!
Logged

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-05)
« Reply #2 on: December 06, 2019, 08:06:39 AM »

Don't you mean pay your rent on your AI Core by default?  ;D

Snowblind

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-05)
« Reply #3 on: December 15, 2019, 07:51:56 AM »

Ok, I started a new game with this mod installed, and I ran into a serious bug when I installed AI core admins at two of my colonies (the first time I used cores this run).

An AI inspection happened within seconds of installing the cores, and bribing the inspection just results in another inspection starting seconds after the first one completes (and bribing that results in another one etc).

I asked around on discord, and at least one other person is having the same problem with this mod.
Logged

Nick XR

  • Admiral
  • *****
  • Posts: 713
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-05)
« Reply #4 on: December 15, 2019, 10:04:18 AM »

Ok, I started a new game with this mod installed, and I ran into a serious bug when I installed AI core admins at two of my colonies (the first time I used cores this run).

An AI inspection happened within seconds of installing the cores, and bribing the inspection just results in another inspection starting seconds after the first one completes (and bribing that results in another one etc).

I asked around on discord, and at least one other person is having the same problem with this mod.

Fix is up, give it a shot.  I think some debug code didn't get reverted before I built the release package.

Also:
AlwaysSomeMundaneDetailOfProgramming.gif

Six__Nix

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-15)
« Reply #5 on: December 15, 2019, 04:07:28 PM »


3. Edit your save file (I'm a vscode fan)


What plugins do you use in VSCode for coding in Java?  I love VSCode but use IntelliJ for Java because it seems to be much better for.. well .. Java!!

Thanks for another great mod!
Logged

Nick XR

  • Admiral
  • *****
  • Posts: 713
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-15)
« Reply #6 on: December 15, 2019, 08:10:03 PM »


3. Edit your save file (I'm a vscode fan)


What plugins do you use in VSCode for coding in Java?  I love VSCode but use IntelliJ for Java because it seems to be much better for.. well .. Java!!

Thanks for another great mod!

IntelliJ for Java (Rider for C#).  I'm not a rabid fanboy for anything EXCEPT JetBrains products.

VS Code for anything that's like a text file.  Unless I need to view a 10GB plus file then I use a program named 'V'.

Glad you like the mod!

mrpras

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-15)
« Reply #7 on: March 16, 2020, 08:06:45 AM »

Thank you for this, one of those great little irritance removers :)
Logged

Chairman Suryasari

  • Captain
  • ****
  • Posts: 378
  • The Deployer of John Lennon's.
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-15)
« Reply #8 on: January 19, 2021, 03:38:39 PM »

Thanks for the mod, btw is there a way to make this mod bribe inspection automatically? For Hegemony playthrough :)
Logged
"Kids under 13 shouldn't have access to the internet. if 10yo me were on tumblr and read about suicide and depression 5 hours a day, every day, god knows i would jump off a bridge if my parents ever yell at me."

-Some random Youtube comment on video about Sonic OC.

skunktail

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.9.1a] Resist AI Inspections By Default (2019-12-15)
« Reply #9 on: April 05, 2021, 11:18:22 AM »

i realize this is an old mod but i sorely wish it would be updated, pretty please?


if not, does anyone know of a suitable replacement?
Logged