MillhioreBT / forgottenserver-downgrade

TFS Downgrade 1.5+ is an engine based on nekiro downgrade but highly updated with current tfs code, it also has the lua modules divided and uses lua5.4
GNU General Public License v2.0
19 stars 18 forks source link

level progress percentage bar #26

Open nefrenowiec opened 6 months ago

nefrenowiec commented 6 months ago

Before creating an issue, please ensure:

Steps to reproduce (include any configuration/script required to reproduce)

  1. Kill monster which give you some exp
  2. percentage bar not updating
  3. image always 100% to level, but in reality its not true

Expected behaviour

percentage bar should be updated regularly

Actual behaviour

percentage bar not updating

Environment

Ubuntu 22.04

Reproduction environment

kokekanon commented 5 months ago

wait for sara's answer but in the meantime

I BELIEVE

you should remove the divided by 100 https://github.com/MillhioreBT/forgottenserver-downgrade/blob/main/src/player.cpp#L1625

https://github.com/MillhioreBT/forgottenserver-downgrade/blob/main/src/player.cpp#L1705

https://github.com/MillhioreBT/forgottenserver-downgrade/blob/main/src/player.cpp#L1930

and remove static_cast(

https://github.com/MillhioreBT/forgottenserver-downgrade/blob/main/src/iologindata.cpp#L309-L310