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.02k stars 178 forks source link

Suggestion: prop/flexbody changes in skinzips #2736

Closed willmichals closed 4 months ago

willmichals commented 3 years ago

Hi all, I was thinking of the idea of incorporating prop or flexbody changes into skinzips. I thought of two ways to do this; replace a props/flexbody that has already been placed (similar to replacing textures) or adding props that do not exist in the props/flexbody section of the truck but in the skinzip instead.

AddPropSkin
{
    addProp = 1, 2, 3, .5, .5, .5, 0, 90, 90, bumper.mesh
    preview          = preview.png
    description      = livery replacement
    authorName       = John Doe
    AuthorID         = 12345
    GUID             = xxx
}

or

ReplacePropSkin
{
    replaceProp = spoiler1.mesh, spoiler2.mesh
    preview          = preview.png
    description      = livery replacement
    authorName       = John Doe
    AuthorID         = 12345
    GUID             = xxx
}
ohlidalp commented 11 months ago

Thanks for the bump in Discord#development, this deserves a brief thought:

UPDATE: I've just had a fruitful chat with @CuriousMike56 about new approach to addon parts: https://discord.com/channels/136544456244461568/189904947649708032/1165031365327212635 - So I'll go about it that way.

CuriousMike56 commented 4 months ago

Now that we have the addon parts system, skins could receive an option to load .addonpart files. Selecting a police skin would automatically equip lightbars for example.

ohlidalp commented 4 months ago

@CuriousMike56

Now that we have the addon parts system, skins could receive an option to load .addonpart files. Selecting a police skin would automatically equip lightbars for example.

I'd rather do it the other way around - give the .tuneup format ability to apply a skin, and then distribute the .tuneup file as an one-click police customization package (skin + addonparts) for example.

I'm going to close this as resolved; this needs further debate (i.e. addonparts vs. sectionconfig) and deserves a fresh ticket.