![]() |
|
#1
|
|||
|
|||
![]()
As far as I know a log file is written with a very short delay at least on a dedi server.
Small_Bee or Geniok at sukhoi.ru mentioned that grabbing key presses is probably possible if a dll is downloaded from server to client together with a mission. No one did this yet as far as i know. Last edited by Ataros; 08-08-2011 at 07:45 AM. |
#2
|
|||
|
|||
![]()
Ok I will check this. Would make sense as the dedicated server is not supposed to be closed that often.
|
#3
|
|||
|
|||
![]()
Even if it is not written duing the mission, MG must have at least some pointer to the filebuffer in which is stored.. Most probably they should also have some LastLineAdded funtion.. You should ask Narvy on sukhoi forum.
|
#4
|
|||
|
|||
![]()
I managed to register a method to the Chat event of the GameDef class. However I don't think it's possible to access GameDef from the mission script.
I can do this however from within my addin. |
#5
|
|||
|
|||
![]() Quote:
I see you implemented an Add-In interface in your campaign stuff Banks - does that also run while a mission is being played, i.e. I could hook into the Chat event while a mission is playing if I write an Add-in? Thanks for your comments/help btw ![]() |
#6
|
|||
|
|||
![]()
Yes the chat is captured during the mission.
http://code.google.com/p/il2dce/sour...IL2DCE/Core.cs Code:
public Core(GameDef game) { _game = game; Game.EventChat += new GameDef.Chat(Game_EventChat); Code:
void Game_EventChat(IPlayer from, string msg) { if(msg.Contains("!hello")) { Game.gpLogServer(new Player[] { from }, "Hello World!", null); } } http://code.google.com/p/il2dce/sour.../GameSingle.cs Code:
public GameSingle(GameSingleIterface game) : base(game) { core = new Core(this); } http://code.google.com/p/il2dce/sour...GameSingle.xml |
#7
|
|||
|
|||
![]()
Great - thank you!
|
![]() |
Thread Tools | |
Display Modes | |
|
|