Street Legal Racing: Redline v2.3.1

Street Legal Racing: Redline v2.3.1

Custom Workshop Installer
g13ba  [developer] 14 Jan, 2022 @ 3:30pm
Description (Full)
*Since the game update of 2022-11-16 all the described issues of the stock Workshop Installer are fixed (NOT quite, see Issues & Solutions guide) and it is fully compatible to the Custom Workshop Installer.

This avoids the short and long* term issues of using the stock installer, it's fast, detects mod conflicts, lets you install and remove multiple mods at once and more!


*** Please read the whole description! ***



It is meant to be used instead of the stock installer. If you were using the stock installer before *2022-11-16 update, I recommend to do the clean reinstall of the game first, just to be sure, because there are *were many ways it could have messed up the game files.
Recommended way to do clean reinstall:
https://steamhost.cn/steamcommunity_com/app/497180/discussions/0/1750142582988605410/#c1750142769916403235


Features
- doesn't add playtime (because it doesn't use steamapi)
- fast start with many subscribed items (because it doesn't look up stuff online)
- search (right click->Find...)
- installing and removing multiple mods at once
- ability to save a list of currently installed mods for easy reinstalling
- avoid backup files appearing in load car dialogs
- mod update notification (requires the mod author to add a [workshop_id].txt file, see Suggestion to modders)
- self-updating (requires user action, copies itself from the workshop folder) means you need to be subscribed)
- class remover (read below)
= mod conflict detection*
= supports renamed game folder*
= avoid playback stopping for music replacing mods*

*= The stock Workshop Installer now does the same.


Requirements
- .NET Framework 4.x (you probably have it already)
- Powershell 3-5.1
it is already contained in Win 8+ and can be installed on Win 7 as part of the Windows Management Framework
https://docs.microsoft.com/en-us/powershell/wmf/overview#wmf-availability-across-windows-operating-systems

_20 exe (moved to a separate item)
is meant for Win 7 without installing WMF and below with WMF 2.0 installed (although it works on Win 8+ too)
- .NET Framework 3.5
- Powershell 2
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1806319734

- admin rights to be able to write to C:\Program Files (x86) folder (as pointed out in the comments, it is not needed for the steam folder)


Notes
Your antivirus may (or may not) be not happy about this file. Though it's getting ridiculous lately. See for yourself:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1445498636/3185740658294761312/
In case of detections, please submit the files for analysis to your antivirus vendor.

After closing the tool there may be a message "This Program might not have installed correctly". That's normal, apparently Windows thinks the tool must be a setup programm because it has "installer" in the name. (should not appear anymore)

