[hlcoders] Control and acquire data from outside the game
Hello everyone! I am an amature programmer working with some small scale industrial control systems (PLC, data acquisition, I/O, Motion control, micro-controller etc). I was wondering if it is possible to develop a mod for HL2 that communicates with an external device via a COM (serial) port or UDP/IP. Can the non commercial (free) Source SDK provide a means to access DLL's or libraries that are not part of the Source SDK? A simple example of what I would like to do: I setup a PLC or to read/write ASCII data from its serial port hooked to a PC. Two simple ASCII commands tell the PLC to either activate an output (or sequence) or return a data value. This would allow software to poll the device and when a specific condition is met, a command sent to activate the output or sequence. PLC stands for Programmable Logic Controller, basically an embedded computer with modular or fixed I/O (Digital, analog etc.) for automating any kind of system. I would like to create a virtual control panel HL2 mod. The user would spawn in a simple map consisting of a room with a virtual control panel that displays a data value from the PLC in the form of a dynamically updating texture and present the player with a switch to press that send an ASCII command via the COM port to the PLC. I know of an open source serial library for windows that can be included into any source file and allow one to communicate with a COM port without external DLL's. Is this possible? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Control and acquire data from outside the game
Yes. There are no limitations at all, and in fact what you're asking about has already been done by the Falcon 3D mouse thingie people. On 15/12/2010 2:47, Thaddeus W wrote: Hello everyone! I am an amature programmer working with some small scale industrial control systems (PLC, data acquisition, I/O, Motion control, micro-controller etc). I was wondering if it is possible to develop a mod for HL2 that communicates with an external device via a COM (serial) port or UDP/IP. Can the non commercial (free) Source SDK provide a means to access DLL's or libraries that are not part of the Source SDK? A simple example of what I would like to do: I setup a PLC or to read/write ASCII data from its serial port hooked to a PC. Two simple ASCII commands tell the PLC to either activate an output (or sequence) or return a data value. This would allow software to poll the device and when a specific condition is met, a command sent to activate the output or sequence. PLC stands for Programmable Logic Controller, basically an embedded computer with modular or fixed I/O (Digital, analog etc.) for automating any kind of system. I would like to create a virtual control panel HL2 mod. The user would spawn in a simple map consisting of a room with a virtual control panel that displays a data value from the PLC in the form of a dynamically updating texture and present the player with a switch to press that send an ASCII command via the COM port to the PLC. I know of an open source serial library for windows that can be included into any source file and allow one to communicate with a COM port without external DLL's. Is this possible? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Control and acquire data from outside the game
Well yeah, every gameplay element is included in the sdk, so go for it and get wild, (also USB for fuck sake), I love BD9 too but USB work much better and it's quite easy to use ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders