![]() |
|
|
|
#1
|
|||
|
|||
|
Nice script lines, Klem. Very usefull, while mission testing. Could also be used for OnPilotBailedOut to direct SAR operations to the pilot.
How do you know that? I also have experienced phatoms, while simply testing missions. In observation, this is a lag problem, because only objects are rendered in your viewing distance (you can see this while switching through external view, that only the objects are rendered, which are somewhat close to you). At some point the game stopped rendering an object, because a player left or got out of sight. Another player gets in range of the drawing distance of the object and the game starts calculating the new position of the object, but lost it somewhere, because of high work load in the net transmission. I think that is hard to explain for me, but easily observed with AI travelling tankers. Put enough of them in a group and start out of sight, get close to them and they will appear as ghostships, fist the dot, then grwoing but then suddenly gone and only the smoke of the funnel is still there. PS: I think Blis removed all submissions from ATAG Server and only loads AI via CMD - and he still has the Ghost-Syndrom on the server.
__________________
http://cornedebrouwer.nl/cf48e Last edited by SNAFU; 09-28-2011 at 02:20 PM. |
|
#2
|
||||
|
||||
|
Quote:
We seem to be short of objective-based missions and my main idea was to have a rolling battle without stopping/loading missions but 'clean out' and 'create new' objectives. I know its a tall order especially for someone who doesn't know how to do all that yet. Lets just call it 'optimistic vision' OK so I am still at the bottom of the ladder, perhaps dreaming and it would need a lot of help but... just maybe.... ...and of course, if it can't work, I know ATAG have found a way to automate mission changeovers by loading new missions. I think they could add the 10 minute rtb period though
__________________
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 |
|
#3
|
|||
|
|||
|
I hear you klem. I started with the same idea more or less. But I also wanted to rebuild history as far as possible.
But then I hit the reality and the limitation of performance. If you want to have it all on one map at the same time, the loading time raises immense. I for example put on every historically used airfield of a single given day of July AA emplacements, AA and tents and added a tower. Loading time was ok, as long as there is no plane on the map. But as soon as you have objects and planes, it took 20 minutes to connect to the server. I started with 16.000 objects I ended up with 1.200 objcts and now I have connecting times below 20 sec if there are less than 16 planes in the air, and 4 minutes as soon as I have 36 planes in the air, which is ridicoulus for rebuilding something which should simulate the battles of August, well, for July it is somewhat ok. ![]() We now have 11 objective orientated missions (rebuild from the daily reports of the days around the mid of July) in the loop and the player has the option to start a mission via the menu, when ever he likes, with the restriction of 1 mission per hour. The instrucitons are quite clear and simple and there is only one objective per mission, so all players focus on that one, if the want . The teams get points for success and points for air kills and ground kills, these points can trigger other events or can be used as win conditions (thats what we are working on at the moment). I found that is the best compromise, between rebuilding history and playability. The main restriction we have is the performance and the connecting time, that`s a pitty, because the scripting opens so many options and ideas.
__________________
http://cornedebrouwer.nl/cf48e |
|
#4
|
|||
|
|||
|
I found this somewhere a while ago and just changed the timer for the AIAircraft:
Code:
public override void OnTickGame()
{
double initTime;
if (MissionTimer1M1.Elapsed.Minutes >= 59)
{
MissionTimer1M1.Restart();
foreach (int army in GamePlay.gpArmies())
{
foreach (AiAirGroup group in GamePlay.gpAirGroups(army))
{
if (ActorName.MissionNumber(group.Name()).Equals(MissionNumber)) // Zeile L schen wenn auch AAA entfernt werden soll
{
AiActor[] members = group.GetItems();
for (int i = members.Length - 1; i > -1; i--)
{
(members[i] as AiAircraft).Destroy();
}
}
}
}
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////
//Ground objects (except AA Guns) will die after 55 min when counted from their birth
public override void OnActorCreated(int missionNumber, string shortName, AiActor actor)
{
base.OnActorCreated(missionNumber, shortName, actor);
if (actor is AiGroundActor)
if ((actor as AiGroundActor).Type() != maddox.game.world.AiGroundActorType.AAGun)
Timeout(3599, () =>
{
if (actor != null)
{ (actor as AiGroundActor).Destroy(); }
}
);
}
using System; using maddox.game; using maddox.game.world; using System.Collections.Generic; using System.Diagnostics; public class Mission : AMission { Stopwatch MissionTimer1M1 = new Stopwatch(); public override void OnBattleStarted() { base.OnBattleStarted(); MissionNumberListener = -1; } ... .. . I found some issues with removing of the AI Airplanes, but these will be removed after landing by the standard remove-Ai-after-player-leaving script, so I left it that way. For ground units it works well.
__________________
http://cornedebrouwer.nl/cf48e |
|
#5
|
|||
|
|||
|
~S~
As far as I know all missions are looped even though if I want load that mission once and throw into it all the static objects and etc. just to avoid ghosts... so what will You have to do at the very end is...restart the server...and don't allow it to loop mission. This seems to be very complicated. Klem if You want to create very long scenario we gonna have to first find out what are this "ghosts"... at least few months (hope I'am wrong)... How about to use Klems script to indicate sector, then check if there is any action or plane or whatever in that given sector and after all use trigger to spawn artillery for example or remove objects to minimise amount of statics on the server?
__________________
![]() Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate |
![]() |
|
|