Jump to content


Photo

Gmftp


  • Please log in to reply
71 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 06 April 2007 - 09:57 PM

This DLL enables you to connect to a FTP server in Game Maker.
It has functions to get the list of files in a directory, to create a directory, to delete a file or directory and to upload or download files from the server.

(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 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 07 April 2007 - 10:33 AM

OMG! No replies!

This is what i was looknig for thanks!
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#3 Robot Freak

Robot Freak

    GMC Member

  • New Member
  • 271 posts

Posted 07 April 2007 - 12:11 PM

You could use this instead of MYSQL for online savegames.
I think this is much easyer than MYSQL...
You could even save the standard GameMaker save file!

Edited by Murfy_the_game, 07 April 2007 - 12:12 PM.

  • 0

#4 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 07 April 2007 - 12:20 PM

it will be used for my web creator for easier uploading!
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#5 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 07 April 2007 - 02:39 PM

You could use this instead of MYSQL for online savegames.
I think this is much easyer than MYSQL...
You could even save the standard GameMaker save file!

<{POST_SNAPBACK}>

I don't think so. FTP is muuuuuch slower than MySQL. Not saying there's anything wrong with the DLL though :GM6:.
  • 0

#6 Ruby

Ruby

    Ruby Software

  • New Member
  • 203 posts

Posted 07 April 2007 - 06:44 PM

This is great!
  • 0
No longer active on GMC

#7 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 07 April 2007 - 07:11 PM

You could use this instead of MYSQL for online savegames.
I think this is much easyer than MYSQL...
You could even save the standard GameMaker save file!

<{POST_SNAPBACK}>

I don't think so. FTP is muuuuuch slower than MySQL. Not saying there's anything wrong with the DLL though :GM6:.

<{POST_SNAPBACK}>

and muuuuuuuuuuch risker!
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#8 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 08 April 2007 - 10:25 AM

You could use this instead of MYSQL for online savegames.
I think this is much easyer than MYSQL...
You could even save the standard GameMaker save file!

<{POST_SNAPBACK}>

I don't think so. FTP is muuuuuch slower than MySQL. Not saying there's anything wrong with the DLL though ::lmao::.

<{POST_SNAPBACK}>

and muuuuuuuuuuch risker!

<{POST_SNAPBACK}>


Nah I don't think FTP is much risker than MySQL, FTP uses TCP which checks whether the data is delivered correctly.
Only TFTP is much risker, which uses UDP.

But let's not discuss that here :D

Edited by h0bbel, 08 April 2007 - 10:27 AM.

  • 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.

#9 whooty

whooty

    GMC Member

  • New Member
  • 542 posts

Posted 08 April 2007 - 09:48 PM

lol. I like your dll's but just like the other one, I dont understand it, how should I let it automaticly upload an file score.dat ?
  • 0

#10 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 09 April 2007 - 07:32 AM

lol. I like your dll's but just like the other one, I dont understand it, how should I let it automaticly upload an file score.dat ?

<{POST_SNAPBACK}>


FTP_PutFile ('score.dat','score.dat');
  • 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.

#11 whooty

whooty

    GMC Member

  • New Member
  • 542 posts

Posted 09 April 2007 - 09:15 AM

yes, I figured out that, but I want my game to automaticly upload the file to an host, so the player doesnt have to choose anything.

So I need to know how to declare the host and password to, else you would need to enter some values while playing, and it needs to go automaticly.


EDIT : I tried this :

FTP_Init();
FTP_Connect("http://energycode.awardspace.com","whooty","*********",0);
FTP_PutFile ("data\model.dat","data\model.dat");

but he wont upload ? this is just a webhost account.. ?

EDIT : Now I Tried this

FTP_Init();
FTP_Connect("/home/www/energycode.awardspace.com/","whooty","********",0);
FTP_PutFile ("model.dat","model.dat");

sleep(10000);

because the servers displayed that adress I tried it, same effect..
The sleep was because the FTP maybe needed some time.

EDIT : used another FTP and it works now, thanks

Edited by whooty, 09 April 2007 - 10:02 AM.

  • 0

#12 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 09 April 2007 - 11:56 AM

yes, I figured out that, but I want my game to automaticly upload the file to an host, so the player doesnt have to choose anything.

So I need to know how to declare the host and password to, else you would need to enter some values while playing, and it needs to go automaticly.


EDIT : I tried this :

FTP_Init();
FTP_Connect("http://energycode.awardspace.com","whooty","*********",0);
FTP_PutFile ("data\model.dat","data\model.dat");

but he wont upload ? this is just a webhost account.. ?

EDIT : Now I Tried this

FTP_Init();
FTP_Connect("/home/www/energycode.awardspace.com/","whooty","********",0);
FTP_PutFile ("model.dat","model.dat");

sleep(10000);

because the servers displayed that adress I tried it, same effect..
The sleep was because the FTP maybe needed some time.

EDIT : used another FTP and it works now, thanks

<{POST_SNAPBACK}>


That cannot possibly work, /home/www/energycode.awardspace.com/ is no valid FTP server address.
Your ftp server should be something like awardspace.com, or ftp.awardspace.com or something, but a server address cannot have slashes before the domain.
You should read the email from your webhost again and search for the FTP server. <_<
  • 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.

#13 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 09 April 2007 - 12:12 PM

yes, I figured out that, but I want my game to automaticly upload the file to an host, so the player doesnt have to choose anything.

So I need to know how to declare the host and password to, else you would need to enter some values while playing, and it needs to go automaticly.


EDIT : I tried this :

FTP_Init();
FTP_Connect("http://energycode.awardspace.com","whooty","*********",0);
FTP_PutFile ("data\model.dat","data\model.dat");

but he wont upload ? this is just a webhost account.. ?

EDIT : Now I Tried this

FTP_Init();
FTP_Connect("/home/www/energycode.awardspace.com/","whooty","********",0);
FTP_PutFile ("model.dat","model.dat");

sleep(10000);

because the servers displayed that adress I tried it, same effect..
The sleep was because the FTP maybe needed some time.

EDIT : used another FTP and it works now, thanks

<{POST_SNAPBACK}>


That cannot possibly work, /home/www/energycode.awardspace.com/ is no valid FTP server address.
Your ftp server should be something like awardspace.com, or ftp.awardspace.com or something, but a server address cannot have slashes before the domain.
You should read the email from your webhost again and search for the FTP server. <_<

<{POST_SNAPBACK}>


OK, I registered for Awardspace and now I know you should use this code:
FTP_Init();
FTP_Connect("energycode.awardspace.com","whooty","*********",0);
FTP_PutFile ("data/model.dat","data/model.dat");

Edited by h0bbel, 09 April 2007 - 12:13 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.

#14 softhunterdevil

softhunterdevil

    LazyBoy

  • GMC Member
  • 276 posts

Posted 09 April 2007 - 05:07 PM

In your help file it shows ...

Real FTP_GetFile (String Remote file name, String Local file name );
This function downloads a file from the server to the computer.

Real FTP_PutFile (String Local flie name, String Remote file name );
This function downloads a file from the server to the computer.


I think there is a mistake with FTP_PutFile command help.
It should be writing : "This function uploads a file from the computer to the server."

.... Is that right ?
  • 0
<a href="http://www.redbubble...eactdevelopers" target="_blank"><img src="http://www.redbubble...rb_profile.gif" border="0" class="linked-sig-image" /></a><a href="http://www.redbubble...eactdevelopers" target="_blank"><img src="http://www.redbubble...ers_banner.jpg" border="0" class="linked-sig-image" /></a>

#15 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 09 April 2007 - 05:39 PM

In your help file it shows ...

Real FTP_GetFile (String Remote file name, String Local file name );
This function downloads a file from the server to the computer.

Real FTP_PutFile (String Local flie name, String Remote file name );
This function downloads a file from the server to the computer.


I think there is a mistake with FTP_PutFile command help.
It should be writing : "This function uploads a file from the computer to the server."

.... Is that right ?

<{POST_SNAPBACK}>


Yes I made a mistake. <_<
Thanks for telling me.
I will change it.
  • 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.

#16 ARMIL82

ARMIL82

    GMC Member

  • Validating
  • 26 posts

Posted 06 May 2007 - 12:02 AM

Looks Great. But is there anyway to return whether it actually connected? Or will that be in a future version. OR anyone know a script to make it do that?

#17 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 07 May 2007 - 12:18 PM

Looks Great. But is there anyway to return whether it actually connected? Or will that be in a future version. OR anyone know a script to make it do that?

<{POST_SNAPBACK}>


I have to make a function for that.
  • 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 Tulloch

Tulloch

    GMC Member

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

Posted 10 May 2007 - 04:40 AM

Good stuff, works great ::lmao::
  • 1

JOIN THE INDIE GAME DEV COMMUNITY.
TullochCo.com -- Help. Create. Learn & Connect Indie Developers
http://forums.TullochCo.com

 


#19 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 10 May 2007 - 09:54 PM

What FTP implementation does it use? FTP file listings are not standardized, so it's almost impossible to work on every server.

And using MySQL for high-scores - NO! In fact, send me your game link and expect a hacked high-score table as soon as my debugger boots. =)

