Jump to content

Recommended Posts

Posted
don't forget Fc1.12 as there is still some who have not moved on to FC2 yet
Yes, we at EVAC are using FC1.12 in our instruction because there is no way to impose MDF and HUD failures online in FC2. We use this in our lessons to practise instrumental night flight with fog for beginners of course. :pilotfly:

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

Posted (edited)
tried the latest one nothing? games not detecting it?
Dont think, I saw a little error in the script.

 

 

EDIT :

- the version on page 3 #25 is working OFF and Online for FC2

- the version on page 2 #11 is for FC1.12

Edited by Michelange

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

Posted (edited)

creating a final version mod man install just tested all looks good.

 

each player, flyable aircraft has its own strobe light speed now

mutliplayer mode now works , other players can see your lights flash ingame now,

but in order for you to see other mp aircraft lights flash they need to have the mod installed as well.

 

... version 2 modman install shortly stay tuned guys.

Edited by diveplane
Posted (edited)

For those that still have Fc1.12b. Post no. 11 has the brightlightfc1.12 rar file for the Fc1.12 version. Works great in SP could a coupe of people try this in MP and please advise Diveplane of the result. Should work just fine.:thumbup: brightlights2 is working for Fc2 and fc1.12. don't miss this script change. Looks and works great. Have fun in the skies.

 

If anyone thinks that fc1.12 version is not working please give me a shout.

 

Note: you will have lights airborne but to turn them off, change from Nav mode to any combat mode and use ctl-l to turn them off, when back in nav mode just turn nav lights on again and they will flash. Any problems please let me or diveplane know. Thanks guy's.

Edited by rattler
Posted
could a coupe of people try this in MP and please advise Diveplane of the result. Should work just fine.
It works fine since one year in MP, tested and used regulary.

 

Fell free to adjust, adapt, the mod as you like. Few knowledge in programming is necessary.

 

Some remarks :

 

- make sure that the server uses the mod. Should work w/o but it's better.

- many times the mod is not working if you use another script who's not following this rules. I stress this point because it's the only way to make scripts compatible. TACTVIEW and LOTACT2 uses the same rules and are working together with Blinklights.lua. For the moment, G15 script, for example, is not compatibl and will inhibit the other scripts (I'd this case with a friend of mind)

 

- As usual, the FC2 blinklights script will not pass thought "Integrity Check" as well as the other scripts, if config.lua and export.lua is checked.

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

Posted

Here you have a last version to give you an Idee how you can manage 3 or 4 or more states.

 

I've not tested this now but should be correct.

 

For this i added a new value called MaxState = 3 or 4

 

Explanation of the attached file, I made the relations visible vith colors

 

-- testing witch plane and assign conditions

if self.plane == "a10a" then -- is my plane the A-10 ?

onTime = 0.1; -- Time light on

offTime = 0.2; -- Time light off

MaxState = 3; -- Maximum 3 states for A-10

else if self.plane == "F15C" then -- is my plane the F-15 ?

onTime = 0.1; -- Time light on

offTime = 0.2; -- Time light off

MaxState = 4; -- Maximum 4 states for F-15

else -- the plane is not the F-15 or A-10

onTime = 0.9; -- Time light on

offTime = 1.9; -- Time light off

MaxState = 4; -- Maximum 4 states

end -- end of the test

 

-- now testing the plane

if atAir and masterMode == "NAV" and self.plane ~= "su25" then

 

-- NEW : testing the number of states

if MaxState = 3 then

-- here we have only 3 states

if ( self.lightState == 0 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 1;

self.lastCycleTime = Timer;

elseif ( self.lightState == 1 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 2;

self.lastCycleTime = Timer;

elseif ( self.lightState == 2 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 3;

self.lastCycleTime = Timer;

elseif ( self.lightState == 3 and Timer - self.lastCycleTime >= offTime ) then

self.lightState = 0;

self.lastCycleTime = Timer;

end

 

else

-- here we have 4 states

if ( self.lightState == 0 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 1;

self.lastCycleTime = Timer;

elseif ( self.lightState == 1 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 2;

self.lastCycleTime = Timer;

elseif ( self.lightState == 2 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 3;

self.lastCycleTime = Timer;

elseif ( self.lightState == 3 and Timer - self.lastCycleTime >= onTime ) then

LoSetCommand( 175 );

self.lightState = 4;

self.lastCycleTime = Timer;

elseif ( self.lightState == 4 and Timer - self.lastCycleTime >= offTime ) then

self.lightState = 0;

self.lastCycleTime = Timer;

end

end

end

BlinkLight2.zip

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...