diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-20 03:42:47 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-20 03:42:47 +0100 |
commit | 316af72ec579aef66fe0a38a012c095b83b62ecd (patch) | |
tree | 863a33e1fe4190a31be02da074319c2f59da554c | |
parent | 9495c1a909d12294979803959dcb001f1d011141 (diff) |
[gugus] indent.
-rw-r--r-- | scripts/gugus/enterExit.lua | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/scripts/gugus/enterExit.lua b/scripts/gugus/enterExit.lua index eeee1d2..1747c51 100644 --- a/scripts/gugus/enterExit.lua +++ b/scripts/gugus/enterExit.lua @@ -1,37 +1,41 @@ function custom_enterSessionEvent(devType) - -- type your custom script on session start, here - print () - print ( "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv") - print (string.format("simu : %s",GetContextInfo("simulation"))) - print (string.format("car : %s",GetContextInfo("carname"))) - print (string.format("track : %s",GetContextInfo("trackname"))) - --print (string.format("session: %s",GetContextInfo("session"))) - print () - if GetContextInfo("ospcustom") then print ("has ospcustom") end - - print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod"))) - print (string.format("ospmethod : %s",GetContextInfo("ospmethod"))) - print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod"))) - return 2 + + m_lastSector3 = nil + m_bestSector3 = nil + + -- type your custom script on session start, here + print () + print ( "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv") + print (string.format("simu : %s",GetContextInfo("simulation"))) + print (string.format("car : %s",GetContextInfo("carname"))) + print (string.format("track : %s",GetContextInfo("trackname"))) + --print (string.format("session: %s",GetContextInfo("session"))) + print () + if GetContextInfo("ospcustom") then print ("has ospcustom") end + + print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod"))) + print (string.format("ospmethod : %s",GetContextInfo("ospmethod"))) + print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod"))) + return 2 end function global_custom_exitSessionEvent(devType) - -- type your custom script on session ending, here - if GetContextInfo("ospcustom") then print ("has ospcustom") end - print () - print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod"))) - print (string.format("ospmethod : %s",GetContextInfo("ospmethod"))) - print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod"))) - print ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^") - print () - - --my_setups=io.open("gus_cars.cfg", "a") - --my_setups:write(GetContextInfo("carname"), " shiftligts ", GetContextInfo("shiftlightsmethod"), "\n") - --my_setups:write(GetContextInfo("carname"), " speedlimiter ", GetContextInfo("speedlimitermethod"), "\n") - --my_setups:close() - - return 2 + -- type your custom script on session ending, here + if GetContextInfo("ospcustom") then print ("has ospcustom") end + print () + print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod"))) + print (string.format("ospmethod : %s",GetContextInfo("ospmethod"))) + print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod"))) + print ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^") + print () + + --my_setups=io.open("gus_cars.cfg", "a") + --my_setups:write(GetContextInfo("carname"), " shiftligts ", GetContextInfo("shiftlightsmethod"), "\n") + --my_setups:write(GetContextInfo("carname"), " speedlimiter ", GetContextInfo("speedlimitermethod"), "\n") + --my_setups:close() + + return 2 end print ( "gugus> + enter exit" ) |