file scanner?

Ideas for Game Editor evolution.

file scanner?

Postby Fojam » Tue Jan 18, 2011 9:26 pm

could we possibly add a feature to GE that would scan a specified directory for dat files, list them, and then let you decide which one to load?
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: file scanner?

Postby Game A Gogo » Tue Jan 18, 2011 9:27 pm

You'd need to do this manually, which is a bit advanced
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: file scanner?

Postby Fojam » Tue Jan 18, 2011 10:29 pm

could you pm me a tutorial?
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: file scanner?

Postby Game A Gogo » Wed Jan 19, 2011 2:11 am

I'm sorry I don't dispose enough time at the moment ): but I will get to it when I can!
But this method would consist of loading a specific name, and somewhere add numbers for exemple if you wanted all files: "Level##.lvl", I could make it load from Level00.lvl until it reaches Level99.lvl or the end of the set.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: file scanner?

Postby Game A Gogo » Wed Jan 19, 2011 6:11 pm

you need to create a variable this could be "LevelN" for holding which level
then when you want to load the next level, do this:
Code: Select all
char* tstring;
sprintf(tstring,"Level%02d.lvl",LevelN);
LoadGame(tstring);


I know that's probably not what you wanted, but you can know when there are no more Level##.lvl files with fopen

Unfortunatly, you can't just search through directorys and get every filenames, this is the closest maybe.
Of course, makslane marks evert feature request so don't worry :)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: file scanner?

Postby Fojam » Wed Jan 19, 2011 9:43 pm

alright ill do your method for now. thanks!
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest