Jump to content

Edit History

Please note that revisions older than 365 days are pruned and will no longer show here
FranticDan

FranticDan

On 3/11/2024 at 11:15 PM, JoeSloeMoe said:

Hi FranticDan

What vars did you change to increase the number of levels? The number of levels is kinda hard-coded. For example:

<passive_effect name="EntityDamage" operation="perc_add" value="0.01,0.25" level="1,50" />

For the above, the number 50 at the end for the level has to be a value, it cant be a variable:

<passive_effect name="EntityDamage" operation="perc_add" value="0.01,0.25" level="1,@SOMEVARIABLE" /> <!--doesnt work-->

 

So the level is written out wherever it is used. If you have changed the max level to 100 you would need to make sure that you have changed it everywhere. If the issue only happens with Miner69er, perhaps there is an error in the code for that? The error you've described indicates that the amount of xp required per level is set to 0 or never intialized with the starting xp per level [marked as a) in the list below] , so everytime the person gets xp they level up. This can happen if you didnt start a new game after making changes to the max level.

 

In general the following can be easily changed:

- a) starting amount of xp required per level

- b) percent increase of the xp (point a above) required per level

- c) level cap to stop increasing xp per level (e.g. stop increasing amount of xp required at level 46 so that levels 46-50 have the same amounts needed)

 

Max level is 50 - to change max level you will need to edit every reference to '50' in progression.xml.

Does any of the above help?

Cheers

 

 

Discovered the reason why it bugs. If you destroy a block on the VERY first hit of the action skill, it will bug. (It wants to add XP from both and it doesn't like it)
I removed the bonus XP on destroy and no more bug :)

FranticDan

FranticDan

On 3/11/2024 at 11:15 PM, JoeSloeMoe said:

Hi FranticDan

What vars did you change to increase the number of levels? The number of levels is kinda hard-coded. For example:

<passive_effect name="EntityDamage" operation="perc_add" value="0.01,0.25" level="1,50" />

For the above, the number 50 at the end for the level has to be a value, it cant be a variable:

<passive_effect name="EntityDamage" operation="perc_add" value="0.01,0.25" level="1,@SOMEVARIABLE" /> <!--doesnt work-->

 

So the level is written out wherever it is used. If you have changed the max level to 100 you would need to make sure that you have changed it everywhere. If the issue only happens with Miner69er, perhaps there is an error in the code for that? The error you've described indicates that the amount of xp required per level is set to 0 or never intialized with the starting xp per level [marked as a) in the list below] , so everytime the person gets xp they level up. This can happen if you didnt start a new game after making changes to the max level.

 

In general the following can be easily changed:

- a) starting amount of xp required per level

- b) percent increase of the xp (point a above) required per level

- c) level cap to stop increasing xp per level (e.g. stop increasing amount of xp required at level 46 so that levels 46-50 have the same amounts needed)

 

Max level is 50 - to change max level you will need to edit every reference to '50' in progression.xml.

Does any of the above help?

Cheers

 

 

Discovered the reason why it bugs. If you destroy/kill a block/entity on the VERY first hit of the action skill, it will bug.
I removed the bonus XP on destroy and no more bug :)

×
×
  • Create New...