Jump to content


Photo

Quikfind Dll


  • Please log in to reply
28 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 26 November 2006 - 01:09 PM

This DLL gets information about the files in a directory.

An advantage to the gm standard file scanning is that this DLL can scan subdirectories.

The DLL returns the total files scanned, file size and attributes, and also the total size of the scanned files.

The example included recurses all the files in the C:\windows\web directory and refreshes the file list every step.
So if you make a new file you will see that immediately in the example window.

(link removed)

(link removed)

Edited by h0bbel, 19 September 2013 - 06:54 PM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#2 DoorMatt

DoorMatt

    GMC Member

  • New Member
  • 69 posts

Posted 26 November 2006 - 01:38 PM

Both examples throw the "Unexpected error occured when running the game" error.

This looks pretty good. :D

-DM
  • 0

#3 CyberTwister

CyberTwister

    GMC Member

  • GMC Member
  • 246 posts

Posted 26 November 2006 - 01:48 PM

Nice :D
But u can do this in gml :D
  • 0

#4 Toon-Master

Toon-Master

    Half-Toon Hero!

  • New Member
  • 340 posts

Posted 26 November 2006 - 02:56 PM

Both examples throw the "Unexpected error occured when running the game" error.

This looks pretty good. :D

-DM

<{POST_SNAPBACK}>


I had it too but when I changed the directory in the example, it works fine.

Cool dll h0bbel, quite interesting.

- Toon-Master
  • 0
D: I'm sorry if I'm unavailable for answering questions through messaging on GMC.
-------------------------------------------------------------------
I love Leanny Basil, Heart on Artivale. You inspired me for so many years.

#5 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 26 November 2006 - 04:52 PM

Nice :D
But u can do this in gml  :D

<{POST_SNAPBACK}>


Yes, but this DLL makes searching through subdirectories faster because the string handling of the files is programmed.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#6 OpticalLiam

OpticalLiam

    GMC Member

  • New Member
  • 782 posts

Posted 26 November 2006 - 07:34 PM

Looks interesting, but I got an "unexpected error".

:D
  • 0

#7 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 26 November 2006 - 08:17 PM

Looks interesting, but I got an "unexpected error".

:D

<{POST_SNAPBACK}>


I'm going to change the directory of the example.
I hope this solves the problem.

The INI function is causing the problem.
I'm fixing it now.

Ok, already done, i changed the writing method of the ini file.
Please tell me wether the errors are gone.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#8 OpticalLiam

OpticalLiam

    GMC Member

  • New Member
  • 782 posts

Posted 26 November 2006 - 08:47 PM

Well it works, but when I change the directory to something on my "D:\" drive it doesn't seem to want to...
  • 0

#9 Jack Meroc

Jack Meroc

    GMC Member

  • New Member
  • 264 posts

Posted 07 December 2006 - 03:04 PM

It works fine. Very good job. Only problem is when you scan lots of files and use ini output. Always get error. But without ini output it works perfectly. It can scan "temporary internet files" folder, and without dll (common gml) you can not scan this folder for files. This is very usefull if you are making players or similiar program. It is now possible to implement "add files from folder" option. And it is fast. Very good.

Eevan
  • 0

#10 Iam2noob4u

Iam2noob4u

    GMC Member

  • New Member
  • 447 posts
  • Version:Unknown

Posted 25 December 2006 - 02:20 PM

Cool DLL.

btw, is there any way to scan the hard disk file by file? (return one file, so i can do something with it, and then find the next one) indeed the only difference with GML is that it will automaticly scan sub-dirs, (and you can scan temp internet files).

Edited by Iam2noob4u, 25 December 2006 - 02:20 PM.

  • 0
Email/MSN: iam2noob4u@gmail.com

#11 sir raskasar

sir raskasar

    GMC Member

  • New Member
  • 886 posts
  • Version:Unknown

Posted 29 December 2006 - 02:26 PM

Great dll, finally. I was searching for something like this for ages.

10/10

Regards,
-SR
  • 0

#12 Fedor

Fedor

    GMC Member

  • New Member
  • 294 posts

Posted 01 January 2007 - 01:57 AM

Nice :)
But u can do this in gml  :)

<{POST_SNAPBACK}>

How do you do that!!! ^_^
  • 0

#13 theloon

theloon

    GMC Member

  • GMC Member
  • 83 posts

Posted 07 February 2007 - 07:28 PM

Example works OK (Even though I have no WINDOWS folder)
One thing is the height of 600 is too tall for my 800x600 resolution. Maybe 300x512 would look better?

Also, somewhat along the line of Iam2noob4us request, I'd like to see a scanning example that searches for a particular file and returns its path.

Very cool work :)

Edited by theloon, 07 February 2007 - 07:32 PM.

  • 0

#14 zedman1000

zedman1000

    GMC Member

  • New Member
  • 715 posts

Posted 08 February 2007 - 07:21 AM

If i make it search my C drive will it search EVERY file on my pc for the string?
  • 0

#15 Tag

Tag

    GMC Member

  • New Member
  • 61 posts

