RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.03k stars 178 forks source link

Fixing and improving the Tuning menu. #3151

Closed ohlidalp closed 5 months ago

ohlidalp commented 7 months ago

Highlights:

obrazek

Changes made so far:

Additional discovered issues:

ohlidalp commented 7 months ago

I'm fixing the addonpart conflicts - I figured I need to block the user from selecting conflicting addonparts at all, preferably with some visual markers. This is what I have right now - the graphics are not final and there's a huge lag when opening the menu. To be improved. obrazek

ohlidalp commented 7 months ago

Markers are finished:

obrazek

ohlidalp commented 7 months ago

Added addonpart_filename directive (optional whitelist)

The modder can add any number of addonpart_filename <foo.truck> directives (case-insensitive). If none are specified, any filename goes.

Matching by GUID is still the primary method, this only helps in cases where the GUID is shared by too many trucks (not uncommon).

CuriousMike56 commented 7 months ago

Unfortunately adding flares doesn't seem to work for me: MV4_PolicePackage.zip image RoR_2024-04-26_01-05-48 Adding the flares after flexbodies introduces the flexbody errors.

Expected result:

https://github.com/RigsOfRods/rigs-of-rods/assets/46073351/28546f74-ec4a-4fd8-969b-f6280f8411a0

CTRL+2 activates the lightbar and CTRL+3 for the front/rear flashers.

ohlidalp commented 7 months ago

I fixed the discarding incomplete boolean token 'f' warnings - it was a tokenizer bug.

EDIT: Another fix - I forgot to update the condition around block = keyword;, causing the parser to interpret all flare lines as whatever was before (flexbodies in this case).

Finally I fixed the case where the flare used material from the addonpart ZIP - same story as with props and flexbodies, I just forgot to handle it the first time.

ohlidalp commented 6 months ago

Added managed materials tweaks: obrazek

ohlidalp commented 6 months ago

I fixed the remaining 2 glitches: