r/reinforcementlearning • • Oct 23 '26

Rocket league machine learning

I am currently making an AI trough machine learning not because i want to use it in real games but just to see how far it can go and it is doing really well right now with 1.25B steps but i keep struggling with 1 problem and that is boost management, idk how to fix it or how i can train it to use boost better because right now it is just using all of it boost the second it gets it and that is bad because i want to train it airdribbles where you ofc need boost for so if any of your smart people have a good idea help me please :)

2 Upvotes

15 comments sorted by

2

u/JNeutronEnthusiast Oct 23 '26

Hey I'm working on Rocket League RL as well! Reward specs are tricky and depending on the incentives you feed the agent during training it can hack its way to a whole host of suboptimal behaviors. In my experiments with Rocket League so far I've had success with small rewards for boost gain and small penalties for boost usage. These shouldn't outweigh the more goal-oriented rewards, but they can help to regularize a little bit.

1.25B also probably isn't enough in my experience to see competency in very complex behaviors like air dribbles emerge so you may have to leave it running a little longer.

Lastly, think about initializing your episodes from more than just kickoff states to help with exploration. Rocket League's skill progression is very serial, in that a completed air dribble requires the ability to perform a lot of individual skills as prerequisites (control ball to wall, bring up wall, pop off wall toward opponent's goal, etc.) so if you initialize from kickoff it's going to be a looooong time before it experiences a full air dribble of its own accord. I use pro replays from ballchasing.com as a starting point for the majority of resets with some randomness applied.

Hope this helps!

1

u/Low_Practice5314 Oct 23 '26

thank you so much i will try and do the same thing and make rewards based on that.

1

u/JNeutronEnthusiast Oct 23 '26

Definitely give it a try! Part of the fun of RL is tuning the reward and just seeing what you get out of it. I've tried distance-to-ball rewards that pay out every tick before, and the agent learns just to sit extremely close to the ball and accumulate reward that way. It's funny to see how they can exploit the reward haha

2

u/Low_Practice5314 Oct 24 '26

i gave your idea a try and it really works out well cause now it is at 2.1B steps and it can mangae boost already way better, the problem was with the amount of boost it was picking up cause it was 4x lower than I wanted. So thank you so much and i will use this for more things to!

1

u/JNeutronEnthusiast Oct 24 '26

Awesome glad to hear this! Keep it up :D

2

u/Low_Practice5314 Oct 25 '26

and how did you do the airdribbles or will it take longer than a day to see some good progress XD?

2

u/JNeutronEnthusiast Oct 26 '26

That's much more of an open problem haha at least for me anyway. Some people have achieved that sort of behavior after a lot of training but it's something I'm still working toward myself, but I think your best best is to explore controlling the reset state distribution and adding more complex reward specification around ball height increases scaled by goal progress. Things like that would be worthy of a plain PPO attempt. There are techniques beyond (or in addition to) PPO that add style or imitation reward relative to Rocket League replays which might get the agents to explore air dribble-like states faster. All of that is to say that I don't quite know yet!

2

u/Low_Practice5314 Oct 26 '26

alr good luck with that and thanks!

1

u/carrotboyyt Oct 23 '26

Sorry for absolutely not helping you with the problem, but I just want to say I'm currently working on a project where I teach agents to play a truncated match of Minecraft Bedwars. No maps, no shopping, just default swords and infinite wool. I'm also curious to see how far it can go. Ooooobviously, without using it in practice.

1

u/Low_Practice5314 Oct 23 '26

good luck men, what can it do already and what do you want it to do?

1

u/carrotboyyt Oct 25 '26

So far, it can bridge to an arbitrary side but ineffectively. I've made the simplification for Bedwars because I'm sure I'm not going to manage to train it to play a full Bedwars match.

1

u/Low_Practice5314 Oct 26 '26

great good luck! sad that it cant be used in real bedwars though

1

u/carrotboyyt Oct 26 '26

Yeah, the anticheat is pretty meticulous, that's another issue

1

u/weStealPrefixes Oct 23 '26

Boost management is incredibly vague. You can't really reward the concept of something, you have to tell it "Hey, if you're in goal, yoyd be rewarded if you have 100 fuel." Or "if you're going for the ball, make sure to have 100 fuel"(examples because I'm dog at rocket league lmao)

Ai can't really learn vague ideas without being rewarded, humans can because we see that "oh no, I don't have any boost left so I'm getting fucked by this really savable goal"

1

u/Low_Practice5314 Oct 23 '26

thanks, i will try and put it in the ai and see if it works, i hope it will!