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

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

nyolc8

#30
Quote from: nyolc8 on February 08, 2015, 21:13
Quote from: Wizzer on February 08, 2015, 20:37
Great mod :like:

@ nyolc: I don't know if you already noticed but if the lights are on and the vehicle explodes then you will get opcodes and mostly you will crash :P
Thanks, I'll look into this. :)
Can anyone else confirm this bug? Because for me the lights blinking on an exploded vehicle too without any opcode.

edit: okay I get this too... strange... I get opcode and crash in samp, but works fine in samp debug... so... how the f*ck to fix this lol...  :|

Kake

Quote from: nyolc8 on February 09, 2015, 13:16

Quote from: Kakeshi on February 09, 2015, 12:19
nyolc8 idk wat happened ..The first time i installed this cleo it ran fine but now my samp is crashing at the load screen :/ can u plz help me?
Try to use the files from here: http://speedy.sh/BVEw5/cleo-extras.zip
yeah,i had them and its still crashing  :'(

SpazzBucket.

alright so whatever light is turned on first thats the icon that will remain, here you can see the icon says I have the orange lights on, but I only have main lights on
"The more you fail, the more you know.
When you lose you then try to gain.
The best lessons are learnt through pain"
Quote from: HoboHobo [30 Jan 20:40]:   "Since I don't do that whole guy thing" .... Ok guys, pack up the lemonade stand, she's not interested.
[hide=Alyssa White-Glutz hottest woman in metal]http://[/hide]
[hide=Lzzy Hale][/hide]
[hide=Renee Phoenix][/hide]
[hide=Good one Stteve]
Quote from: SpazzbucketI suddenly feel very smart
Quote from: StteveYou're extremely smart all the time, it just explodes sometimes
Quote from: StteveSo we're volcanoes
[/hide][hide=Other true/clever quotes]
Quote from: Sjomp on May 04, 2014, 18:54
It doesn't matter how much people are online it's about how much fun you have.
Quote from: braneNext time don't use any porn site to upload pictures. Imgur or Imageshack would be fine. Its not nice to see cocks around while checking the image you came for.
Quote from: TheSandmanBan looks fair. its pathetic when people attack females just because they play an online game, wow.
Quote from: TheSandmanRap is like scissors, it always loses to rock
Quote from: HoboProvoking doesn't brake rules, but it does break them.

