The Daily Click ::. Forums ::. Klik Coding Help ::. addons ingame help, detecting files in directory
 

Post Reply  Post Oekaki 
 

Posted By Message

Zode



Registered
  13/04/2009
Points
  239

PS3 Owner
29th April, 2009 at 17:07:07 -

so how could i scan files in directory
like i have this :
game/ - floder whit addons floder on it
game/addons/ubermod2/info_ubermod.txt - txt file what contains name of addon and version number and some dirs that addon requires

how i could scan all subdirs from game/ for info_X (.txt) whiout need of stupid ini editing so it could find it? :/

- mmf2dev

thanks in advance, again ;D

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
29th April, 2009 at 23:32:01 -

file folder object, use the browsing loop command

 
n/a

Zode



Registered
  13/04/2009
Points
  239

PS3 Owner
30th April, 2009 at 13:42:05 -


Originally Posted by UrbanMonk
file folder object, use the browsing loop command



eh? Ö_ö i cant get it working :/ nothing comes to addonslist

example? :I i dont know if i did something wrong

 
n/a

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
30th April, 2009 at 14:12:32 -

I had this exact same problem with my game. Take your search directory in the command, and add "/*.*" to the end. (Make it "/*" if you're looking for folders.) (The slash isn't needed if it's already on the end.) It'll show the extensions, though.

I think they made it like that in case someone wanted to search for all .bmp files, or all folders starting with pi.

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
30th April, 2009 at 14:27:38 -

Here you go, this example searches for all the EXE's on your C drive

http://www.jsoftgames.com/exefinder.zip

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
1st May, 2009 at 10:51:17 -

And then you could use String Parser with a _ delimeter, and see if the first element of the file name is info.

 
Oh sweet mary.
   

Post Reply



 



Advertisement

Worth A Click