|
| 29 Oct 2011 09:02 PM |
Ok, so I am planning to make an asset downloader. What it would do is download an asset from its ID and let you choose to save it somewhere on your hard drive in XML format. I did not decide yet between Java and C++ to do this, but one thing is sure: it must be portable, that's the whole point of it, so don't suggest me to use non-portable libraries (if I use C++, if I use Java, then there's no problem anymore).
I don't really know much about networking and all that, I actually don't even know how to download a file with a specific user agent.
This program would be useful to download assets without opening Roblox Studio and look at them in XML. It would also be useful to download assets in XML and being able to look at them even if you aren't on Windows or Mac, which would be useful in my case, since I'm often on Ubuntu.
I want it to be simple: you open the program, it asks you to give it the ID of the asset, it downloads the asset, it opens a save dialog and asks you where to save it and then it saves the asset at that location.
Sadly, once again, I don't know how to download a file with a specific user agent.
Note: http://www.roblox.com/Forum/ShowPost.aspx?PostID=54991025
So.. I think I need some help with downloading the asset. I can do all the rest myself, it's easy. |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 29 Oct 2011 09:05 PM |
JARVA SUCKS
C++
I can make a .NET one in 3 seconds :3 |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2011 09:15 PM |
LocalChum, it needs to be portable. That is not debatable. The main reason I want to make that program is to be able to view assets on Ubuntu.
I only need help to know how to download a file with a specific user agent. |
|
|
| Report Abuse |
|
|
dap300
|
  |
| Joined: 23 Nov 2009 |
| Total Posts: 4738 |
|
|
| 29 Oct 2011 09:16 PM |
Get firefox and addon of useragent changer.
Change useragent to Roblox/WinInet
ENJOY. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2011 09:18 PM |
"Get firefox and addon of useragent changer.
Change useragent to Roblox/WinInet
ENJOY."
:O
I'm going to try. =D
But.. I still want to make that program. |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 29 Oct 2011 09:36 PM |
You mean like this? (VBS)
'Set your settings
strFileURL = "URL_GOES_HERE" strHDLocation = "C:\file.zip"
' Fetch the file
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
objXMLHTTP.open "GET", strFileURL, false objXMLHTTP.send()
If objXMLHTTP.Status = 200 Then Set objADOStream = CreateObject("ADODB.Stream") objADOStream.Open objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objXMLHTTP.ResponseBody objADOStream.Position = 0 'Set the stream position to the start
Set objFSO = Createobject("Scripting.FileSystemObject") If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile strHDLocation Set objFSO = Nothing
objADOStream.SaveToFile strHDLocation objADOStream.Close Set objADOStream = Nothing End if
Set objXMLHTTP = Nothing |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 29 Oct 2011 09:38 PM |
| @LC: I agree the syntax is ugly, but VBS's functionality outweighs it's terrible syntax. |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 29 Oct 2011 09:39 PM |
I hate being called LC
*moar barf* |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 29 Oct 2011 09:40 PM |
"LocalChum, it needs to be portable. That is not debatable. The main reason I want to make that program is to be able to view assets on Ubuntu."
I didn't see the portable part. That rules out VBS. :\ |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
| |
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
|
| 29 Oct 2011 09:59 PM |
VBS is not portable. And its syntax is SOOOOOO ugly.
C++ or Java. I need to know how to download a file with a specific user agent. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 29 Oct 2011 10:02 PM |
| I think it has to have a certain UserAgent to qualify for receiving the asset. |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 29 Oct 2011 10:05 PM |
"C++ or Java. I need to know how to download a file with a specific user agent."
Do you wanna use some library or do you wanna make the HTTP requests using sockets? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2011 10:19 PM |
"Do you wanna use some library or do you wanna make the HTTP requests using sockets?"
A library, of course! :o
Qt has some stuff for that, doesn't it? I'm sure it does, I've seen that somewhere. Qt isn't only a graphical library, trololol. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2011 10:22 PM |
| Wait... This just made me think about something.. When you play a game, Roblox Studio downloads the place. What if... what if you made a program that pretends to be Roblox Studio and that pretends to want to play a place? Roblox will give it the place? That'd be an awesome place stealing "exploit". |
|
|
| Report Abuse |
|
|
dap300
|
  |
| Joined: 23 Nov 2009 |
| Total Posts: 4738 |
|
|
| 29 Oct 2011 10:43 PM |
Or you could just do content stealing with wireshark.
WireShark can intercept some of data, but not all. |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 30 Oct 2011 12:07 AM |
| Qt has pretty much everything one would expect for a cross platform framework. And yes, I think it does do HTTP requests. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 08:48 AM |
@myrkos
Perhaps I should look in the documentation to find how to send a request with a specific user agent.
Qt is awesome. :D |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 09:01 AM |
I made something like that in PHP once. It's deleted, now, and I have no idea how I made it.
Anyway, Oyus. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 09:04 AM |
Already did, kthxbai.
~+[CROOKITY BANDED SNAKES]+~ |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 09:05 AM |
Apache commons is epical! >:D
~+[CROOKITY BANDED SNAKES]+~ |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 09:06 AM |
"Wait... This just made me think about something.. When you play a game, Roblox Studio downloads the place. What if... what if you made a program that pretends to be Roblox Studio and that pretends to want to play a place? Roblox will give it the place? That'd be an awesome place stealing "exploit"."
Not a chance, roblox studio uses your place hash and/or your roblox cookie to get your place securely.
You'd have to make a log in box to get dah cookiez.
~+[CROOKITY BANDED SNAKES]+~ |
|
|
| Report Abuse |
|
|
| |
|