[Solved?]Error when starting up my game


#1

I have gotten two games to work in the past without a problem but am now getting this error message when I try to open the game I just exported.
“Bad image”
C:\Users\Chaos\AppData\Local\Programs\Platformer\node.dll is either not designed to run on windows or it contains an error. Try installing the program again using the original instillation media or contact your system administrator of the software vendor for support. Error status 0xc000012f.

Anyone know a way to fix this or what could be wrong?

(Edit, also in the comments, another error I get sometimes while Im trying to package it is as follows:

"Error: e[31mExit code: 1. Command failed: wine /root/.cache/electron-builder/winCodeSign/winCodeSign-2.0.0/rcedit-ia32.exe /worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe --set-version-string FileDescription Project --set-version-string ProductName Project --set-version-string LegalCopyright Copyright © 2019 Project --set-file-version 1.0.0 --set-product-version 1.0.0.0 --set-version-string InternalName Project --set-version-string OriginalFilename --set-icon /worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/.icon-ico/icon.icoe[39m
e[31msystem.reg is not a valid registry filee[39m
e[31muserdef.reg is not a valid registry filee[39m
e[31muser.reg is not a valid registry filee[39m
e[31mUnable to load file: "/worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe"e[39m
e[31me[39m
e[31msystem.reg is not a valid registry filee[39m
e[31muserdef.reg is not a valid registry filee[39m
e[31muser.reg is not a valid registry filee[39m
e[31mUnable to load file: “/worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe"e[39m
e[31me[39m”


#2

That’s a weird issue. On what OS are you?


#3

I’m on Windows 10 latest update


#4

Also sometime when I try to package the game, it doesnt work followed by this log

"Error: e[31mExit code: 1. Command failed: wine /root/.cache/electron-builder/winCodeSign/winCodeSign-2.0.0/rcedit-ia32.exe /worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe --set-version-string FileDescription Project --set-version-string ProductName Project --set-version-string LegalCopyright Copyright © 2019 Project --set-file-version 1.0.0 --set-product-version 1.0.0.0 --set-version-string InternalName Project --set-version-string OriginalFilename --set-icon /worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/.icon-ico/icon.icoe[39m
e[31msystem.reg is not a valid registry filee[39m
e[31muserdef.reg is not a valid registry filee[39m
e[31muser.reg is not a valid registry filee[39m
e[31mUnable to load file: "/worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe"e[39m
e[31me[39m
e[31msystem.reg is not a valid registry filee[39m
e[31muserdef.reg is not a valid registry filee[39m
e[31muser.reg is not a valid registry filee[39m
e[31mUnable to load file: “/worker/dist-37292251-360a-43aa-a982-cafd8e041f9e/win-unpacked/Project.exe"e[39m
e[31me[39m”


#5

are you exporting your project with the online build? if yes try to build the project locally using command prompt with yarn and node.js


#6

I was exporting it with the online build, but, I do not understand how to do any of that. I just downloaded node.js but packaging your game to it seems really confusing.

(Correction I was using “package your game as an app for windows” option. Online works for me, but Id rather have a copy that doesnt self delete after 30 days.)


#7

Try packaging locally. There is a tutorial on the wiki for that.


#8

I was able to make it work on itch.io. Thankyou very much!