v2.1.1.0 — FarmTablet integration bridge + HUD persistence fix#6
Open
TheCodingDad-TisonK wants to merge 4 commits intomasterfrom
Open
v2.1.1.0 — FarmTablet integration bridge + HUD persistence fix#6TheCodingDad-TisonK wants to merge 4 commits intomasterfrom
TheCodingDad-TisonK wants to merge 4 commits intomasterfrom
Conversation
…geVisualization In FS25, addDamageAmount is registered on the Wearable specialization, not a base Vehicle method. Guard now checks addDamageAmount first; if missing but spec_wearable is present, writes directly to spec.damage / spec.damageByCurve using the same formula as Wearable:setDamageAmount. Removed dead getDamageVisualization call (this method does not exist in the FS25 API).
saveLayout() was only called in FSBaseMission.delete, so mid-session saves (manual or autosave) never persisted HUD position. Added a Mission00.saveToXMLFile hook so position is written on every save.
Set mission.randomWorldEvents on load and clear on unload so FarmTablet (and any other mod) can detect the RWE manager via g_currentMission without relying on per-mod-scoped getfenv(0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mission.randomWorldEvents) for FarmTablet integrationapplyVehicleDamagespec_wearable fallback, removed dead codeFull Changelog since v2.0.0.6
featv2.1.0.0 — custom HUD, grouped settings UX, effect delivery systemfeatAdd mission.randomWorldEvents cross-mod bridge for FarmTabletfixSave HUD layout on game save, not only on session endfixapplyVehicleDamage — spec_wearable fallback, remove dead getDamageVisualizationartApply FS25 textured icon background; compress to DXT1choreBump version to 2.1.1.0Test plan