When I try to build an EXE, it fails and this message comes up. This message also comes up right away when I simply create the project (from a template). I've tried with all possible templates (BASS, Sierra,...)
I can still run the template project, but I can't build it.
So I'd rather not start creating a project before I have this solved. I've used google and the forum search, but nobody seems to have had this error. I don't have an anti-virus on my pc so I don't think anything is blocking AGS.
Thanks for any help.
Please post a full error message here, or screenshot of this message.
This all there is, really. Is there a way to bring up a stacktrace?
(https://i.imgur.com/W3n9w4F.png)
This happens when trying to build one of the template projects that come with AGS, without any changes from my side.
Oh, it's error posted in the compilation output, I was thinking about different thing.
So, this happens when AGS is trying to set built game.exe's file information. "LoadLibrary failed" must be a misleading message, as it actually tries to open this game exe for editing its info (not some library).
My question is, could you check if exe file actually appears in Compiled/Windows folder?
Also, not certain if related, but does your game name or directory contains any extended unicode characters?
Aha, interesting. It did in fact create a working exe file!
So, does this mean I can safely ignore that message then, or is it something that can come back to haunt me later?
Thanks for the help so far, it is very appreciated and I have learned some things.
Quote from: John F Bennett on Tue 29/09/2020 22:33:34
Aha, interesting. It did in fact create a working exe file!
So, does this mean I can safely ignore that message then, or is it something that can come back to haunt me later?
Hmm,
it seems like you may ignore this for now, if everything else works, as this is an optional step. What it does is - it sets up custom developer information and product title into exe which you see when you open File Properties in windows explorer.
I'd still try to diagnose the source of this problem later if it does not go away.
Hi,
I'm getting the same error but with another error first:
Unable to register for Windows Game Explorer: Unable to replace resource: BeginUpdateResource failed
Unable to set EXE name/description: LoadLibrary failed
(https://i.imgur.com/Y0C6sKt.png)
Now for me the exe is not created.
I started my project with the Sierra template.
AGS Editor .NET (Build 3.5.0.26)
Update: I changed the name of Game file name: from "GingerElf" to "gingerelf" the exe now builds but I get the same errors as shown above.
I have also verified that I have "Enable Game Explorer integration" set to False
Thank you!
Quote from: stopmotion24 on Tue 29/09/2020 23:40:44
Update: I changed the name of Game file name: from "GingerElf" to "gingerelf" the exe now builds but I get the same errors as shown above.
In other words, it cannot create exe if it got caps in filename?
Quote from: stopmotion24 on Tue 29/09/2020 23:40:44
I have also verified that I have "Enable Game Explorer integration" set to False
Apparently this step is done even if it's off, it clears some fields in file settings, probably in case the property was previously On but was turned off later...
I'm fairly sure this is just the usual problem that the file is locked at the time the Game Explorer data tries to be added. 9/10 times it is because the directory is open in File Explorer. Otherwise it might be anti-virus.
Update:
If I run AGS as Administrator:
(https://i.imgur.com/lt5xrMs.png)
The errors I was getting are both gone:
(https://i.imgur.com/59sqqQn.png)
So, I just wanted to pass along this information. I do not believe the that uppercase letters in the exe file name played a part in this problem.
QuoteIn other words, it cannot create exe if it got caps in filename?
Yes, I had originally set to "GingerElf" and then changed it today to "gingerelf" no caps and it would then build the exe and I could see it in the compile folder.
QuoteApparently this step is done even if it's off, it clears some fields in file settings, probably in case the property was previously On but was turned off later...
When I first saw these error messages I went to the General Settings and turned "Enable Game Explorer integration" to "True". I then tried to compile and still got the same errors above so I changed back to "False"
The compiled game run ok.
I only use Windows Defender no other security software.
Thank you!
Oh wow, running AGS as admin actually worked! Thanks!
I'll tag this as SOLVED!
Honestly, I think the solution was just incidental. The issue is likely file locking, the cause of the problem is the cause of the locking.