TorqueGameEngines / Torque2D

A completely free, open-source, 2D game engine built on proven torque technology.
MIT License
1.25k stars 110 forks source link

Creating a New Project Fails on Linux #46

Open greenfire27 opened 2 years ago

greenfire27 commented 2 years ago

The module copy function appears to fail on Linux. This uses some rare platform file and directory function that probably have gone out of date on Linux.

elementc commented 2 years ago

I noticed this while writing #43 which is a fix for #42.

I tried to make a new module named caseytest and observed the following in the console:

Module Manager: Found module: '/home/casey/Repos/Torque2D-1/library/AppCore/module.taml' but it is already registered as module Id 'AppCore' at version Id '1'. 
Module Manager: Cannot copy module Id 'AppCore' using target directory '/home/casey/Repos/Torque2D-1/caseytest/AppCore' as directory copy failed. 
Module Manager: Cannot copy module Id 'Audio' using target directory '/home/casey/Repos/Torque2D-1/caseytest/Audio' as directory copy failed. 
Can't open file: /home/casey/Repos/Torque2D-1/caseytest/AppCore/module.taml 
File IO error: No such file or directory 
Taml::read() - Could not open filename '/home/casey/Repos/Torque2D-1/caseytest/AppCore/module.taml' for read. 
TamlRead() - Could not read object from file '/home/casey/Repos/Torque2D-1/caseytest\/AppCore/module.taml'. 
TamlWrite() - Could not find object '/home/casey/Repos/Torque2D-1/caseytest\/AppCore/module.taml' to write to file '/home/casey/Repos/Torque2D-1/caseytest\/AppCore/module.taml'.

My gut says this is a mkdir vs a mkdir -p situation.