PDA

View Full Version : Dangerous Waters Random Mission Generator



FERdeBOER
07-20-2010, 01:34 PM
Last update: version 0.2 :biggrin:

The news are:

- Now you can select sub, air and surface platforms.
- When surface platform selected, you can select the "Alert status" (5, 15 or 30 minutes).
- If you select a sub, you can choose to fight an ASW (Anti Submarine warfare) or ASuW (Anti Surface Warfare)

Here is a screenshot selecting a surface unit:
http://img689.imageshack.us/img689/635/dwrmg.th.jpg (http://img689.imageshack.us/i/dwrmg.jpg/)

It's almost completed. :rolleyes:
Remain a couple of details, but this is more or less similar to what I wanted to do.
More mission types can be added, but in some areas I'm not good, as, for example, I've played very few times with air platforms, so I not dare to create air vs surf or surf vs surf missions. But if anybody makes one and send it to me, I gladly put it on the program.

Hope you enjoy it.
__________________________________________________ _________

Ok, guys, here I come again with another project. I'm pretty excited with this and hope you will like what I'm trying to do.

For work reasons, I needed to create a small program and found one, called Game-Editor, which eases the process A LOT.
Then I started to play a bit more with it... and finally I decided that it would be possible to create random generated missions and even a dynamic campaign for DW.

Don't jump already. One thing is random missions and other very different is a dynamic campaign.
I think I could create a random campaign, but dynamic... for the moment is beyond my abilities (and probably always be, since I don't believe I will learn programming in the next few... decades). There are, still 2 ways of creating a dynamic mission:

-1: find somebody who knows programming.
-2: making the player to enter the missions result “manually” so the campaign can continue at that point.

However, as I said, it would be the future.
The present is a random mission generator that I hope could replace the quick missions with better performance.
I've played very few with quick missions, but most of that times the enemy sub was cavitating since the mission start.

I'll paste here the read me:


This is a small project with very high ambitions for Dangerous waters 1.4 with RA mod installed.

It's made by me with a great program called Game Editor version 1.4.

you can find the program on: http://game-editor.com/

It has a great comunity and pretty clear turorials... and no, you can star without knowing anything about programming (but it helps and is easy to learn the basics with the help of the comunity).

This program is free, you can use it, distribute it, change it... but you CAN'T use it to make money.
And, of course, you have to mention me as the original creator; just for the hours spent, no other ;-)

If you want to contact me you can find me in the subsim.com forums.

Any comment is welcome.

Content:

1- Instructions.
2- What is this program about.
3- Version history.
4- TO DO.
5- The future.
6- Thanks to.

========== 1- INTRUCTIONS ============

------- IMPORTANT! ------
The program generates missions for DW 1.4 with RA mod installed.
Most surelly it will not work well with vanilla or LwAmi mods.
-------------------------

1- Extract the folder where you want.

2- Execute "DW_RM_v01.exe" and select your combat area.

The blue dot is for blue (deep) waters battle.
The brown dot is for brown (shallow) waters battle.

3- As the program asks you to, now execute the file called "missiongen.bat".

If it asks you, select F.

4- Now push the blue button.

That's it! A mission called mission.mu is ready for you.

5- Copy the file called "mission.mu" to the Scenario folder in your Dangerous Waters intallation folder.
Overwrite if asked.

6- Now start your game as usual and, in the single mission menu, you will find a mission called --Random Mission--.
You will see a Victor as controlable unit, but you can select your favourite platform.

7- Enjoy!

-------------------------------------------------------

======== 2- What is this program about ================

This program is intended to improve the naval sim Dangerous Waters game experience.

One of the lacks of the original game is its poor quick mission generator.

Based on the powerful in-game mission editor, DWRMG (Dangerous Waters
Random Mission Generator)gives you the option of selecting the battle area.

Then the program will generate randomly the weather conditions and gives you
the mission.

-------------------------------------------------------

======= 3- Version history ============================


v0.1 - This is the first version of the program. You can:

- Select battle area between 6 possibilities: 4 deep water, 2 shallow water.
- Generates a mission in the selected area with random enviromental conditions.

-------------------------------------------------------

========= 4- TO DO ====================================

- In this version, you can only select ASW with sub vs sub missions.
Also, the battle will be allways 1vs1.

In next versions I plan to add also surface and air controlable platforms as
well as ASuW.
Maybe also other kind of missions, but I'm not sure about that.

- As is based in RA mod, there's a wide variety of platforms both controllable or not, but at this version you will fight against modern submarines.
In the future there will be the option of selecting "era".

- Fell free to suggest other things.

-------------------------------------------------------

====== 5- The future ===============================

- Honestly, DWRMG is noy my objetive. My real aim is set on creating a Campaign as more dynamic as possible, but I have no idea of programming and not much time, so I will do what I can. Bu I think I can Achieve my goal with the knowledge I've adquired, so I will try to do it.
Of course, thanks to Game-Editor, which makes a lot of work for you.

- I see this campaign very similar to the still great "Red Storm Rising" ones:
the player will move around the scenario and will find objetives, and receive missions.

A very early version is already in progress.

-------------------------------------------------------


This is the ugly program interface (it will be improved if it has success).
http://img801.imageshack.us/img801/635/dwrmg.th.jpg (http://img801.imageshack.us/i/dwrmg.jpg/)

Please I beg you to give as more ideas as you can and, if you want to participate, even better.

The program idea is pretty simple:
1st I've created one (yes, only one) mission sub vs sub for blue waters and another for brown waters.
Each mission has a dynamic group for the enemy subs and one for civilians and all of them have random boxes.
Then I used that mission as base for creating the others. Let's continue with the blue waters mission. The mission file is a simple txt file, so it can be read an modified. The lat and long positions on that file are only for the center of the map, so it's easy to change it.
Besides, the positions of the platforms are relative to that center, so, when you change lat and long, the rest continues at their relative positions on the original mission.
With this one must be careful because if not, your submarine can appear inland (it happened me on one test ;) ).
The program I've created asks you to select one area (and changes the lat and long values).
This makes easy porting blue water missions from area to area because there's little risk of grounding objects, but is risky on shallow waters or near to land.
But this can be solved creating more specific mission for that areas.
The program also randomize the environmental conditions: time, weather, clouds... so, even if you select always the same area, there will be pretty different conditions, both environmental and about enemies and neutral platforms.

For now, as said on the read me, there are only 1vs1 sub missions and only with the modern ones.
But it's not hard to add other missions and eras, only is a bit time-consuming.

Once this part is finished and the method controlled, I then would like to try to create a campaign generator.
I was thinking on creating a one similar to RSR... wait, I said similar: you select your submarine and wander around the map and receive mission orders. As I said before, it would be hard to make a very dynamic campaign to that level.
But with your help... who knows, maybe we can do it...

What do you think about it? Am I doing a good thing or wasting my time? Somebody wants to help?

Rocky90
07-20-2010, 03:41 PM
Thank you so much this is exactly what we needed for multiplayer deathmatches :biggrin:


I created a map with 2 drivables.


And to add a playable Perry FFG I need the entity number, however none of the ID's from the database seem to match the ID's in the base1.txt or base2.txt.

It would be nice if in the future you could click anywhere on that map instead of being restrained to blue or yellow dots.

Also: How about combining yellow and blue dots into one and having the computer choose between yellow or blue?


Thank you very much


kind regards,

Paul

FERdeBOER
07-20-2010, 06:58 PM
At this stage I'm only "replacing" the game's quick mission generator in order to gain confidence with what I want to do.

Your problem whit the database numbers probably is because I used the RA mod.
However, is pretty easy to create your own missions:

- Create the mission you want (preferably in one of the areas selected), as you want it to (playables, objetives, random things... whatever).
- Save your mission and go to the Scenario folder and open it with the notepad. (For what you told It seem you already know that, but I'm explaining it like this for everybody else who maybe doesn't know).

- Rename it to base1.txt if the mission is placed in one of the blue points or base2.txt if in one of the brown ones.

Open the file and delete this lines:


;
SEASTATE 2
MDR 0 0 0
BOTTOMTYPE 1
TIMEOFDAY 22
WEATHER 2
CLOUDHEIGHT 2478
SSP 2
LATLONG 42 -28

- put them on the program folder and use it as instructed.
- If you want a multiplayer mission just rename mission.mu to whateveryouwant.mp

Edit:
ENTITY 1993 SURFENTITY
HULLID 17
ALLIANCE 0
POS 671064.812500 397700.281250 0
POINTS 750
COURSE 79
SPEED 9
PROB 100
DRIVEABLE 1
UNIQUENAME "FFG 37"
TACTIC BARRIER
WAYPOINT 866462.375000 433227.093750 0 12 -1 0.000000
AIRLOADOUT 12
AIRCRAFT 264 2 Alert5 0 : Alert15 0 : Alert30 0 :
END
this are the lines for a controllable Perry with RA mod. I think you only need the first 2 lines.

Rocky90
07-20-2010, 07:55 PM
Thank you, yes I should've known this already.

What I'm wondering right now is if it was possible you could click in any place of the map like you can when you start creating a mission with the mission editor of DW.

Also, I wonder if it is possible to really have a random seed generated by the mission generator like one can select in the quick mission editor? And how does the quick mission generator make sure the subs never start on land?

FERdeBOER
07-20-2010, 08:47 PM
Thank you, yes I should've known this already.

What I'm wondering right now is if it was possible you could click in any place of the map like you can when you start creating a mission with the mission editor of DW.
No, at least I can't. But it can be "simulated" creating areas. With time and tests this areas could be smaller giving the feeling of selecting a more precise area with more freedom.


Also, I wonder if it is possible to really have a random seed generated by the mission generator like one can select in the quick mission editor? And how does the quick mission generator make sure the subs never start on land?
I don't know how the sim does it. Probably just compares seafloor and sub depth and set the last one according to it.
Can be done, but is a lot of work in the way I'm doing this and my little programming skills...

FERdeBOER
07-21-2010, 10:16 AM
Last update: version 0.2 :biggrin:


Look at the first post for it.

Note to webmaster: yesterday it sent the first version to upload. Cancel it if you please, as the new one is posted here.
When I'll finish the updates I will upload again the final version.

Rocky90
07-21-2010, 07:05 PM
It's almost completed.

Aw i hoped you wouldn't say tha. I really wish you would develop this to it's maximum potential! :)

I also hope you'll make it multiplayer compatible.

Rocky90
07-21-2010, 07:23 PM
I have a suggestion to make sir.

If it's not so easy to program it so that it checks if the area is underwater, why not make a selection of latlong for each point to have the engine choose from? I know it wouldn't be very random but it would atleast add more diversity. It would also be a bit of work I suppose and I wish I could help but i pretty much have 0 skills.


kind regards,

Paul

FERdeBOER
07-21-2010, 07:34 PM
Aw i hoped you wouldn't say tha. I really wish you would develop this to it's maximum potential! :)
Don't worry about that. It's almost finished this program, which I've made in order to see if my ideas could be put in practice, and seems they can :cool:

As I play mostly singleplayer, my first objective was to create a sort-of-dynamic-singleplayer-campaign.
But also at subsim forum have asked me for multiplayer possibilities, so, with your help, I'm glad to do it.
The technical part is no difficult once the first phase have been achieved. The program at this moment creates only singleplayer missions, but to create multiplayer ones is only a matter of changing little things.
Tell me If you have something in your mind about what you want and let's see if it can be done (remember, though, that I have no idea about programming, so I have to keep the things as simple as possible). :rolleyes:



I also hope you'll make it multiplayer compatible.
Ok, tomorrow I will give it a try. At first, adding the multiplayer possibility to the program as it is, then we will see... :smile:

FERdeBOER
07-22-2010, 06:15 AM
I have a suggestion to make sir.

If it's not so easy to program it so that it checks if the area is underwater, why not make a selection of latlong for each point to have the engine choose from? I know it wouldn't be very random but it would atleast add more diversity. It would also be a bit of work I suppose and I wish I could help but i pretty much have 0 skills.


kind regards,

Paul
Sorry, I missed it before...
Yea, it can be done, one can select lat and long points and then make the program to choose one of them randomly. :smile:
It's just a matter of time, but easy.
Moreover, you can help me with this: go to DW mission editor, (select areas wherever you want in the entire world) and write down lat and long. Copy them to a txt file and send it to me, or just copy them here. Then I will insert them in the program.
EDIT: what I need is just one lat and long for each point; it becames the center of the map created by the program. The platform distribution are around that point.
EDIT2: if you add shallow water areas, be sure that the point you select is 15 miles or more from shore and indicate them, so I can preset the depth.