LordOfDragons / dragengine

Drag[en]gine Game Engine
MIT License
69 stars 6 forks source link

Alternative way to launch. #1

Closed 1Snakel closed 4 years ago

1Snakel commented 4 years ago
Would be possible to add a script to launch it from the current folder on linux?
LordOfDragons commented 4 years ago

Do you mean starting a *.delga file without installing the game engine at all? This is possible using the Live Launcher. You can find it at https://dragondreams.ch/?page_id=152 or in the release section here on GitHub. The file is named "dragengine-live-1.0.zip".

The Live Launcher can run only one *.delga file. If you want to run the entire game engine and GUI Launcher from a directory without installing it then this can be done by setting environment parameters. If this is what you have in mind I can update the README with the script snippet to do so.

Let me know if any of these solutions is what you are looking for.

1Snakel commented 4 years ago

yup, its a way to launch the engine for development, without installing.

"Launcher from a directory without installing it then this can be done by setting environment parameters. If this is what you have in mind I can update the README with the script snippet to do so."

LordOfDragons commented 4 years ago

I'm not sure I understand correctly. Launching the engine to play a game is done using the GUI launcher (/usr/bin/delauncher-gui game.delga) or the console launcher (/usr/bin/delauncher-console run -f game.delga).

Can you please explain to me exactly what you are trying to achieve? Then I can provide you with the appropriate solution.

1Snakel commented 4 years ago

Edited, sorry for the typos.

LordOfDragons commented 4 years ago

I've added now a source-able file to the repository and update the README.

Now there is a little problem. In the current 1.0 release the shared game definition files used to create new projects have full path for their base directory. I've also changed the source code to turn these path relative so it works with the above mentioned source-able file. If you want to use this file with the current 1.0 release you have to apply a manual fix before you can continue.

Edit these two files:

Change the path in the "basePath"-tag to point to the correct location in your local directory. If done correctly it will work. Otherwise you have to wait for the 1.1 release which contains the fixes.

I will also set up in the upcoming days a nightly build synced to GitHub. This one will be usable too once ready.

Please let me know if this all is helpful to you.

1Snakel commented 4 years ago

Perfect, thanks