Remember to brake for moose so you don't break your car.
[/hide]
[hide=Konali's motto]
Quote from: Konali on January 12, 2014, 16:41I only had one rule in my head that i used in every situation: its a game, lets keep it that way.

GeneralLee

I don't have that problem,even if I left the vehicle with lights turned on that icon will dissapear.

________________________________________________________
Not being sarcastic to someone is hard.
Like holding in a fart that would be nasty and funny at the same time.

nyolc8

Spazz, did you change the coordinates of the yellow(advisor) lights to position them near to the rear window? Because if they are too "deep" in the car, they won't be visible even when they are enabled. So maybe they are really enabled, you just don't see them (?)

to reposition them:
advisorEL.pos.Y = -1.8
amber lights position (minus value means it's moved to the rear from the vehicle center point)

advisorEL.pos.Z = 0.35
amber lights vertical position


advisorEL.space.X = 0.18
space between each yellow light

edit: you mean if you only enable main lights or strobe lights, that "3" icon appears? :|

SpazzBucket.

No when I turn on the the advisor lights they are clearly visible. And whatever light gets turned on when I first get into the car is the light icon that remains on the whole time. so if I turned on main lights first, the main light icon would remain on no matter what series of lights were on. I never changed any coordinates in the files, just dragged, dropped and played, it just happens to be where they ended up
"The more you fail, the more you know.
When you lose you then try to gain.
The best lessons are learnt through pain"
Quote from: HoboHobo [30 Jan 20:40]:   "Since I don't do that whole guy thing" .... Ok guys, pack up the lemonade stand, she's not interested.
[hide=Alyssa White-Glutz hottest woman in metal]http://[/hide]
[hide=Lzzy Hale][/hide]
[hide=Renee Phoenix][/hide]
[hide=Good one Stteve]
Quote from: SpazzbucketI suddenly feel very smart
Quote from: StteveYou're extremely smart all the time, it just explodes sometimes
Quote from: StteveSo we're volcanoes
[/hide][hide=Other true/clever quotes]
Quote from: Sjomp on May 04, 2014, 18:54
It doesn't matter how much people are online it's about how much fun you have.
Quote from: braneNext time don't use any porn site to upload pictures. Imgur or Imageshack would be fine. Its not nice to see cocks around while checking the image you came for.
Quote from: TheSandmanBan looks fair. its pathetic when people attack females just because they play an online game, wow.
Quote from: TheSandmanRap is like scissors, it always loses to rock
Quote from: HoboProvoking doesn't brake rules, but it does break them.

Remember to brake for moose so you don't break your car.
[/hide]
[hide=Konali's motto]
Quote from: Konali on January 12, 2014, 16:41I only had one rule in my head that i used in every situation: its a game, lets keep it that way.

nyolc8

#36
I have no idea why the "screen icon thread" stucks for you... Can you tell me your CLEO version and the newopcodes.cleo exact file size?

edit: btw if the first enabled light icon stuck for you, then how did you get the "3" icon stuck (on the screenshot)?

BeastyBill88

I tried this out and I get no problems at all in SAMP, the icons appear and disappear when I turn the lights on and off, it looks great on the default vehicles. But I did notice that the main lights turn off if you activate the sirens. I'm assuming that is to do with the problem you was having in the other topic?

When I try using it in SP it instantly crashes my game, I don't have any other ELM/ELS mods installed for single player. So I have no idea what is causing the problem. Hopefully your scripting magic can get things sorted Nyolc8.

SpazzBucket.

Quote from: nyolc8 on February 09, 2015, 21:23
I have no idea why the "screen icon thread" stucks for you... Can you tell me your CLEO version and the newopcodes.cleo exact file size?

edit: btw if the first enabled light icon stuck for you, then how did you get the "3" icon stuck (on the screenshot)?
Cause when I first got in I can change the icon, so its like after logging in, for the first 3 seconds of getting into a police car the icons will change but WONT disappear if lights are off. icons ONLY change if you /q and relog, if you /kill the icon is still there.

I have cleo 4 I believe, newopcodes file is 157kb (160kb on disk)

EDIT:When I get back I will try redownloading the mod and using a non modded cop car
"The more you fail, the more you know.
When you lose you then try to gain.
The best lessons are learnt through pain"
Quote from: HoboHobo [30 Jan 20:40]:   "Since I don't do that whole guy thing" .... Ok guys, pack up the lemonade stand, she's not interested.
[hide=Alyssa White-Glutz hottest woman in metal]http://[/hide]
[hide=Lzzy Hale][/hide]
[hide=Renee Phoenix][/hide]
[hide=Good one Stteve]
Quote from: SpazzbucketI suddenly feel very smart
Quote from: StteveYou're extremely smart all the time, it just explodes sometimes
Quote from: StteveSo we're volcanoes
[/hide][hide=Other true/clever quotes]
Quote from: Sjomp on May 04, 2014, 18:54
It doesn't matter how much people are online it's about how much fun you have.
Quote from: braneNext time don't use any porn site to upload pictures. Imgur or Imageshack would be fine. Its not nice to see cocks around while checking the image you came for.
Quote from: TheSandmanBan looks fair. its pathetic when people attack females just because they play an online game, wow.
Quote from: TheSandmanRap is like scissors, it always loses to rock
Quote from: HoboProvoking doesn't brake rules, but it does break them.

Remember to brake for moose so you don't break your car.
[/hide]
[hide=Konali's motto]
Quote from: Konali on January 12, 2014, 16:41I only had one rule in my head that i used in every situation: its a game, lets keep it that way.

nyolc8

The crash bug (opcodes & crash when car explodes) will get fixed soon (already fixed it for main lights, just need to copy-paste the fix for all lights) ;)

Quote from: BeastyBill88 on February 09, 2015, 22:15
I tried this out and I get no problems at all in SAMP, the icons appear and disappear when I turn the lights on and off, it looks great on the default vehicles. But I did notice that the main lights turn off if you activate the sirens. I'm assuming that is to do with the problem you was having in the other topic?

When I try using it in SP it instantly crashes my game, I don't have any other ELM/ELS mods installed for single player. So I have no idea what is causing the problem. Hopefully your scripting magic can get things sorted Nyolc8.
Yes, I made it like this, because both of them visible at the same time looked weird.
And for the SP issue: to be honest, I didn't even tested this on SP. But I'll look into that.

Quote from: SpazzBucket. on February 09, 2015, 22:17
Quote from: nyolc8 on February 09, 2015, 21:23
I have no idea why the "screen icon thread" stucks for you... Can you tell me your CLEO version and the newopcodes.cleo exact file size?

edit: btw if the first enabled light icon stuck for you, then how did you get the "3" icon stuck (on the screenshot)?
Cause when I first got in I can change the icon, so its like after logging in, for the first 3 seconds of getting into a police car the icons will change but WONT disappear if lights are off. icons ONLY change if you /q and relog, if you /kill the icon is still there.

I have cleo 4 I believe, newopcodes file is 157kb (160kb on disk)

EDIT:When I get back I will try redownloading the mod and using a non modded cop car
This happens with all vehicles which have these lights? Or only with copcar sf? I still don't have any idea why that thing gets stuck for you...

but for now until I figure it out, you can disable the icon at all by editing CLEO\EL\emergency.ini "onScreenStatus.mode = 1" to 0(disable) or 2(text shows up for a few sec when you switch modes)

nyolc8

Update 0.9.1:
- fixed the crash/opcode on exploding vehicle (and if /rm used)

Download: http://speedy.sh/yKjWZ/Emergency-by-nyolc8.zip

nyolc8

Can someone confirm this bug for me?
I playing for a few minutes and after that if I enable a light, the light coronas getting positioned to the center of the car instead of the configured coordinates. And it only gets fixed when I restart the game. Anyone else have this? I have no idea why this happens...

edit: if I set my radio to User Track Player, then the coronas appear in the center of the car... wtf o.o How the hell is User Track Player related to light coronas position? lol I just love this game... xd

edit2: So user track player causing some un-understandable issue with the ini file reading. (tried coordinates set into the script itself, and then this bug didn't happen) Have no idea how to fix this...

edit3: so an example what exactly happens after setting the radio to user track player:
there is a number in the ini file, let say "6.352". After changing the radio to user track player, this number getting read from the ini file as "6.000". So the value after the dot vanishes... I have no idea why... There is no logic in this game... ::)

edit4: Found a way to "hack-fix" this strange bug in the ini file reading, so next update will fix this. ;D

nyolc8

0.9.2:
- fixed the light problem when User Track Player Radio used
DOWNLOAD

nyolc8

next version (0.9.3) plans:
- more light "bulb" for advisor - wip
- advisor feature only reads ini values when it gets turned on from off state, and not everytime you change it's mode (between 1-6) - done
- sampcs_helper.cs included in package (the "plugin" script I made for my "extra_doors" script which prevents keystroke registering when chatting in samp chat) - done

Petar

nyolc8, you're really an awesome guy when it comes to mods. I'm following your work for quite some time. I have every truck mod in my GTA from you. I just wanted to ask you if there's a place where I can follow your work?