EDIT ok i got this. It was a stupid mistake by me. Some mods do complain about it, some others not. It was simply that i missed a return argument on some statements. The script worked without complains on some mods, but gave an error popup to console on some other mods. Nevermind.
Help with Lua script
Ok then let me ask a lua question instead:)
For example: you run a etpro server and playing a 1vs1 fight where rifle only is allowed on a small map.
Is there some kind of lua script available that records for example the rifle kills and deaths AND saves those 2 info’s along with the name to for example a generated file called %date%_001.txt file?..something like that.
I found it usefull for auto-recording match results.
I recently wrote weaponstats parser script: http://etpub.org/viewtopic.php?f=10&t=70
I think this is the only way you can currently get that kind of information in etpro combined with Lua. Etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
If you want to go that route i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function. However, except youtube links i was not able to get any information from their IRC. You can try yourself
Give me the function and i will at least port the weaponstats parser to etpro (currently only etmain is working). Do you know some etmain code with Lua ?`Well i do, but that is not the topic 
I recently wrote a weaponstat string parser script: http://etpub.org/viewtopic.php?f=10&t=70
I think this is the only way you can currently get that kind of information in etpro combined with Lua. Etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
If you want to go down that route, i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function. Would be a good start. However, except youtube links i was not able to get any information from their IRC. You can try yourself
Give me the function and i will at least port the weaponstats parser to etpro (currently only etmain is working).
Do you know some etmain code with Lua ? Well i do, but it wont be usefule since not popular (it is private)
So you will have to port that script and adapt it to your needs for etpro.
I recently wrote a weaponstat string parser script: http://etpub.org/viewtopic.php?f=10&t=70 I think this is the only way you can currently get that kind of information in etpro combined with Lua.
If you want to go down that route, i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function, as explained in the thread. Would be a good start. However, except youtube links and herp derp penis answers i was not able to get any information out of their IRC. But you can try yourself
Give me the function and i will at least port the weaponstats parser to etpro (currently only etmain is working).
Do you know some etmain code with Lua ? Well i do, but it wont be usefule since not popular (it is private)
So you will have to port that script and adapt it to your needs for etpro.
Etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
I recently wrote a weaponstat string parser script: http://etpub.org/viewtopic.php?f=10&t=70 I think this is the only way you can currently get that kind of information in etpro combined with Lua.
If you want to go down that route, i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function, as explained in the thread. Would be a good start. However, except youtube links and herp derp penis answers i was not able to get any information out of their IRC. But you can try yourself
Give me the function source code and i can try to port that weaponstats parser to etpro (currently only etmain is working).
By the way: do you know some etmain code with Lua ? Well i do, but it wont be useful because it is not popular (only private)
So you will have to port that script and adapt it to your needs in etpro. Etpub ports are also welcomed, as i think i wont bother too much on porting it to etpro or any other mod.
Also: etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
I recently wrote a weaponstat string parser script: http://etpub.org/viewtopic.php?f=10&t=70 I think this is the only way you can currently get that kind of information in etpro combined with Lua.
If you want to go down that route, i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function, as explained in the thread. Would be a good start. However, except youtube links and herp derp penis answers i was not able to get any information out of their IRC. But you can try yourself
Give me the function source code and i can try to port that weaponstats parser to etpro (currently only etmain is working).
By the way: do you know some etmain code with Lua ? Well i do, but it wont be useful because it is not popular (only private)
So you will have to port that script and adapt it to your needs in etpro. Etpub ports are also welcomed, as i think i wont bother too much on porting it to etpro or any other mod.
Also: etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
I recently wrote a weaponstat string parser script: http://etpub.org/viewtopic.php?f=10&t=70 I believe this is the only way you can currently get that kind of information in etpro combined with Lua.
If you want to go down that route, i think there can be something done with that script (at least for a basis). Maybe you can get bani to post a pastebin of etpro G_createStats function, as explained in the thread. Would be a good start. However, except youtube links and herp derp penis answers i was not able to get any information out of their IRC. But you can try yourself
Give me the function source code and i can try to port that weaponstats parser to etpro (currently only etmain is working).
By the way: do you know some etmain code with Lua ? Well i do, but it wont be useful because it is not popular (only private)
So you will have to port that script and adapt it to your needs in etpro. Etpub ports are also welcomed, as i think i wont bother too much on porting it to etpro or any other mod.
Also: etpub recently added the sess.aWeaponStats field, so you will in future get chance to retrieve that kind of information way faster in etpub. It is pretty new, so you have to wait.
afaik etpro is under nda, so you will never get that info from etpro devs…
But there are quite a few stat tools which do extract that info, vsp stats does and this one:
http://cade.datamax.bg/away/ets/
http://bani.anime.net/banimod/forums/viewtopic.php?p=52189&highlight=weaponstats#52189
http://bani.anime.net/banimod/forums/viewtopic.php?t=3227
[QUOTE=acQu;403462][…]youtube links and herp derp penis[…][/QUOTE]
Hah yeah, youtube instructions are a bit sick. Sometimes i use youtube videos for some blender tutorials and thats a pain in the ass. 1 hour of video material stretches to 5-6 hours trying and failing …rewind, listen, watch and try again. brrrrr
To be honest: i cannot programm AT ALL, thats why i was wondering if someone knows a similar script. I can however ask bani for that specific funtion but i think ailmanki is right and its useless to try and ask him.
I never heard of lua in etmain but it sounds good, especially if it fixes a couple of security issues and maybe other gaming issue but then again, i don’t know how “deep” you can go with lua scripts or if your etmain&lua version fixes anything at all…
Is it going to be released or not worth it?..yet…either way, is there a changelog or a server running it?
I think i will try the latest etpub today and forget about etpro since etpub has a better support so i will wait.
[QUOTE=ailmanki;403463]afaik etpro is under nda, so you will never get that info from etpro devs…
But there are quite a few stat tools which do extract that info, vsp stats does and this one:
[/QUOTE]
I allready thought that cause i only remember that he wont give out etpro code at all which is fine and normal.
The VSP stats is a good idea untill etpub has the lua stuff implented acqu mentioned. If it can retrieve results at the end of a match then its just a matter of will from my side to google and find a way to save it to a file.
Thanks for answering:)