EasyRPG / Editor

Game editor similar to RPG Maker
https://easyrpg.org/editor/
GNU General Public License v3.0
350 stars 58 forks source link

Create a new map issue #143

Open rygos opened 4 years ago

rygos commented 4 years ago

Hi, macOS Big Sur User here. I can open a rm2k Project but if I want to add a new map I get this message: The file /private/var/folders/4w/qt32_g8s5ms21nybw0ldrr240000gn/T/AppTranslocation/7167517A-615C-451C-8262-AE684F329C6C/d/EasyRPG Editor.app/Contents/MacOS/templates/Map0001.emu can't be found.

if I click OK I can edit again but there is no new map.

The build date is 21.09.2020 - A release from Ghabry =)

carstene1ns commented 2 years ago

Currently the templates are hardcoded from application dir, which is bad, when installed. Instead we should query the appdata location first: auto path = QStandardPaths::locate(QStandardPaths::AppDataLocation, "Map0001.emu");

See also https://doc.qt.io/qt-5/qstandardpaths.html

Of course we also need to install the templates to /usr/share/easyrpg-editor for example on Linux.