Posted 10 February 2007 - 11:38 PM

When I give an exact directory path, I can save the ini file. Then when I use get_directory("C:\") I cannot because I get an error... Ive tried to understand how it is that that works because it returns the same exact quoted text as if you were writing it out normally. What do you think about that?
  • 0

#16 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 14 March 2007 - 09:40 PM

OK, it seems to work well, but even AFTER the search the FPS stays around 3 or 4 (from 30 room speed). This is even when I remove all the QuickFind script calls from the draw event... what's going on?

-IMP :D :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#17 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 15 March 2007 - 07:46 PM

OK, it seems to work well, but even AFTER the search the FPS stays around 3 or 4 (from 30 room speed). This is even when I remove all the QuickFind script calls from the draw event... what's going on?

-IMP :unsure: :)

<{POST_SNAPBACK}>


I think you're scanning a large directory, or a directory which is hard to list, I'm not sure.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#18 freko

freko

    The Professional

  • GMC Member
  • 504 posts
  • Version:GM8

Posted 27 September 2008 - 05:59 PM

Can you help me in this...
I'm trying to delete the files located in a folder and in its subdirectories.Whats the simplest way to do it using this dll.
I have tried

file_delete(Dir+QF_GetFileName ©

but that ain't working.
  • 0

#19 general sirhc

general sirhc

    Dream Big, Act Small

  • GMC Member
  • 1667 posts
  • Version:GM:Studio

Posted 28 September 2008 - 06:53 AM

Brilliant dll but it doesnt like unknown character I happen to have some files with characters from the chinese char set and your dll crashes when it finds this file, I have made my own version in GML but your dll does it about 30x faster then gml so would you be able to make it check the file name to see whether the filename is valid. my way in gm was simple
file=file_bin_open...
if !file
show_message("Error opening file")

That worked fine and allowed me to skip the files that were a problem

Hopefully you can fix this soon

EDIT

It doesn't seem like soon will ever come considering I posted this on the 28 of sept last year -.-

Edited by general sirhc, 09 January 2009 - 06:52 AM.

  • 0

qs8ZFMQ.png?1


#20 IndieGameMaker

IndieGameMaker

    GMC Member

  • New Member
  • 118 posts

Posted 22 February 2009 - 04:40 AM

This is way cool, good job h0bbel. :D
PS: You can even do the same thing that this dll does with a simple batch file.
Even though a batch file is probably a better way of doing this, your dll is still really cool.
Especially since it is made for game maker.

Edited by IndieGameMaker, 22 February 2009 - 04:50 AM.

  • 0
Posted Image

#21 SerMSYS

SerMSYS

    GMC Member

  • New Member
  • 180 posts

Posted 11 July 2009 - 07:33 PM

I've found a bug but it's easy to fix.

In QF_Init() the flag constants are supposed to be in hexadecimal, so change them so they have a $ in front of the values like this:
qf_directory = $10;
qf_archive = $20;
and so on...
  • 0
Battlefield 2/CoD 4/Fallout 3/GTA IV player | Quad-Core owner

#22 IamCalle

IamCalle

    GMC Member

  • GMC Member
  • 444 posts

Posted 12 July 2009 - 12:21 AM

Quite usefull, I must say, great.
  • 0

#23 Teo-TN

Teo-TN

    GMC Member

  • New Member
  • 2 posts

Posted 16 October 2009 - 07:37 PM

One problem: I can't search for files located on another drive, for example when gm file is on C: drive searching on D: drive will return an error "Unexpected error occured when running the game". How to solve this problem?
  • 0

#24 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 06 April 2010 - 06:23 PM

Yeah this dll is buggy as hell, when it's not crashing it's returning previous searches or just not working. It's a rather common trend in the overall quality of h0bbel's dll's. Could do with some major bug fixing.
  • 0

Posted Image


#25 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 07 April 2010 - 12:37 PM

Yeah this dll is buggy as hell, when it's not crashing it's returning previous searches or just not working. It's a rather common trend in the overall quality of h0bbel's dll's. Could do with some major bug fixing.

I should rewrite all of them when I have the time.
I just started programming when I made them and I knew very little about memory management.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#26 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 08 April 2010 - 10:08 AM

I should rewrite all of them when I have the time.
I just started programming when I made them and I knew very little about memory management.

Very nice! :D

Will you be re-programming at all? Or only a possibility?
  • 0

Posted Image


#27 glitchgod

glitchgod

    GMC Member

  • GMC Member
  • 55 posts

Posted 27 May 2010 - 05:02 PM

Well all i know is that his site is not working and when it is the links just give me empty files reason?
  • 0

#28 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 28 May 2010 - 02:07 AM

I have no issue downloading from his website using internet explorer, it's likely your browser- could always try a download manager as well.
  • 0

#29 glitchgod

glitchgod

    GMC Member

  • GMC Member
  • 55 posts

Posted 29 May 2010 - 07:08 AM

I tried Firfox and Internet Explorer and both failed and gave me a file size of 0
  • 0