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-23-2011, 04:12 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thanks a lot. I'd never guess what this command mean ))

btw. There is a Break command there. What does it break?
Show Insert command - what can it be?
Change and Change+ commands - ?

Last edited by Ataros; 05-23-2011 at 04:16 AM.
Reply With Quote
  #2  
Old 05-23-2011, 05:52 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Can you add a screenshot of the feature, please?
I have a german Version and do not find this interesting option.
Reply With Quote
  #3  
Old 05-23-2011, 06:08 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

The Branch is not in FMB it is in Control Settings. First line.

https://lh4.googleusercontent.com/_S...-23_100638.jpg

Last edited by Ataros; 05-23-2011 at 06:41 AM.
Reply With Quote
  #4  
Old 05-23-2011, 06:34 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Oh OK, thanks.
Reply With Quote
  #5  
Old 05-26-2011, 07:23 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Just put the mission up on Repka #3.

Is it designed to run in cycle forever or we should reload it in some time?

I will add more feedback in this post later:

- Errors on misload:
[11:10:55] System.ArgumentOutOfRangeException: index and length should point to a position in a line
[11:10:55] Parameter name: length

- looks like guns do not spawn on ships. the ships just stand one in front of another and do not fight.

- 110-C7 can carry bombs which gives blue side an advantage.

- (will add later if I have more info)

I hope to get some feedback from players in this thread http://forum.1cpublishing.eu/showpos...1&postcount=44

I have found a useful link on how to put guns on tankers here http://forum.1cpublishing.eu/showthr...t=22740&page=3

Last edited by Ataros; 05-26-2011 at 07:55 AM.
Reply With Quote
  #6  
Old 06-25-2011, 05:32 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Quote:
Originally Posted by Ataros View Post
Just put the mission up on Repka #3.

Is it designed to run in cycle forever or we should reload it in some time?

- Errors on misload:
[11:10:55] System.ArgumentOutOfRangeException: index and length should point to a position in a line
[11:10:55] Parameter name: length

- looks like guns do not spawn on ships. the ships just stand one in front of another and do not fight.
yes it is designed to run in cycle forever which will fail after approximately 2 trillion sub mission loads; also any manual mission load after battle init will result in script error.

i'll look into these errors, i havent tested it with the last version yet. loading a mission manually causes the campaign to stop progressing just like u described, it may be my mistake too, or a possible situation i havent noticed, for example spawning an object fails when there's a wreck on the spawn location, nd ships spawn many random objects when damaged, destroyed or broken into two, if i dont manually destroy those, they will simply hit those wrecks n stop or wont spawn at all, leading to a script error or preventing the campaign to progress, these may have been changed since last patch btw. Script behavior has also changed with the last patches, some of the things we try to do are already being done transparently right now, like removing the landed planes, also the last changelog says that it wont be possible to damage planes with incorrect damagenames, which is present in my code too, idk if this gives an error or continues to work silently without doing nothing. honestly all the reference i have when writing scripts is the names of the methods present in the game's dlls and the campaign's code as an example, i'm not sure if i'm using the right methods or coding with the right approach, somethings i try to do may be intended for a specific purpose or restricted or may lead to error when combined with another. it'll be much more clear and painless when we have a guide or documentation about scripting.

i also plan to change tanker+aa gun configuration with new battle ships that came with the last patch so they can defend themselves while moving and write a statistic collection method, possibly outputting to a text file for simplicity if possible, so we can save or upload those(the count of the aircrafts each side lost, current situation of the front line, etc) with a seperate program or even inside the script. This way in case of any script error or server restart, stats wont be lost and campaign can continue from where it was and users can view an online briefing web page prepared for the current situation of the frontline, check the stats nd so on, even we can downgrade the available aircraft models according to losses or maybe define a victory condition.
Reply With Quote
  #7  
Old 06-29-2011, 09:52 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thanks a lot! I am sure all Repka #2 and #3 pilots are looking forward to the new version.
Reply With Quote
  #8  
Old 07-03-2011, 03:16 AM
Skoshi Tiger Skoshi Tiger is offline
Approved Member
 
Join Date: Nov 2007
Location: Western Australia
Posts: 2,197
Default

Quote:
Originally Posted by Ataros View Post
btw. There is a Break command there. What does it break?
The break statement terminates the closest enclosing loop or switch statement in which it appears. Control is passed to the statement that follows the terminated statement, if any.

Is this the break you are talking about?

Quote:
//check if there is any player inside
foreach (Player p in ps)
{
if (p != null)
{
if (p.Place() != null)
{
AiAircraft playerAircraft = (p.Place() as AiAircraft);
if (playerAircraft != null)
{
if (playerAircraft == aircraft)
{
aircraftWillBeDestroyed = false;
break;
}
}
}
}
}
I think the break statement will drop out of the foreach loop. As far as I can see the purpose of the code is to see if any of the planes contained in array ps have a player inside. If any of the array locations contains a player then the loop does not have to continue.

The next section of code checks 'aircraftWillBeDestroyed' if player is present then this is set to false and the section that destroys the aircraft will be skipped.


Cheers!

Last edited by Skoshi Tiger; 07-03-2011 at 03:22 AM.
Reply With Quote
  #9  
Old 07-07-2011, 04:24 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Quote:
Originally Posted by Skoshi Tiger View Post
The break statement terminates the closest enclosing loop or switch statement in which it appears. Control is passed to the statement that follows the terminated statement, if any.

Is this the break you are talking about?



I think the break statement will drop out of the foreach loop. As far as I can see the purpose of the code is to see if any of the planes contained in array ps have a player inside. If any of the array locations contains a player then the loop does not have to continue.

The next section of code checks 'aircraftWillBeDestroyed' if player is present then this is set to false and the section that destroys the aircraft will be skipped.


Cheers!
yes the break u mention here interrupts the foreach loop because we found a player inside the plane queued for destroy and there is no need to check other players,this will be a waste of time, there is possibly someone else entered this plane in the meantime and the plane must not be destroyed, i set a boolean value (aircraftWillBeDestroyed) to hold the result because the code continues to execute after foreach loop according to this result.

lol no, sorry i misunderstood, its the "break command" (key command) set in options-controls-builder, exits free view mode in fmb and deselects current object, could be handy if you fine tune the positions of objects in free view mode a lot, by the way this is what i use it for, may be intended for something else.

Last edited by stillborn; 07-07-2011 at 11:05 PM.
Reply With Quote
  #10  
Old 07-08-2011, 02:46 AM
Skoshi Tiger Skoshi Tiger is offline
Approved Member
 
Join Date: Nov 2007
Location: Western Australia
Posts: 2,197
Default

Quote:
Originally Posted by stillborn View Post
lol no, sorry i misunderstood, its the "break command" (key command) set in options-controls-builder, exits free view mode in fmb and deselects current object, could be handy if you fine tune the positions of objects in free view mode a lot, by the way this is what i use it for, may be intended for something else.
Which just goes to show that great minds can think in completely different ways and go off on completely different tangents!

Thanks for the clarification!

Cheers!

Last edited by Skoshi Tiger; 07-08-2011 at 02:51 AM.
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:28 PM.


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