External data
Posted: Fri Dec 15, 2017 9:33 am
Hi everyone!
A thought on a whim - does ZScript have any capabilities for retrieving data from outside sources during runtime, not just during initialization? I'd like to read variables from a file and to use their results to affect the game world.
My actual goal is an experiment to get ZDoom to react to changing data that comes from a URL, but as having a feature do to that would be wide open to abuse, I imagine that I'd have to put a middleman in to poll that endpoint and dump it to a local file. (This isn't anything I'm planning on releasing - just something fun for an engineering day at work, creating a literal "troubleshooter" in ZDoom.)
A thought on a whim - does ZScript have any capabilities for retrieving data from outside sources during runtime, not just during initialization? I'd like to read variables from a file and to use their results to affect the game world.
My actual goal is an experiment to get ZDoom to react to changing data that comes from a URL, but as having a feature do to that would be wide open to abuse, I imagine that I'd have to put a middleman in to poll that endpoint and dump it to a local file. (This isn't anything I'm planning on releasing - just something fun for an engineering day at work, creating a literal "troubleshooter" in ZDoom.)