PDA

View Full Version : Mission Loader - load missions from the TAB-menu


podvoxx
11-25-2011, 11:20 AM
New version 1.15 available
================================================== ===============================
The script designed to load missions from the menu in the game. You may fly in online or offline, and upload any task from the menu. Loading missions in the menu <"Tab" + "4">.

http://www.sukhoi.ru/forum/showthread.php?t=72909

================================================== ====
Added a lightweight version of the standard Mission Loader - Mission Loader Light, which has one less level in the menu. In the folder "Mission Loader / MainFolder /" should be placed mission-packs with the missions. This version is intended primarily for developers of mission, who want to use the menu to improve the gameplay.
================================================== ====

* Tested on a dedicated server.

================================================== ====
Credits
================================================== ====

1. naryv and Small_Bee for the help in the my script-work.
2. FG28_Kodiak for useful information on forums and excellent scripts.
3. Ataros(Atas) for mission pack "Fighter Training".
4. KDN for mission pack "KDN Mission Pack".

Thanks!

================================================== ====
I need a new missions for Loader. You can contact me to add your missions in default Loader in next update.
================================================== ====
You can use the MLoader in their designs and modify it as you want. The MLoader is totally free to use.
================================================== ====

vvv----------------------------Version 1.15 - 17.12.11----------------------vvv

1. Introduced localization messages. Now, messages are displayed in the language of the player.
2. Introduced the localization of the menu items described in the txt-file.
3. Added ability to display a menu of the mission, depending on the player - "Blue" or "Red." The function is disabled in the settings.
4. Added ability to disable reading of the names of menu items from the txt-file.
5. Mission on the menu now marked with "*" before the name of the menu item.
6. No limit on the number of menu items. Now the folders and files can be any number - the menu is split into pages.
7. Added readme in English and Russian. In the folder "Readme" boot also has examples of configuration files with commentary and a test set of missionaries packs (not for games, only to see the navigation options on the menu).
8. Added 60 new missions of KDN. Thanks to him!
9. Corrected mission "Attack The Village" - now some of the reinforcements can be called multiple times.
^^^------------------------------------------------------------------------^^^

Download from airwarfare.com (http://airwarfare.com/sow/index.php?option=com_jdownloads&Itemid=53&view=viewdownload&catid=60&cid=220)

podvoxx
11-25-2011, 11:24 AM
Screens from default version of loader:

podvoxx
11-25-2011, 11:27 AM
Screens from default version of loader.

podvoxx
11-25-2011, 05:35 PM
English version available now.

KDN
12-03-2011, 11:55 AM
podvoxx
This is very interesting I am going to implamented on my server this weekend and see how it goes.
Many thanks :)

KG26_Alpha
12-03-2011, 12:54 PM
I'm also testing this in CooP mode.

Will put some info back here if all goes well.

Although the readme file's a little bit tough :)

KDN
12-03-2011, 12:55 PM
It works and it is exiting!! :)
I am going to customize it to fit the submissions on my DS and I would like to know if it is possible to load the SAME mission multiple times.

I saw the pertaining section at the bottom of the missionloader.cs, but since I have JUST started to acquint myselft with C sharp, just tell me if it is possible with some tinquering with your existing code and I will find it or at least let me try :)

Very much appreciate your ingenuity :)

KDN
12-03-2011, 02:38 PM
My first idea for a quick trial is to change:
if (loadHistoryList.IndexOf(missionFullPath) < 0) to
something like
if (loadHistoryList.IndexOf(missionFullPath) < 10)

Not quite elegant but, if it works, it will do for the moment :rolleyes:

I will report back when I set it up...

KDN
12-03-2011, 08:30 PM
Everything works Beautifully!!!
Eight folders almost filled with submissions and load on the dedicated server on my command while I am flying around !
Fast and easy and if do a good job on the .txt files, I don't have to remember what is what in .cmd files anymore
This is on top of the convinience of loading missions litterary on the fly. Before I had to remotely administer the server through another pc which is quite a feat if you are already in the air.
podvoxx, you have given us an amazingly helpfull tool.
My appreciation is >-------This Great---------<

podvoxx
12-04-2011, 07:31 AM
New version 1.1 available.
Description I'll add later. Also answer questions later.

Ataros
12-04-2011, 08:07 AM
Excellent tool! Highly recommend giving it a try. Add your favourite missions into it and you can fly them quickly again and again.

I use included Fighter Training missions for various load-outs and convergence testing, basic gunnery and b&z training.

I have a suggestion for everyone who uses this script. If you make your own missions (e.g. training, coop, etc.), please share them with the community. I am sure podvoxx will include them into the next release. We can build a huge mission library in some time.

podvoxx
12-04-2011, 08:53 AM
http://farm8.staticflickr.com/7169/6451686463_31f1932397_b.jpg (http://www.flickr.com/photos/podvoxx/6451686463/)
http://farm8.staticflickr.com/7162/6451685543_7d80e9ba7a_b.jpg (http://www.flickr.com/photos/podvoxx/6451685543/)
http://farm8.staticflickr.com/7163/6451686145_83b6bdd55d_b.jpg (http://www.flickr.com/photos/podvoxx/6451686145/)
http://farm8.staticflickr.com/7142/6451683237_859ff15034_b.jpg (http://www.flickr.com/photos/podvoxx/6451683237/)
http://farm8.staticflickr.com/7175/6451681675_ce45944c3b_b.jpg (http://www.flickr.com/photos/podvoxx/6451681675/)
http://farm8.staticflickr.com/7013/6451680937_df5035861e_b.jpg (http://www.flickr.com/photos/podvoxx/6451680937/)
http://farm8.staticflickr.com/7142/6451679225_259138e0f8_b.jpg (http://www.flickr.com/photos/podvoxx/6451679225/)
http://farm8.staticflickr.com/7032/6451678441_0f4f676772_b.jpg (http://www.flickr.com/photos/podvoxx/6451678441/)
http://farm8.staticflickr.com/7009/6451678159_f240481a3d_b.jpg (http://www.flickr.com/photos/podvoxx/6451678159/)
http://farm8.staticflickr.com/7161/6451676767_16cde4e1db_b.jpg (http://www.flickr.com/photos/podvoxx/6451676767/)http://farm8.staticflickr.com/7165/6451676043_b4d87eac03_b.jpg (http://www.flickr.com/photos/podvoxx/6451676043/)
http://farm8.staticflickr.com/7147/6451674327_6d36a4be3a_b.jpg (http://www.flickr.com/photos/podvoxx/6451674327/)
Launcher 2011-12-04 10-59-15-47 (http://www.flickr.com/photos/podvoxx/6451686463/) by podvoxx (http://www.flickr.com/people/podvoxx/), on Flickr

ATAG_Bliss
12-04-2011, 09:58 AM
Really nice work. Thank you :)

podvoxx
12-05-2011, 04:52 AM
My first idea for a quick trial is to change:
if (loadHistoryList.IndexOf(missionFullPath) < 0) to
something like
if (loadHistoryList.IndexOf(missionFullPath) < 10)
Not quite elegant but, if it works, it will do for the moment :rolleyes:
I will report back when I set it up...

Yes, it works. But for static objects (eg ships), this gives the problem - they are destroyed.
But you prompted me to solve the problem :). I will txt-file file binding. And it will be written the number of downloads allowed for each mission.
Example txt-file format:

Attack village! //name menu-item
5 //number of downloads allowed for this mission
red // side (maybe red, blue, all)


Also, I plan to divide the menu for the red and blue sides, and menu for all.
Thank you for kind words and sorry my english.

I have big problems with readme and I need time to solve them (Russian readme here (http://www.sukhoi.ru/forum/showthread.php?t=72909&p=1744303#post1744303)).

I need a new missions for Loader. You can contact me to add your missions in default Loader in next update.

KDN
12-05-2011, 09:29 AM
You are right about the Static objects. They cannot be added repeatedly. Great idea about setting a parameter to limit certain mission loads as is expanding the folders to Blue and Red!!

Your readme on the first page was excellent. Did not have any problems following your instructions.

Lastly, I don't think you should drain yourself making and adding missions. You have already given us (and still keep giving :)) the foundation. We will do the rest :cool:

In any case, I am e-mailing you the mission setups that I am working on in case you can use it.

Excellent work. My thanks again

podvoxx
12-05-2011, 02:05 PM
(http://www.youtube.com/watch?v=lO6amXOjqzU)

The old version of "Attack the village" mission, now better :)

SNAFU
12-06-2011, 07:09 AM
Nice one.

Let`s hope they fix the mission menu bug for dedicated server enviroment next patch.

KDN
12-06-2011, 08:48 AM
Snafu,
please forgive my ignorance but could you give me a brief description of this bug?

SNAFU
12-06-2011, 09:02 AM
Sorry, I "whined" so often about this bug, that I thought it is known. ;)
FG28_Kodiak and me were tinkering around with the mission menu, since it got introduced with the Beta Patch and found that as soon as 5 blue airgroups are active the complete radio menu (tab) breaks on red planes. This only seems to happen on dedicated server enviroment. I used the mission menu too, to give the players the ability to load new mission, request support, replacement and information for players on a dedicated server, but due to this bug, it was meaningless.

Ataros brought the problem to Naryv as you see here:http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fwww.sukhoi.ru%2Fforum%2Fshowthread. php%3Ft%3D68697%26page%3D7

KDN
12-06-2011, 10:12 AM
Thanks Snafu
I run into this but I thought I did something wrong on my "neanderthalian" coding. I will try tonight to make sure I reproduce it too.

KDN
12-07-2011, 09:49 AM
Yep, I can also confirm that bug happening on a Dedicated Server environment.
It does not matter which side you initiate the TAB 4. It is always the RED side losing the function.

podvoxx
12-07-2011, 10:46 AM
On this issue inform developers?

FG28_Kodiak
12-07-2011, 10:53 AM
Devs are informed. Let's hope next patch fix it.

KDN
12-07-2011, 06:27 PM
A peculiar situation just occurred.
In reference to the above bug, once I initiate TAB 4 and select some 12 or so missions from the Blue side, I switch to the RED and pressing TAB the first time nothing appeared. I pressed it about three or four times and held it down and it start appearing but would not go any further on the tree selection. A few more presses and it actually started sticking and allowing me to move on to selection of missions. I moved back and forth from Blue to Red and TAB 4 was working fine on both side from that point on!

podvoxx
12-17-2011, 02:54 AM
New version 1.15 available

vvv----------------------------Version 1.15 - 17.12.11----------------------vvv

1. Introduced localization messages. Now, messages are displayed in the language of the player.
2. Introduced the localization of the menu items described in the txt-file.
3. Added ability to display a menu of the mission, depending on the player - "Blue" or "Red." The function is disabled in the settings.
4. Added ability to disable reading of the names of menu items from the txt-file.
5. Mission on the menu now marked with "*" before the name of the menu item.
6. No limit on the number of menu items. Now the folders and files can be any number - the menu is split into pages.
7. Added readme in English and Russian. In the folder "Readme" boot also has examples of configuration files with commentary and a test set of missionaries packs (not for games, only to see the navigation options on the menu).
8. Added 60 new missions of KDN. Thanks to him!
9. Corrected mission "Attack The Village" - now some of the reinforcements can be called multiple times.
^^^------------------------------------------------------------------------^^^

podvoxx
12-17-2011, 02:56 AM
.

D_F_C
12-19-2011, 01:30 PM
Hello podvoxx,

your missionloader is absolutly nice stuff and it runs fine for me.
Many thanks for your great work.

But i have a suggestion about your Loader. My C# and english is terrible and i cant follow your scripting in all lines, so i want to ask if it is possible what i think.
Maybee you are able to realise it.

Here is my suggestion:

Folderstructure example:

Battle - Area - Missions

Battle of France - Area 1 - redmissions 1,2,3,4,5,6,7
Battle of France - Area 1 - bluemissions 1,2,3,4,5,6,7
Battle of France - Area 2 - redmissions 1,2,3,4,5,6,7
Battle of France - Area 2 - bluemissions 1,2,3,4,5,6,7

a.s.o.

Battle of Britain - Area 1 - redmissions 1,2,3,4,5,6,7
Battle of Britain - Area 1 - bluemissions 1,2,3,4,5,6,7
Battle of Britain - Area 2 - redmissions 1,2,3,4,5,6,7
Battle of Britain - Area 2 - bluemissions 1,2,3,4,5,6,7

a.s.o.

if battle and area is selected only these missions are avaible to select for red/blue players.
So the missionbuilder is free to setup missions which are only avaible for the selected battle and area and the players cannot choose other mission from another battle/area.
Maybee it is possible to open again the whole menu after a time.
So players are able to choose another battle/area again.

Its only an idea and i dont know if it is possible.

podvoxx
12-20-2011, 04:16 AM
if battle and area is selected only these missions are avaible to select for red/blue players.
So the missionbuilder is free to setup missions which are only avaible for the selected battle and area and the players cannot choose other mission from another battle/area.
Maybee it is possible to open again the whole menu after a time.
So players are able to choose another battle/area again.
Its only an idea and i dont know if it is possible.

Hi, D_F_C! I understand you, your ideas can be realized, but I need some information. Player chooses a Battle, then Area and get missions? I can do it corrected the menu script, but now I have very little time. I will be able to do it after the New Year holiday.

Ataros
12-20-2011, 09:03 AM
Why missions should be grouped by area but not by type?

It is quicker to find what is needed by type imo: blue/red, fighter/bomber, escort/intercept/ground attack/recon/etc. Area does not matter, the map is already very limited in size imo (e.g. can not chose Berlin area).

D_F_C
12-20-2011, 01:32 PM
@ Ataros and podvoxx

My suggestion was:
If missions in missionloader can be selected by battle and/or area you are able to implement various battles from different missionbuilders in Mainmission.
Then only these missions are able to select from players.
At the moment you can run the Dieppe raid and the KDN-Pack at the same time, but at different locations and with different frontlines.

for example:
If players want to run the Dieppe raid only these missions should be shown in loadermenu because only that planes and groundunits are avaible at this battle, and they cannot select missions from the KDN-Pack with other types of planes and groundunits.
After some time or scoring the battle can be unlocked, then players are able to choose or vote for another battle.
Maybee you can call it " another kind of mapcycle " for multiplayers.

@ podvoxx

No hurry needed, real life is more important than virtual life. It is only an idea that can be discussed before editing the code.

Pato Salvaje
12-20-2011, 10:46 PM
Hello:

1.- So many thanks to Podvoxx for this awesome work. Tested tonight in our dedi server and all went fine.

2.- I´m planning use it for a coop test mission for 8 vs 8. I will test to spawn and exit for select a correct aircraft and if it works then launch the mission/s.
If not works... the solution is spawn all the pilots with the correct aircrafts and then launch the mission/s.

3.- Only a question.. is included a script for remove aircrafts when a human pilots despawns?...

thank you again.
Regards

podvoxx
12-21-2011, 04:58 AM
================================================== ====
added a lightweight version of the standard missionloader - mission loader light, which has one less level in the menu. In the folder "mission loader / mainfolder /" should be placed mission-packs with the missions. This version is intended primarily for developers of mission, who want to use the menu to improve the gameplay.
================================================== ====

podvoxx
12-21-2011, 05:15 AM
@ Ataros and podvoxx

My suggestion was:
If missions in missionloader can be selected by battle and/or area you are able to implement various battles from different missionbuilders in Mainmission.
Then only these missions are able to select from players.
At the moment you can run the Dieppe raid and the KDN-Pack at the same time, but at different locations and with different frontlines.

for example:
If players want to run the Dieppe raid only these missions should be shown in loadermenu because only that planes and groundunits are avaible at this battle, and they cannot select missions from the KDN-Pack with other types of planes and groundunits.
After some time or scoring the battle can be unlocked, then players are able to choose or vote for another battle.
Maybee you can call it " another kind of mapcycle " for multiplayers.


The idea is interesting. I added today Mission Loader Light for mission designers. It is suitable for modification and creation of unique missions with the menu. This should be useful to servers and to implement your ideas. Difficulties do not see much yet.
-players go to the server
-players choose the job
-players choose missions and play
It is useful to select targets, if the server has several.

podvoxx
12-21-2011, 05:40 AM
Hello:

1.- So many thanks to Podvoxx for this awesome work. Tested tonight in our dedi server and all went fine.

2.- I´m planning use it for a coop test mission for 8 vs 8. I will test to spawn and exit for select a correct aircraft and if it works then launch the mission/s.
If not works... the solution is spawn all the pilots with the correct aircrafts and then launch the mission/s.

3.- Only a question.. is included a script for remove aircrafts when a human pilots despawns?...

thank you again.
Regards

2. Coop has a menu?
If so, you may need to modify the script. I need see coop script.

3. No, I removed the script in this version, as it removes all the aircraft, where he was a player. This is not always necessary. The next version of the script I be testing and adding the ability to disable it in the file setup.txt.

To add a script you can put script-file(and create .mis file) in folder "MissionLoader\System" and add a line in the file "MissionLoader\host-channel.cs":

public class Mission : AMission
{
public override void OnBattleStarted()
{
base.OnBattleStarted();
MissionNumberListener = -1;

GamePlay.gpPostMissionLoad("missions\\MissionLoader\\System\\missionloader.mis"); //Loading menu script
GamePlay.gpPostMissionLoad("missions\\MissionLoader\\System\\destroyAI.mis"); //Loading destroyAI script
}
}

Pato Salvaje
12-21-2011, 09:14 AM
2. Coop has a menu?



Menu for the Coop is an option, but not necessarily if it´s a "Closed Coop" and pilots have the procedures and all things clear... ;)

Anyway, Im testing also the Coop Script of 41Sqn Banks...

And... thank you again for the "aircraft destroy" script. Very good job.

podvoxx
12-21-2011, 09:25 AM
And... thank you again for the "aircraft destroy" script. Very good job.

It's no my script. Unfortunately I can not remember where I found it.

Ribbs67
12-21-2011, 03:30 PM
Hey Podvoxx

Im not sure if i understand this correctly... but can this be used as a single player option? If i wanted to start my own online server off my computer and play by myself? Is this possible....

podvoxx
12-21-2011, 05:17 PM
Hey Podvoxx

Im not sure if i understand this correctly... but can this be used as a single player option? If i wanted to start my own online server off my computer and play by myself? Is this possible....

Yes, of course. :)

Ribbs67
12-21-2011, 11:12 PM
Well i guess i need some help setting it up.. install path .. I tried to play megahunts train missions, and i could get it to start up, but i couldnt pick a side. When I start the game, I pick my plane , but I cant pick a side. When i hit fly, it just jumps to the train camera and follows the train. I installed it in the missions/multi folder. Im not sure how this is supposed to work.. but it looks intresting. Thanks for your hard work, making this diamond in the rough start to shine. :)

podvoxx
12-22-2011, 04:03 AM
Well i guess i need some help setting it up.. install path .. I tried to play megahunts train missions, and i could get it to start up, but i couldnt pick a side. When I start the game, I pick my plane , but I cant pick a side. When i hit fly, it just jumps to the train camera and follows the train. I installed it in the missions/multi folder. Im not sure how this is supposed to work.. but it looks intresting. Thanks for your hard work, making this diamond in the rough start to shine. :)

No \multi folder.


This the right way:
"X: \ ... \ Documents \ 1C SoftClub \ il-2 sturmovik cliffs of dover \ missions \ MissionLoader "
See readme.txt in MissionLoader Folder.

Ribbs67
12-22-2011, 03:27 PM
OK thanks Podvoxx..Keep up the great work!S!

352ndRibbs

KDN
12-30-2011, 10:08 AM
Podvoxx, you have done it again!!!
I readapted my setup with your new version 1.15 and I am happy to report that everything is in perfect working order!
Great thinking on the individual mission load limitation parameter.
Perfect feature the limitless folder/mission
Love the "memory" of the menu. Very usefull when you want to load stuff from the same folder quickly.
Your localization feature makes me want to run to goggle translate...hehe!
...and these are just the features I run into...

I am sure the idea is forming as I type this but here is what I have done on my setup. The mission loader intiatially only loads a map with only two remote spawn areas, Time, weather, wind conditions and the Battleground grid. The actual "core" setup/mission can be loaded through one of the subfolders marked accordingly. This way the KDN package, as you called, as well as other USER packages can be somehow independant.
I say somehow because I have not found a way yet to:
1: Clear the map of ALL features
and
2: A way to reload new time, weather, wind and battleground grid
while the server is running.
I am pretty sure that there is one.
Once I find it then we are closer to home in implamenting what D F C mentioned earlier.

Many thanks podvoxx
Happy Holidays