thank you! I'll keep this in mind.
matthewstone218
Creator of
Recent community posts
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.IO.Path.Combine(String path1, String path2)
at GMAssetCompiler.WADSaver`1.WriteExtensions(IList`1 _data, Stream _s, IFF _iff)
at GMAssetCompiler.IFFChunkHandler`1.Save(Stream _stream, IFF _iff)
at GMAssetCompiler.IFF.WriteChunks(Stream _stream, TextWriter _out)
at GMAssetCompiler.WADSaver`1.Save(GMAssets _assets, Stream _stream, List`1 _extraFilenames, Dictionary`2 _extraAttributes)
at GMAssetCompiler.IFFSaver.Save(GMAssets _assets, String _name)
at GMAssetCompiler.Program.CompileProject(GMAssets _file)
at GMAssetCompiler.Program.Reentry(String[] _args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Igor.Program.ExecuteAssetCompiler(String _args)
at Igor.WindowsBuilder.Compile(Boolean _exe)
at Igor.WindowsBuilder.Deploy(Boolean _exe)
at Igor.WindowsBuilder.Run()
Igor complete.
elapsed time 00:00:04.9939973s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2023.11.1.160/bin/igor/windows/x64/Igor.exe" -j=8 -options="C:\Users\matt\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run started at 01/02/2024 15:21:38
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.
It dosen't work for 23.11.1.160(runtime) version
Isn't there any way to set live all sprite and room simply?
I create about 10 Game Maker projects a month, and it is very difficult to set all sprites and rooms to live in each project. Is there a way to set everything live with a simple function or reusable code?
----------------
Solved!
AUTO_LIVE.bat
@echo off
setlocal EnableDelayedExpansion
REM Define the directories
set "SPRITES_DIR=..\sprites"
set "ROOMS_DIR=..\rooms"
set "OUTPUT_FILE=..\scripts\scr_live_set_auto\scr_live_set_auto.gml"
:wait_input
REM Wait for user input
pause
REM Create or clear the output file
echo function scr_live_set_auto(){ > "%OUTPUT_FILE%"
REM Loop through each subdirectory in the sprites directory
for /d %%A in ("%SPRITES_DIR%\*") do (
REM Extract the directory name
set "DIR_NAME=%%~nxA"
REM Write to the output file
echo sprite_set_live(!DIR_NAME!,1^); >> "%OUTPUT_FILE%"
)
REM Loop through each subdirectory in the sprites directory
for /d %%A in ("%ROOMS_DIR%\*") do (
REM Extract the directory name
set "DIR_NAME=%%~nxA"
REM Write to the output file
echo room_set_live(!DIR_NAME!,1^); >> "%OUTPUT_FILE%"
)
REM Close the function in the output file
echo } >> "%OUTPUT_FILE%"
REM Go back to waiting for input
goto wait_input
http://gamemaker.kr:3000/matthewstone218/GM_live_auto/src/branch/main/AUTO_LIVE....
room_height is read-only in gmlive and so writing this variable cause error.
But it's not a read_only variable.
https://manual.yoyogames.com/#t=GameMaker_Language%2FGML_Reference%2FAsset_Manag...
https://matthewstone218.itch.io/battery-samura
I just released platformer adventure game, Battery Samurai!
Attacks and other actions consume energy.
Of course, you also lose a lot of energy when you get hit.
You'll need to properly distribute your chances to attack, dash, etc.
Explore the map, get stronger, and defeat the boss!