[Update 1.0 - 2015.03.13] Emergency Lights CLEO script by nyolc8

Started by nyolc8, February 08, 2015, 13:59

nyolc8

My latest script, this version contains config for stock vehicles (copcar LA,copcar SF,copcar LV,copcar ranger, ambulance,firetruck,towtruck, etc...) It will look bad with car mods (for different/modded car models, light coordinates are need to be tweaked/repositioned in the vehicles.ini file)

Changes in the ini file are applied by just turning off and on the main/strobe/advisor lights in the game, so you can edit the ini file while the game running.

Keys:
G -> main lights
J -> strobe all lights
U -> strobe 1 lights
I -> strobe 2 lights
O -> strobe 3 lights
K -> advisor lights
L -> lights mode
B -> spotlight
RMB -> hold to move spotlight

(note: not all type of lights configured to all vehicles, so for example: towtruck doesn't have advisor lights)

1.0:


Video:



(the game speed got weird because of fraps, so the lights blinking speed are not actual on this video)


0.9.1:
- fixed the crash/opcode on exploding vehicle (and if /rm used)
0.9.2:
- fixed the light problem when User Track Player Radio used
0.9.3:
- new method for blinking the lights, no more flickering lights, more stable blinking
- added 3 new advisor mode (9 total)
- changed advisor to 8 lights (instead of 5 lights)
- added new random mode for advisor light (configurable in .ini file)
- added enforcer, hpv1000, firetruckLS (also updated all vehicle config for new 8 light advisor)
0.9.4:
- fixed again the damn bug of opcode/crash when "/rm" or exploding vehicle.

0.9.5:
- L key to change advisor mode, K key just to turn on/off
- default mode for advisor light can be configured in emergency.ini (which will be the first when you start the game)
- blocked default siren lights, so H key only enables sound (can be configured in emergency.ini, to leave default siren lights enabled if you want)
- if you have two same vehicles, then you won't need to use many config lines for both, you can just tell the script to use another model config. (Example to use copcarla config: copy.model.cfg = 596)
- removed some left-in ini value reading which was used only with old blinkling method (alpha.60 and things like that), also removed these from default vehicles.ini
- small mode (half size) option for icon
- new icon for random advsior (shuffle icon)
- seperate ini files for settings (emergency.ini) and for vehicle configs (vehicles.ini)

1.0:
- totally new, many things has been re-wrote
- 3 strobe light sets
- beam light (B key to turn on/off, hold mouse right button while moving the camera to control it)
- L key change all lights mode, by holding it, while pressing a light key
- U,I,O to control strobe light sets seperatelly
- new OSD (realtime, advisor, new compact mode, new textures, etc...)
- new config ini files
- easily editable light shadows (in EL/textures/shadows/ folder)
- new options for more coronas, etc...

DOWNLOAD 1.0

Rahail

My game crashes after copying the files to Cleo folder. EL(foder) and emergency.cs

nyolc8

Where is the game crashes? At loading screen?

Rahail


After SAMP loads

SA-MP 0.3z
Exception At Address: 0x00000000
Base: 0x02CB0000


Registers:
EAX: 0x00000000   EBX: 0x00000001   ECX: 0x02B62A38   EDX: 0x00001D4C
ESI: 0x02B62A38   EDI: 0x02B62938   EBP: 0x0022FD94   ESP: 0x0022FD18
EFLAGS: 0x00010246


Stack:
+0000: 0x00469FF7   0x02B62A38   0x02B62A38   0x00000000
+0010: 0x0046A220   0x14BE95FC   0x00000065   0x0022FD94
+0020: 0x00000000   0x00000010   0x0022FD84   0x0083C528
+0030: 0xFFFFFFFF   0x0053BFCC   0x0000001A   0x14BE9583
+0040: 0x00000000   0x0000001A   0x14BE9583   0x01900990
+0050: 0x02D15B5D   0x0000001A   0x14BE9583   0x00000000
+0060: 0x773D80E0   0x0022FD6C   0x0022F924   0x0022FF78
+0070: 0x02D60AA4   0x02D82EB0   0x00000001   0x773D80E0
+0080: 0x0053E986   0x00000001   0x00000003   0x00000064
+0090: 0x0053ECC2   0x00000001   0x00619B71   0x0000001A
+00A0: 0x00000001   0x00000001   0x0000000A   0x00748DA0
+00B0: 0x0000001A   0x00000001   0x75E8D9A3   0x00000000
+00C0: 0x0022FF88   0x7FFDF000   0x018A0000   0x4DA5F49E
+00D0: 0x028A1D78   0x00000008   0x00000100   0x00000008
+00E0: 0x00000102   0x44340000   0x43E10000   0x00000000
+00F0: 0x00000000   0x000005A0   0x00000384   0x00000000
+0100: 0x00000001   0x00190250   0x00000200   0x00000000
+0110: 0x01C102C9   0x002BA573   0x000002C9   0x000001C1
+0120: 0x0000002C   0x0022FE2C   0x00825EA4   0x75E8D9A3
+0130: 0x00000000   0x7FFDF000   0xFFFFFFFF   0x00821D17
+0140: 0x00000065   0x00000065   0x0022FF88   0x008246F1
+0150: 0x00400000   0x00000000   0x0193216C   0x0000000A
+0160: 0x00000094   0x00000006   0x00000001   0x00001DB1
+0170: 0x00000002   0x76726553   0x20656369   0x6B636150
+0180: 0x00003120   0x00000000   0x00000000   0x00000000
+0190: 0x00000000   0x00000000   0x00000000   0x00000000
+01A0: 0x00000000   0x00000000   0x00000000   0x00000000
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x0022FDFE   0x69726373   0x5C737470
+01E0: 0x5F617467   0x735C6173   0x69747465   0x2E73676E
+01F0: 0x00824588   0x00000000   0x00000000   0x7FFDF000
+0200: 0xC0000005   0x00000000   0x0193216C   0x00000044
+0210: 0x019653F8   0x019651E0   0x01963680   0x00000000
+0220: 0x00000000   0x00000000   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF
+0250: 0x00000000   0x00000000   0x0022FE78   0x0022F924
+0260: 0x0022FFC4   0x00825EA4   0x00888078   0x00000000
+0270: 0x0022FF94   0x75E8EE1C   0x7FFDF000   0x0022FFD4


SCM Op: 0x446, lDbg: 0 LastRendObj: 0


Game Version: US 1.0

nyolc8

Do you have newOpcodes.cleo in the CLEO folder?


(video added)

Rahail

Quote from: nyolc8 on February 08, 2015, 15:06
Do you have newOpcodes.cleo in the CLEO folder?


(video added)
No i dont have it

nyolc8


Rahail


Somebody.



nyolc8


Kake

Mine crashed too same as Rahail  :o  but that extra settings solved it although

anyway i luv u nyolc8  :3 <3 :3 <3 :3 <3  :like: :like:
Thnkx

Recoil

_DK no longer uses the library plugin.dll
Not compatible with the latest plugins such as IMFX, ImVehFt, imCamAim

newOpcodes.cleo generates endless crashes and bugs, it is absolutely not necessary for the library Cleo 4.3.16-18

sardarji

Its freaking awesome! I am in love with it, Cant wait for it to work on other vehicles too. Great job! Cookie for you:)


