I'm trying to use an LED strip to make reactive lights for a game called Beat Saber. The mod or what not sends data to a com port with numbers 1-6 for the different colors/effects. How would I go about checking what gets send from the game?
I have a doubt that this is an Arduino question.
Do I understand you correctly in that you want to 'hack' the game in some way so it can send data to the com port?
sterretje:
I have a doubt that this is an Arduino question.Do I understand you correctly in that you want to 'hack' the game in some way so it can send data to the com port?
No no, there is a mod in the community that sends a com port of your choosing a numerical number and i just dont know how to access it since it isnt specified in the mod.
What we have here is a failure to communicate.
Please explain this: “The mod or what not sends data to a com port ”
Please explain this: “there is a mod in the community that sends a com port”
But maybe first explain this: "the community"...
"the community" Modding community?? What else..?
"The mod or what not sends data to a com port "
"there is a mod in the community that sends a com port"
The mod is a .dll file that sends data to a com port when a note in game is hit.
# BS-Lightoutput
A Beatsaber mod that allows you to output the lightning events as a serial signal to be used in a Arduino,ESP32 and more
The mod outputs a string as a serial signal each time a lightning event happens.
It outputs a string in the following format: Type(intenger)/Value(intenger) as Example "1/5"
The type can correspond to a specific light or speed of lasers.
Type 0-4 are the 5 main lights. The lights can be controlled with the following values:
Value : 0 = no light (turn completly off)
1 = blue light on
2 = blue light flash
3 = blue light fade out
4 = none
5 = red light on
6 = red light flash
7 = red light fade out
Type 12 and 13 are the speed of the left/right laser (Type 2 and 3) and the value tied to the Speed types controlls the speed.
Eachtime a beatmap starts it also sends out the colors used for the map. It does it in the following format:
C1 or C2(like Left saber/Right saber)/R/G/B -R,G,B are all integers from 0-255
a valid example would be "C1/255/0/0" -which would be Red for the first color.
In the ingame options you can set wich COM port and baudrate it should use.
It says it outputs a number as a string variable but I don't know how to call on that variable.
ichimo:
"the community" Modding community?? What else..?
Um how about "The Arduino Community" seeing as that's where you posted.
This is an Arduino question, yes?
meltDown:
Um how about "The Arduino Community" seeing as that's where you posted.This is an Arduino question, yes?
Ok, explain how which community it is, is important to a question, relating to calling upon a string variable being sent to a com port. Considering I stated the game and that it was a mod I was using, you'd infer it's the modding community for said game I stated. I asked the modding community but the author is inactive although the mod works. Not many people in that community use the mod so I've gotten no help in that regard. The next feasible community is asking this one since it's data I need to call through the arduino programs. Now how does any of that matter to the question I was asking?
ichimo:
since it's data I need to call through the arduino programs.
Ah, at last some clarity....Perhaps you should have opened with that and left the other carp out.
If you want to take stuff into Arduino to see what it is, you could probably just use Example 1 from Robin2's seminal serial tutorial.
Was that not a given... I'm asking on the arduino forums about calling a variable.
again: how to extract numbers from the serial is explained here Serial Input Basics - updated - Introductory Tutorials - Arduino Forum
what part of that tutorial you don't understand?
noiasca:
again: how to extract numbers from the serial is explained here Serial Input Basics - updated - Introductory Tutorials - Arduino Forumwhat part of that tutorial you don't understand?
Never said I didn't understand it, I'm reading it right now. Didn't know this existed.
ichimo:
Was that not a given...
No.
But anyhoo, moving on, I cut and paste this:
ichimo:
C1/255/0/0
... into the monitor with Robin2's Example 1 running, and got this as expected:
<Arduino is ready>
This just in ... C
This just in ... 1
This just in ... /
This just in ... 2
This just in ... 5
This just in ... 5
This just in ... /
This just in ... 0
This just in ... /
This just in ... 0
...which answers your question:
ichimo:
How would I go about checking what gets send from the game?
Now you just need to figure out how to use that in an Arduino sketch.