Jump to content


Photo

Sin Directory Dll


  • Please log in to reply
5 replies to this topic

#1 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 06 March 2009 - 11:30 PM

Not supported anymore, please use a more cross-platform extension instead.


Edited by Sindarin, 24 February 2012 - 09:39 AM.

  • 0
GM 8.1 / GM:HTML5 User

#2 A I R

A I R

    GMC Member

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

Posted 07 March 2009 - 05:13 AM

Great! I didn't like my GML or batch file way of clearing a directory. Good job.
  • 0

#3 Outsider 87

Outsider 87

    GMC Member

  • New Member
  • 4 posts

Posted 21 April 2009 - 11:41 AM

Sorry, but I cannot make this dll works. What is the syntax to use for sin_directory_copy?

sin_directory_dll_init();
sin_directory_copy("folder to copy","name of new folder");

This does not work.

Edited by Outsider 87, 21 April 2009 - 11:41 AM.

  • 0

#4 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 22 April 2009 - 06:08 PM

sin_directory_copy(working_directory+"/Directory From",working_directory+"/Directory To");


I noticed some problem with my example too. For me the sin_directory_rename did not work. It seems the function will fail if the directory is being accessed as in browsing, writing a file inside it etc. So in my example it seems the dll needs more time to close the text file. I am going to fix this later.

Also I noticed you use sin_directory_dll_init(); right before sin_directory_copy("folder to copy","name of new folder");

Try putting sin_directory_copy("folder to copy","name of new folder"); in a 1-2 second timer to allow the dll to load properly. (common GM problem)
  • 0
GM 8.1 / GM:HTML5 User

#5 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 14 September 2009 - 12:34 PM

Legal bump to announce a major update to the DLL! Please see the first post for a briefing of the new features. :)
  • 0
GM 8.1 / GM:HTML5 User

#6 Mysteria9

Mysteria9

    Lord of Fishes

  • GMC Member
  • 524 posts
  • Version:GM8.1

Posted 23 October 2010 - 06:08 PM

This sounds great!
Although I get an error when starting your example:

ERROR in
action number 1
of Create Event
for object directory_control:

Error defining an external function.

sin_directory_init() seems to be the problem. Maybe it's just on my end, but do you know why this is happening?
I'm on Windows XP and GM7.
Thank you very much!
  • 0