External data

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: External data

Re: External data

by DavidN » Sat Dec 16, 2017 9:25 am

Thanks for the thoughts - it makes perfect sense that this would not be officially supported :) I'll try my hand at the lump reading way.

Re: External data

by Nash » Sat Dec 16, 2017 12:29 am

Don't quote me on this but I don't think ZDoom ever reads anything at runtime... all data is built at startup (even the INI config stuff is only read on startup once I think, so if you change your INI outside during a running session, it won't affect the game).

I can imagine Things Blowing Up (especially concerning the deterministic playsim stuff Doom relies on) if things were any other way...

Re: External data

by Blue Shadow » Fri Dec 15, 2017 8:38 pm

There's this, but you can only read things from a loaded lump.

External data

by DavidN » 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.)

Top