Upload & Download Files with Rgss

If the data is encrypted and I use it to download into Graphics/ or Data/
Will it be downloaded in "silent mode"?
this is amazing to see...

I will see if it works :D
love it i have a few ideas i would love to try with this
Can you download directly into Game.rgssad or Game.rgss2a?
o, that would be amazing! with a option to make it restart itself to, like if true it uses print to tell the user that it has updated and must restart, when they press ok it restarts :)
Near: no, you have to download a complete rgssad file to change the encrypted game.
deathbethecost: F12 ?

thanks, guys,
berka
Hi berka, would you mind if my Trading script will require your script? (I'll tell people to download yours and put it above mine)

Also, I have a problem with the script. it downloads all the files perfectly, but then reports an error and the game is closed.
I think the scene doesn't detect the download has finished.
I used your RMXP demo, and just changed the .zip file download to:
Net::FTP.download('ftp://192.168.2.103/FTP/actor.trd',"./Graphics")
well, your syntax is wrong:

Net::FTP.download('/FTP/actor.trd',"./Graphics")
and in the script, you change the host by 192.168.2.103 (but, this is a subdomain ip !)

berka
Thanks, but it didn't help. Is sub-domain a bad thing? *im clueless here*
I'm using my computer as the server (using Golden-FTP). I can see & download the file when typing ftp://(my IP) on Firefox.
Do you have changed the ids (server, port, user, pass) by yours in the script ?

berka
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
ftp="192.168.2.103" #
port=21 #
identifiant="" #
motdepasse="" #
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
I'm not sure what my ID/ user name is, as the software only supports anonymous connections.
Now the scene closes, and shows no error message, but it doesn't download the file.
I'll try again with some other FTP server software..
Near wrote:
Can you download directly into Game.rgssad or Game.rgss2a?

You could, if you fixed the save_data method.

Are you all aware that using FTP is a huge security risk? With the decryption-programs these days one could easily obtain the username and password for that FTP connection. Make sure that combination only gives access to non-vital files!
I warned that in the script.
For more protection, I've reinitialized the ids immediately after using. BUT it's not enough ! Be careful !

berka
@me: How do I fix the save_data function?

@silver: What webhost do you use? You should look for an ftp tutorial on your host's site.

I only work with HTTP downloading. I don't need to upload files with rgss, just download them.
It's kinda offtopic, but..Could someone recommend me a FTP server that's easy to set, or has a detailed tutorial?
You can try a free webhost as olympe-network, but you have to create a website !

berka
FTP Upload don't works for me =(

Check please.
I've checked again: everything works for me.

So:
The first time you use the script, the firewall raises a security message. Select: Autorize.
example:

the ids:
  1. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
  2. ftp="ftp.server.com"                     #
  3. port=21                                      #  Modify !
  4. identifiant="berka"                        #
  5. motdepasse="1234"                      #
  6. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
Expand to see the code.


the ftp dl call:
  1. Net::FTP.download('/sitemap.xml')
Expand to see the code.

the file sitemap.xml, wich is located on your ftp's root will be dloaded into the root of your project, by default.


berka
humm.. :huh:

Please, give-me a example of comand to UPLOAD a file.
Example:

Net::FTP.upload("text.rvdata","/dir/")

berka
Hi, I get an error when I copy and paste everything to my own game:
Image

There isn't a progressbar, but it downloads all the files.
What can I do to make it right again.
(I'm Dutch, so don't mention my bad english :tongue: )
I have the same error too and i cant start
the Demo-Game...
Rickiiy wrote:
Hi, I get an error when I copy and paste everything to my own game:
Image

There isn't a progressbar, but it downloads all the files.
What can I do to make it right again.
(I'm Dutch, so don't mention my bad english :tongue: )


that's because Berka uses the japanese version of rmxp and the following code is not supported in the english version:
  1.    self.contents.font.name=$fontface
  2.     self.contents.font.size=$fontsize
Expand to see the code.


Kurikinton wrote:
I have the same error too and i cant start
the Demo-Game...


In the .ini file, change the library to RGSS103J.dll that should start the demo using the japanese rgss provided with the demo.
DraycosGoldaryn wrote:
In the .ini file, change the library to RGSS103J.dll that should start the demo using the japanese rgss provided with the demo.

Do I have to copy the RGSS103J.dll to my game too? And also change the Game.ini file?
By the way; it works ;D
hey, I've done the download in ftp =D... but i cant do the upload =\ and its not FTP´s server fault =\...

the upload creates the file in ftp server but named "D" and with 0 kb =\... someone know what is going on? check plz =\

ty =D
This is a great script. But it doesn't work for me. When I talk to the guy on the right in the XP version to try downloading, the game just freezes. No error message, it just stops.
yeah, it freezes here too. I´am using filezilla server as a ftp server and the log ii this:

150 Opening data channel for file transfer
425 cannot open data conection


check plz?

ty
What log is it ? Filezilla's ?
In this case, you have to contact your webhost .
Regards,

Berka
Log from filezilla:

...
150 Opening data channel for file transfer
425 cannot open data conection


i tried router ports and firewall.
@djrada: What you got there looks like wrong user data, not a fault of this script here... honestly speaking (and not for berka, who's willingly given a lot of off-topic support in this thread already), I say people who can't get a ftp upload/download running don't need a ftp upload/download script... and if you do, be smart enough to look it up in a Filezilla reference, or - which has also been previously mentioned - contact your web host, who should be able to tell you the cause of any error you get. Aside from that, any serious web host offers an online guide for that kind of stuff, or at least a FAQ of some sort. Just keep a look out for it, might be just your hostname or password being incorrect.

@Rickiiy: You could just as well fix the two lines Draycos posted... no need for any DLL or INI editing, copying or even awareness.

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