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

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

BeastyBill88

Couldn't the floating be caused by that memory hack you added to lift the shadow off the ground? That's the only thing I can think of that would cause it.

nyolc8

No. That has nothing to do with it. If I comment out the thread which contains the on screen icons, then problem goes away. To be exact, the global variables(variables which are used game-wise, so you basically never know what value you change which is used by the game itself too) are the problem. Now I'm making my own memory storage inside the script where I can store datas instead of global variables. And then I won't modify global values accidentaly which the game uses.

BeastyBill88

Ah ok, that will probably be a better idea than having global variables. Let us know how you get on.

nyolc8

Bug fixed, but had to remove advisor real time status from the OSD. Also had to change many variables.

Now working on the real time advisor to get it work. To be honest, I have no idea why it's not working now.

edit: I'm rewriting the whole OSD code from scratch because I don't understand my own code now.... xd

BeastyBill88

Lol had the moment when you look at your own work and think... The fuck is that haha :P

nyolc8

not moment, hours... :D btw OSD starting to work again... Using memory reading instead of variables... my brain hurts already but OSD only shows it's background yet lol  :))

BeastyBill88

Now using the memory and only showing the OSD background...



;) give your brain some rest and try again before having the weekend off lol.

nyolc8

these working now: strobe/main/siren/spotlight icon, main,str1,str2,str3,adv text.

edit: everything, just the realtime advisor not

BeastyBill88

Like I said before, as good at it is to have the real time advisor I think just having the advisor modes set up like the main EL's/strobes is good enough :) because we can still see what setting its on.

Its up to you unless you want to try and fix the real time TA before release or you could release the mod without it and add it to a later version seeing as everything is working except the OSD real time advisor.

nyolc8

everything works now, even realtime advisor, and there is no "flying" bug :P

BeastyBill88

Good god man! Give my reply a chance to register haha ;) just kidding thats great news! Your brain can do with a rest now lol.

nyolc8

Thanks! Only thing left is to make the "compact mode" (another set with coordinates and textures).

edit: done, but (as before I rewrite the OSD) the compact mode looks very ugly.

edit2: concept for compact mode

BeastyBill88

Very nice :D that looks pretty smart! It gives you all the info on what the different lights are set to and weather they are on or off. Looks better then having a smaller version of the car icon (normal size OSD) in my opinion.

nyolc8

Another bug fixed with spotlight, which I made when I fixed another bug with it... :D
Also I removed some more global vars and replaced those with own storage.

So now I can start to make the new compact mode.

BeastyBill88

Lol :P

99 little bugs in the code
99 little bugs in the code
Take one down, patch it around
117 little bugs in the code

Jk ;) so will the compact OSD be the same (or similar) to the one in the above picture?