You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, BIG thanks. QBjs - make BASIC programs alive again!
Here is an issue: I am trying to put up a game at itch.io The code (somewhat) works in QBjs, but once exported to HTML/js hangs in the browser.
QB64:
Const FILE_SCORE_MAP = 1
Const FILE_SCORE_MAP_NAME = "bestscore.bin"
Const SZ_BEST_SCORE_FILE = 32768
Open FILE_SCORE_MAP_NAME For Binary As #FILE_SCORE_MAP
Dim idx As Long
For idx = 1 To CLng(SZ_BEST_SCORE_FILE)
Get #FILE_SCORE_MAP, , rec ' rec is a UDT
...
Next idx
First, notice CLng(SZ_BEST_SCORE_FILE). QBjs will not do GET without it (b/c 32768 exceeds 16 bit signed int)? When exported to HTML (Launch mode=PLAY) I cannot get past GET.
The text was updated successfully, but these errors were encountered:
The issue is probably that 'open' does not return a valid file handle? I forgot to mention that I had to remove _FileExists(FILE_SCORE_MAP_NAME) check b/c it would report that file "bestscore.bin" does not exist, even though the file is right there in the same directory. This, again, worked fine in https://qbjs.org/, but stopped working after exporting.
Hello @boxgaming, if this will take a while to fix the right way... is it possible to cook-up something quickly and produce a working HTML/js folder of the game? I can then upload it to itch io and my game will at least play. Attaching QB64 code. circlesfe.zip
First of all, BIG thanks. QBjs - make BASIC programs alive again!
Here is an issue: I am trying to put up a game at itch.io The code (somewhat) works in QBjs, but once exported to HTML/js hangs in the browser.
QB64:
First, notice CLng(SZ_BEST_SCORE_FILE). QBjs will not do GET without it (b/c 32768 exceeds 16 bit signed int)? When exported to HTML (Launch mode=PLAY) I cannot get past
GET.
The text was updated successfully, but these errors were encountered: