The Daily Click ::. Forums ::. Klik Coding Help ::. List of files ? (level editor)
 

Post Reply  Post Oekaki 
 

Posted By Message

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
2nd September, 2009 at 10:07:59 -

Hey, how do I get a list of files in a folder. Like in the game "The mushroom engine", you can choose your level if you have files in the "level" folder.

I'm making a level editor/player for Blob's Adventure 3 and I'm wondering how to do this.

I suppose it's something with file objects, and fastloops but I can't quite make it work. Please help =D.

 
www.Solgryn.org

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
2nd September, 2009 at 14:22:25 -

The simple way is just to use a list object, and the "Load FileList" action.
Anything more complicated, and you'll have to explain exactly how your level files are made - array/ini/binary, file structure etc.

 
n/a

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
2nd September, 2009 at 15:46:55 -

I use .ini

I tried the load filelist.. but can't get it to work?? I tried with all directories and even with like "C:\" and it doesnt give anything

 
www.Solgryn.org

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
2nd September, 2009 at 15:56:03 -

You have to specify an extension aswell as the directory.

Eg. "C:\*.ini"

 
n/a

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
2nd September, 2009 at 15:57:55 -

Ah, thanks =D It works now

 
www.Solgryn.org

Image

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
3rd September, 2009 at 19:30:02 -

You're using appath$ and not a hard-coded "C:/" right? Some people might not put your game in their "C:" drive. Sorry if I'm stating the obvious, but I used to hardcode my pathways before and it ended up burning me in the end.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
4th September, 2009 at 15:55:23 -

yea im using a action to tell where the file is, that was just an example

 
www.Solgryn.org

Image
   

Post Reply



 



Advertisement

Worth A Click