Asset - Extension Arduino DLL

Does anyone know if this can work with mac version of gamemaker and if not... will i have to create my own new extension. ?

reason: I want to be able to send some data from the game in gamemaker to my arduino for some physical outputs.
 

Buff

Member
Does anyone know if this can work with mac version of gamemaker and if not... will i have to create my own new extension. ?

reason: I want to be able to send some data from the game in gamemaker to my arduino for some physical outputs.
This extension will not work on Mac, it is for Windows only. You'd have to create a new Mac extension if you want to talk to an Arduino on Mac.
 

Kyon

Member
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:
 
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:

yes it can. using an arduino for INPUT to gms2 is easy. Im already doign that no problem.
I want to OUTPUT to arduino to a specific set of hardware.

Not to worry. Ill build the extension myself and then chuck it up for others.

If i cant be bothered ill use the shell extension to execute a mini executable app that i can code in processing that will talk to the arduino instead. bit long winded but will work.
 
Arduino now a days can setup as a gamepad, and GMS2 recognizes that.
(I believe you have to set the output to something like "Keyboard + Mouse + Gamepad + Serial")

I did it a while a go, made a "controller" out of 3 sonar sensors, made a little algoritmic sound-game in it. Here is a video:
btw - thats lovely :)
 

LilRony

Member
Hi, I'm working with an Arduino Leonardo and I'm trying to simply write a bitstring (eg "011") to the arduino, and use that string to turn on lights 0-2.
But I can't seem to get a connection with arduino_create(). When I exit out of the game, the compile window says "ERROR!!!Compile finished ..."

Do you know if this extension works with the Leonardo chip? My suspicion is that it doesn't, because I didn't have very hard of a time with my Uno.
 

ID3

Member
yes it can. using an arduino for INPUT to gms2 is easy. Im already doign that no problem.
Please, can You tell me what exactly You did in game maker to receive it? I have a project stuck, and trying to get a variable from Arduino. This would help a lot.
I guess I'm not experienced enough at the moment with extensions or other (than GML) languages. Or is it something you do on Arduino and GM:S2 gets it with gamepad commands?

Thank You!
 
Hello everyone! Can someone explain how to use it now? I would like a description of the functions.

I can’t even get connected to the arduino. The connection id is always -1. Port and baud are specified correctly.
 
Partially solved the problem. The port was occupied by the console from the Arduino IDE. But who can write detailed instructions on how to use the functions?
 

Ninnin

Member
@loktar_o_gar : You've got an exemple in GM8 you can import to GM:S 2 and see how it works, it's very simple.
@Buff: In GM:S 2, when i want to use arduino_delete(ard); in the exemple in the zip file, in an alarm set at 5 seconds, on an open and valid COM port, the game crash with no compil error, only this in "output" window:
X://windows/Runner.exe exited with non-zero status (-1073741819)

No other messages and this is only when i want to use this precise function (arduino_delete).
 

Ninnin

Member
Hi. Is there a bug inside this asset ? I could access fine from com 1 to com 7/8, but if i try to connect to com 11 and + there's no connexion. Only an error:
"ERROR: Handle was not attached. Reason: com12 not available."
"ERROR: Handle was not attached. Reason: com13 not available."
"ERROR: Handle was not attached. Reason: com14 not available."
"ERROR: Handle was not attached. Reason: com15 not available."
etc.....

I just want to precise that the com port are valids and works great with a serial monitor on it, and i don't connect serial monitor when i try to connect with GM:S 2.
 
Hopefully this is not necroposting, but is this still compatible with GMS2, or do i need to use GM8 and then port it to GMS2?
Also, this tool seems very helpful for a robotics project i'm making haha
 
Top