Organising project files

Get help using Construct 2

Post » Thu Feb 04, 2016 9:21 am

The serious game I'm working on has many video and pdf files on top of the usual image & sound files.

Although these are sorted into directories in the project panel, when C2 exports to HTML5, only the images & sounds are placed in proper directories and all other files are just copied at the root.

Does anyone know if it is possible to customise C2 to have it create a structure under the /media directory which would be the same as the one you have in the project panel, e.g. /media/video and /media/pdf ?

This would probably be quite easy for Scirra to manage and would be useful for large projects if it's not currently possible.
B
10
S
3
Posts: 87
Reputation: 957

Post » Mon Feb 08, 2016 6:51 pm

Are you actually using those files as part of your game? If they are, I wouldn't worry about it. C2 is responsible for tracking in game documents, not you.

If not, they should be on Google Drive, DropBox, Github, or something similar.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,349
Reputation: 4,692

Post » Tue Feb 09, 2016 8:43 am

Yes, the files are part of the game.

It's not a major issue, but as there are many files, the organisation on the file server would be better if C2 copied them into specific directories, rather than copying them to the same location as the core files game files.
B
10
S
3
Posts: 87
Reputation: 957

Post » Tue Feb 09, 2016 3:28 pm

Yea, it would be nice, but if you keep it organized on your end, just trust that C2 will keep it organized inside the application.

Or if you are really OCD, you can load the files via the "Request URL" AJAX instead of using the "Request Project File". Then you can put the files wherever you want on your webserver and load them from there manually.

Or if you don't want to do that, you could try organizing them by file name, like group1-data1.json, group1-data2.json, group1-data1.json, group2-data2.json, etc.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,349
Reputation: 4,692


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], the_Shit_hawk and 10 guests