Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.9a-RC10] devmode toggle colony control  (Read 2446 times)

TheWetFish

  • Commander
  • ***
  • Posts: 140
    • View Profile
[0.9a-RC10] devmode toggle colony control
« on: December 11, 2018, 04:41:36 PM »

Toggling dev mode off with the devmode command from the mod Console Commands (v3.0 wip7.6) does not prevent full control of other faction's colonies
i.e.
- devmode true in settings.json
- start game
- devmode console command, toggling dev mode off
- interact with Jangala, trade, colony info, incorrectly still allowed to toggle free port status

The devmode console command is turning off other dev mode features like the additional interaction menu options but not the ability to control another factions colony
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: [0.9a-RC10] devmode toggle colony control
« Reply #1 on: December 11, 2018, 05:16:56 PM »

There's a set of debug flags - in a DebugFlags class - that are initialized based on the state of devMode at the start of the game.

They can be toggled on and off via code, but (intentionally) do not follow the devMode state automatically.
Logged

TheWetFish

  • Commander
  • ***
  • Posts: 140
    • View Profile
Re: [0.9a-RC10] devmode toggle colony control
« Reply #2 on: December 11, 2018, 05:32:22 PM »

So working as intended, OK

Thank you, very interesting!
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: [0.9a-RC10] devmode toggle colony control
« Reply #3 on: December 11, 2018, 05:34:34 PM »

Btw, I *think* if you run:

runcode com.fs.starfarer.api.impl.campaign.DebugFlags.setStandardConfig()

It should sync up the state of the flags with the state of devMode.

I'm not sure about the syntax of runcode, but hopefully the gist is clear.
Logged