MQTT Client

Discussions about Coding and Scripting
User avatar
Shrimp
Skilled
Posts: 214
Joined: Wed Oct 10, 2018 11:15 am
Location: Australia

MQTT Client

Post by Shrimp » Thu Jul 07, 2022 2:25 pm

https://github.com/shrimpza/unrealscript-mqtt-client

Here's an MQTT client written in UnrealScript.

Now your mods can be part of the internet of things! Turn your lights on when Loque gets 10 headshots in a row! Use your household electricity usage to determine how many monsters to spawn in a map! Build a 3D representation of your house and have your robot vacuum mirror your in-game movements to clean the house in game and IRL!

The possibilities are endless!

This was mostly just a fun exercise in using the TcpLink class to do something interesting and facilitate some inter-system communications. A message queue seemed like a pretty simple thing to try.

The demo script/mutator shows how one might be able to publish data to gather some simple real-time game stats, rather than doing post-match log scraping, as one usage example.
ShrimpWorks
Unreal Archive - preserving over 25 years of user-created content for the Unreal series!

User avatar
Shrimp
Skilled
Posts: 214
Joined: Wed Oct 10, 2018 11:15 am
Location: Australia

Re: MQTT Client

Post by Shrimp » Sun Aug 07, 2022 7:22 am

Decided to publish a package for this, to make it easier to drop in:

- https://github.com/shrimpza/unrealscrip ... ses%2Fv101
ShrimpWorks
Unreal Archive - preserving over 25 years of user-created content for the Unreal series!

a9902957@nepwk.com
Average
Posts: 70
Joined: Thu Nov 03, 2011 5:12 am

Re: MQTT Client

Post by a9902957@nepwk.com » Sun Aug 07, 2022 11:00 am

:idea: Hmm, this should be the best practical application of this :thuup: :
Abuse it as an easy interface to craft in a DIY fashion one of those trakonya(sp?) USB devices that give you a small electrical shock when taking damage. :satan: :rock:
:gj: :tu: