Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   SpawnScript and Loading new Air Missions (http://forum.fulqrumpublishing.com/showthread.php?t=31010)

5./JG27.Farber 04-09-2012 10:15 PM

SpawnScript and Loading new Air Missions
 
I am reallly curious about the SpawnScript check box in the item description in the FMB. The current way I hear most severs load the missions is as an over lay of another mission on top. Can SpawnScript be used in the same way and does anyone have a simple example mission they could show me. Would it not be more Stream lined to have everything on the one map? What would be the best way for server performance?

FG28_Kodiak 04-10-2012 04:23 AM

If you script spaw via action, it's for the game like loading a submission. So no great difference, ok depens on the size of the mis-file a large file ever causes spawn lag. To avoid a spawn lag the best way is to set the the airgroups on idle and activate them when needed, but on a 24/7 server it's not practical, except you refresh the mission, if no player is connected.

ATAG_Bliss 04-21-2012 07:13 AM

Quote:

Originally Posted by 5./JG27.Farber (Post 407254)
I am reallly curious about the SpawnScript check box in the item description in the FMB. The current way I hear most severs load the missions is as an over lay of another mission on top. Can SpawnScript be used in the same way and does anyone have a simple example mission they could show me. Would it not be more Stream lined to have everything on the one map? What would be the best way for server performance?

We don't use submissions at all. (1 .mis, 1 .cs, and 1 .briefing file)

Spawnscript allows you to spawn any air/ground object/group by using a script or without a script.

As long as your trigger and action are named the same, you can use TTime for how many seconds you wish to delay the spawn of that item. I love the spawnscript option. The biggest advantage I see is you can have recurring events by simply making triggers/actions assigning them to the same group. So that one airgroup could spawn once every hour, or every 2 seconds etc., without ever having to make any new mission objects/AI etc. Of course, this same thing could be done loading submission after submission, but it's a mess to try to test all of them. That's one of the main reasons I like 1 simple .mis file. I can change the numbers around and make events happen when I want for easy testing.

Smokeynz 04-22-2012 10:36 PM

I prefer the sub mission style, as you can alter the submission or load alternatives, where as hard fixing an internal mission means it is diffcult to alternate without shutting down the main mission.

I'm working on an inbetween variant, using sub missions, but creating internal missions from the mis data. It is a random flight/wing/group generator where I grab mission data from the mis files as "basic" info then manipulate waypoints and flight details to mix it up.

The idea is, recurring or reactive Ai flights are different each time they are generated.

I have as randoms: Class aircraft type per side, random numbers 1~12 in the flight, random skill, random path around the original "base path". Task type is taken into account for specifics placement.

data is extracted from a sub mission, which is created by a single plane and flight task and path. which makes for simple user mis generation.
submission can be updated in real time without dropping the main mission.

Still WIP, about 80% there.

hc_wolf 04-23-2012 07:07 AM

Just a quick note. I find it is very good if spawing large gourps Land or air to use TTime and spawn them 1 - 2 seconds apart. You reduce or get no stutter on the server and in game when they are introduced

salmo 04-23-2012 07:11 AM

Quote:

Originally Posted by Smokeynz (Post 413344)
I prefer the sub mission style, as you can alter the submission or load alternatives, where as hard fixing an internal mission means it is diffcult to alternate without shutting down the main mission.

I'm working on an inbetween variant, using sub missions, but creating internal missions from the mis data. It is a random flight/wing/group generator where I grab mission data from the mis files as "basic" info then manipulate waypoints and flight details to mix it up.

The idea is, recurring or reactive Ai flights are different each time they are generated.

I have as randoms: Class aircraft type per side, random numbers 1~12 in the flight, random skill, random path around the original "base path". Task type is taken into account for specifics placement.

data is extracted from a sub mission, which is created by a single plane and flight task and path. which makes for simple user mis generation.
submission can be updated in real time without dropping the main mission.

Still WIP, about 80% there.

Sound like a good idea. I'd be interested to see the C# script when complete :)

Smokeynz 04-24-2012 11:00 AM

Got it working Salmo, works really well. :grin:

will post C# soon, still have other features to add to the whole script.
But will have atest server running over the next day or so.

salmo 04-24-2012 11:07 AM

Quote:

Originally Posted by Smokeynz (Post 413971)
Got it working Salmo, works really well. :grin:

will post C# soon, still have other features to add to the whole script.
But will have atest server running over the next day or so.

Great news, keep up the good work :)


All times are GMT. The time now is 12:55 AM.

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