Giter Club home page Giter Club logo

godot-repro's Introduction

These repro steps assume you have godot available in your $PATH under the name godot. If not, replace godot with an absolute path to your Godot 3.0.2 binary.

It also assumes your current working directory is the root of this repo.

-path works and --path doesn't

godot --help states the following:

--path Path to a project ( must contain a 'project.godot' file).

This seems to be wrong.

  1. run godot --path pong/project.godot

Note that the project selector menu shows. Close godot.

  1. run godot -path pong/project.godot

Now the actual project passed in opens directly.

--export doesn't export relative path as expected

  1. run godot -path pong/project.godot --export "HTML5" dist/

Output:

exporting res://pong.tscn
ERROR: EditorExportPlatform::save_pack: Condition ' !f ' is true. returned: ERR_CANT_CREATE
   At: editor\editor_export.cpp:818

Assumed error: godot is unable to create the folder

  1. run mkdir dist
  2. run godot -path pong/project.godot --export "HTML5" dist/

Same output.

  1. run mkdir dist
  2. run godot -path pong/project.godot --export "HTML5" dist/index.html

Same output.

--export doesn't export absolute path as expected

  1. delete dist folder if made in previous step (rmdir dist)
  2. run godot -path pong/project.godot --export "HTML5" $(pwd)/dist/

Output:

ERROR: EditorExportPlatform::save_pack: Condition ' !f ' is true. returned: ERR_CANT_CREATE
   At: editor\editor_export.cpp:818

Assumed error: godot is unable to create the folder:

  1. run mkdir dist
  2. run godot -path pong/project.godot --export "HTML5" $(pwd)/dist/

Export seems fine.

Content of dist:

$ ls -al dist/
total 11508
drwxr-xr-x 1 Karl 197121        0 May  7 19:52 ./
drwxr-xr-x 1 Karl 197121        0 May  7 19:52 ../
-rw-r--r-- 1 Karl 197121   338820 May  7 19:52 .js
-rw-r--r-- 1 Karl 197121    16116 May  7 19:52 .pck
-rw-r--r-- 1 Karl 197121 11422500 May  7 19:52 .wasm

Assumption: --export requires a output name.

  1. Delete dist, and recreate folder rm -r dist && mkdir dist
  2. run godot -path pong/project.godot --export "HTML5" $(pwd)/dist/index

Content of dist

$ ls dist/
index  index.js  index.pck  index.png  index.wasm

Assumption: Output requires .html?

  1. Delete dist, and recreate folder rm -r dist && mkdir dist
  2. run godot -path pong/project.godot --export "HTML5" $(pwd)/dist/index.html
$ ls dist
index.html  index.js  index.pck  index.png  index.wasm

Output seems correct.

However, running this on a Linux based OS yields the following output:

root@ee0f98ff81a0:~/project# ls dist
index.pck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.