2
0

command_line.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Command line
  2. ============
  3. Examples
  4. --------
  5. Compile and run the project ``/home/user/crown/samples/01-physics`` using a mapped ``core`` folder:
  6. .. code::
  7. export CROWN=/home/user/crown
  8. cd $CROWN/platforms/linux64/bin
  9. ./crown-development --compile --continue --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  10. Compile and run for HTML5:
  11. .. code::
  12. ./crown-development --compile --continue --platform html5 --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  13. Compile a "bundled" version of the project:
  14. .. code::
  15. ./crown-development --compile --bundle --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  16. Run the project from bundled data:
  17. .. code::
  18. ./crown-development --data-dir $CROWN/samples/01-physics_linux
  19. Customize the data directory name:
  20. .. code::
  21. ./crown-development --compile --data-dir $CROWN/samples/01-physics_custom --source-dir $CROWN/samples/01-physics --map-source-dir core $CROWN/samples
  22. Options
  23. -------
  24. ``--``
  25. End of the runtime's options.
  26. All options following ``--`` are passed to the game but will not be
  27. interpreted by the runtime.
  28. ``-h`` ``--help``
  29. Display the help and quit.
  30. ``-v`` ``--version``
  31. Display engine version and quit.
  32. ``--source-dir <path>``
  33. Use <path> as the source directory for resource compilation.
  34. The <path> must be absolute.
  35. ``--data-dir <path>``
  36. Run with the data located at <path>.
  37. The <path> must be absolute.
  38. ``--bundle-dir <path>``
  39. Run with the bundles located at <path>.
  40. The <path> must be absolute.
  41. ``--map-source-dir <name> <path>``
  42. Mount <path>/<name> at <source-dir>/<name>.
  43. The <path> must be absolute.
  44. ``--boot-dir <path>``
  45. Boot the engine with the ``boot.config`` from given <path>.
  46. The <path> must be relative.
  47. ``--compile``
  48. Do a full compile of the resources.
  49. When using this option you must also specify ``--source-dir``.
  50. ``--bundle``
  51. Generate bundles after the data has been compiled.
  52. ``--platform <platform>``
  53. Compile resources for the given <platform>.
  54. Possible values for <platform> are:
  55. * ``android``
  56. * ``html5``
  57. * ``linux``
  58. * ``windows``
  59. ``--continue``
  60. Run the engine after resource compilation.
  61. ``--console-port <port>``
  62. Set port of the console.
  63. When no port is specified, the engine uses the port 10001.
  64. ``--wait-console``
  65. Wait for a console connection before starting up.
  66. ``--parent-window <handle>``
  67. Set the parent window <handle> of the main window.
  68. This option should be used only by the tools.
  69. ``--server``
  70. Run the engine in server mode.
  71. When using this option you must also specify ``--source-dir``.
  72. ``--pumped``
  73. Do not advance the renderer unless explicitly requested via console.
  74. ``--hidden``
  75. Make the main window initially invisible.
  76. ``--window-rect <x y w h>``
  77. Sets the main window's position and size.
  78. ``--string-id <string>``
  79. Print the 32- and 64-bits IDs of <string>.
  80. ``--run-unit-tests``
  81. Run unit tests and quit.