Solved XP Settings seems not to work properly

Hello Orange!
I have installed your XP & Reward system on my server but it seems something is not working properly.
The xpsystem.json is like that:

JSON:
{
  "Wipe data on new map": true,
  "Gametip announcement duration (seconds, 0 to disable)": 3.0,
  "Experience for playtime": 1,
  "Time between give experience for playtime (seconds, 0 to disable)": 3600,
  "A. Levels settings": {
    "1": {
      "Experience to get level": 5
    },   
    "3": {
      "Experience to get level": 20
    },
    "5": {
      "Experience to get level": 35
    },
    "10": {
      "Experience to get level": 50
    },
    "15": {
      "Experience to get level": 65
    },
    "20": {
      "Experience to get level": 80
    },
    "25": {
      "Experience to get level": 95
    },
    "30": {
      "Experience to get level": 110
    }
    "35": {
      "Experience to get level": 125
    },
    "50": {
      "Experience to get level": 140
    }
  },
  "B. Experience settings": {
    "metal.ore": 1,
    "hq.metal.ore": 1,
    "sulfur.ore": 1,
    "wood": 1,
    "stones": 1,
    "heavyscientist": 3,
    "bradleyapc": 10,
    "patrol_helicopter": 10,
    "scientistjunkpile": 1,
    "bear": 3,
    "boar": 1,
    "wolf": 2
  },
  "C. Boosters": {
    "xpsystem.boost1": 1.5,
    "xpsystem.boost2": 2.0,
    "xpsystem.boost3": 5.0
  }
}

But my players got the following result when passing from level 2 to level 3....

View attachment 133

Plus, the XPBar.json is the following:

JSON:
{
  "XP icon url": "http://www.gilmor.it/imago/rust/RoKRyG7.png",
  "Level icon url": "http://www.gilmor.it/imago/rust/lXpowuB.png"
}

But as you can see, no proper image is shown despite the pictures are regulary loaded and linkable.

Can you help me with these issues, please?

Kindly,

JW
 

Orange

Administrator
Because you need to add Level 2 here. If there ar nothing between X and Y (level X | X+1 | Y), it will stop
 
Oh, I understand now. Yet, I asked that question 13 days ago HERE and I had no answer. ? Oh well, better later than never! ;) So I have to define every level I want my player to grow up to since it will stop if no level is defined.

A little bit of a hassle, to be honest, but also great for an absolute fine tuning so I will take it for the "great fine tuning" :D

The original image hosting is Imgur; I will remain on it. I know ImageLibrary but I am not really eager to install it.

Thank you, Orange & Jaman! :giggle:(y)
 
Ok, I don't use discord that much but I will try.

I have another issue now... :(

I have changed my xpsystem.json to this (I have set levels from 1 to 60 with a nice and smooth curve. Yay math!)

JSON:
{
  "Wipe data on new map": true,
  "Gametip announcement duration (seconds, 0 to disable)": 3.0,
  "Experience for playtime": 1,
  "Time between give experience for playtime (seconds, 0 to disable)": 3600,
  "A. Levels settings": {
    "1": {
      "Experience to get level": 20
    },
    "2": {
      "Experience to get level": 45
    },
    "3": {
      "Experience to get level": 95
    },
    "4": {
      "Experience to get level": 170
    },
    "5": {
      "Experience to get level": 270
    },
    "6": {
      "Experience to get level": 395
    },
    "7": {
      "Experience to get level": 545
    },
    "8": {
      "Experience to get level": 720
    },
    "9": {
      "Experience to get level": 920
    },
    "10": {
      "Experience to get level": 1145
    },
    "11": {
      "Experience to get level": 1395
    },
    "12": {
      "Experience to get level": 1670
    },
    "13": {
      "Experience to get level": 1970
    },
    "14": {
      "Experience to get level": 2295
    },
    "15": {
      "Experience to get level": 2645
    },
    "16": {
      "Experience to get level": 3020
    },
    "17": {
      "Experience to get level": 3420
    },
    "18": {
      "Experience to get level": 3845
    },
    "19": {
      "Experience to get level": 4295
    },
    "20": {
      "Experience to get level": 4770
    },
    "21": {
      "Experience to get level": 5270
    },
    "22": {
      "Experience to get level": 5795
    },
    "23": {
      "Experience to get level": 6345
    },
    "24": {
      "Experience to get level": 6920
    },
    "25": {
      "Experience to get level": 7520
    },
    "26": {
      "Experience to get level": 8145
    },
    "27": {
      "Experience to get level": 8795
    },
    "28": {
      "Experience to get level": 9470
    },
    "29": {
      "Experience to get level": 10170
    },
    "30": {
      "Experience to get level": 10895
    },
    "31": {
      "Experience to get level": 11645
    },
    "32": {
      "Experience to get level": 12420
    },
    "33": {
      "Experience to get level": 13220
    },
    "34": {
      "Experience to get level": 14045
    },
    "35": {
      "Experience to get level": 14895
    },
    "36": {
      "Experience to get level": 15770
    },
    "37": {
      "Experience to get level": 16670
    },
    "38": {
      "Experience to get level": 17595
    },
    "39": {
      "Experience to get level": 18545
    },
    "40": {
      "Experience to get level": 19520
    },
    "41": {
      "Experience to get level": 20520
    },
    "42": {
      "Experience to get level": 21545
    },
    "43": {
      "Experience to get level": 22595
    },
    "44": {
      "Experience to get level": 23670
    },
    "45": {
      "Experience to get level": 24770
    },
    "46": {
      "Experience to get level": 25895
    },
    "47": {
      "Experience to get level": 27045
    },
    "48": {
      "Experience to get level": 28220
    },
    "49": {
      "Experience to get level": 29420
    },
    "50": {
      "Experience to get level": 30645
    },    
    "51": {
      "Experience to get level": 31895
    },
    "52": {
      "Experience to get level": 33170
    },
    "53": {
      "Experience to get level": 34470
    },
    "54": {
      "Experience to get level": 35795
    },
    "55": {
      "Experience to get level": 37145
    },
    "56": {
      "Experience to get level": 38520
    },
    "57": {
      "Experience to get level": 39920
    },
    "58": {
      "Experience to get level": 71345
    },
    "59": {
      "Experience to get level": 42795
    },
    "60": {
      "Experience to get level": 44270
    }
  },
  "B. Experience settings": {
    "metal.ore": 1,
    "hq.metal.ore": 1,
    "sulfur.ore": 1,
    "wood": 1,
    "stones": 1,
    "heavyscientist": 3,
    "bradleyapc": 10,
    "patrol_helicopter": 10,
    "scientistjunkpile": 1,
    "bear": 3,
    "boar": 1,
    "wolf": 2
  },
  "C. Boosters": {
    "xpsystem.boost1": 1.5,
    "xpsystem.boost2": 2.0,
    "xpsystem.boost3": 5.0
  }
}

The code is verified and properly working but.... That's what happen...

View attachment 134

I try to grin XP and got no messages and then suddenly I got the message that I earned 1 XP and I got a cascade of messages, as you can see here.

The rewards works properly but I don't understand:

  1. why I haven't had the notificantion of levels 1, 2, 3, 4, 5 and 6 properly working? How can I help you understanding what's going on?
  2. why the colors are working wonking?
So, how can I help you solving the problem? :)
 
