antonpup / Aurora

Unified lighting effects across multiple brands and various games.
http://www.project-aurora.com/
MIT License
1.83k stars 368 forks source link

Percent effect layer #393

Closed DiaoticHaze closed 7 years ago

DiaoticHaze commented 7 years ago

When adding your own game using aurora, how does one go about adding values such as "health" instead of just hour, minute, second, ram etc.. For example Dota 2's health options.

antonpup commented 7 years ago

Well.. they'd have to be a part of a profile with their own GameState (for example RL: https://github.com/antonpup/Aurora/blob/master/Project-Aurora/Profiles/RocketLeague/GSI/GameState_RocketLeague.cs )

DiaoticHaze commented 7 years ago

I'm a little confused on what that measn xD I'm sorry, does that mean it is or isn't possible?

antonpup commented 7 years ago

If you want to add support for a new game, then you can copy one of the existing profiles, adjust the GameState with values that you wish to expose, and then it should work.

DiaoticHaze commented 7 years ago

oh ok, that makes a lot more sense. How do I adjust the GameState?

antonpup commented 7 years ago

Well.. If you want to make a variable that is accessible everywhere, then you add it to GameState.cs, otherwise you modify the GameState with the copied profile. It will be automatically parsed for values when registered in the ProfileManager.

DiaoticHaze commented 7 years ago

I'm trying to do it personally, because I'm still new to this. I tried copying the profile, but for one it didn't show up on aurora, and for two I couldn't find a place to edit the script. Could you do a video on this at some time? I'd be willing to donate money (10 or more USD) for your time spent.

DiaoticHaze commented 7 years ago

In my example I'm trying to take the health bar from a game called Osu and display it on my keyboard

antonpup commented 7 years ago

Well.. do you have a way of getting the current health amount from the game?

DiaoticHaze commented 7 years ago

I know it's accessible, but I don't have any programs downloaded to access their script...

antonpup commented 7 years ago

It would be a good idea to first find out how to access the health information before attempting to add it to Aurora. :P

DiaoticHaze commented 7 years ago

Any tips? D; I'm fairly new to scripting, what program should I use to access such files?

DiaoticHaze commented 7 years ago

how did you find the file for health in dota 2?

antonpup commented 7 years ago

Health and other information for Dota 2 and CSGo are exposed via Game State Integration. Which as far as I know only those two games support.

DiaoticHaze commented 7 years ago

then how does Aurora also have a profile including health for payday 2?

JoniSykes commented 7 years ago

@DiaoticHaze The best thing you can do is google your game + a phrase such as 'Game State Integration' or 'scripting' etc... until you find out how that game exposes its data or how scripters have accessed it. With that information you can then set up the config/listeners in Aurora to access the info. For example, @antonpup knows that Dota2's info is broadcast to a http URL if a config file is placed in a certain directory (This is a feature of the game, not Aurora). Aurora can then receive data from that URL and parse it to determine what the data means and what to do with it.

antonpup commented 7 years ago

For Payday 2, @simon-wh made a GSI-like mod for it. And we use that to receive game data.

antonpup commented 7 years ago

I am going to close this issue, as it's more of a question, not a real problem with Aurora.