Upload & Download Files with Rgss

the ftp server is easily accessed by browser. I have no problems with my ftp server, it happens only when i´m trying by the rpg maker script =\
I got freeze in this line:

if FGF.call(@fb,c,"#{int}/#{c}",0,32,2,0)==0

it´s some Win32API?
any1 know what can I do?
I´m getting hopeless =\
thanks
oh, i contacted my webhost and he said everything is right
check?
Hi,
How did you call your download ?
Regards,

Berka
like this:

Net::FTP.download('/episodio1/ep1-formulario.doc')

and i tryed put the file "ep-1formulario.doc" in the root like:

Net::FTP.download('/ep1-formulario.doc')

but i have no results.
Hey, can't you read the doc ?

Quote:
Net::Ftp.download("dir_on_ftp/file.zip","./Graphics")

You have to specify the distant path (on the ftp) and the local path, the target on your project.
E.g. the file "file.zip" which is located on the remote directory "dir_on_ftp" will be downloaded to the "Graphics" directory on your project.

regards anyway,

berka
Yeah, i can read the doc.

but I don´t need to specify the local path... i´ll be dowloaded into the game root directory, isn´t?

i had already tryed it.

another tip?

But thanks anyway.
i got it...

your code works only in the 21 port... If you set another port to listen FTP it isn´t work.

=D

ty for all help berka
Yes, cause the conventional default port for ftp servers is 21.
But if you have got a private server you can change this number and open another port.
Happy you can run the script !

regards,

Berka
nops,

i have a private server and i can´t run the application.
Only in default port =D
Please berka can put the demo with rpg maker xp with an example not understand your example of the vx xp in the work I do to download and upload files i am creating an online game with rpg maker xp i I would like to use this script * for autopach to serve to start the game is very important to me please upload a demo with an example of this script * with rpg maker xp the link is down I hope your answer thanks :sad:
A demo isn't going to help much; it's all one line commands really which if you know RGSS are simple to implement, but if you don't, are going to take a lot more to understand. You just literally call:

receive : Net::FTP.download("file_on_ftp","./Graphics")

Wherever you need it. I've had no problem doing this and was using it to make an auto-updater but unfortunately I never finished it and haven't touched it in some time; it was not much more than just calling that line though.

Is there anything specifically you don't understand / need help with?
I need the script in rpgmaker xp.
when I start my game online, I want script.rxdata i download the maps so that there are errors or if some hacker changed some parameter of the game T_T I just need a demo with rpgmaker xp this is my online game could help me? http://www.youtube.com/watch?v=FrJqLM8Ppks
Quick Question, have you planned for a VX Ace edition or does it adapt?
I don't think there is anything in the script that shouldn't be cross compatible, other than the example scene. As the scene is just an example though, you can easily implement it in any of the makers, just making the scenes however you would normally, and adding in the lines from this script for uploading/downloading files. I know you posted that a couple of months ago, but if you have any trouble doing it let me know. It should be fine though, pretty sure.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=63165