Naked Semi Suppressor [.NET] 1.0.4
1 700
39
1 700
39
Description:
Looking at a 1.0.4 within a week. Exploring some other options to boost performance but don't want to keep making people download over and over.
== v 1.0.3 deletes like 98-99% of naked semis on the road now. For some reason though, i'll see a couple on the road. Either the ontick isn't running fast enough to capture all spawns or something else is happening. ==
Basically this mod scans for semi trucks and deletes the ones that are trailer less. Essentially making all semi's appear with trailers. I may at some point dig deeper into the codes and see about making it more customizable via an ini file, but for now I'm happy with this.
I'm not a scripter but hacking stuff together to make it work and learning a bit of C# along the way. Was a little bothered by how many semi's I would see without a trailer.
Affects Hauler, Packer and Phantom. Does not check for any DLC or addon trucks.
Please leave feedback if you can and/or a like.
===============================================
Requirements:
Requires Script Hook V and the latest Script Hook V Dot net
===============================================
Installation:
1. unzip or open archive and drag nakedSemiSuppressor.dll into your scripts folder.
2. if the script folder doesn't exist, create one.
Uninstall:
1. delete nakedSemiSuppressor.dll from the scripts folder.
===============================================
Overlooked:
Looks like I didn't think about what would happen if a player was driving and detached the trailer. It still deletes the semi lol.
So I'll need to make another update to keep it from doing that. Look for that soonish.
Should be fixed now in v. 1.0.2
Looks like it deletes parked ones too. Whats the consensus, does that matter or no?
Semis now stay in parking lots or anywhere that isn't on the road, in v. 1.0.3
===============================================
Please note, until the release of some of my other mods test stable on the new 2060 game version, I'm only able to test on 1868.4. Anyone who's on a newer version and can test can leave feedback on the comments section
Versions:
v. 1.0.0 - Original release. uses the getallveh method and a few too many statements. Felt like there was noticeable performance drop.
v. 1.0.1 - Changed to only look at specific vehicles, namely the hauler, packer and phantom. Feels better in my opinion.
v. 1.0.2 - Updated code to ensure that the semi isn't deleted while player is in it or shortly afterwards. It does remove the vehicle if you get into another vehicle or move a good distance away.
v. 1.0.3 - Cleaned the code up. Included catches to exclude semis that are in the parking lots. Also the semis were being deleted if you blew up the trailers. Code has changed so it acts like vanilla.
v. 1.0.4 - Changed the code a bit to search in a 1000 (meter?) area around player and delete naked semis. I feel this is a better option. Let me know if there are any bugs experienced (part of the code does set semis health that initially spawn to a certain hp, due to some cleaning the game engine performs, it may remove the trailer but keep the semi).
===============================================
Looking at a 1.0.4 within a week. Exploring some other options to boost performance but don't want to keep making people download over and over.
== v 1.0.3 deletes like 98-99% of naked semis on the road now. For some reason though, i'll see a couple on the road. Either the ontick isn't running fast enough to capture all spawns or something else is happening. ==
Basically this mod scans for semi trucks and deletes the ones that are trailer less. Essentially making all semi's appear with trailers. I may at some point dig deeper into the codes and see about making it more customizable via an ini file, but for now I'm happy with this.
I'm not a scripter but hacking stuff together to make it work and learning a bit of C# along the way. Was a little bothered by how many semi's I would see without a trailer.
Affects Hauler, Packer and Phantom. Does not check for any DLC or addon trucks.
Please leave feedback if you can and/or a like.
===============================================
Requirements:
Requires Script Hook V and the latest Script Hook V Dot net
===============================================
Installation:
1. unzip or open archive and drag nakedSemiSuppressor.dll into your scripts folder.
2. if the script folder doesn't exist, create one.
Uninstall:
1. delete nakedSemiSuppressor.dll from the scripts folder.
===============================================
Overlooked:
Looks like I didn't think about what would happen if a player was driving and detached the trailer. It still deletes the semi lol.
So I'll need to make another update to keep it from doing that. Look for that soonish.
Should be fixed now in v. 1.0.2
Looks like it deletes parked ones too. Whats the consensus, does that matter or no?
Semis now stay in parking lots or anywhere that isn't on the road, in v. 1.0.3
===============================================
Please note, until the release of some of my other mods test stable on the new 2060 game version, I'm only able to test on 1868.4. Anyone who's on a newer version and can test can leave feedback on the comments section
Versions:
v. 1.0.0 - Original release. uses the getallveh method and a few too many statements. Felt like there was noticeable performance drop.
v. 1.0.1 - Changed to only look at specific vehicles, namely the hauler, packer and phantom. Feels better in my opinion.
v. 1.0.2 - Updated code to ensure that the semi isn't deleted while player is in it or shortly afterwards. It does remove the vehicle if you get into another vehicle or move a good distance away.
v. 1.0.3 - Cleaned the code up. Included catches to exclude semis that are in the parking lots. Also the semis were being deleted if you blew up the trailers. Code has changed so it acts like vanilla.
v. 1.0.4 - Changed the code a bit to search in a 1000 (meter?) area around player and delete naked semis. I feel this is a better option. Let me know if there are any bugs experienced (part of the code does set semis health that initially spawn to a certain hp, due to some cleaning the game engine performs, it may remove the trailer but keep the semi).
===============================================
Перше завантаження: 10 Серпня 2020
Останнє оновлення 30 Серпня 2020
Last Downloaded: 15 hours ago
19 коментаря
More mods by dimedius:
Description:
Looking at a 1.0.4 within a week. Exploring some other options to boost performance but don't want to keep making people download over and over.
== v 1.0.3 deletes like 98-99% of naked semis on the road now. For some reason though, i'll see a couple on the road. Either the ontick isn't running fast enough to capture all spawns or something else is happening. ==
Basically this mod scans for semi trucks and deletes the ones that are trailer less. Essentially making all semi's appear with trailers. I may at some point dig deeper into the codes and see about making it more customizable via an ini file, but for now I'm happy with this.
I'm not a scripter but hacking stuff together to make it work and learning a bit of C# along the way. Was a little bothered by how many semi's I would see without a trailer.
Affects Hauler, Packer and Phantom. Does not check for any DLC or addon trucks.
Please leave feedback if you can and/or a like.
===============================================
Requirements:
Requires Script Hook V and the latest Script Hook V Dot net
===============================================
Installation:
1. unzip or open archive and drag nakedSemiSuppressor.dll into your scripts folder.
2. if the script folder doesn't exist, create one.
Uninstall:
1. delete nakedSemiSuppressor.dll from the scripts folder.
===============================================
Overlooked:
Looks like I didn't think about what would happen if a player was driving and detached the trailer. It still deletes the semi lol.
So I'll need to make another update to keep it from doing that. Look for that soonish.
Should be fixed now in v. 1.0.2
Looks like it deletes parked ones too. Whats the consensus, does that matter or no?
Semis now stay in parking lots or anywhere that isn't on the road, in v. 1.0.3
===============================================
Please note, until the release of some of my other mods test stable on the new 2060 game version, I'm only able to test on 1868.4. Anyone who's on a newer version and can test can leave feedback on the comments section
Versions:
v. 1.0.0 - Original release. uses the getallveh method and a few too many statements. Felt like there was noticeable performance drop.
v. 1.0.1 - Changed to only look at specific vehicles, namely the hauler, packer and phantom. Feels better in my opinion.
v. 1.0.2 - Updated code to ensure that the semi isn't deleted while player is in it or shortly afterwards. It does remove the vehicle if you get into another vehicle or move a good distance away.
v. 1.0.3 - Cleaned the code up. Included catches to exclude semis that are in the parking lots. Also the semis were being deleted if you blew up the trailers. Code has changed so it acts like vanilla.
v. 1.0.4 - Changed the code a bit to search in a 1000 (meter?) area around player and delete naked semis. I feel this is a better option. Let me know if there are any bugs experienced (part of the code does set semis health that initially spawn to a certain hp, due to some cleaning the game engine performs, it may remove the trailer but keep the semi).
===============================================
Looking at a 1.0.4 within a week. Exploring some other options to boost performance but don't want to keep making people download over and over.
== v 1.0.3 deletes like 98-99% of naked semis on the road now. For some reason though, i'll see a couple on the road. Either the ontick isn't running fast enough to capture all spawns or something else is happening. ==
Basically this mod scans for semi trucks and deletes the ones that are trailer less. Essentially making all semi's appear with trailers. I may at some point dig deeper into the codes and see about making it more customizable via an ini file, but for now I'm happy with this.
I'm not a scripter but hacking stuff together to make it work and learning a bit of C# along the way. Was a little bothered by how many semi's I would see without a trailer.
Affects Hauler, Packer and Phantom. Does not check for any DLC or addon trucks.
Please leave feedback if you can and/or a like.
===============================================
Requirements:
Requires Script Hook V and the latest Script Hook V Dot net
===============================================
Installation:
1. unzip or open archive and drag nakedSemiSuppressor.dll into your scripts folder.
2. if the script folder doesn't exist, create one.
Uninstall:
1. delete nakedSemiSuppressor.dll from the scripts folder.
===============================================
Overlooked:
Looks like I didn't think about what would happen if a player was driving and detached the trailer. It still deletes the semi lol.
So I'll need to make another update to keep it from doing that. Look for that soonish.
Should be fixed now in v. 1.0.2
Looks like it deletes parked ones too. Whats the consensus, does that matter or no?
Semis now stay in parking lots or anywhere that isn't on the road, in v. 1.0.3
===============================================
Please note, until the release of some of my other mods test stable on the new 2060 game version, I'm only able to test on 1868.4. Anyone who's on a newer version and can test can leave feedback on the comments section
Versions:
v. 1.0.0 - Original release. uses the getallveh method and a few too many statements. Felt like there was noticeable performance drop.
v. 1.0.1 - Changed to only look at specific vehicles, namely the hauler, packer and phantom. Feels better in my opinion.
v. 1.0.2 - Updated code to ensure that the semi isn't deleted while player is in it or shortly afterwards. It does remove the vehicle if you get into another vehicle or move a good distance away.
v. 1.0.3 - Cleaned the code up. Included catches to exclude semis that are in the parking lots. Also the semis were being deleted if you blew up the trailers. Code has changed so it acts like vanilla.
v. 1.0.4 - Changed the code a bit to search in a 1000 (meter?) area around player and delete naked semis. I feel this is a better option. Let me know if there are any bugs experienced (part of the code does set semis health that initially spawn to a certain hp, due to some cleaning the game engine performs, it may remove the trailer but keep the semi).
===============================================
Перше завантаження: 10 Серпня 2020
Останнє оновлення 30 Серпня 2020
Last Downloaded: 15 hours ago
Looking to optimize the code so it doesn't drag performance down. Though, just pressing insert to reload seems to help out if fps does drop.
so what does it allow you to do
@krystof567 Looking at the description I think this script is supposed to remove any truck that can pull a trailer in traffic which doesn't have a trailer behind it.
@Pizzahut correct!
Edited the Description page for a cleaner reading experience.
I just thought about how this could affect parked semis and it does. Does it matter to you all if that happens? Currently looking into a fix but with my limited knowledge, not sure if I'll be able to remedy that.
1.0.4 uploaded and waiting approval. Please provide feedback if this induces a crash or other bugs.
Hiya, so does this mod have a specific gameplay function? Does deleting trailerless semis improve performance or anything? Or is it purely an aesthetic mod, for if you don't like seeing trucks without trailers? I've not noticed it as an issue before, but are there too many "naked" semis around or something? Personally while rarer I don't think it's unrealistic to see trucks without trailers driving about
@Hyfrith Good questions! This is purely aesthetic. While you bring up a good point about semis being "naked" its true, though from my experience rare. I haven't played the vanilla game in a while but with increase traffic densities you'll probably see way more naked ones on the road. I work in a semi moderate-heavy traffic irl and in the past 4 years I rarely saw a semi without a trailer (whether it be on the highway or city roads).
For everyone who loves individuality and aesthetics! It's great to see so many trucks with trailers or tankers on the road. For trucker missions but also for aesthetics in LSPDFR, I recommend these two packs:
https://de.gta5-mods.com/vehicles/mapped-box-trailer-replace
https://de.gta5-mods.com/vehicles/mapped-tanker-trailer-replace-liveries-template
Sorry for the double post. In the beginning, all trucks have different trailers and tanks and that's the way to go. But as soon as I start trucker missions and I'm on the freeway or highway, everyone always drives the same. Either they only transport wood, containers or tankers and no longer differently.
@Yoko Daisuke sorry to hear that. All this mod does is delete semis that don't have trailers (or tries very hard to get them all). You may have to go into your vehicle meta and change some settings so you can make sure the spawn chance is different.
Find these lines (this is for my <modelName>trailers</modelName>):
<identicalModelSpawnDistance value="1000" />
<maxNumOfSameColor value="1" />
<frequency value="100" />
<maxNum value="5" />
Change to whatever you like.
identicalModelSpawnDistance value - is how close another like it will spawn.
maxNumOfSameColor - value how many of the same color(?) can spawn. set to 1 if you want to force liveries to choose a different color/texture.
frequency value - might be a percent but tells the game how likely it should spawn.
maxNum value - might be the total number in the world?
Oh and of course while you tinker with those, be sure to make a backup of both the update.rpf and meta. I won't be held responsible for any custom edits :P (this is aimed for mostly anybody that decides to attempt this and it messes up their game - though it shouldn't).
Also I can make an updated video on what a standard cruise looks like to me.
Nevermind, did another test and hadn't seen that before but now its doing it. Did a couple laps around the map and it looks like it cleared itself up. Might be the engine defaulting to one of those. Will be something I evaluate again down the road if I can learn more .net scripting to address those issues.
Thanks for your answer and help.
My GTA5 backup folder is 280MB and don't worry: P Before I test anything, I always create a backup.
I try it now.
Wait. Do I have to change that for everyone?
<Item>docktrailer</Item>
<Item>trailers</Item>
<Item>trailers2</Item>
<Item>trailers3</Item>
<Item>trailers4</Item>
<Item>tanker2</Item>
<Item>watertanker</Item>
<Item>trailers2a</Item>
<Item>trailerlogs</Item>
@Yoko Daisuke yup, it a bit time consuming. But like I said earlier I ran into that issue while testing where nothing but logger trailers were spawning and then the system cleared up.
U can't finish the mission : Father and Son with this mod ( just saying )
Solid Mod. Still works with latest update
I've starteed to mod a new playthrough on 3095 and this still works flawlessly. Can't confirm for lspdfr or other versions obviously. Something I did add on my own playthrough, some flag adjustments on the semi vehicles themselves in the vehicle meta, adding FLAG_ATTACH_TRAILER_IN_CITY and possibly removing FLAG_AVOID_TURNS if you want to see how well the semi's drive in the city. Not great but not terrible.