Convoy Trucking

Hyde Park => GTA & SA-MP => Mods => Topic started by: nyolc8 on February 19, 2015, 23:37

Title: [Update 1.3.1 - 2015.04.01] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on February 19, 2015, 23:37
FLAGGER (DoubleExhaust) CLEO script 1.3.1 by nyolc8

================
Version history:
================

1.0:
- initial release

1.1:
- now you can specify cars to have single exhaust too (for example petrol). Make sure you configure it in the doubleExhaust.ini ;)

1.2:
- now the script only writes the modelflag once, so much-much more performance friendly. Only .cs file modified so if you have 1.1, just replace the .cs file.

1.2.1:
- more checks to avoid unneccessary loops to be run -> spare more CPU (for example if [single] section is empty in the ini file then the script won't run the part to check vehicles for single exhaust)

1.3:
- totally new script, written from zero, new method to "hack" cars. New method is more native, it loads modified data into the handling storage itself, rather than hacking cars near to the player continously.
- script runs only at game loading, after that it unloads itself from memory.
- new ini file structure

1.3.1:
- gta_sa.exe checking implemented, tells you if your gta_sa.exe is unsupported

=========
FEATURES:
=========

This script brings these features:
- toggle single/double exhaust for any car
- toggle swinging chassis for any car
- toggle halogen lights (blueish lightcorona) for any car
- toggle reverse opening bonnet for any car (for car mods)
- toggle hanging boot, like on SUVs and other cars which have attached boot at the roof (for car mods)
- toggle tailgate boot, like pickup trucks and other cars which have boot attached to vehicle at bottom (for car mods)
- fixes strange front wheel angles on towtruck


=============
REQUIREMENTS:
=============
- CLEO 4+


========
INSTALL:
========
Copy files from "CLEO" folder into "<game directory>\CLEO" folder.

Note: Without configuring any IDs into flagger.ini, this script will only fix towtruck front axle.

IMPORTANT: remove doubleExhaust.cs and doubleExhaust.ini before using this!
DOWNLOAD 1.3.1 (http://speedy.sh/5AZnc/flagger-by-nyolc8.zip)
Title: Re: [Release] Double Exhaust for RoadTrain by nyolc8
Post by: MikeMan on February 19, 2015, 23:40
Add the flat bed. I'll love you forever.  :3 C:-) O:-)
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: nyolc8 on February 20, 2015, 00:23
Made it configurable ;) Make sure to remove doubleExhaust_RT.cs if you installed it already.
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: MikeMan on February 20, 2015, 00:29
lol the diesel smoke mod doesn't recognize it :(
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: nyolc8 on February 20, 2015, 00:34
it recognizes it for me.

(if you testing it with flatbed, make sure to remove the "//" from before veh_2 in the ini file, it's commented out)
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: Nado on February 20, 2015, 08:51
Damn this will be very useful for me, what about a cleo to fix wheels in modded cars? Sometimes without any fix they look weird, like the towtruck front wheels
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: nyolc8 on February 20, 2015, 09:17
I'll look at the wheels, btw I tried to disable swinging chassis flag with cleo but the game somehow doesn't recognize the change. So maybe only model flags can be changed on the fly.(exhaust is a model flag, wheels and swingingchassis are handlingflags)
Title: Re: [Release|Update] Double Exhaust for any car by nyolc8
Post by: nyolc8 on February 20, 2015, 11:09
I'm thinking to make it possible to remove double exhaust from those vehicles. If flag clearing works on the fly, then I'll implement that too.
Title: Re: [Update 1.1] Double Exhaust by nyolc8
Post by: nyolc8 on February 20, 2015, 12:21
Updated to 1.1, now you can specify cars to have single exhaust too (for example petrol).
Make sure you configure it in the doubleExhaust.ini ;)

DOWNLOAD (http://speedy.sh/NjdrB/doubleExhaust-by-nyolc8.zip)
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: nyolc8 on February 20, 2015, 13:15
Updated to 1.2, now the script only writes the modelflag once, so much-much more performance friendly.
Only .cs file modified so if you have 1.1, just replace the .cs file.

DOWNLOAD (http://speedy.sh/42C9m/doubleExhaust-by-nyolc8.zip)

***

Updated to 1.2.1, more checks to avoid unneccessary loops to be run -> spare more CPU
(for example if [single] section is empty in the ini file then the script won't run the part to check vehicles for single exhaust)

DOWNLOAD (http://speedy.sh/GQxrM/doubleExhaust-by-nyolc8.zip)
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: Miss101 on February 21, 2015, 15:33
Heya, just wanted to say this is one great mod.But I can't get it to work on either LVPD or SFPD cruisers.What am I doing wrong? =/
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: nyolc8 on February 21, 2015, 16:38
Thanks, can you show your .ini file config?

(SFPD was the test car for me while I wrote the script and it worked, so it should work)
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: Miss101 on February 21, 2015, 16:47
(http://i.imgur.com/CMLuvuW.png)

Dis?I tried also typing Cop Car (SF)  instead of SFPD, but no results.
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: nyolc8 on February 21, 2015, 17:17
The text with the // is just a comment, so it doesn't matter if it's there or not, or what it says :) The script only reads the numbers. (modelID)

Just tested, made my ini file exactly like yours, and both works perfectly for me... ::)

If you set another car (roadtrain - 515), then it works on that? Maybe the script isn't even loading up?
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: Miss101 on February 21, 2015, 18:02
Quote from: nyolc8 on February 21, 2015, 17:17
The text with the // is just a comment, so it doesn't matter if it's there or not, or what it says :) The script only reads the numbers. (modelID)

Just tested, made my ini file exactly like yours, and both works perfectly for me... ::)

If you set another car (roadtrain - 515), then it works on that? Maybe the script isn't even loading up?

EDIT: Nevermind.Somehow I figured this was an ASI mod, not a cleo mod and I didn't even place it in my CLEO folder but into main directory where all my other ASI mods are.God, I'm stupid.
Anyways, it works now.Appreciate it!
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: sardarji on February 21, 2015, 19:32
Thanks man! Gonna try it soon.
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: nyolc8 on March 09, 2015, 13:56
Some progress made in the process to remake this script to only run at game startup. Which will also bring possibility to disable/enable chassis swinging and other things as well.
The current status is that the modified flags getting applied nicely. But all physics related things getting messed up so basically the cars don't have power at all :D You just press accelerate/brake, and the car just rolls powerless like a skateboard :d

EDIT: aaaaaaand made it working :)) Expect update in 1-2 days :P
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: nyolc8 on March 09, 2015, 16:13
so current script which I testing can:
- set single exhaust for any vehicle
- set double exhaust for any vehicle
- disable chassis swinging for any vehicle
- enable chassis swinging for any vehicle

(also the 20 vehicle limit removed :P and the script only runs at game startup then closes itself)

Any other feature you want?:D

edit: I'll rename this script to "flagger" or something like this, because it modifies vehicle model and handling flags. (and not just exhaust related things modified anymore)

edit2: changing the way how the ini works, there will be only one section for exhaust/swinging.

example how it will work: if the vehicle you set in "exhaust" section has double exhaust then it will have single exhaust, if it's have single exhaust, then it will have double exhaust.

edit3: I plan to implement option to:
- make wheels wide/narrow (per front-rear axles) - maybe later if it's really needed
- reverse bonnet, hanging boot, tailgate boot (for car mods which requires one of these) - DONE
- convertible (player jumps into vehicle, handy if you apply a convertible mod on a non-convertible car) - doesn't seem to change anything
- halogen lights (if this flag working at all, never seen any difference) - DONE
Title: Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 09, 2015, 17:46
halogen lights flag actually works :o

left car has it enabled, notice how it has a bluish light instead of the normal white (right car):
(http://i.imgur.com/DweDmoj.jpg)

I never noticed this anywhere...

(note: this bluish light is built into the game, I just enabled it onto copcarla)

EDIT:
towtruck front axle fix built in ;)
Title: Re: [Update 1.2.1] Double Exhaust by nyolc8
Post by: Benny on March 09, 2015, 19:22
Could you line up all your mods you did it a big modpack? I want to use them but downloading and instaling each one by itself is a pain in the ass..
Also where can i get that gtav map that everyone has?
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: nyolc8 on March 09, 2015, 19:49
1.3:
- totally new script, written from zero, new method to "hack" cars. New method is more native, it loads modified data into the handling storage itself, rather than hacking cars near to the player continously.
- script runs only at game loading, after that it unloads itself from memory.
- new ini file structure


=========
FEATURES:
=========

This script brings these features:
- toggle single/double exhaust for any car
- toggle swinging chassis for any car
- toggle halogen lights (blueish lightcorona) for any car
- toggle reverse opening bonnet for any car (for car mods)
- toggle hanging boot, like on SUVs and other cars which have attached boot at the roof (for car mods)
- toggle tailgate boot, like pickup trucks and other cars which have boot attached to vehicle at bottom (for car mods)
- fixes strange front wheel angles on towtruck

Note: Without configuring any IDs into flagger.ini, this script will only fix towtruck front axle.

IMPORTANT: remove doubleExhaust.cs and doubleExhaust.ini before using this!
DOWNLOAD 1.3 (http://speedy.sh/NbSdB/flagger-by-nyolc8.zip)



***
@Benny: I'll do it, but then I'll have to update that after each new mod... >< GTAV HUD is a mod by DK, you can get it here: http://gtaforums.com/topic/652697-relsa-gta5-hud-by-dk22pac/ (http://gtaforums.com/topic/652697-relsa-gta5-hud-by-dk22pac/)
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: Benny on March 09, 2015, 20:40
Huh any fix for this? I use that hud and when i chaneg the radio stations my exe crashes... anyone has a better exe?
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: AzureSpeed on March 09, 2015, 20:49
one question: will this script also work on cleo 4.3 or only cleo 4?
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: Wizzer on March 09, 2015, 20:51
Quote from: Benny on March 09, 2015, 20:40
Huh any fix for this? I use that hud and when i chaneg the radio stations my exe crashes... anyone has a better exe?
Had the same problem, if you are using the Steam version then you have to downgrade it. That hud reads the song names that got removed at the final update. Downgrading to 1.0 fixed the problem for me :like:
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: nyolc8 on March 09, 2015, 20:52
Quote from: BlackFire on March 09, 2015, 20:49
one question: will this script also work on cleo 4.3 or only cleo 4?
Try it, it should work with 4.3 as it doesn't use any special functions.

Quote from: Benny on March 09, 2015, 20:40
Huh any fix for this? I use that hud and when i chaneg the radio stations my exe crashes... anyone has a better exe?
Do you use modded timecyc? (timecyc.aaa ?) Just asking to know what exe you need :D
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: Benny on March 09, 2015, 20:53
I don't use any other mods right now, i have the steam version and 1.0 eng exe..
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 09, 2015, 20:56
then this should work: http://mixmods.blogspot.hu/2012/02/gta-sa-v10-us-hoodlum-no-cd-fixed-exe.html (http://mixmods.blogspot.hu/2012/02/gta-sa-v10-us-hoodlum-no-cd-fixed-exe.html)
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExaust)
Post by: Wizzer on March 10, 2015, 05:58
Quote from: Benny on March 09, 2015, 20:53
I don't use any other mods right now, i have the steam version and 1.0 eng exe..
Changing exe doesnt help, I had 1.0 exe as well but that doesnt give the removed songs and stuff back..
Check this: http://gtaforums.com/topic/753764-relsasteam-downgrader/
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: AzureSpeed on March 10, 2015, 15:20
well ye you maybe need to download the missing sound/sfx files for the 1.0 version.
although the hud is working for me it just shows me the old songs as text even though i dont have the sound files for the radio stations.
my only problem is just the user track player cuz the UTP cant play my own songs which i have in my folder but idc anymore since im listening to radio seven on ct
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: Benny on March 10, 2015, 16:41
Quote from: Wizzer on March 10, 2015, 05:58
Quote from: Benny on March 09, 2015, 20:53
I don't use any other mods right now, i have the steam version and 1.0 eng exe..
Changing exe doesnt help, I had 1.0 exe as well but that doesnt give the removed songs and stuff back..
Check this: http://gtaforums.com/topic/753764-relsasteam-downgrader/
I think i will have to do thise since nyolc8's exe made it worse, now i crash when i enter a vehicle as well lol.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: Nado on March 11, 2015, 22:57
can you make the a non swinging chassis for all vehicles? I mean it would be more like a fix or something
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 12, 2015, 00:13
If you tell me what vehicles have swinging chassis, then I can make an option something like "disable_all_swing = 1" and then it would disable it on all cars which have it by default. (But now you can add all vehicles which have swinging chassis into the .ini and it will disable all of them.)
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: BeastyBill88 on March 12, 2015, 00:24
I know that the cop cars have swinging chassis's but their the only ones I know of unless i go through every single vehicle.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 12, 2015, 00:31
I know that stretch have it too. But I think if there's ~5-6 cars only with swinging chassis, then just add them into the swinging chassis section in the flagger.ini and problem fixed. If I would write a "fix", that would the same thing as adding them into the ini file.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: abeceda on March 12, 2015, 00:46
Buffalo have swinging chassis too.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 12, 2015, 00:52
config to remove swinging from all cars:
veh_1 = 402
veh_2 = 409
veh_3 = 419
veh_4 = 421
veh_5 = 426
veh_6 = 466
veh_7 = 467
veh_8 = 475
veh_9 = 478
veh_10 = 491
veh_11 = 492
veh_12 = 504
veh_13 = 507
veh_14 = 536
veh_15 = 542
veh_16 = 566
veh_17 = 596
veh_18 = 597
veh_19 = 598
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: BGTrucker on March 19, 2015, 07:32
It shows that it loads the game when I launch SAMP,but when it has to start the game(show the game world),it crashes.I remove the flagger.ini and .cs and game is ok.What could be the problem ?

EDIT:I reinstalled game and result is the same.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 19, 2015, 09:56
Do you have hoodlum gta_sa.exe? What version of CLEO you have? What version of newOpcodes you have?
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: BGTrucker on March 19, 2015, 20:24
Quote from: nyolc8 on March 19, 2015, 09:56
Do you have hoodlum gta_sa.exe? What version of CLEO you have? What version of newOpcodes you have?
Yes,my SA version is Hoodlum.
My Cleo version is 4.3.I guess the opcodes file is the same version.
When I copy the flagger.ini and .cs files to cleo folder,and add 515(roadtrain) to have double exhaust,the game loads and immediately crashes.Then I copy the opcodes file and other files you have provided with the mod,but it happens the same way - loads and crashes immediately.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 19, 2015, 22:37
so your line is "veh_1 = 515"?

Btw I don't like 4.3, some things (especially sound related opcodes) didn't work with that in my diesel smoke script either...

But this script mainly contains pure memory writings without any cleo "magic", so I have no idea what could be the problem with your setup.

If you want to help, I can send you a test version to see where the script stops for you.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: BGTrucker on March 20, 2015, 06:41
I'll just install older cleo version,like cleo 3,and see if it will crash with it.I'll post the results.

EDIT: Just tried with Cleo 3.0.950,and noticed it doesnt have any opcodes and etc files.Anyway I tried and it crashes again,also tried copying the opcodes you provided but still crashes.So I give up
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 20, 2015, 10:12
cleo 3 is too old. Try 4.0 or 4.1. But I checked the script itself yesterday to see what could be the problem, but there is not any special cleo thing in it... Only basic cleo commands and memory writes. So I don't know why it crashes for you.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: BGTrucker on March 20, 2015, 10:29
It finally worked with Cleo 4.1.1.30 but wtf,I thought it will add the second exhaust pipe to the other side of the truck,but it only adds double smoke,this is not what I expected.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 20, 2015, 11:00
This is for car mods which have double exhaust, not for original cars. A script can't double a model element. (If that's attached to other parts, like almost every model)

So you need to make the second exhaust pipe via model (or use a carmod which have two pipes), and with this script you can make that second pipe to work.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: Hobo on March 27, 2015, 01:02
Installed the mod. Added the ID for RoadTrain for dual exhaust, tried to drive to my RoadTrain with my cop car, activated NOS, car stopped and I was frozen until I did /kill.

Anytime I click, I'm frozen.

I have the extras and plugin.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 27, 2015, 11:49
To be honest I didn't tested it with nitro.

You saying you enable double exhaust for roadtrain only and copcar freezes when you apply nitro? Is roadtrain spawned already (you're in that distance from it) when copcar freezes?

edit: are you sure it's because of this mod? I just applied nitro to copcar, even applied double exhaust to the copcar too, and nitro flame comes from both places nicely, no freeze or such thing
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: Hobo on March 27, 2015, 15:31
I have this mod, your lights mod, and your diesel smoke mod. Those are the only scripts I'm using. I've tested it from where I can see the roadtrain and from where I can't. I dunno whats wrong. I only added the Id for the roadtrain in the ini file. Any car I get in will freeze if I attempt to use nos.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 27, 2015, 15:46
Did you tried maybe on another server? Any server where car has nitro... Because I can't test it on CT server, I don't own any car with nitro. Maybe this happens on CT only... (but that would be totally nonsense)

I have the lights, dieselsmoke too, and no problem where I test it. So I don't know yet what happening for you.
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: Nado on March 29, 2015, 18:53
Quote from: nyolc8 on March 27, 2015, 15:46
Did you tried maybe on another server? Any server where car has nitro... Because I can't test it on CT server, I don't own any car with nitro. Maybe this happens on CT only... (but that would be totally nonsense)

I have the lights, dieselsmoke too, and no problem where I test it. So I don't know yet what happening for you.
it happens in other servers like TM too....
Title: Re: [Update 1.3 - 2015.03.09] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on March 29, 2015, 20:47
I'll implement gta_sa.exe file checking into this script too, and then you'll see if it's because of exe or what. Because if the exe is unsupported, then it will tell it to you.

just made the script cleo 4.3 compatible (no idea how I did it lol xd)
Title: Re: [Update 1.3.1 - 2015.04.01] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on April 01, 2015, 14:06
1.3.1:
- gta_sa.exe checking implemented, tells you if your gta_sa.exe is unsupported

DOWNLOAD 1.3.1 (http://speedy.sh/5AZnc/flagger-by-nyolc8.zip)
Title: Re: [Update 1.3.1 - 2015.04.01] Flagger by nyolc8 (DoubleExhaust)
Post by: Nado on April 01, 2015, 23:51
Quote from: nyolc8 on April 01, 2015, 14:06
1.3.1:
- gta_sa.exe checking implemented, tells you if your gta_sa.exe is unsupported

DOWNLOAD 1.3.1 (http://speedy.sh/5AZnc/flagger-by-nyolc8.zip)
no more game controls freezing after pressing the nos button, I think it's fixed, thanks Nyolc!
Title: Re: [Update 1.3.1 - 2015.04.01] Flagger by nyolc8 (DoubleExhaust)
Post by: nyolc8 on April 02, 2015, 13:35
Well, I didn't do anything related to that, but good if it's working now for you :D
Title: Re: [Update 1.3.1 - 2015.04.01] Flagger by nyolc8 (DoubleExhaust)
Post by: BGTrucker on May 02, 2015, 06:41
Sorry if this has been added already since I havent followed the topic recently,but can you add double rear wheels flag too,as currently I am using another cleo mod for that,and it conflicts with your flagger mod and I cant use them both together.