Last edited by a moderator:

Orange

Administrator
why I haven't had the notificantion of levels 1, 2, 3, 4, 5 and 6 properly working? How can I help you understanding what's going on?
If you have Level 1 for example, and 30000000 xp, and then you will add XXXX levels, it will calculate all next levels available it on next XP earn
 
Dont use <color=cyan> you have to use <color=#75FFFF>
I have checked the XPSystem.cs file... And I have changed all the <color> tags into these:

C#:
                {"XP Added Chat", "You earned <color=#FF5555>{0} XP</color>"},
                {"XP Added Gametip", "You earned <color=#FFFFFF>{0} XP</color>"},
                {"New Level", "Congratulations, you leveled up to <color=#75FFFF>{0}</color> level!"}

Let's see if this will work. Yet I have to say that the original XPSystem.cs came with this:

C#:
                {"XP Added Chat", "You earned <color=green>{0} XP</color>"},
                {"XP Added Gametip", "You earned <color=white>{0} XP</color>"},
                {"New Level", "Congratulations, you leveled up to <color=cyan>{0}</color> level!"}

and only the first one worked, as you can see in the picture. So my educated guess is that maybe the problem could be somewhere else, rather than use an hex code instead of a word. Maybe. What do you think?
 
If you have Level 1 for example, and 30000000 xp, and then you will add XXXX levels, it will calculate all next levels available it on next XP earn
My apologies but I don't understand that....

I started with 0 XPs and 0 level.

Then I had no notifications.

Suddenly I had the notification you see in the picture, then the plugin started to work properly, accumulating XP as I defined in XPSystem.json and giving rewards as I defined in XPRewards.json.

XPBar.json still don't work despite I have resetted it to default. Do I have to install ImageLibrary no matter what?
 

Orange

Administrator
I have checked the XPSystem.cs file... And I have changed all the <color> tags into these:

C#:
                {"XP Added Chat", "You earned <color=#FF5555>{0} XP</color>"},
                {"XP Added Gametip", "You earned <color=#FFFFFF>{0} XP</color>"},
                {"New Level", "Congratulations, you leveled up to <color=#75FFFF>{0}</color> level!"}

Let's see if this will work. Yet I have to say that the original XPSystem.cs came with this:

C#:
                {"XP Added Chat", "You earned <color=green>{0} XP</color>"},
                {"XP Added Gametip", "You earned <color=white>{0} XP</color>"},
                {"New Level", "Congratulations, you leveled up to <color=cyan>{0}</color> level!"}

and only the first one worked, as you can see in the picture. So my educated guess is that maybe the problem could be somewhere else, rather than use an hex code instead of a word. Maybe. What do you think?
If you have color issues - you need to change [/B]lang/en/XpSystem.json[B] instead of .cs file
If you have image issues - you need to install [/B]Image Library[B] plugin

And then reload plugins
 
Yeah, the color issue is solved and working changing the lang/en/XpSystem.json Neat! Thank you! ;)
The "level jump" issue seems to have solved itself. A player reported me that he had no problem in leveling up. He had all the notifications properly working so I really don't understand what's going on since:
  1. I had those weird bunch of messages popping on at the same time and skipping from level 0 to level 7
  2. other player don't have any issue and grow smoothly as it should be
I really don't know what's up. The only difference is that I have admin status and other player are regular players with absolutely no special privileges of any kind.

Ok, I will install ImageLibrary..... :cautious:

Ok guys, thanks for the support!! :D
 
Top