PDA

View Full Version : [Request] Files Logs



spy-warrior
03-05-2016, 02:47 AM
Hello,

Search a script that keeps in a different file the following the messages:

Rechercher un script qui garde dans un fichier différent les messages suivant:



Message Logging (say & say_team)
Command logger (players connected)
Player vote
Player tested command not admin


Thanks

nico
03-05-2016, 04:35 AM
different file

I don't think its possible, as far as I know you can only log to the current AngelScript log file in svencoop/logs/Angelscript/date.log

Nero
03-05-2016, 09:47 PM
Yeah AS can't write to file at the moment for security reasons :/

spy-warrior
04-05-2016, 12:54 AM
I don't think its possible, as far as I know you can only log to the current AngelScript log file in svencoop/logs/Angelscript/date.log


Yeah AS can't write to file at the moment for security reasons :/

Ok, :(

It is feasible for a developer in the team Sven Co-op?
Il est faisable pour un développeur dans la team Sven Co-op?

Thanks

w00tguy123
04-05-2016, 01:42 AM
Yes, it's feasible. The devs have to discuss how to sandbox it though.


Angelscript's file system is read only for security purposes, but if you need to be able to write files (and make them persist) i suggest starting a discussion on where these files should go. It hasn't been discussed before beyond the need to sandbox the file system to prevent abuse.
Database support isn't being worked on right now, but i might build a library to do that eventually. Can't say what the team is planning to do about that.