whats the most likely action indice that is casuing this Invalid boost attempt detected!…
- User
whats the most likely action indice that is casuing this Invalid boost attempt detected! Action details:
Throttle: 1 Steer: 1 Pitch: 1 Yaw: 1 Roll: -1 Jump: 0 Boost: 1Invalid boost attempt detected! Action details: Throttle: 1 Steer: 1 Pitch: 0 Yaw: 1 Roll: 1 Jump: 0 Boost: 1 Handbrake: 0 Player State: Boost Amount: 0% On Ground: 0 Has Jump: 0 Has Flip: 0
Invalid boost attempt detected! Action details:
Throttle: 1 Steer: -0 Pitch: -1 Yaw: -0 Roll: 1 Jump: 0 Boost: 1 Handbrake: 0 Player State: Boost Amount: 0% On Ground: 0 Has Jump: 1 Has Flip: 0
Invalid boost attempt detected! Action details:
Throttle: 1 Steer: 0 Pitch: -1 Yaw: 0 Roll: 1 Jump: 0 Boost: 1Invalid boost attempt detected! Action details: Throttle: 1 Steer: -0 Pitch: 0 Yaw: -0 Roll: -1 Jump: 1 Boost: 1 Handbrake: 1 Player State: Boost Amount: 0% Invalid boost attempt detected! Action details: Throttle: 1 Steer: -0 Pitch: 0 Yaw: -0 Roll: -0 Jump: 0 Boost: 1 Handbrake: 1 Player State: Invalid boost attempt detected! Action details: Throttle: 1 Steer: -1 Pitch: 1 Yaw: -1 Roll: -1 Jump: 0 Boost: 1 Handbrake: 0 Player State: Boost Amount: 0% On Ground: 0 Has Jump: 0 Has Flip: 0
Invalid boost attempt detected! Action details:
Throttle: 1 Steer: 0 Pitch: 0 Yaw: 0 Roll: 0 Jump: 1 Boost: 1 Handbrake: 0 Player State: Boost Amount: 0% On Ground: 1 Has Jump: 0 Has Flip: 1
Throttle: 1 Steer: -0 Pitch: -1 Yaw: -0 Roll: 1 Jump: 1 Boost: 1 Handbrake: 1 Player State: Boost Amount: 0% On Ground: 0 Has Jump: 0 Has Flip: 1 RLGSC::DiscreteAction::DiscreteAction() { Action a = {};
constexpr float // Boolean input R_B[] = { 0, 1 }, // Float input (hint: you can add partial inputs here) R_F[] = { -1, 0, 1 }; // TODO: Use std permutations here or whatever // Ground for (float throttle : R_F) { for (float steer : R_F) { for (float boost : R_B) { for (float handbrake : R_B) { // Prevent useless throttle when boosting if (boost == 1 && throttle != 1) continue; actions.push_back( { throttle, steer, 0, steer, 0, 0, boost, handbrake } ); } } } } // Aerial for (float pitch : R_F) { for (float yaw : R_F) { for (float roll : R_F) { for (float jump : R_B) { for (float boost : R_B) { // Only need roll for sideflip if (jump == 1 && yaw != 0) continue; // Duplicate with ground if (pitch == roll && roll == jump && jump == 0) continue; // Enable handbrake for potential wavedashes float handbrake = (jump == 1) && (pitch != 0 || yaw != 0 || roll != 0); actions.push_back( { boost, yaw, pitch, yaw, roll, jump, boost, handbrake } ); } } } } } static std::once_flag onceFlag; std::call_once(onceFlag, [=] { RG_LOG("DiscreteAction(): Lookup table built, action count: " << actions.size()); } ); - Assistant