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

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

nyolc8

It will look like that, but I didn't worked on that code-wise (just the textures are done) because I found another (small) bug which is there since beginning :D

BeastyBill88

Lol another bug? What is this one if its been there since the beginning?

nyolc8

I mean "beggining" since I made the L key to change modes of all lights. It's a tiny bug but I don't really get why it's happening :D

edit: fixed it, and you won't believe it, but found another bug one minute later xd This time, the bug is in the view angle and corona size thing...

edit2: literally took 30 sec to fix this...  :)) just had to put a "=" after a ">" :P

nyolc8

Compact OSD in action:


edit: don't know why youtube shows error when I embed it, but here is the video: https://www.youtube.com/watch?v=H4ezcI9r3_4

"SPTL" - spotlight
"SRN" - siren
"SRN +" - siren with H hold down

BeastyBill88

Very nice. Can I ask, how will the different lights work, will you press and hold 1 "master" key and (for example) press J to turn on the strobes? Also how is it looking for release? As I would love to have a tinker around with the mod on my night shifts ;) lol.

nyolc8

To enable a light, you just press it's key. To change a light mode, you press and hold L and while you holding it, you press the light key which you want to change it's mode.

About release: Testing testing and testing to found out if there is any bug (like the flying bug) to prevent people from getting banned because of this mod :D

BeastyBill88

Thanks :) that's a nice way of doing it.

Lol thank you, I don't fancy being banned again :P Have found anymore major or bannable bugs?

nyolc8

Not yet, but didn't tested helis yet, and such... Btw I removed ~15-20 global variables from the script (replaced them with own storage). But there are still ~15-25 global variables :D

(global variables = variables which MAY used by the game itself(or others scripts) too, so can cause bugs/crashes)

You ask why I don't use other variables? A script can contain only 31 variables... which is far not enough.

You ask why I don't turn all global variables into own storage? They script would be 2x size, also it would be a nightmare to do it. (For read one data from custom storage: you need to calculate proper position in the memory, then read that data, then pass it to a local variable, then use that variable... same as writing data, but in reverse order.)

So I'm just hoping I won't find any more bugs...:D

BeastyBill88

Lol that hurt my brain just trying to read that haha. Rather you than me Nyolc8 :P Great job as always though.

nyolc8

Question:
Because of the 3 strobe lights, the cars got many config lines now. This making the vehicles.ini file bigger. Also it's harder to find the lines for a vehicle, I mean you have to scroll much, and it's getting more and more frustrating as you adding more and more vehicles in it. So the question is, what if I make a folder in EL called vehcfg, and then there would be a config file for each vehicle? And then vehicles.ini would be removed.

So for example, for copcarla, there would be a file "CLEO\EL\vehcfg\596.ini". For towtruck: "CLEO\EL\vehcfg\525.ini", etc....

What do you think?


Forget it, can't do it now ::)

BeastyBill88

Hows the testing coming along? Any bannable bugs found?

nyolc8

No, but I didn't tested much in the weekend.

edit: some small refinements made in the code (removed some totally unneccessary code lines - I really don't know why I wrote those there lol - , and a small bug fixed)

BeastyBill88


Wizzer

[hide=Steam]
[hide=stats]
Quote from: a ban appealWhat actually was happening:
lv was fleeing police and suddenly porqe not sack me and went back inside and did not let me
Quote from: Sorin on May 14, 2015, 19:23
Quote from: Emily on May 14, 2015, 19:04
Quote from: asjhfbisyadfb69 on May 14, 2015, 16:50
So many people from romania lol
no wonder everyone asks for help
:ukiddn:
Quote from: asjhfbisyadfb69 on May 15, 2015, 12:37
The other day I got rammed so hard against the wall my vehicle jumped in the hair and went from perfect to broken wtf.

Quote from: Guest on June 02, 2015, 20:36
Good afternoon some time ago stopped playing Samp personal problems recently reopened it and I appeared Banding not know why I really seems unfair that I Page Broken Dishes Another's hope I solve the problem Regards
Quote from: StrangerWizzer has 6 letters, 6 is our first number, there are 2 z, 2 is our second number, 6-2=4. 4 is our third number, your rest of your name letters are not doubled, 1 is our forth number, 4-1=3. A triangle was 3 thingy things. iluminati is triangle, Wizzer = iluminati comfirmed.
Joci [06 Jun 20:12]:   We need an admin hacker online -.-

BeastyBill88