Rocket League bakkesmod plugin and python module for setting field state.
- Copy
FieldSetPlugin.dll
tobakkesmod/plugins
directory - Edit
bakkesmod/cfg/plugins.cfg
and add lineplugin load fieldsetplugin
Always initialize field set before building RLGym environment
from field_set import FieldSet
import rlgym
field_set = FieldSet()
env = rlgym.make("default")
while True:
obs = env.reset()
field_set.randomize_ball_state()
done = False
while not done:
#Here we sample a random action. If you have an agent, you would get an action from it here.
action = env.action_space.sample()
next_obs, reward, done, gameinfo = env.step(action)
obs = next_obs