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 05-21-2012, 04:47 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

There is no way to get the MissionfileName from a script (i am looking for it too), via CloDo - API
It would be possible (i think) if we can create Addins for Multiplayer, to get the current directory.
IGame:
gameInterface.ToFileSystemPath(..)
Reply With Quote
  #2  
Old 05-21-2012, 05:02 PM
moggel moggel is offline
Approved Member
 
Join Date: Mar 2011
Posts: 70
Default

Quote:
Originally Posted by FG28_Kodiak View Post
There is no way to get the MissionfileName from a script (i am looking for it too), via CloDo - API
It would be possible (i think) if we can create Addins for Multiplayer, to get the current directory.
IGame:
gameInterface.ToFileSystemPath(..)
What is CloDo - API? Linky?
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
Reply With Quote
  #3  
Old 05-21-2012, 05:10 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

I call the managed Dlls CloDo-API. Cliffs of Dover Application Programming Interface
Reply With Quote
  #4  
Old 05-21-2012, 05:42 PM
moggel moggel is offline
Approved Member
 
Join Date: Mar 2011
Posts: 70
Default

Quote:
Originally Posted by FG28_Kodiak View Post
I call the managed Dlls CloDo-API. Cliffs of Dover Application Programming Interface
Silly me!
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
Reply With Quote
  #5  
Old 05-21-2012, 06:08 PM
moggel moggel is offline
Approved Member
 
Join Date: Mar 2011
Posts: 70
Default

Quote:
Originally Posted by FG28_Kodiak View Post
There is no way to get the MissionfileName from a script (i am looking for it too), via CloDo - API
It would be possible (i think) if we can create Addins for Multiplayer, to get the current directory.
IGame:
gameInterface.ToFileSystemPath(..)
Sounds interesting. Where can I obtain IGame objects? I've found the type and apparently it inherits from IGamePlay. If I set a breakpoint in OnTickGame and cast it to IGame I do get an object but the IGame.BattleScriptFileName property is always null. I performed the test in SP mode. I then tried doing the same from OnBattleStarted() and OnBattleInit() but those never gets called.

I then performed the exact same test running a server thinking that maybe a "battle" is what gets started when you type "battle start" in the server console but ... no.

When are those methods called anyway?

By the way: I think we should set up a scripting WIKI...
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
Reply With Quote
  #6  
Old 05-21-2012, 07:02 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by moggel View Post
When are those methods called anyway?
Thats the problem in the GUI (gamePages, take a look at the tstcampaign). So wie need a addin to get access to it, or the devs creates a methods so it would be easier for us.
Reply With Quote
  #7  
Old 05-21-2012, 09:06 PM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

If you can figure out how to call the console( As per in game pilot manual Shift-tab enter tod) and enter "tod" you can gather the "time of day" which is the mission time at that point from mission start.
It is currently hard coded, that is, cannot be altered as per IL2-46(although this was un alterable between patches even for 46)
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:40 AM.


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