I don't think ACS knows anything about strings. When you say "foo", for example, the ACS compiler maps "foo" to an integer. So whenever you say "foo" you're really passing 37 or some such. The ACS interpreter knows nothing of the insides of the stringk, AFAIK.Simbey wrote: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.
But being able to send and receive data from inside a game would be cool. What would be even better would be if an ACS script could also receive and act on OSC messages or some such. Program your toaster to send a message to ZDoom when your toast is done and spawn a bunch of chaingunners or something
