scemino / engge

Open source remake of Thimbleweed Park's engine
https://scemino.github.io/
MIT License
148 stars 15 forks source link

Path request for ggpack files #166

Closed Mac1512 closed 4 years ago

Mac1512 commented 4 years ago

Is your feature request related to a problem? Please describe.

Hello, I have seen this in the Delores source code release:

https://github.com/grumpygamer/DeloresDev

Directions

Clone the repository to your local machine. It is assumed that these files are placed in a DeloresDev directory.

Download and extract the DeloreDev engine executable from here. The engine executable can go anywhere.

Run it once. You will get an error, but that's expected.

Find the Prefs.json file that was created.

On Windows:

%AppData%\Terrible Toybox\DeloresDev\Prefs.json

On Mac:

~/Library/Application Support/Terrible Toybox/DeloresDev/Prefs.json

Add the following line to the Prefs.json file:

devPath: "/Path/To/DeloresDev"

If you're on Windows, use / as a path separator and not \

Run the executable again and the game should start.

And it gave me an idea....Developed in the next point.

Describe the solution you'd like

To be able to establish a preferences file "Prefs.json" in a fixed location, and be used in all future commits, of the type used by Delores or original Timbleweed park ... Something like the following:

On Windows:

%AppData%/engge/Prefs.json

Or maybe another type of folder, where we can assign a path to the ggpack files, like so:

devPath: "/Path/To/ggpack_files"

This would avoid me in testing, continually copying files from one site to another every time I compile a new commit.

Describe alternatives you've considered

At the moment I can't think of any alternative

Additional context

Nothing

Mac1512 commented 4 years ago

I have tested and works correctly the devpath function, but ... it should look for a specific location, the file Prefs.json.

For example:

On Windows:

%AppData%/engge/Prefs.json

On Mac:

~/Library/Application Support/engge/Prefs.json

(Or any other route of your choice)

I comment this, so as not to have to copy a file, Prefs.json, previously existing, to the current directory or create a new one with notepad, etc.

Since right now it looks for the Prefs.json file in the current directory, and it doesn't exist. And if I don't have the .ggpack files in that directory either, engge will fail, leaving the screen black, since it starts in fullscreen.