FTP isn't good either, but it is a tiny bit better.

Go with a server that the clients send scores to and the server uploads to the MySQL or FTP server. And vice versa. Much better if you get it right.
  • -2

#20 tristiano77

tristiano77

    GMC Member

  • GMC Member
  • 349 posts
  • Version:Unknown

Posted 16 May 2007 - 02:36 AM

quick question. is there a funtion testing the validity of a pasword eg:
if passvalid(google.com,********)=true you know the rest

Edited by tristiano77, 16 May 2007 - 02:38 AM.

  • -1

#21 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 18 May 2007 - 08:46 PM

quick question. is there a funtion testing the validity of a pasword eg:

if passvalid(google.com,********)=true you know the rest

<{POST_SNAPBACK}>


You should connect to the server and then use the login function.
The login function should return false when the user login is incorrect.
  • 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.

#22 mechanikos

mechanikos

    GMC Member

  • New Member
  • 453 posts

Posted 19 May 2007 - 03:32 PM

How about using a HTML form submittal?

If there was a php file like this

$quantity = $_POST['quantity'];
print "The number was ".$quantity.;

It seems to me there should be a way to _POST data to the php file, like you would with an HTML form submittal, without actually opening up a browser.
  • 0

#23 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 19 May 2007 - 03:35 PM

