Jump to content
  • 0

DOOM game controlling external lights (IoT devices)


Sebo

Question

Hi!
Is there a way to let the Game to control the devices in the real world (for instance IoT lighting outside the game)?
I would like for instance the red LED IoT Tuya lamp to be switched on whenever the player gets a hit in the game.

How could I register the lamp control script so that it will receive signals when the player gets hit?

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

Look, I'm no coder, so take everything I say with a grain of salt.

It's possible if you manage to code in the scripts required for everything to work correctly like a hit detection for the circuit/light, so if you're not too much of a coder, don't expect the devs of the sourceport you're using to code it in for you.

Share this post


Link to post
  • 0

Chuckling at the idea of someone making a "my house" map and connecting all their doors and oven and thermostat into skull switches and accidentally wrecking their house.

 

Sorry can't help with the topic in question but I think the easiest way, and it might not be that easy either, is to use some port that allows printing log files (no idea if any do), and therein have a script that just writes the computer time in milliseconds (or whatever) into a file and a separate process outside of Doom reading that file and making the lamp red if there's a time that has been within the past half a second or so. Your idea is cool though.

Edited by slowfade

Share this post


Link to post
  • 0
On 3/14/2023 at 7:56 AM, Sebo said:

Hi!
Is there a way to let the Game to control the devices in the real world (for instance IoT lighting outside the game)?
I would like for instance the red LED IoT Tuya lamp to be switched on whenever the player gets a hit in the game.

How could I register the lamp control script so that it will receive signals when the player gets hit?

If you know how to code, you could modify the source port of your choice (they are all open source) using whatever sdk your light uses.

Share this post


Link to post
  • 0
On 3/15/2023 at 10:20 PM, Enator18 said:

If you know how to code, you could modify the source port of your choice (they are all open source) using whatever sdk your light uses.

i am gonna look in the doom code to see if I can find the player damage function which is where you would put your code to activate the lights

Share this post


Link to post
  • 0

I am not a high skilled coder... but I have graduated MSc in IT and have some coding experience (although right now what I do is rather IT Product Management and etc).

I have no experience with any doom port... so the question is rather which one would you recommend for this idea and where it would be worth to start implementing this.

 

You can assume I've got a script that is already capable to control the light.

Share this post


Link to post
  • 0

I assume this modification shall be placed in the gameplay server source code... am I right? 🤔

Share this post


Link to post
  • 0
11 minutes ago, Sebo said:

I assume this modification shall be placed in the gameplay server source code... am I right? 🤔

There's no such thing as gameplay servers in Doom.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...