Adam's Lair Forum

game development and casual madness
It is currently 2019/09/17, 15:15

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2013/06/28, 19:32 
Member
Member

Joined: 2013/05/20, 17:19
Posts: 77
Role: Professional
When dropping a file into the Project View in Duality, the file is copied to the Media folder, which is great, but have you considered having the folder structure in Media automatically mirror the folder structure in Data? Right now, we have to give files unique names even though they might be inside different folders inside Duality, which is a bit of a pain, and can also make updating a file in the media folder tricky. It doesn't seem so straight forward to do this really, as the point where the file is copied seems to happen before the file gets to the Project View. Any pointers?


Top
 Profile  
 
PostPosted: 2013/06/29, 00:02 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
Source/Media is a pure temporary folder that only exists so you're able to open Resources using external software or the Windows Explorer. There is no need to prevent naming collisions as none of the files contained in this folder is in any way persistent. Just delete the folder completely and you'll be fine - you can even do so while Dualitor is still running. It doesn't care. However after deleting the Media folder, as soon as you open a Resource file by double-clicking it in the Dualitor Project View, it will be mirrored according to the current Data folder structure - it just doesn't get updated after moving / renaming Resources due to its temporary nature.

Assuring Source/Media is always a mirrored version of the Data folder would be a new feature. If you'd really like to see this in future releases, please file an issue so it doesn't get out of sight :) Are you facing specific issues due to the current implementation? Can you describe some use cases where the current behavior is causing problems or affects usability in a negative way? What benefits do you see in a possible all-time mirror behavior?

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
PostPosted: 2013/06/29, 09:28 
Member
Member

Joined: 2013/05/20, 17:19
Posts: 77
Role: Professional
I guess I didn't realize it was supposed to be a temporary folder because all of the resources maintain the source/media path as their SourcePath property, which allows them to hot reload when changes occur. This is a critical part of being able to iterate on content quickly, and hence my confusion. Is hot reloading supported in any other way that I haven't come across yet?

As to issues we're currently facing, they're only really relevant if you treat the media folder as a persistent area. New people coming on to the team (or forgetful people who have been there a while:) ) regularly drag files from our assets folder into Duality, creating duplicates with the (n) naming convention in the media folder if they already exist in Duality. They then don't subsequently know which resource to update when making changes. And as previously mentioned, having a mirrored folder structure would remove the need to have unique names for files.


Top
 Profile  
 
PostPosted: 2013/06/29, 11:45 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
I'll keep that in mind as a nice2have Usability feature then :) As for now: Deleting the Media folder from time to time should clean up the situation. When opening an existing Resource in the Duality Project View via double-click, its source file will be regenerated and also support hot reloading, just as before - the SourcePath property will be re-assigned to the new source file.

Another thing I have in mind for quite a while now is the option to specify which program to use for opening each Resource formats source files instead of just using the Windows default. An "Open with..." option would also be nice. When both are in place, editing source files directly in the Media folder will be less common anyway, since it will be possible to be done directly via Project View. There is already an issue filed for these two - in case you want to keep an eye on it.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group