How about using a HTML form submittal?

If there was a php file like this

$quantity = $_POST['quantity'];
print "The number was ".$quantity.;

It seems to me there should be a way to _POST data to the php file, like you would with an HTML form submittal, without actually opening up a browser.

<{POST_SNAPBACK}>


There is a way.
You can make a wrapper for an url handler like CURL to execute post requests.
  • 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.

#24 Dinsdale

Dinsdale

    GMC Member

  • New Member
  • 1389 posts

Posted 19 May 2007 - 08:08 PM

I am having some trouble. i can get connected upload files ect. But I am trying to do something and don't know how. I want to search for the first file that is not a directory.
If a file that isnt a directory exists get the name of the first file that isnt a directory and then delete that file. However if no file exists that isnt a directory upload a file.
  • 0

This week I recommend:
Posted Image


#25 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 29 May 2007 - 07:46 PM

the program just freezes when i use the demo!

it wont connect
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#26 Shaester14

Shaester14

    Weird Productions 2007

  • New Member
  • 204 posts

Posted 30 May 2007 - 01:34 AM

h0bbel, this is a very useful DLL! I was looking for something like this, and it works great! Thanks for making it! 10/10 is my rating! Simply awesome!
  • 0



#27 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 30 May 2007 - 06:02 AM

the program just freezes when i use the demo!

it wont connect

<{POST_SNAPBACK}>


Does the FTP server you want to connect to work on other FTP clients (like firefox) ?
  • 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.

#28 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 30 May 2007 - 11:16 AM

think so

ok my ftp details what i entered

ftp://ftp.funkyfootie.com and funkyfootie.com
********#funkyfootie.com and *******
********
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#29 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 31 May 2007 - 06:55 PM

Does that problem only occur when you use that certain server ?
  • 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.

#30 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 31 May 2007 - 08:33 PM

Does that problem only occur when you use that certain server ?

<{POST_SNAPBACK}>

i only got 1 server so...
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#31 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 01 August 2007 - 10:35 PM

What does the last argument (argument3) in the connect function do? It isn't used in the demo.
  • 0

#32 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 05 August 2007 - 09:38 AM

What does the last argument (argument3) in the connect function do? It isn't used in the demo.

<{POST_SNAPBACK}>


You can set it to 1 to use passive mode.

If you want to know what passive mode is:
http://en.wikipedia....nection_Methods
  • 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.

#33 ::Quick::

::Quick::

    GMC Member

  • New Member
  • 44 posts

Posted 22 August 2007 - 11:00 AM

I don't use the GUI, but people who play my games have SOME HOW managed to sniff out the passwords, even though it is a combination of random numbers and letters. Is there anyway you could fix this?
  • 0

#34 tuntis

tuntis

    GMC Member

  • New Member
  • 1839 posts

Posted 01 October 2007 - 06:31 PM

You can't use this for an MMORPG: get all your data, etc. from FTP means that any script kiddie with a packet editor can get your FTP user information, allowing them to do whatever they want to in the server.

Edited by Tuntis, 02 October 2007 - 04:56 AM.

  • 0

#35 tristiano77

tristiano77

    GMC Member

  • GMC Member
  • 349 posts
  • Version:Unknown

Posted 03 October 2007 - 12:56 AM

what code do i use to upload a file?

crap double post :medieval: stupid interwebz.

Edited by tristiano77, 03 October 2007 - 01:31 AM.

  • 0

#36 tristiano77

tristiano77

    GMC Member

  • GMC Member
  • 349 posts
  • Version:Unknown

Posted 03 October 2007 - 01:28 AM

what code do i use to upload a file?
  • 0

#37 e_barroga

e_barroga

    ES Studios Leader

  • GMC Member
  • 2475 posts

Posted 24 October 2007 - 03:33 PM

Does this thing time out?

