-
Notifications
You must be signed in to change notification settings - Fork 250
adding "Force reclaim" hotkey #7002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -557,6 +557,10 @@ AIPlatoonSimpleStructureBehavior = function() | |||||||||||||||
| SimCallback({ Func = 'AIPlatoonSimpleStructureBehavior', Args = {} }, true) | ||||||||||||||||
| end | ||||||||||||||||
|
|
||||||||||||||||
| function SetForceReclaim(enable, showMsg) | ||||||||||||||||
| SimCallback({ Func = 'ForceReclaim', Args = { Enable = enable, ShowMsg = showMsg or true} }, true) | ||||||||||||||||
| end | ||||||||||||||||
|
Comment on lines
+560
to
+562
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Passing ✅ Proposed fix function SetForceReclaim(enable, showMsg)
- SimCallback({ Func = 'ForceReclaim', Args = { Enable = enable, ShowMsg = showMsg or true} }, true)
+ local show = (showMsg ~= false)
+ SimCallback({ Func = 'ForceReclaim', Args = { Enable = enable == true, ShowMsg = show } }, true)
end📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| StoreCameraPosition = function() | ||||||||||||||||
| local camera = GetCamera('WorldCamera') | ||||||||||||||||
| local settings = camera:SaveSettings() | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: FAForever/fa
Length of output: 2057
🏁 Script executed:
Repository: FAForever/fa
Length of output: 582
🏁 Script executed:
Repository: FAForever/fa
Length of output: 1653
🌐 Web query:
FAForever FA-Binary-Patches PR 130 ForceReclaim💡 Result:
FAForever FA-Binary-Patches PR
#130is titled “sim Unit:ForceReclaim(bool)” and is currently Open (opened Jan 23, 2026) by Strogoo. [1]What it does:
Unit:ForceReclaim(bool).Implementation notes (high level):
CI / review status:
Sources: PR list page [1], PR
#130conversation/details [2].🏁 Script executed:
Repository: FAForever/fa
Length of output: 1403
🏁 Script executed:
Repository: FAForever/fa
Length of output: 6192
Guard against missing
ForceReclaimmethod to prevent sim crash.unit:ForceReclaim()will cause a hard Lua error if the engine patch isn't present, since the method will be nil. This is a real risk given that FA-Binary-Patches PR#130(which adds this method) is currently open and not yet deployed. Add a defensive check before the loop to prevent crash on mismatched deployments.Suggested fix
🤖 Prompt for AI Agents