nyolc8

Thanks all! :)

Quote from: Recoil on February 08, 2015, 18:32
_DK no longer uses the library plugin.dll
Not compatible with the latest plugins such as IMFX, ImVehFt, imCamAim

newOpcodes.cleo generates endless crashes and bugs, it is absolutely not necessary for the library Cleo 4.3.16-18
For me the new cleo versions having some audio playing issues, and that's why I didn't update to that.

Btw I never experienced any newopcodes.cleo related crashes. And I use imfx, imvehft, gta5hud without any problem.

Quote from: sardarji on February 08, 2015, 19:14
Its freaking awesome! I am in love with it, Cant wait for it to work on other vehicles too. Great job! Cookie for you:)
Thanks! Well you can make it for any vehicles, just edit the emergency.ini file and add these features with desired light positions if you want :P (okay I know there is no proper readme for that yet, but you can find out how to make it by looking the existing vehicle configs)

sardarji

Quote from: nyolc8 on February 08, 2015, 19:21
Quote from: sardarji on February 08, 2015, 19:14
Its freaking awesome! I am in love with it, Cant wait for it to work on other vehicles too. Great job! Cookie for you:)
Thanks! Well you can make it for any vehicles, just edit the emergency.ini file and add these features with desired light positions if you want :P (okay I know there is no proper readme for that yet, but you can find out how to make it by looking the existing vehicle configs)
Yeah but its way to much complicated and hard, i'll just wait for instructions/readme :P
btw how do you set the position of lights by changing value one by one or you have some idea?