Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2011, 11:56 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default Sending server console commands from script

According to naryv this should work:

Code:
System.Console.WriteLine("bla-bla-bla");
Thus you can control server from the script. Server-commander any one ?

E.g it is possible to autokick users based on ping now. Or include them into ban list for vulching or attacking admins
Reply With Quote
  #2  
Old 10-12-2011, 12:05 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Hm via MissionMenu with special user privileges, you could kick and ban players or reload a mission. Seems possible, will make some tests.
Reply With Quote
  #3  
Old 10-12-2011, 12:11 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

BTW you can get user Steam ID by "host" console command IIRC.

Do you think it will be possible to give admin privileges based on steam ID?

Also it can be useful for squad statistics: players will be registered as squad members and then when they join a server all their statistics will go to squad statistics.

If server can ID players by Steam ID we would not need to ask entering a password which is not possible now iirc. (Script can not read player messsages from chat yet.)

Do you think we can get Steam ID into script via a console command? Maybe log parsing will be required but it is not very reliable in real time. Sometimes log is written with a big delay.
Reply With Quote
  #4  
Old 10-12-2011, 12:27 PM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

That is interesting.

Opens many new options for controling, including battle stop and starting, based on if player connected.
__________________
http://cornedebrouwer.nl/cf48e
Reply With Quote
  #5  
Old 10-12-2011, 01:03 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

At the moment i get the command to the console but not executed.
Reply With Quote
  #6  
Old 10-12-2011, 01:23 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Copy log and code here I will send it to naryv please.
Reply With Quote
  #7  
Old 10-12-2011, 01:32 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Nothing special, just for testing i tried (Tester was 30sec delay Trigger) :

public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);

if ("Tester".Equals(shortName) && active)
{

System.Console.WriteLine("kick Kodiak");
}
}
I also tried "\r\n" and "\n". I get the message kick Kodiak in console, thats all
So the simply way doesn't exist
Reply With Quote
  #8  
Old 10-12-2011, 01:45 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thank you. I asked naryv.
Reply With Quote
  #9  
Old 10-12-2011, 02:14 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Quote:
Originally Posted by Ataros View Post
According to naryv this should work:

Code:
System.Console.WriteLine("bla-bla-bla");
Thus you can control server from the script. Server-commander any one ?

E.g it is possible to autokick users based on ping now. Or include them into ban list for vulching or attacking admins
Is it possible to read from console? Code would be:

Code:
string line = System.Console.ReadLine();
Reply With Quote
  #10  
Old 10-12-2011, 04:11 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Sorry, I have no idea. Someone has to try it. And better someone who understands what it means
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.