Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(5 edits)

Hm I cannot reproduce the error on my system, even tho it has the same settings as yours.

Can you help me test the following code and show me the result? You can open the editor in Scripts -> Script editor, paste the code in and press "Run" button:

a = http_fetch('HEAD', 'https://github.com/LostRuins/koboldcpp/releases/download/v1.69.1/koboldcpp_nocuda.exe', [], null)
while !http_is_success(a) yield
res = http_result_get(a)
talk('This should be fine: ' + res.headers['content-length'])
talk('This is what causes error: ' + string(number(res.headers['content-length'])))

This code will make a HEAD request to get the file size, the 5th line is where the error happens.

If the error does happen, please also try the following code:

talk(number(string_trim(" 62253068")))
talk(number(" 62253068"))

And so

I entered the first line of commands and got this error (Runtime error EConvertError: "" 62253068" is an invalid float" at line 5)

then I entered the second line of commands and got this error (Runtime error EConvertError: "" 62253068" is an invalid float" at line 2)

(4 edits)

Thanks. At least we know a way to fix it now :)

I will make a new release with the fix soon (See https://github.com/Kagamma/satania-buddy/commit/906a08dc9e79fc51281d42f307342b43...). In the meantime you can try to patch it yourself, by opening data/scripts/libs/common/download.evil using the editor and replace line 82 with:

size = number(string_trim(headers['content-length']))

And line 131 with:

pos += number(string_trim(part.headers['content-length']))

Save and then run koboldcpp script again. (note: The app does cache scripts in-memory to avoid having to recompile a script multiple times, so if you already run the script before, you need to close the app and then open the app again)

Yes! the error is gone. thank you very much I am truly grateful to you for your help and for Satania Buddy!