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 > CoD Multiplayer

CoD Multiplayer Everything about multiplayer in IL-2 CoD

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2011, 04:47 AM
Thee_oddball Thee_oddball is offline
Approved Member
 
Join Date: Mar 2011
Posts: 812
Default

doghouse i just loaded your map (nice job ) and spawned in one plane and then spawned another one and first one was gone I tried doing the same to one of my maps by adding the script below after hiting save in FMD it generated a .cs file of the same map name ...but the destroying of empty plyer planes did not work can you tell me what i did wrong? thnx
Quote:
using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;

public class Mission : AMission
{


public override void OnTickGame()
{
{
if (Time.tickCounter() % 1200 == 0)
{

GamePlay.gpPostMissionLoad("missions\Multi\Dogfigh t\basic40c.mis");
}
}
}

public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
{
base.OnPlaceLeave(player, actor, placeIndex);
Timeout(1, () =>
{
AiAircraft CurAircraft = player.Place() as AiAircraft;
AiAircraft PrevAircraft = actor as AiAircraft;
if (CurAircraft != PrevAircraft)
{ (actor as AiAircraft).Destroy(); }
});
}

}
__________________
Gigabyte Z68
Intel 2500K (@4.3 ghz)212 CM Cooler
8GB Ram
EVGA 660SC (super clocked) 2GB Vram
CORSAIR CMPSU-750TX 750W
64 GB SSD SATA II HD
WIN7 UL 64BIT
Reply With Quote
  #2  
Old 04-18-2011, 09:06 AM
doghous3 doghous3 is offline
Approved Member
 
Join Date: Apr 2011
Posts: 168
Default

With that mission, I take it the sub-mission didn't load.

The issue is with void OnTickGame().

You used back-slash instead of forward-slash. The syntax error would in this instance prevented the rest of the script to run.

So with the changes below, it will work.



using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;

public class Mission : AMission
{


public override void OnTickGame()
{
if (Time.tickCounter() % 1200 == 0)
{

GamePlay.gpPostMissionLoad("missions/Multi/Dogfigh t/basic40c.mis");
}
}


public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
{
base.OnPlaceLeave(player, actor, placeIndex);
Timeout(1, () =>
{
AiAircraft CurAircraft = player.Place() as AiAircraft;
AiAircraft PrevAircraft = actor as AiAircraft;
if (CurAircraft != PrevAircraft)
{ (actor as AiAircraft).Destroy(); }
});
}

}
Reply With Quote
  #3  
Old 04-18-2011, 09:13 AM
klem's Avatar
klem klem is offline
Approved Member
 
Join Date: Nov 2007
Posts: 1,653
Default

Guys,

where do you get all this info from, settings, scripting (and should it be necessary?) etc

Anyway, anything I can find to help me build missions would be good. A community self-help manual Sticky??
__________________
klem
56 Squadron RAF "Firebirds"
http://firebirds.2ndtaf.org.uk/



ASUS Sabertooth X58 /i7 950 @ 4GHz / 6Gb DDR3 1600 CAS8 / EVGA GTX570 GPU 1.28Gb superclocked / Crucial 128Gb SSD SATA III 6Gb/s, 355Mb-215Mb Read-Write / 850W PSU
Windows 7 64 bit Home Premium / Samsung 22" 226BW @ 1680 x 1050 / TrackIR4 with TrackIR5 software / Saitek X52 Pro & Rudders
Reply With Quote
  #4  
Old 04-18-2011, 01:16 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by klem View Post
Anyway, anything I can find to help me build missions would be good.
Small collection here http://forum.1cpublishing.eu/showthread.php?t=21518

Manual from developers is not ready yet. You can start now with learning some C# basics I think.
http://msdn.microsoft.com/en-us/vcsharp/dd919145.aspx
http://msdn.microsoft.com/en-us/vcsharp/aa336766
Reply With Quote
  #5  
Old 04-18-2011, 11:32 PM
klem's Avatar
klem klem is offline
Approved Member
 
Join Date: Nov 2007
Posts: 1,653
Default

Quote:
Originally Posted by Ataros View Post
Small collection here http://forum.1cpublishing.eu/showthread.php?t=21518

Manual from developers is not ready yet. You can start now with learning some C# basics I think.
http://msdn.microsoft.com/en-us/vcsharp/dd919145.aspx
http://msdn.microsoft.com/en-us/vcsharp/aa336766


Ataros I truly appreciate the reply but I don't intend to learn C# to create missions. That link you sent me scared the a$$ off me! I may have many years of VB behind me but I wouldn't expect to use even that to create missions.

I suppose I was curious to know just how you fell over those files and know what to do with them, like perhaps I had missed a manual, but what I was really looking for was clues on how to use the much changed FMB graphical interface and where are the facilities you are programmimg in but you seem to have found some extra tweaks outside FMB and we could use them in it. If the devs expect us to start using C# programming I think there'll be a lynching party.

Good luck to you though If I have a change of heart and the time I'll look again at that link.

Thanks again.
__________________
klem
56 Squadron RAF "Firebirds"
http://firebirds.2ndtaf.org.uk/



ASUS Sabertooth X58 /i7 950 @ 4GHz / 6Gb DDR3 1600 CAS8 / EVGA GTX570 GPU 1.28Gb superclocked / Crucial 128Gb SSD SATA III 6Gb/s, 355Mb-215Mb Read-Write / 850W PSU
Windows 7 64 bit Home Premium / Samsung 22" 226BW @ 1680 x 1050 / TrackIR4 with TrackIR5 software / Saitek X52 Pro & Rudders
Reply With Quote
  #6  
Old 04-19-2011, 12:18 AM
Thee_oddball Thee_oddball is offline
Approved Member
 
Join Date: Mar 2011
Posts: 812
Default

thnx doghouse
__________________
Gigabyte Z68
Intel 2500K (@4.3 ghz)212 CM Cooler
8GB Ram
EVGA 660SC (super clocked) 2GB Vram
CORSAIR CMPSU-750TX 750W
64 GB SSD SATA II HD
WIN7 UL 64BIT
Reply With Quote
  #7  
Old 04-19-2011, 08:09 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by klem View Post
Ataros I truly appreciate the reply but I don't intend to learn C# to create missions.
When manuals are available people create a lot of scripts that you can just copy and paste to your missions. I do not know anything about C# myself yet but can open a script file with notepad and use copy-paste ))

I think you are acquainted with FMB but for those who is not this is a link to start http://www.il2-fullmissionbuilder.com/index.php
Reply With Quote
  #8  
Old 04-25-2011, 08:06 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Attached is a Battle of France mission with scheduled shipping convoys (basic ones) and bombing runs.

Red airfields are located in France for quick action.

Script included in the mission loads 3 sub-missions into the main mission.

Put the whole 128BoF folder into your \missions\Multi\Dogfight directory. Run 128BoFv1_6.mis

Sometimes aircrafts explode on spawn. Please let me know how to fix it if you have this information.

You may try the mission on Repka server tonight and tomorrow hopefully.
Feel free to use and modify.
Attached Files
File Type: zip 128BoF.zip (7.1 KB, 57 views)

Last edited by Ataros; 04-25-2011 at 09:38 PM.
Reply With Quote
  #9  
Old 04-26-2011, 10:05 AM
mcler002 mcler002 is offline
Approved Member
 
Join Date: Mar 2011
Location: UK
Posts: 277
Smile almost there...

Quote:
Originally Posted by doghous3 View Post
{
if (Time.tickCounter() % 1200 == 0)
{

GamePlay.gpPostMissionLoad("missions/Multi/Dogfigh t/OnlineBOBb1.mis");
Ive got the script to work... but no aircraft appear... (i have 6 spitfires loaded on the map)...

And can someone explain the tick counter and how to "work it"

Cheers
Reply With Quote
  #10  
Old 04-26-2011, 01:38 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by mcler002 View Post
Ive got the script to work... but no aircraft appear... (i have 6 spitfires loaded on the map)...

And can someone explain the tick counter and how to "work it"

Cheers
Check that path is correct and open doghous3 or my example to add a line printing smth on screen to confirm that mission is loaded.

30 tics a second give you 1800 tics per minute.

if (Time.tickCounter() % 1200 == 0)

1200 - is cycle here
0 - is initial delay before running script.

I'd suggest taking doghous3 script to start with and just change filenames in it to avoid simple mistakes. This is what I did with his mission.
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 01:13 AM.


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