filelist from a folder

For questions about using Classic.

Post » Sat Sep 26, 2009 9:03 am

Is it possible to list files with certain extension from selected folder?
Example: open *.aaa from c:\folder and list them in text object in a game.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Sat Sep 26, 2009 9:49 am

yes it's possible.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Sat Sep 26, 2009 12:40 pm

Great, how?
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Mon Sep 28, 2009 10:36 am

If it's possible why You don't want to tell me how? :)
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Mon Sep 28, 2009 10:54 am

If you have any of the .99 versions check in the program's folder for the z map editor.
The included cap will have all the info to figure it out.
Image Image
B
161
S
48
G
89
Posts: 7,345
Reputation: 66,245

Post » Mon Sep 28, 2009 3:14 pm

I have 0.99.5
I can't find (in the program's folder) z map editor. Only cap file is in the tools\mesh editor\mesh editor.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Mon Sep 28, 2009 3:21 pm

[quote="tecbug":39vwuqph]I have 0.99.5
I can't find (in the program's folder) z map editor. Only cap file is in the tools\mesh editor\mesh editor.[/quote:39vwuqph]

There is an example of what you want to do in the Mesh Editor .cap.

It's in the group buttons & the load and save part, it uses the common dialog object.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Sep 29, 2009 5:08 am

When I want to open file I have to pop up typical "open file window".
I'd rather list files with certain extension from selected folder inside a game as text object.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Tue Sep 29, 2009 5:26 am

Kind of like this?

List files with extension

Put the file extension your looking for in the text box, then click the button at the bottom to select a folder. Once you've selected one, the listbox will be populated with all files with the specified extension. Of course, you don't have to use the folder selector, you could just use a preset folder, but this is just to get the idea across.

Hope this helps. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Tue Sep 29, 2009 8:22 am

Thanks a lot!
That's what i was looking for.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest