GameMaker Studio 2 Desktop

GameMaker Studio 2 Desktop

Crashing functions in 2.3
function PlayerAnimateSprite(){ var _cardinalDirection = round(direction/90); var _totalFrames = sprite_get_number(sprite_index) /4; image_index = localFrame + (_cardinalDirection * _totalFrames); localFrame += sprite_get_speed(sprite_index) / FRAME_RATE; }

Hello there, so I'm a noob following Shaun Spaulding's Action RPG tutorial, and I seem to have an issue with crashes. Each time I implement this function in a script, it works but the game ends up crashing in either 10 seconds, right away, when I move the window a bit, or if I go into fullscreen.

I don't have any compile errors, but here's the output -

"cmd" /c subst Z: "C:\Users\oisea\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" elapsed time 00:00:00.0451202s for command "cmd" /c subst Z: "C:\Users\oisea\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 11/03/2020 10:45:58 "cmd" /c subst Y: "C:\Users\oisea\AppData\Local\GameMakerStudio2\GMS2TEMP" elapsed time 00:00:00.0446032s for command "cmd" /c subst Y: "C:\Users\oisea\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 11/03/2020 10:45:58 "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.383" elapsed time 00:00:00.0451255s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.383" started at 11/03/2020 10:45:59 "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.383/bin/Igor.exe" -j=8 -options="C:\Users\oisea\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run Loaded Macros from C:\Users\oisea\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Witchburne_8807E4E9_332608F4\macros.json Options: X:/bin\platform_setting_defaults.json Options: C:\Users\oisea\AppData\Roaming/GameMakerStudio2\pathless_1336103\local_settings.json Options: C:\Users\oisea\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Witchburne_8807E4E9_332608F4\targetoptions.json Setting up the Asset compiler X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Witchburner" /td="Y:/" /cd="Z:/Witchburne_8807E4E9_332608F4" /zpuf="C:\Users\oisea\AppData\Roaming/GameMakerStudio2\pathless_1336103" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/Witchburner_663E498C_VM" /sh=True /optionsini="Y:/Witchburner_663E498C_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\oisea\Documents\GameMakerStudio2\Witchburner\Witchburner.yyp" /preprocess="Z:/Witchburne_8807E4E9_332608F4" Found Project Format 2 Core Resources : Info - Resource version is newer than supported version in CoreResources: 1.2 > 1.1 Started: 03/11/2020 10:46:00 Finished: 03/11/2020 10:46:00 Diff: 00:00:00.5596401 Loaded Project: Witchburner finished. Release build Options: Z:/Witchburne_8807E4E9_332608F4\ExtensionOptions.json OptionsIni Options: Z:/Witchburne_8807E4E9_332608F4\PlatformOptions.json [Compile] Run asset compiler X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Witchburner" /td="Y:/" /cd="Z:/Witchburne_8807E4E9_332608F4" /zpuf="C:\Users\oisea\AppData\Roaming/GameMakerStudio2\pathless_1336103" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/Witchburner_663E498C_VM" /sh=True /optionsini="Y:/Witchburner_663E498C_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\oisea\Documents\GameMakerStudio2\Witchburner\Witchburner.yyp" /bt=run /rt=vm Compile Constants...finished. Remove DnD...finished. Compile Scripts...finished. Compile Rooms...finished. Compile Objects...finished. Compile Timelines...finished. Compile Triggers...finished. Compile Extensions...finished. Global scripts...finished. finished. collapsing enums. Final Compile...finished. Saving IFF file... Y:/Witchburner_663E498C_VM\Witchburner.win Writing Chunk... GEN8 option_game_speed=60 Writing Chunk... OPTN Writing Chunk... LANG Writing Chunk... EXTN Writing Chunk... SOND Writing Chunk... AGRP Writing Chunk... SPRT Writing Chunk... BGND Writing Chunk... PATH Writing Chunk... SCPT Writing Chunk... GLOB Writing Chunk... SHDR Writing Chunk... FONT Writing Chunk... TMLN Writing Chunk... OBJT Writing Chunk... ACRV Writing Chunk... SEQN Writing Chunk... TAGS Writing Chunk... ROOM Writing Chunk... DAFL Writing Chunk... EMBI Writing Chunk... TPAGE Texture Group - Default Writing Chunk... TGIN Writing Chunk... CODE Writing Chunk... VARI Writing Chunk... FUNC Writing Chunk... STRG Writing Chunk... TXTR 0 Compressing texture... writing texture texture_0.png... Writing Chunk... AUDO Writing Chunk... SCPT Writing Chunk... DBGI Writing Chunk... INST Writing Chunk... LOCL Writing Chunk... DFNC Writing Chunk... STRG Stats : GMA : Elapsed=840.3166 Stats : GMA : sp=2,au=0,bk=0,pt=0,sc=4,sh=0,fo=0,tl=0,ob=1,ro=1,da=0,ex=0,ma=4,fm=0x220400000020 DoSteam Igor complete. [Run] Run game Options: Z:/Witchburne_8807E4E9_332608F4\MainOptions.json X://windows/Runner.exe -game "Y:/Witchburner_663E498C_VM\Witchburner.win" Attempting to set gamepadcount to 12 DirectX11: Using hardware device Collision Event time(microsecs)=2 Total memory used = 7585187(0x0073bda3) bytes **********************************. Entering main loop. **********************************. X://windows/Runner.exe exited with non-zero status (-1073741819) elapsed time 00:00:08.8200754s for command "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.0.383/bin/Igor.exe" -j=8 -options="C:\Users\oisea\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run started at 11/03/2020 10:45:59 "cmd" /c subst Z: /d elapsed time 00:00:00.0400947s for command "cmd" /c subst Z: /d started at 11/03/2020 10:46:08 "cmd" /c subst Y: /d elapsed time 00:00:00.0451149s for command "cmd" /c subst Y: /d started at 11/03/2020 10:46:08 "cmd" /c subst X: /d elapsed time 00:00:00.0446465s for command "cmd" /c subst X: /d started at 11/03/2020 10:46:08 FAILED: Run Program Complete For the details of why this build failed, please review the whole log above and also see your Compile Errors window.

Like I said, the Compile Errors window is empty. Thanks for any advice you may have!
< >
Showing 1-3 of 3 comments
Blind Nov 3, 2020 @ 4:51am 
It's a behind the scenes python/powershell/etc error, a script runner is exiting with a non-zero exit status

Make sure none of your scripts cause infinite loops
Born Curmudgeon Nov 3, 2020 @ 8:42am 
Originally posted by Blind:
It's a behind the scenes python/powershell/etc error, a script runner is exiting with a non-zero exit status

Make sure none of your scripts cause infinite loops

Hm, this script is ultimately for updating the sprite, and it's locked to the FRAME_RATE macro (60fps, by the way). Do you really think it's that?
Blind Nov 3, 2020 @ 9:28am 
Originally posted by Born Curmudgeon:
Originally posted by Blind:
It's a behind the scenes python/powershell/etc error, a script runner is exiting with a non-zero exit status

Make sure none of your scripts cause infinite loops

Hm, this script is ultimately for updating the sprite, and it's locked to the FRAME_RATE macro (60fps, by the way). Do you really think it's that?

I can't be 100% correct, but it's based on this line:

X://windows/Runner.exe exited with non-zero status (-1073741819)

which means a script can't resolve correctly... and by script I mean, umm, any block of code not just the literal script functions :D
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Nov 3, 2020 @ 1:52am
Posts: 3