Like if I connected 2 hours ago, would I still need to use the connect function to upload a file again?
  • 0

rsa_gmc_sig.png

 

logoGIF1.gif EXTENSION. PM TO PURCHASE LICENSE.


#38 Ivo Georgiev

Ivo Georgiev

    GMC Member

  • New Member
  • 274 posts

Posted 24 October 2007 - 04:22 PM

I dont know how you get time for doing so many DLL's!
Looks perfect, will edit!
  • 0

#39 Zipo™

Zipo™

    GMC Member

  • New Member
  • 14 posts

Posted 24 October 2007 - 08:31 PM

He's professional

Edited by Zipo™, 24 October 2007 - 08:31 PM.

  • 0

#40 brod

brod

    Brian RODriguez

  • GMC Member
  • 2050 posts
  • Version:GM8

Posted 04 November 2007 - 01:34 AM

Yeah... I can't figure out how to upload the files either.

The only function I see that might have to do with it, says that it downloads the file, not uploads it. (In help file, FTP_PutFile)
  • 0

#41 zedman1000

zedman1000

    GMC Member

  • New Member
  • 715 posts

Posted 04 November 2007 - 01:38 AM

Put file uploads, get file downloads.
  • 0

#42 brod

brod

    Brian RODriguez

  • GMC Member
  • 2050 posts
  • Version:GM8

Posted 04 November 2007 - 01:51 AM

Hmm, I can't seem to get it to work...

I'm trying to upload an image to the server, as so.

Directory = img.png/ (It's not an actual image)
Image to be uploaded = img1.png (This is an actual image)

So I used this:
FTP_PutFile("img1.png","/img.png/");

Yet it still does not work...
  • 0

#43 zedman1000

zedman1000

    GMC Member

  • New Member
  • 715 posts

Posted 04 November 2007 - 02:21 AM

Here is my exact code i am using which works:
FTP_PutFile ('FILE_DEBUG.txt', 'WallShare/FILE_DEBUG.txt');

  • 0

#44 brod

brod

    Brian RODriguez

  • GMC Member
  • 2050 posts
  • Version:GM8

Posted 04 November 2007 - 04:41 PM

Ah yes, I understand it now! Great job on this h0bbel, it's a very good dll! :)

Edited by brod, 04 November 2007 - 05:29 PM.

  • 0

#45 GisleAune

GisleAune

    GMC Member

  • New Member
  • 278 posts

Posted 21 December 2007 - 05:56 PM

tdmgames, remove "ftp://" from ur U.R.L.
it works for me then
  • 0
Taming the mighty Ogre3D...

Sorry, my avatar can't be grasped by mere mortals.

#46 GisleAune

GisleAune

    GMC Member

  • New Member
  • 278 posts

Posted 29 December 2007 - 10:50 PM

EDIT, Oh sorry, i posted a time ago and now i forgot to check if i had the last one. PLZ delete this reply. PLZ!!!!!!!!!

Add a working help file with a description of funtions and arguments in them and some example codes.

sometimes it doesn't connect at the third time. is it a bug?

Edited by GisleAune, 29 December 2007 - 10:51 PM.

  • 0
Taming the mighty Ogre3D...

Sorry, my avatar can't be grasped by mere mortals.

#47 Creative Pixels

Creative Pixels

    GMC Member

  • New Member
  • 162 posts

Posted 12 July 2008 - 11:32 PM

This is exactly what I was looking for, just a question though. If you always wanted this program to connect to the same server for information, wouldn't that mean a person looking through the GMK could find the password for the internet server?
  • 0

#48 tuntis

tuntis

    GMC Member

  • New Member
  • 1839 posts

Posted 13 July 2008 - 12:07 AM

This is exactly what I was looking for, just a question though. If you always wanted this program to connect to the same server for information, wouldn't that mean a person looking through the GMK could find the password for the internet server?

Duh?
  • 0

#49 Creative Pixels

Creative Pixels

    GMC Member

  • New Member
  • 162 posts

Posted 13 July 2008 - 12:55 PM

This is exactly what I was looking for, just a question though. If you always wanted this program to connect to the same server for information, wouldn't that mean a person looking through the GMK could find the password for the internet server?

Duh?


Then maybe it wouldn't be safe to use then? Could a person hack the .exe and find out that information?
  • 0

#50 death-droid

death-droid

    GMC Member

  • GMC Member
  • 2600 posts

Posted 14 July 2008 - 11:20 AM

This is exactly what I was looking for, just a question though. If you always wanted this program to connect to the same server for information, wouldn't that mean a person looking through the GMK could find the password for the internet server?

Duh?


Then maybe it wouldn't be safe to use then? Could a person hack the .exe and find out that information?

Theres no real way you can stop people from getting the passwords etc. because they can probably catch the packets going sent and rip the password out of them/
  • 0

Posted Image