Continuation of ONScripter-EN with updated dependencies and more features and bugfixes. Also see onscripter-insani (https://github.com/insani-org/onscripter-insani), our sister project.
In UTF-8 mode,
getStringFromInteger seems to behave differently than expected when used with UTF-8. It only displays @@ regardless of whether the prnum_info[no]->param has the correct value.
I added a function, convertNumToFullWidthStr(), to convert numbers into full-width characters and replaced the getStringFromInteger() function with it. This works.
getStringFromInteger()
However, it still exhibits the same issue as #83 overlapping text.
Once issue #84 is resolved, the overlapping text problem here will also be automatically fixed.
Since convertNumToFullWidthStr() only needs to work in UTF-8, it should be possible to merge it with getStringFromInteger()... (but I can't)
This has only been tested for a specific case: pscript.dat.
In UTF-8 mode,
getStringFromInteger
seems to behave differently than expected when used withUTF-8
. It only displays@@
regardless of whether theprnum_info[no]->param
has the correct value. I added a function,convertNumToFullWidthStr()
, to convert numbers into full-width characters and replaced thegetStringFromInteger()
function with it. This works.getStringFromInteger()
However, it still exhibits the same issue as #83 overlapping text. Once issue #84 is resolved, the overlapping text problem here will also be automatically fixed.
Since
convertNumToFullWidthStr()
only needs to work in UTF-8, it should be possible to merge it withgetStringFromInteger()
... (but I can't)This has only been tested for a specific case: pscript.dat.