What exactly should 'base' be?? Is it the length of the string, the original integer length or something else entirely? Because any integer higher than 0 pretty much crashes it. And using 0 results in nothing being converted. Unless I'm missing something obvious, I'm stuck here.
// Project: base64crash
// Created: 20-01-24
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "base64crash" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
global seed1
seed1 = random(1,1000)
setrandomseed(seed1) // test for controlling randomness
setrandomseed2(seed1) // test for controlling randomness
global seed$
seed$ = StringToBase64(str(seed1))
global convertseed
convertseed = val(seed$,64)
do
Print( ScreenFPS() )
Print(str(seed1))
Print(seed$)
Print(len(seed$))
Print(str(convertseed))
Sync()
loop