Jump to content

3 Screenshots

Recommended Comments

Laminin

Posted

Quick question before purchase, would player permissions take the highest value if a player were to have multiple permissions? Example:
 

"Player Permissions": {
    "powermodifier.large1": {
      "Sets the Max Generation OutPut for Wind Mills (Default is 100)": 250,
      "Overrides target speed for Wind Mills (Default is 0)": 0.0,
      "Sets the Max Generation OutPut for Solar Panels (Default is 20)": 20,
      "Sets the Max Generation OutPut for Test Gens (Default is 8)": 8,
      "Large Battery Settings": {
        "MaxOutput": 110,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 1440000
      },
      "Medium Battery Settings": {
        "MaxOutput": 50,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 540000
      },
      "Small Battery Settings": {
        "MaxOutput": 10,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 9000
      },
      "Fuel Generator Settings": {
        "StackSize": 1000,
        "OutputEnergy": 35,
        "FuelPerSec": 1.0
      },
      "Tesla Coil Trap Settings": {
        "SetHealth": 250.0,
        "PowerToDamageRatio": 2.0,
        "DischargeTickRate": 0.25,
        "MaxDischargeSelfDamageSeconds": 120.0,
        "MaxDamageOutput": 35.0,
        "PowerForHeavyShorting": 10
      },
      "Electrical Heater Settings": {
        "FadeDuration": 1.0,
        "HeatAmount": 5.0
      }
    }
  },
  "Player Permissions": {
    "powermodifier.med1": {
      "Sets the Max Generation OutPut for Wind Mills (Default is 100)": 250,
      "Overrides target speed for Wind Mills (Default is 0)": 0.0,
      "Sets the Max Generation OutPut for Solar Panels (Default is 20)": 20,
      "Sets the Max Generation OutPut for Test Gens (Default is 8)": 8,
      "Large Battery Settings": {
        "MaxOutput": 100,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 1440000
      },
      "Medium Battery Settings": {
        "MaxOutput": 60,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 540000
      },
      "Small Battery Settings": {
        "MaxOutput": 10,
        "Efficiency": 0.8,
        "MaxCapacitySeconds": 9000
      },
      "Fuel Generator Settings": {
        "StackSize": 1000,
        "OutputEnergy": 35,
        "FuelPerSec": 1.0
      },
      "Tesla Coil Trap Settings": {
        "SetHealth": 250.0,
        "PowerToDamageRatio": 2.0,
        "DischargeTickRate": 0.25,
        "MaxDischargeSelfDamageSeconds": 120.0,
        "MaxDamageOutput": 35.0,
        "PowerForHeavyShorting": 10
      },
      "Electrical Heater Settings": {
        "FadeDuration": 1.0,
        "HeatAmount": 5.0
      }
    }
  }

Would a player with both powermodifier.med1 and powermodifier.large1 gain the the large battery output of 110 and medium battery output of 60?

Khan

Posted

It will grab the first permission they have in the config starting from top to bottom if you assign multiple.

Laminin

Posted

Ah okay, that won't work with my plan to integrate it into skill tree then. Thank you for clarifying.

  • Confused 1
Khan

Posted (edited)

I don't see how you couldn't do what you want still...

Just set the permissions accordingly & you can still do what you want.

It's not hard or complicated other owners do what you are wanting already just setup the config correctly..

Edited by Khan
Laminin

Posted

I wanted to tie each electrical item to a separate skill, ie skill for med battery, separate skill for large, another skill for windmill etc. Can't do that unless the permissions overwrite with the highest value or the items are separated into their own permission.

KingSizeKevin

Posted

Could you make it apply the electrical output changes as soon as the permission is applied?  Seems like I have to relog to the server to see the output change

Khan

Posted

Changes are & have always been applied as soon as the permission is granted or revoked everything is updated..

The only way they would not update is if another plugin is conflicting with it.

On 3/11/2023 at 9:56 AM, KingSizeKevin said:

Could you make it apply the electrical output changes as soon as the permission is applied?  Seems like I have to relog to the server to see the output change

 

Grumpy_old_man

Posted

dose it work with Test generator ? i dont see it in the config .

 

Thank you

Khan

Posted (edited)

5 minutes ago, Grumpy_old_man said:

dose it work with Test generator ? i dont see it in the config .

 

Thank you

@Grumpy_old_man
? It's right there in the config, along with permission option variants you can add or remove.

image.png.56eb8303a42a9b3a1d64416000b9f750.png

It's also listed on the description it's self

image.png.54ca1b127b70b66c351393e87045bf4a.png

Edited by Khan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

User Feedback

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.