command_line.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Command line reference
  2. ======================
  3. Examples
  4. --------
  5. Compile source data from ``/home/user/demo`` using a mapped ``core`` folder.
  6. .. code::
  7. crown-development64 --source-dir /home/user/demo --map-source-dir core /home/user --compile
  8. Run the engine using compiled data from ``/home/user/demo_linux``:
  9. .. code::
  10. crown-development64 --data-dir /home/user/demo_linux
  11. Options
  12. -------
  13. ``-h`` ``--help``
  14. Display the help and quit.
  15. ``-v`` ``--version``
  16. Display engine version and quit.
  17. ``--source-dir <path>``
  18. Use <path> as the source directory for resource compilation.
  19. The <path> must be absolute.
  20. ``--data-dir <path>``
  21. Run with the data located at <path>.
  22. The <path> must be absolute.
  23. ``--bundle-dir <path>``
  24. Run with the bundles located at <path>.
  25. The <path> must be absolute.
  26. ``--boot-dir <path>``
  27. Boot the engine with the ``boot.config`` from given <path>.
  28. The <path> must be relative.
  29. ``--compile``
  30. Do a full compile of the resources.
  31. When using this option you must also specify ``--source-dir``.
  32. ``--bundle``
  33. Generate bundles after the data has been compiled.
  34. ``--platform <platform>``
  35. Compile resources for the given <platform>.
  36. Possible values for <platform> are:
  37. * ``android``
  38. * ``linux``
  39. * ``windows``
  40. ``--continue``
  41. Run the engine after resource compilation.
  42. ``--console-port <port>``
  43. Set port of the console.
  44. When no port is specified, the engine uses the port 10001.
  45. ``--wait-console``
  46. Wait for a console connection before starting up.
  47. ``--parent-window <handle>``
  48. Set the parent window <handle> of the main window.
  49. This option should be used only by the tools.
  50. ``--server``
  51. Run the engine in server mode.
  52. When using this option you must also specify ``--source-dir``.
  53. ``--window-rect <x y w h>``
  54. Sets the main window's position and size.
  55. ``--run-unit-tests``
  56. Run unit tests and quit. Available only on ``linux`` and ``windows``.