If the tool crashes on start (this happens if your system has Powershell version below 3), use the other executable (with _20 at the end, it's for Powershell 2).


How it works
This tool can remove mods installed by the stock installer (but not vice versa, although the uninstall files are compatible the stock installer seems to store install status in workshop.dat file so it will not see mods installed by this tool) *and vice versa since the game update of 2022-11-16.
It relies only on the contents of workshop folder to determine if the mod is subscribed or not.
It relies only on the contents of workshop_uninstall folder to determine if the mod is installed or not.
Item names are stored in the file _CustomWorkshopInstaller_ItemNames.
This means that:
- recent | hidden | removed items will have no name,
- items that were renamed | hidden | removed recently will still have the (old) name
I will update the item names list from time to time.
Until then the names of recently uploaded workshop items will be shown as "--- Recent ---", unless the mod author adds a file described at "Suggestion to modders".
Meanwhile you can add the names yourself by editing the file "_CustomWorkshopInstaller_ItemNames" ( with Notepad++ for example)

Item names list moved here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2195504145


Installing conflicting mods
The tool will not allow to install conflicting mods (see 2nd screenshot), but some workshop mods require to do so.
New: You can proceed installing conflicting mod after the warnings. Note that before the overwritten mod can be removed you will need to remove the conflicting mod first.


Installing non-workshop mods
Use this guide https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1756059817


Suggestion to modders
When updating your mod, add a file named "[workshop_id].txt" or "[workshop_id]=mod name.txt" (like the ones included, the latter will be used if both are present) for update notification by the Custom workshop installer.
Put mod name in the first line and mod version in the second line.
The tool will check if the file is there and if the 2nd line has changed.
Also you can use it as a readme file.
New: Use update_message tag([update_message][/update_message]) inside the update notification file to notify users about mod changes.
New: Use changelog tag([changelog][/changelog]) inside the update notification file to notify users about mod changes since the version they have installed.
Check out the included files for reference and see:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1445498636/2998799976089296031/


Class remover
The class remover feature lets you remove class files which have the source available.
Why would you do that?
I had some problems with some class files causing a crash, and removing them fixed it. They can be removed as long as the corresponding source file is there, the game will use it to recompile the class file.
So by running the class remover you make sure that the game is using the latest code.
To access it type "class remover".
You can run it any time, with or without mods installed.
Related responses:
https://steamhost.cn/steamcommunity_com/app/497180/discussions/0/1318835718949264905/#c2264691117429922747
https://steamhost.cn/steamcommunity_com/app/497180/discussions/0/3129415222182636779/#c3088885996470915328

Now available as standalone tool
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3021729919


How to use
1. Subscribe to this and to the Item names list (link above, at how it works section).
2. Wait for Steam to download it.
3. Install with the stock installer
or
open *your_steam_library_folder*\steamapps\workshop\content\497180\1445498636
and copy all 3 files to the game folder.

4. Launch the tool from the game folder.
(You may rename it like the default one to launch it from the steam library, though this will cause the playtime counting.)


The tool will present you a list of your subscribed and installed items like this
------------------------------------------------------------------------------ S I [x] WorkshopId Name ------------------------------------------------------------------------------ s i [18] 1541937027 Engine Swaps+ s i [19] 1817910013 Mega Car Dealers (includes Buyer's Remorse) s i [20] 2457242618 Mega Garage Stuff

Legend:
s - subscribed (according to the contents of your_steam_library_folder\steamapps\workshop\content\497180)
i - installed (according to the contents of the 'workshop_uninstall' directory)
[x] - choice number, the number you will be asked to type in (these numbers change when you subscribe/unsubscribe)
WorkshopId - Steam workshop item id
Name - name of the item according to the contents of the file '_CustomWorkshopInstaller_ItemNames'

Choose the item by typing the choice number and hitting enter (gently). If the item is not installed it will be installed, otherwise it will be removed.

To select multiple items type the numbers like that "1,2,3". Same logic as above applies.
To install all items type "install all".
To remove all items type "remove all".

Other commands
"sort by id" - sort items by id
"sort by name" - sort items by name (default sorting)
"sort by installed" - sort items by installed
"sort by subscribed" - sort items by subscribed
"sort by installdate" - sort items by install date
"sort by size" - sort items by size
all above extended with " desc" - for descending order
alias for "sort by" - "s by"
alias for "installed" - "i"
alias for "subscribed" - "s"
aliases for "installdate" - "idate", "ion"
"refresh" - refresh list
"reinstall x[,x]" - reinstall selected item(s)
"reinstall new" - reinstall updated item(s)
"reinstall all" - reinstall all installed item(s)
alias for "reinstall" - "re"
"page x" - open item page in steam if it is running, otherwise in browser
"files x" - opens item directory on disk
alias for "files" - "f"
alias for "page" - "p"
"exit" - exit
"class remover"
"groups" alias "g" - save a list of currently installed items for easy reinstalling



---
https://ko-fi.com/g13ba
Last edited by g13ba; 3 Sep, 2024 @ 1:14am
< >
Showing 1-9 of 9 comments
TurboTokkie 8 Mar, 2022 @ 5:35am 
Hello

I really like your mods and this game. I installed a bunch of mods and I am getting crashes now. Likely, an error in installation (incompatibility, etc) or maybe the class issue showed up again somehow. I'd like to know, is there any resource I can look at to try to fault-find? Error logs? I'd like to at least try myself what causes my game to crash so I can fix up my mods

Thanks in advance
g13ba  [developer] 10 Mar, 2022 @ 1:18pm 
Hello,
there is the error.log file in the game dir, but crashes will not always output the error, so I think it is simplier to try mods one by one.
A-mak 11 May, 2022 @ 12:12pm 
Where can I find the source code? Have you posted it anywhere?

Would be a very good idea putting your source code up on github.
g13ba  [developer] 17 May, 2022 @ 1:13pm 
No, I haven't posted it anywhere.
Would you elaborate on why it would be a very good idea putting it up on github?
A-mak 17 May, 2022 @ 1:32pm 
Many reasons, proof of being original content creator, bug tracking, feature requests/discussion, verification of source code for AV false-positives, forks with credits (if you give permission), a way for people without steam edition to access your mod/s, one of the best and easiest cloud backup methods, comparisons between versions, etc. It is also a great way to be able add it to your resume if you are interested in that field of work.

I was surprised you haven't given the comments and history of your mod. I for one would love to see the source on such a reputable site.

I think the real question is more "Why not put it on Github?".
Last edited by A-mak; 17 May, 2022 @ 1:38pm
g13ba  [developer] 11 Jul, 2022 @ 12:47am 
Originally posted by A-mak:
...verification of source code for AV false-positives...
is that a thing, besides just looking at the code?
A-mak 11 Jul, 2022 @ 2:12am 
Originally posted by g13ba:
Originally posted by A-mak:
...verification of source code for AV false-positives...
is that a thing, besides just looking at the code?

Yes...

https://www.microsoft.com/en-us/wdsi/filesubmission

https://www.google.com/search?q=cities+skylines+virus+mod&rlz

as well by putting your source on github or another service with any licensing you like, you ensure that if someone steals your code that you have evidence to prove that they went against your ToS. Which can greatly help with enforcing a take-down notice or further legal action.
g13ba  [developer] 11 Jul, 2022 @ 2:37am 
Originally posted by A-mak:
Originally posted by g13ba:
is that a thing, besides just looking at the code?

Yes...

https://www.microsoft.com/en-us/wdsi/filesubmission

https://www.google.com/search?q=cities+skylines+virus+mod&rlz

as well by putting your source on github or another service with any licensing you like, you ensure that if someone steals your code that you have evidence to prove that they went against your ToS. Which can greatly help with enforcing a take-down notice or further legal action.
What should I take from these links? Does the file submission expect source?
Which license would you suggest?
Are you planning to contribute?
A-mak 11 Jul, 2022 @ 3:08am 
Originally posted by g13ba:
What should I take from these links? Does the file submission expect source?
Which license would you suggest?
Are you planning to contribute?

The microsoft submission does not require source, they will analyse all the files contained within your false-positive submission. Once verified your mod/s will be removed from the suspicious list and marked as a false positive. Which is a great step, as windows defender blocks files first and asks questions later.

I like GNU public licensing but a lot of people use GPL and to a lesser extent MIT. There are many other licenses and it just depends what sort of permissions you want to grant if any from your code. Personally if I'm releasing something for free, I don't want someone to use it in a paid option.

Some general info on licensing: https://www.synopsys.com/blogs/software-security/5-types-of-software-licenses-you-need-to-understand/

If I am able to contribute anything I'd love to. SLRR is a childhood past time of mine. For anyone to be able to contribute directly to your github I believe you need to add permission for them or they can post comments; otherwise they can 'fork' your code onto their own github but still must follow any licensing agreement and you would be free to checkout their changes, even incorporate said changes into your main branch if you wanted to.
< >
Showing 1-9 of 9 comments
Per page: 1530 50