Error while compressing the game

Hi guys,
I am trying to publish a game with a lot of video in it. When publishing the game I get an error, as shown below. I have a good Internet connection and I have tried several times. Is there a solution to this?

I have noticed this before when using lots of video material. Maybe I should publish it as HTML5 and install the game on a localhost? In that case I need to know what is required from my Apache install. I have installed Apache on my computer and I can run html files on it but when trying to run a GDevelop build the screen is black. Maybe I need to install a JavaScript library?

Cheers

Farid

There might be a size limitation on the online builds.
You could replace your video files with smaller/dummy files, and replace them with the original files after building.
Or you could do the building offline.

I believe using the external online build server has a maximum project size of ~150mb.

Anything larger than that and you will need to export and build locally

Ahh, ok. That explains my problems. I have tried to make manual builds before but did not succeed. I might dig into it again. Or maybe do as Gruk says and replace the video clips. My third option would be to run the game as a HTML5 game. If I want to run the game on a localhost, what would I need to install on the server? I have installed Apache already.

Cheers

Farid

GDev and Electron has made it extremely easy to build locally for windows. It’s as easy as downloading/installing yarn, opening command prompt, finding your directory, running a single command.

https://wiki.gdevelop.io/gdevelop5/publishing/windows-macos-linux-with-electron

2 Likes

Yes, that part is really easy. The tricky part is to install Electron. I can’t figure out how to install it. The Electron site recommends something called Yarn to install Electron and Yarn doesn’t have an installer that makes sense, just another recommendation to install Corepack. When clicking on Corepack I am forwarded to some node.js site with a lot of text, that makes no sense. By the way, I am using a Mac and I want to build apps for Windows and eventually other platforms.

Any recommendations on how to install Electron?

Cheers

Farid

Yarn absolutely has an installer. Did you follow the link Eiklahc posted? It’s on the front page of the yarn link within that document.

1 Like

Actually I seem to have managed to install Electron now, by doing some stuff in the terminal window, including a command called Homebrew. So now the terminal says that electron is successfully installed. I really hope I did things right because before I installed Electron I had to fill in som stuff with the previous installer. I’m not sure if it was the Node.js part or something else. I had to write names and licenses and stuff. Just guessing.

Anyways, now I have found some guide how to use Electron, but that doesn’t make much sense either. It wants me to choose between npm and yarn, but I don’t know what to choose. Also it wants me to create a bunch of files and scripts, including a package.json, main.js and index.htm. but I don’t know where to put them and what to do with them. This is really messy. Here is the guide:

It wants me to do loads of stuff such as opening a browser and creating more scripts etc. It just can’t be that complicated to publish a game, right? This seems more complicated than building a game from scratch in pure javascript.

Can you please point me in the right direction?

Cheers

Farid

So finally I have managed to install both Yarn and Electron. I tested the version of both and got an ok.

Also I found a guide on Youtube how to create an app manually from GDevelop. Problem is, that I now get errors such as these:

What might have gone wrong?

Cheers

Farid