Workers & Resources: Soviet Republic

Workers & Resources: Soviet Republic

Customize your game
Create new vehicles, landscapes, buildings,..
leftbehind 19 Feb, 2024 @ 3:08am
Suggestion:"Tweak mods" - tweak .ini files of existing workshop assets via a mod
After testing, some assets from workshop are OP (particularly some vehicles), others have glitches (eg. connections too close to use both at same time). Some were made long ago, before more recent game features were added, and it almost feels like cheating using them due to missing complexity. Also, many authors of the older assets are no longer active, so unlikely they'll ever get fixed.

It would be great if we had some way of tweaking the .ini files via a "tweak mod" that could be uploaded to workshop.

The idea would be a mod that contains numbered folder(s) - workshop ID(s) of the asset(s) to tweak - and in them you place the relevantly named .ini files (in subfolders if necessary, as the game would need to work out exact path to the ini file).

Removing settings

Prefixing a line with "-" would _remove_ matching line/block from the target asset.

Example, a /2483262125/HOUSE1/building.ini in the tweak mod might enable heating for a building, by removing the disable heating tag:

-$HEATING_DISABLE

To remove a "block" setting, where there's a $ tag followed by settings specific to that tag, you'd prefix the $ line with "-" and then include the subsequent settings lines so game could match relevant block:

-$CONNECTION_PEDESTRIAN
-7.2347 0.0000 1.0000
-1.2347 0.0000 1.0000

Note the "-" at start of those settings lines is what's already in the .ini file of the asset.

Adding settings

Anything in the tweaked .ini file without the "-" prefix would _add_ new settings to the .ini file. Example, an old fire station asset doesn't allow helicopters, I could tweak it by adding:

$HELIPORT_AREA 15.0

Altering settings

To alter a setting, first remove the existing setting then add a new setting with desired values.

Summary

Tweak mods would allow the community could repair or tweak existing assets without needing to upload a new version of the asset.

Ideally they'd have their own tag category in the workshop so people could easily browse available tweak mods.

IIRC there's a way to define "required items" via the Unity Workshop API, so hopefully uploading a tweak mod would do that automatically (the workshop id(s) of required items would be the numbered folders inside the tweak mod folder).
Last edited by leftbehind; 19 Feb, 2024 @ 3:16am
< >
Showing 1-1 of 1 comments
Tavi 1 20 Feb, 2024 @ 10:54pm 
Good idea. Plus many old mods can be fixed easily but the creator is not around to update them or give permission to fork it.
< >
Showing 1-1 of 1 comments
Per page: 1530 50