1 registered members (AndrewAMD),
1,135
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Idea for aum96
[Re: George]
#346126
11/01/10 14:47
11/01/10 14:47
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
OP
Serious User
|
OP
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
Actually George what a lot of people didn't tell me is that Acknex actually already includes a very helpful function for this.
ftp_download(STRING* url, STRING* path, STRING* username, STRING* password)
best part of all it's free!!! I love using things that come with the engine as oppose to having on someone else. Great work! Also as for releasing updates/patches, everyone should check out wyday! Gonna probably gonna add it to the wiki.
Last edited by PrenceOfDarkness; 11/01/10 14:47.
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
Re: Idea for aum96
[Re: PrenceOfDarkness]
#346133
11/01/10 17:42
11/01/10 17:42
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
You really want to include your username and password to your FTP server in your client application?! Srsly, think twice about it!
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Idea for aum96
[Re: WretchedSid]
#346184
11/02/10 11:44
11/02/10 11:44
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
OP
Serious User
|
OP
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
just sid what do you suggest then?
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
Re: Idea for aum96
[Re: PrenceOfDarkness]
#346186
11/02/10 11:56
11/02/10 11:56
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
An HTTP request for the file. I don't know if Gamestudio supports it (I think I saw something like this a while ago). This would be no security risk for you as you don't include you full FTP account.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Idea for aum96
[Re: Quad]
#346390
11/05/10 06:22
11/05/10 06:22
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
OP
Serious User
|
OP
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
http_proxy(STRING* proxy,var port) Sets a http proxy server for the connection to the internet. If no proxy is used, this function needs not to be called. http_sendpost(STRING* url, STRING* data) Sends http data with the "post" methode to a web server and returns a httpID. With this httpID the transfer can be controlled with functions like http_status. If no data has to be sent, NULL can be passed for the data string. After the post is finished, the httpID has to be freed with http_free. http_status(var httpid) Returns information about a http post:
2 connection problem 1 data was received 0 waiting for data from the server -1 invalid httpid
http_result(var httpid, STRING* result) Stores the received data of a http post in the result string and returns the length of the received data.
http_free(var httpid) Frees the httpID of a http post and stops the transfer. Must be called after each http post. Parameters: proxy - proxy server (example: "proxy-host.com"), STRING* or char*. port - port of the proxy servers (example: 8080). url - url of the web server (example: "http://www.testserver.com/svlist.php"), STRING* or char* data - string containing the data to be sent (example: "svname=gameserver&players=16&pw=yes"), STRING*, char*, or NULL. result - STRING* to receive the result data of the http post oeration. httpid - httpID of the post, returned by http_post().
Remarks: Up to 5 http posts can be run at the same time. All STRING* arguments can also be char* with at least 3 characters (except for http_result). All functions return -1 if an error occured and 1 if everything went ok (except if something else is mentioned in the function description). The plugin acknet.dll must be loaded and the file acknet.h must be included for using the ftp functions. Version: A7.84 P LC
that's what it says in the help manual. I don't think that includes anything we're talking about here.
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
Re: Idea for aum96
[Re: PrenceOfDarkness]
#346392
11/05/10 08:31
11/05/10 08:31
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
A POST should also work, until you explicitly banned it (like they did for the Gamestudio manual). Here is the output from one of my server scripts:
HTTP/1.1 200 OK
Date: Fri, 05 Nov 2010 08:29:04 GMT
Server: Apache
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: Identity
Content-Type: text/html
66308
(HTTP GET)
HTTP/1.1 200 OK
Date: Fri, 05 Nov 2010 08:27:13 GMT
Server: Apache
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: Identity
Content-Type: text/html
66308
(HTTP POST) As you can see, only the time in the header differs a bit, but I'm pretty sure that the http_sendPost() function already cropped this out of the answer. However, like I already mentioned, there are scripts that don't allow HTTP POST, like the manual. I got this response from http://www.conitec.net/beta/http.htm
HTTP/1.1 405 Method Not Allowed
Date: Fri, 05 Nov 2010 08:30:42 GMT
Server: Apache
Allow: GET, HEAD, OPTIONS
Connection: close
Transfer-Encoding: Identity
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method POST is not allowed for the URL /beta/http.htm.<P>
</BODY></HTML>
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Idea for aum96
[Re: WretchedSid]
#349132
12/04/10 09:07
12/04/10 09:07
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I know I could spend 100euros for ANet but I'm rather happy with A7 multiplayer and I just want one more feature you know? Sending a file through 3dgs would be great or I guess even through FTP would be okay. Anyone know where I can get that extra functionality for free or for cheap? If you don't want to spend 100 euros for the ANet Professional Edition, maybe the ANet Web Edition is the right choice for you. It costs only a 29 euros and offers you ftp support. File sending over the normal client/server connection is only offered by ANet Professional. From the homepage: Create highscores, internet/lan serverlists, file uploads,... with ANet Web and it's HTTP, FTP and UDP functions. Additionally you get one month free support.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|