Jump to content

Protection levels

Not a Bug 3.1.0 3.1.0

Jakub Rosner

Hello, it is not possible to add more rank, it says error
"Protection levels": [
       {
         "Cost per damage protected": 0.15,
         "Hourly base cost": 50.0,
         "Hourly cost per authorized player": 5.0,
         "Hourly cost per foundation": 50.0,
         "Max protection time (hours)": 24,
         "Offline protection percentage (0-100)": 50.0,
         "Online protection percentage (0-100)": 0,
         "Rank": 1
       },
       {
         "Cost per damage protected": 0.1,
         "Hourly base cost": 25.0,
         "Hourly cost per authorized player": 10.0,
         "Hourly cost per foundation": 25.0,
         "Max protection time (hours)": 48,
         "Offline protection percentage (0-100)": 75.0,
         "Online protection percentage (0-100)": 85.0,
         "Rank": 2
       },
       {
         "Cost per damage protected": 0.5,
         "Hourly base cost": 10.0,
         "Hourly cost per authorized player": 15.0,
         "Hourly cost per foundation": 10.0,
         "Max protection time (hours)": null,
         "Offline protection percentage (0-100)": 90.0,
         "Online protection percentage (0-100)": 98.0,
         "Rank": 3
       }
] Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: :. Path '['Protection Settings']['Protection levels'][1]', line 41, position 14.)
[04.13 09:51:14] [RaidProtection] Your configuration file contains an error. It is recommended to backup your current oxide/config/RaidProtection.json and oxide/lang/en/RaidProtection.json files and remove them to generate fresh ones.
[04.13 09:51:14] [RaidProtection] Overriding configuration with default values to avoid errors.
[04.13 09:51:14] Loaded plugin RaidProtection v3.1.0 by mr01sam [444ms]
[04.13 09:51:14] Fallback handler could not load library /home/container/RustDedicated_Data/Mono/data-0x55d5f311f1b0.so
[04.13 09:51:14] Fallback handler could not load library /home/container/RustDedicated_Data/Mono/data-0x55d5f3121040.so
[04.13 09:51:14] Fallback handler could not load library /home/container/RustDedicated_Data/Mono/data-0x55d5e79b1ef0.so

Link to comment

Yes your config file is outdated as of v3.1.0, I recommend you make a backup of it (for reference) and then delete the original copy so that the plugin generates a new one. Then manually transfer your settings over. If you're unsure what to do, see the section of documentation for "Upgrading Versions"

Link to comment

not working 

[RaidProtection] Your configuration file is out of date. Your configuration file is for v0.0.0 but the plugin is on v3.1.0. It is recommended to backup your current oxide/config/RaidProtection.json and oxide/lang/en/RaidProtection.json files and remove them to generate fresh ones.
[04.15 16:28:17] [RaidProtection] Overriding configuration with default values to avoid errors.
[04.15 16:28:17] Loaded plugin RaidProtection v3.1.0 by mr01sam [455ms]
[04.15 16:28:17] [RaidProtection] Registered permission raidprotection.level.1
[04.15 16:28:17] [RaidProtection] Loaded 2/2 existing cupboards
[04.15 16:28:18] Image failed to download! Error: HTTP/1.1 429 Too Many Requests - Image Name: rp.check_0 - Image URL: https://imgur.com/d4TZqSJ.png
[04.15 16:28:21] Fallback handler could not load library /home/container/RustDedicated_Data/Mono/data-0x7f8d5c536300.so
[04.15 16:28:21] [RaidProtection] Your configuration file is out of date. Your configuration file is for v0.0.0 but the plugin is on v3.1.0. It is recommended to backup your current oxide/config/RaidProtection.json and oxide/lang/en/RaidProtection.json files and remove them to generate fresh ones.

 

RaidProtection (4).json

Link to comment

Con el archivo que me has pasado al crear 3 rangos no coge bien el Scprap por defecto sale 10 aunque pongas mas. Además en el área de permisos no permite poner más niveles o rangos.

 

 

Edited by Cabra
Link to comment

what I see that it does not give me the option in permissions to add more ranges, I already put the Json that you gave me.
Greetings

Screenshot_1.jpg

Link to comment

@Jakub Rosner I'm not sure how you got the config file to generate with a version of 0.0.0. However, if a simple fix is to just update your config version property to be 3.1.0, it should then accept it as valid.
image.png.c20944cc68572056768b5f7f36c0e2f2.png

Link to comment

Hello mr01sam,It works, it was my mistake in the syntax. Thank you very much.

Edited by Cabra
  • Like 1
Link to comment

The plugin is great, what would be cool in the next update is that users can choose the levels you put or at least 3 from the TC.
Greetings

Link to comment
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

96.6k

Files Sold

Total number of files sold.

1.9m

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.