d3d12: F4 trainer player, vehicle, weapon and world items through the title's natives, money and vehicle parts (D3D12-F4-TRAINER-NATIVES) #3114
Open
matthieupl87-spec wants to merge 9 commits from
upstream-pr/3114 into main
pull from: upstream-pr/3114
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
ProjectLeonida/mandy!3114
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3114"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T11:30:17Z.
Claimed in the coordination issue as: D3D12-F4-TRAINER-NATIVES
What and why
The F4 trainer's player, vehicle, weapon and world items had no effect on 1.0.2.1. This wires them through the title's own natives, run from the game-actions update on the title's thread (
d3d12/apps/leonida/src/game_actions/effects.rs), plus two items read or written in memory:samples/trainer/trainer.hpp,trainer::cash, MIT licence), found from the title's balance native. It is rewritten here, not copied.hash x quantity.Never wanted on
mainreads the wanted level at a place that gives 0 on 1.0.2.1 while the police chase, so it never cleared anything. It now goes through the title's natives:_SET_DISABLE_PLAYER_WANTED_LEVEL,SET_POLICE_IGNORE_PLAYERandSET_MAX_WANTED_LEVEL(0), with the old maximum put back when it is turned off. Seen in game: crimes gave no stars.A toggle is given again now and then, because a new ped or vehicle (after a death, a character switch or another car) does not carry it. A toggle whose subject is missing (no vehicle) waits quietly.
The memory places are 1.0.2.1's only.
known_buildchecks the player place before anything is read or written; on another build those items say they are not available. This is the same check as #3009'swarp::supported_build. The player place is found by its pattern at start, so it lands on that exact address only in this build. The native hashes are from the community nativedb (CC BY 4.0) and were checked against the title's native table at start.Not in this PR:
*_DENSITY_MULTIPLIER_THIS_FRAME,SET_CREATE_RANDOM_COPSandSET_GRAVITY_LEVELnatives were taken without error but changed nothing on screen, so these menu items stay as they are onmain.VI_GIVE_ITEM_TO_PED_ASYNCcalled from here ends the title: it needs a script's task context. The finding is posted in #2570.Tested
On 1.0.2.1, Windows 11, diag build through
scripts/build-nvidia.ps1. The build has one local commit outside this PR, inrun.rs, unrelated.to 20 000(the log showscash 19105 -> 20000 $). The real balance changes at once. The HUD figure updates at the next purchase.cash 14 -> 20000 $. The value was then saved: the next manual save holds it in Jason's inventory.cargo test --locked --profile diag -p leonida --features diagnostics,mimalloc -- game_actions vehicle item_names(15 passed)cargo test --locked --profile diag -p leonida-menu(49 passed)python -I scripts/check_no_game_data.pypasses.GPUs tested: NVIDIA GeForce RTX 5070 Ti 16 GB, driver 621.47, Windows 11 Pro
AI-assisted: yes. Claude Code (Claude Opus 5.5) wrote the code with me. A separate read-only Claude reviewer agent read the diff before this PR.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T12:40:57Z.
Progress from more play-testing on 1.0.2.1, and where the menu is going next. Same rig as in the description.
Confirmed in game since the description:
main) alone does not stop stars: crimes still bring the police. On my local branch, a toggle that also calls_SET_DISABLE_PLAYER_WANTED_LEVEL,SET_POLICE_IGNORE_PLAYERandSET_MAX_WANTED_LEVEL(0)works, but only with Never wanted on as well. With both on, no police come at all. I will bring it here once I know which of those calls does the work.Open problems I am working on (local branch, not in this PR yet):
SET_VEHICLE_IS_STOLEN(false),SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER(true)andSET_VEHICLE_INFLUENCES_WANTED_LEVEL(false)on the current vehicle do not change that.integrated_tracker,tracker,advanced_trackerandmilitary_tracker. Scripts use them with three unnamed vehicle natives:_0x5F92584040AFFA8B(vehicle, int) -> int,_0xBAF45734DD937C4E(vehicle, int)and_0xF8D9720AB9633C40(vehicle, int).GET_CLOSEST_VEHICLEreturns 0 on this build every time: within 4 m of the spot where the vehicle was just created, both with flags 70 and 0. So the spawned vehicle's handle has to come another way.SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED,SET_ENTITY_CAN_BE_DAMAGEDandSET_VEHICLE_STRONGso the body does not dent.Each piece will come as a separate PR once it works in game.
A word from me (Pooldead): my PC is a Ryzen 5 5600X, an RTX 5070 Ti and 32 GB of DDR4. The game runs at about 15 fps here. I am waiting for the optimisations the project brings, and meanwhile I prefer to contribute to the menu: I can run it and do the tests in game. Thank you all for contributing to this project. It is magnificent.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:41:46Z.
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T13:00:25Z.
Ran natively on Windows 11, head
609eb190bmerged into currentmain(23a51c494, clean merge). I used a plain debug build (overflow checks on) with default features, not thediagprofile withdiagnostics,mimallocfrom the description.d3d12/)cargo test --locked -p leonida --binsgame_actions::effects)cargo test --locked -p leonida-menucargo clippy --locked -p leonida --bins --testsgame_actions.rs,game_actions/effects.rsortree.rs(the one warning is inleonida-gpu/src/host.rs, already onmain)cargo clippy --locked -p leonida-menu --libtree.rsleonida-menuhas 48#[test]functions both on this branch and on currentmain, so the 49 in the description probably comes from a different base. None of the 20 ids inTOGGLES,GRAVITYandACTIONSis matched earlier inavailable,valueorapply, so all of them reacheffects.The memory-reading code can run without the game, so I tried it with throwaway tests in
effects.rs(not committed).cash_amount_aton a synthetic inventory. I built the layout from your doc comment in heap memory: the manager map at+0x77C8/+0x77D0, the0xC0000003inventory with its tag at+0x0C, and an item map holding twocurrency_cashitems. One item's parent has the player's tag at+0x40and the other's has a different tag.cash_amount_atreturned the player's+0x18and skipped the other item, which matches what you saw in game.find_partsnever tries the last offset. The scan is0..block.len().saturating_sub(0x1C). The check needso + 0x1C <= len, soo == len - 0x1Cis never tried. Here is a 0x1C-byte block that holds a complete one-item list (cap 1, count 1, first 9, 0, then the item with id 9):Only a one-item list ending exactly at
PARTS_BLOCK_LENhits this, so it's narrow.0..=block.len().saturating_sub(0x1C)should cover it, sinceword()already givesNonepast the end, but I didn't run that change. Oversized counts are refused without a panic (cap/count 0x100 in a 0x800 block givesNone), and blocks of every length from 0 to 63 bytes don't panic.map_slotswalkscountgroups. This one is a question. With the player's inventory in the second group of a two-group map and the count word set to 1,cash_amount_atreturnsNone. That's what the function says it does, and it's right if+0x77C8holds the number of groups. If it holds the number of entries, an inventory in a later group would not be found. Do you know which it is?From reading the code (no test): No reload and Infinite ammo both call
SET_PED_INFINITE_AMMO_CLIP(ped, on). With both on, switching one off sendsfalseat the next update, and the clip stays finite until the other toggle's next refresh. That's up to 15 updates if Infinite ammo is still on, up to 60 if No reload is. It could look like turning off No reload also turned off Infinite ammo. Sendingno_reload || infinite_ammofrom both would avoid that.Not checked: the game. Nothing that calls natives (
keep_up,run, the vehicle resolver at0xD35050) can run without the title, and I had no 1.0.2.1 image, so the hashes and places weren't checked against the binary either.GPUs tested: n/a (CPU-only tests).
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T13:28:19Z.
Run report for the current head, as asked.
609eb190b, merged ontomainbf7886746(merge3d03fa8a7). One local commit outside both, inrun.rs(theLEONIDA_PATCHstart-up byte patch, so my story saves load), unrelated to rendering.scripts/build-nvidia.ps1; launched throughscripts/play-d3d12.ps1withLEONIDA_GAME_ACTIONS=1. The shader cache was rebuilt for this build before the run.main, not the menu.mainalone: not run on this exactmainyet. My earlier runs ofmainon this rig gave a similar 13-15 fps median.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T13:36:27Z.
Second run on the same build (head
609eb190bmerged ontomainbf7886746), this time using the menu.main.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T13:39:50Z.
Pushed
057bd7cc2:I will post a new run report on this head. AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T13:59:39Z.
Run report on the current head
feb5d5453, merged ontomainbf7886746(merge91b782a09). As before, there is one local commit outside both, inrun.rs(theLEONIDA_PATCHstart-up byte patch, so my story saves load), unrelated to rendering.scripts/play-d3d12.ps1,LEONIDA_GAME_ACTIONS=1.Together with the two runs above on
057bd7cc2(0 crashes, medians 15 and 18 fps), this head has shown no rendering problem here. The only change since057bd7cc2is the moon gravity item left out ofeffects.rs.In game, the menu items in this PR:
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T14:02:52Z.
@MoonEyes, a note on scope, so the run above is not misread: vehicle spawning by model is not in this PR, and it was not in the build I ran. In that build, Spawn selected still behaves as on
main(the model is not found on 1.0.2.1).The spawn fix is offered to #3009 instead, since it builds on Phlanka's spawner: one commit,
623779c2a, on top of #3009's head29bcd2471(comment). With it, the 315 models of 1.0.2.1 spawn on the ground in front of the player; I tested that separately (0 crashes).The run report above covers only this PR's head
feb5d5453.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T14:10:55Z.
@Kal0s-design, thank you for the review. Pushed
5bd4b50f4:no_reload || infinite_ammotoSET_PED_INFINITE_AMMO_CLIP, so turning one off no longer takes the clip from the other. There is a unit test for it.find_partsexact fit: the range is now0..=block.len().saturating_sub(0x1C). A one-item list that ends exactly at the end of the block is in the test.+0x77C8: it is the number of groups. That is how fraustiz/fro-trainer reads the title's balance native (_0x816B3FF0E9A2B799): itscash::Carriedwalks that many groups of 16 control bytes plus 16 slots, the same asmap_slotshere. The item map's+0x60is read the same way. In game, on 1.0.2.1, this found Jason's inventory and his cash every time I used Money. I did not log the count's value, though, so the game runs do not prove it on their own: if Jason's inventory sits in the first group, both readings find it.Tests: the
leonidafilter (16 passed),leonida-menu(48 passed),check_no_game_data.pypasses. Not run in game yet; the change touches only these two items.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T15:33:10Z.
@MoonEyes, one small addition while you review. Pushed
c4ebe52de:_0x5F92584040AFFA8Basks,0xBAF45734DD937C4Eand0xF8D9720AB9633C40set). It gives the slot's kind and 0 to each setter, then the kind and the tracker it holds, and logs each step.Seen in game (my local build, which also has #3009's spawn and one local commit outside this PR, in
run.rs, unrelated): spawned cars, then got in. The car is no longer tracked and counts as the player's (Jason / Lucia). Also seen when spawning while already driving an earlier spawned car. Not proven: the ask native still returns the same value after the setters, so which setter does the work is not known yet; the log shows all of them.For #3009: the automatic removal hangs on one call,
effects::spawned(self, frame). In this PR it is on the cheat spawn path. Once both PRs are in, the same line after #3009's spawn (whenvehicle_spawn::take_spot()gives a spot) covers its 315 models. Happy to send that as a follow-up.Tests: the
leonidafilter (16 passed), the menu crate (48 passed),check_no_game_data.pypasses. Not run in game on this branch itself.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T17:07:01Z.
RUN (in game, batch of eleven render-path pull requests), each head merged with
git merge --no-ffonto main3c106eb2f, in one build: #3071c2065b540, #298265155eceb, #296400a068106, #310779333e26b, #2833823087ec3, #2947b07f64346, #291933e2e4c13, #2962a4a26ec63, #2847c8b950cb4, #3114c4ebe52de, #26640e2b6287c. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; free system memory was low (median 0.6 GB); arrival in the world was driven by keys and not checked on pictures. An earlier attempt of this batch is not counted: two runs were started at the same time by mistake on one GPU (no device loss in either, but the measure is not clean).
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:02:15Z.
Light code review only, not built (Windows-only
leonidaapp). Ready, on the in-game gate already passed.c4ebe52de, merge base8422def75, 206 behind currentmain45dc41f95. A trial merge is clean.action_required).#3114 c4ebe52de, this exact head. More than 300 s in the world, 0 device lost, verdict PASS. The author also ran it in game on earlier heads.Review of
d3d12/apps/leonida/src/game_actions/effects.rs(757 new lines),game_actions.rsandleonida-menu/src/tree.rs:known_build, the same check aswarp::supported_build, so a different build reports "not available" instead of writing. That is the right guard for build-specific offsets.Verdict: ready.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T22:10:54Z.
@MoonEyes for information, not a change to this PR: on my local branch I now have a working No traffic for 1.0.2.1. It came out of this PR, where No traffic was removed for having no effect. The details are in #3009: https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7360322933. In short:
CLEAR_AREAwith the flag0xffff, every 2 s around the player, and the player's own vehicle kept.In game, the game felt smoother with the roads empty: 22-25 fps at moments, where this area usually gives 14-18. To be fair, the median over one measured run did not move: 14 fps without it (225 s) and 14 with it (500 s). So I can only say it costs nothing; a gain is not shown yet. If it is wanted, I can open it as a separate PR after #3114, with a full run report.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T23:28:52Z.
VERIFY-3114 — Windows nativo: la suite de la app pasa, el commit no trae ningún test, y hay una decisión que merece revisión
c4ebe52de—game_actions/effects.rs(+96),game_actions.rs(+4),leonida-menu/src/tree.rs(+1)Ran
But note what that number is: the existing suite. This commit adds no
#[test]and no test function — I searched the diff for both. Sored not constructible, and the behaviour is a native call against the title's memory, which no test here can reach.What it adds: an F4 action
vehicle.trackerthat queries the current vehicle'strackerslot throughTRACKER_QUERY, and if it is not zero tries six setter/argument shapes in order (TRACKER_SET_BandTRACKER_SET_A, with[slot, 0],[held],[0]), re-querying after each and stopping at the first that changes the value. The comment says the two setters are "void (add / remove, which is which not known yet)".Two things I would not let through without a sentence in the body, and neither is a refusal:
if after != before { break; }— if a setter replaces the tracker with a different one instead of removing it, the query changes, the loop stops, and the action reports what looks like a removal. The action is named after removing; a check of "it changed" is weaker than "it is zero", and the zero case is the one the code already knows how to test (before == 0→(none)).nativedbdoes not name them; the argument lists here are the author's inference. A wrong arity or a wrong kind in a native call is not a no-op — the safest shape for a probe is the one the code already has (log before, try, log after, and stop), and it does that — but the F4 entry reads like a finished feature, and on this evidence it is a probe. The description or the entry should say so.The part I want to credit: it checks
before != 0first, logs every attempt with the setter and the arguments ({setter:#018x}{rest:x?} -> {after:#010x}), and stops on the first change instead of running all six blindly. That is how a probe should be written.What I could not test
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-03T12:36:55Z.
@fiestorra thanks for the review of
c4ebe52de. Both points are fair. What changed, in58b8f1ccd(pushed to this branch):0. The log line ends with(removed)when it ended empty and(still held)otherwise, so a setter that swaps the tracker for another one is no longer reported as a removal.Remove tracker: the description says it tries to take the tracker off, and the log line now says honestly whether the slot ended empty. The natives stay unnamed and their argument shapes guessed (said in the code comment).Still true: no test. The behaviour is native calls on a live vehicle, so I have no red test to offer for it.
One thing from my own runs (02-03/12, several sessions, no crash): in every log the slot read
0xbcd8a25fbefore and after all six tries, also when the tracker looked gone in game. So either the query does not read what I think it reads, or no setter shape removes it. With this code (run today in my local build, not on this branch's head) the action now says(still held)in that case instead of claiming success.AI-assisted (Claude Code).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.