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
  #11  
Old 10-12-2011, 04:35 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by FG28_Kodiak View Post
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
Maybe you did not manage to connect to server within 30 seconds? Could you try OnPlaceEnter with a spawnpoint?
Reply With Quote
  #12  
Old 10-12-2011, 04:53 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Ive tried it also, but i get only a kick Kodiak message in the console, without execution.
if i type kick Kodiak in the console and hit enter, i get kicked.

Last edited by FG28_Kodiak; 10-12-2011 at 04:56 PM.
Reply With Quote
  #13  
Old 10-12-2011, 05:02 PM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

Did you try someother commands? Maybe the dedi has troubles kicking the IP it is hosted by or something like that.
__________________
http://cornedebrouwer.nl/cf48e
Reply With Quote
  #14  
Old 10-12-2011, 05:59 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

I also tried battle stop -> no effect.
Reply With Quote
  #15  
Old 10-12-2011, 11:36 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

So the script is writing to the console, but the command is not executed. Odd? Could it be that the command appears in the console but the cursor has not moved to the next line (ie command not exectuted)?

Does the script need to included the [enter] ie something like System.Console.WriteLine("kick Kodiak" & chr(13));
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote
  #16  
Old 10-13-2011, 04:18 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

your chr(13) is \n or \r\n in C#.
Reply With Quote
  #17  
Old 10-13-2011, 10:40 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by FG28_Kodiak View Post
your chr(13) is \n or \r\n in C#.
So the console comand still does not execute if you send a carriage return with the command? System.Console.WriteLine("kick Kodiak\n");
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote
  #18  
Old 10-14-2011, 04:23 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

The server console is only the standard output in this case. Same like "cmd" in Windows if you use Console Applications.
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 12:25 AM.


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