Repository navigation
fix: only warn about missing aim-vector on cursor weapons - #63
Conversation
|
@coderabbitai review |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (16)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughVehicle weapon configurations now specify aim vectors for their weapon exits. When ChangesWeapon aim configuration
Projectile test fixture
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The vehicle weapons retain their previous aim behavior, while non-cursor weapons no longer emit the fallback warning. No actionable merge-blocking risk is evident.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Action performedReview finished.
|
Manual-aim weapons never read the aim vector, so the fallback warning was console noise every time a gunboat or AA turret loaded. Also set aim-vector explicitly (same as the old fallback) on every movable weapon in the bundled vehicle configs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2e6c22a to
7680ebb
Compare
|
Dev (TFMCDev01) test, mineflayer bot spawning gunboat / aa_turret / sloop / gyrobomber:
|
Summary
Main's console prints
[VehicleFramework] Error! Weapon naval_gun has no aim-vector; falling back to first bones entry: exit.exitalign(and the same foraa_turret) each time a gunboat or AA-turret vehicle loads. On 2026-10-06 the logs had about 100 of these lines. The message is harmless: the fallback is the same bone, and onlyaim-mode: cursorweapons ever read the aim vector.WeaponMovementControllerstill falls back to the firstbonesentry, but only cursor-aim weapons log the warning. That is the only case where a missingaim-vectoraffects behaviour.aim-vectorexplicitly to the firstbonesentry for all 30 movable weapons that had none (gunboat, sloop, cruiser, ironclad, behemoth, AA turret, anti-air, field/fixed artillery, cloudskimmer, biplane, bomber, gyrobomber). Fixed weapons (bomb bays, forward guns, torpedo launcher) are unchanged. Behaviour stays the same because the value matches the old fallback.VFLoggermock is now public so weapon tests can verify against it.saveResource(..., false)does not overwrite existing files, so live servers need the sameaim-vectorlines added by hand. Main's vehicle files match the repo defaults.Testing
mvn clean verifylocally on Windows: all tests pass. The line-coverage gate reports misses only in untouched file/database classes (VehicleRepository, TrackStore, template loaders), which look like Windows-only gaps. CI on Linux is the authority.🤖 Generated with Claude Code