4cAleksa Posted February 6, 2006 Posted February 6, 2006 how do you start the subprogram at the end of the mission - FUNCTION LUAEXPORTSTOP() how do you define the end of the mission to start script. the goal is to maintain stats on client thanking you in advance
zorlac Posted February 6, 2006 Posted February 6, 2006 export.lua is enforced by the server, and is usually disabled for clients in multiplayer games.
4cAleksa Posted February 6, 2006 Author Posted February 6, 2006 i noticed that:( but i need just 1 function from that script. ok, i know that is too much, but real question is how i can get ms_log.txt before its deleted (and dont have aplication in background checking and backuping) when u enter next mission (lokon delete it when u press fly). in advance. PS. main purpose of this is to maintain statistic of squad's pilots, who fly on other (all) server. so maybe this could be interensting.
zorlac Posted February 6, 2006 Posted February 6, 2006 ...how i can get ms_log.txt before its deleted (and dont have aplication in background checking and backuping) when u enter next mission (lokon delete it when u press fly). you cant... as you said, it is wiped at the start of the next mission. You need an application that will copy it on a regular basis.... or you wont be able to get it at all.
4cAleksa Posted February 6, 2006 Author Posted February 6, 2006 i cant find where i enable export.lua for clients. in advance.
zorlac Posted February 7, 2006 Posted February 7, 2006 follow the instructions in the first post (by Ice) in this thread: http://forum.lockon.ru/showthread.php?t=10639&highlight=export.lua This change needs to be made on the *SERVER*... changing it on the clients will not have any affect. So, if you join a public server, the export.lua will still be disabled.
4cAleksa Posted February 8, 2006 Author Posted February 8, 2006 Question for ED: is there any chance to enable an fuction in lua script to start external aplication for maintan stat data on the end of mission. maybe even beter, to keep data for session before exit lockon. thx in advance PS in future addon(patch1.12 lol).
AndyHill Posted February 8, 2006 Posted February 8, 2006 You can do pretty much anything from the Lua script, just add your stuff to the function that runs at the end of the mission. Lua may not be the greatest language in the world, but I think it should be able to do what you're trying to achieve. _________________________________________________________ Lock on MUST have toe-brake functionality with differential braking! My blog full of incoherent ramblings on random subjects: https://anttiilomaki.wordpress.com/
4cAleksa Posted February 8, 2006 Author Posted February 8, 2006 Andy thx for reading the post. I know that, but problem is second nature. I cant do anything what server dont permit in this case, i'm talking from client sight. Ok that is done becouse of cheat issue, but i want something totaly diffrent, not to cheat. I just need info what is given by lokon, and i want to use it (mp_log.txt from temp dir). thx
Recommended Posts