Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I always get this error when trying to build, even on a blank project:

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()
(+1)

That’s a GameMaker bug - it corrupts most of my extensions on load now. I recommend rolling back the IDE to 2023.8 for now