Dmengine_headless all flags list

Hi everyone!

I’m trying to use ./dmengine_headless but cannot find any arguments for it;(

Can someone share a link with all available flags for ./dmengine_headless ?

PS:// I’m searching a lot but it difficult to find any info;(

There is no such list, but also it’s rare to use any actual arguments to it.

By invoking it in the folder where the .project or the .projectc file is, will load the project, as expected.

You can override project settings using the format --config=category.name=value:
E.g. ./dmengine --config=display.fullscreen=1 or `–config=display.width=640´

What are you trying to do specifically?

1 Like

I’m trying to create multiplayer game;)

In file game.project I choose different collections for client and server build manually:

Screenshot 2023-08-29 at 5.13.48 PM

After build: java -jar bob.jar --variant=headless build

I assumed that ./dmengine_headless --config=bootstrap.main_collection="/src/server.collection" could start server build but in console I see: ERROR:RESOURCE: Unknown resource type: collection

I don’t know how to programmatically build client and server. Now I have to switch Main Collection manually(+ after switch one build overwrites previous one)

PS: Nice to see:

  1. On mac m1 pro I can open only one Defold editor others become unresponsive in short time;(
  2. In editor while create bundle I cannot change output directory from default /build.
  3. In editor I cannot start several instances of game to work with multiplayer.
  4. britzl game examples He provided a lot of examples which I am using but it not easy to find. It will be grate if all his examples and knowledge were collected in one place as documentation or smth on main website!

Anyway thank you and especially to britzl! Your game engine looks easy but I have to search a lot(

Correct, the built resource is called “.collectionc” (‘c’ at the end stands for “compiled”)

Also, it’s also probably likely that you want to use a bundled game, in which case there are no loose file, but a few archives (.arcd, .arci)

And for content, I would probably scale down all textures to e.g. 2x2 size.

All in all, I would use a separate .settings file (same format as game.project) to setup the server settings (you can specify the server.collection as the bootstrap there):

java -jar bob.jar clean build --archive bundle --settings headless.settings --bo bundle_headless 
1 Like

It sounds like this issue: https://github.com/defold/defold/issues/7845

1 Like