From 1f08d9e98e44acd50a8bf05f9d3aed0f42481cf7 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 15 Nov 2013 10:10:48 +0100 Subject: Cleanup --- scripts/slipro_gus.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) mode change 100755 => 100644 scripts/slipro_gus.lua diff --git a/scripts/slipro_gus.lua b/scripts/slipro_gus.lua old mode 100755 new mode 100644 index cd281d6..fa6f1f7 --- a/scripts/slipro_gus.lua +++ b/scripts/slipro_gus.lua @@ -50,6 +50,7 @@ function global_custom_enterSessionEvent(devType) --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"))) @@ -57,7 +58,7 @@ function global_custom_enterSessionEvent(devType) end function global_custom_exitSessionEvent(devType) - -- type your custom script on session ending, here + -- type your custom script on session ending, here if GetContextInfo("ospcustom") then print ("has ospcustom") end print () print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod"))) @@ -65,7 +66,13 @@ function global_custom_exitSessionEvent(devType) print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod"))) print ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^") print () - return 2 + + --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 -- cgit v1.2.3