how to "add data" to an SCS.sii file without ediiting it

Post Reply
EddieYantz
Posts: 13
Joined: 22 Jul 2019 14:59

how to "add data" to an SCS.sii file without ediiting it

#1 Post by EddieYantz » 24 Oct 2020 20:13

When different mods require the same SCS sii file how can I "add data" to the original [scs].sii file (without editing it) to avoid putting a modified [scs].sii file into each mod (because one mod's [scs].sii will then overwrite the other mod's [scs].sii file).

Example:
traffic_rules.sii in which I can put a modify version with relevant @include's into each mod, but then whichever mod is on top will prevent the other mod from working.

What file type can I use inside each mod to add the relevant @include's without needing to put a modified traffic_rules.sii into each mod?

Thanks
Eddie

User avatar
plykkegaard
Posts: 4008
Joined: 26 Oct 2014 13:42
Location: Denmark
Contact:

Re: how to "add data" to an SCS.sii file without ediiting it

#2 Post by plykkegaard » 24 Oct 2020 21:16

SUI is the new include system afaik, I do not know if it will work in this case
Office moved to Fort Collins, Colorado

Deranged_Maester
Posts: 145
Joined: 06 Sep 2017 02:50

Re: how to "add data" to an SCS.sii file without ediiting it

#3 Post by Deranged_Maester » 24 Oct 2020 21:23

@EddieYantz The easy way is to make a new .sii file with the combined values you want from both sii's and put it into a new mod. place that mod above both mods and your new combined file will over-write the 2 old ones.

edited for spelling error.

User avatar
xXCARL1992Xx
Posts: 12165
Joined: 17 Aug 2016 12:18
Contact:

Re: how to "add data" to an SCS.sii file without ediiting it

#4 Post by xXCARL1992Xx » 24 Oct 2020 21:24

there was never a "old" system

if you wan tto add rename your file to traffic_rules.<my_mod_name>.sii, this should treat the file as a new file without overwriting existing ones

also, this info is in almost every file of SCS how to add to them without overwriting the original
Image
| !!!NO SUPPORT OR REQUESTS OF ANY SORT VIA PM!!! | Screenshot Thread | Steam Workshop | World of Trucks Profil |

User avatar
piva
Posts: 4058
Joined: 29 Oct 2014 16:41

Re: how to "add data" to an SCS.sii file without ediiting it

#5 Post by piva » 29 Oct 2020 13:40

traffic_rules can be updated by "overrides" feature, but mjack still not add it info on SCS Wiki site.
You can take example from my traffic mod . I don't say that this mod for actual game version, but you can see how "overrides" work. Main mod contain 2 files "/def/overrides.piva_spawn.sii" and "/def/overrides.piva_traffic.sii"
Action types "type: replace" can be "add","replace" and "delete" or "remove" I don't remember, maybe @mjack can say more or will correct me. :lol:

mjack
SCS Software
Posts: 103
Joined: 26 Nov 2012 08:37

Re: how to "add data" to an SCS.sii file without ediiting it

#6 Post by mjack » 30 Nov 2020 10:26

hi, here is a quick copy-paste doc from the code:

Code: Select all

/**
	 * @brief Data 'enhancing' approach.
	 *
	 * Unset target data are set using the source.
	 * Array target data are appended with the source data.
	 * Non-array set target data is not touched.
	 */
	add,

	/**
	 * @brief Data 'removing' approach.
	 *
	 * The first occurrence of set source data found in target are removed from target.
	 * Other target data is not touched.
	 */
	remove,

	/**
	 * @brief Data 'removing' approach.
	 *
	 * The last occurrence of set source data found in target are removed from target.
	 * Other target data is not touched.
	 */
	remove_last,

	/**
	 * @brief Data 'removing' approach.
	 *
	 * All occurrences of set source data found in target are removed from target.
	 * Other target data is not touched.
	 */
	remove_all,

	/**
	 * @brief Data (partial) 'replacing' approach.
	 *
	 * All set source data will replace corresponding target data.
	 */
	replace,

	/**
	 * @brief Data 'replacing' approach.
	 *
	 * Replaces all target data by the source data.
	 */
	replace_all,
Unfortunately, I didn't have time to make the override 'officially supported' yet. Hope this helps

Post Reply

Return to “Help requests”

Who is online

Users browsing this forum: No registered users and 1 guest