From bda4efc634c804ea01ddebc97163477932a99985 Mon Sep 17 00:00:00 2001 From: kaltokri Date: Fri, 15 Dec 2023 14:08:45 +0100 Subject: [PATCH 1/2] Added page "Create your own Hello world" --- docs/beginner/demo-missions.md | 13 ++ docs/beginner/hello-world-build.md | 169 +++++++++++++++++- .../dcs-triggers-once-conditions-conf.png | Bin 0 -> 11728 bytes 3 files changed, 180 insertions(+), 2 deletions(-) create mode 100644 docs/beginner/demo-missions.md create mode 100644 docs/images/beginner/dcs-triggers-once-conditions-conf.png diff --git a/docs/beginner/demo-missions.md b/docs/beginner/demo-missions.md new file mode 100644 index 000000000..073ae42fd --- /dev/null +++ b/docs/beginner/demo-missions.md @@ -0,0 +1,13 @@ +--- +parent: Beginner +nav_order: 04 +--- + +# Demo missions +{: .no_toc } + +1. Table of contents +{:toc} + +{: .warning } +> THIS DOCUMENT IS STILL WORK IN PROGRESS! diff --git a/docs/beginner/hello-world-build.md b/docs/beginner/hello-world-build.md index fde7e63da..1f7509abd 100644 --- a/docs/beginner/hello-world-build.md +++ b/docs/beginner/hello-world-build.md @@ -4,6 +4,171 @@ nav_order: 03 --- # Create your own Hello world +{: .no_toc } -{: .warning } -> THIS DOCUMENT IS STILL WORK IN PROGRESS! +1. Table of contents +{:toc} + +This page will lead you step by step through the process of creating a mission +with MOOSE. This time we include a simple mission script, which sends only +a "Hello world" message to all players. But the steps are the same to add +another mission script, which will do whatever class(es) you want to use. + +## Create Mission script + +At first we will create the mission script. It is a simple text file and can be +changed with a lot of different tools. Theoretically even the Microsoft Notepad +editor can be used. But it lacks a lot of features, which helps you to avoid +errors. + +For this guide we suggest you to download, install and use [Notepad++]{:target="_blank"}. + +{: .important } +> Windows hides filename extensions by default. So when you create a text file +> and name it `hello-world.lua` it's name is `hello-world.lua.txt` in reality. +> You must activate the display of the file name extension. +> Open a `File Explorer`, switch to menu `View` and find the option +> `File name extensions` in the section `Show/hide`. Activate it. + +- Open a File Explorer. +- Go to the subfolder `Missions` of your [Saved Games folder]{:target="_blank"}. +- Create a new text file and name it `hello-world.lua`. +- Add the following content and save the file: + + `MESSAGE:New( "Hello World! This messages is printed by MOOSE", 35, "INFO" ):ToAll()` + +## Get Moose + +To download Moose click on the following link: + +- [Moose_.lua from develop branch]{:target="_blank"} + +Press `Ctrl + S` to save the file on your hard disk next to your mission script. + +## Create the mission + +- Start DCS. +- In the main menu choose `MISSION EDITOR`. +- Click on `create new mission`. +- In the dialog `NEW MISSION SETTINGS`: + - Choose map `Caucasus`. + - In the drop box upper left choose `Modern` as coalition preset. + - Click on `OK`. +- The mission editor will load with a fresh new and empty mission. +- Click on `File` in the menu bar and `SAVE` or Press `Ctrl + S`. +- Open `My Missions` and save the file with the name `hello-world.miz`. + +## Add Moose to the mission + +- On the left side activate `TRIGGERS`: + + ![dcs-triggers-toolbar.png](../images/beginner/dcs-triggers-toolbar.png) + +- On the right side the `TRIGGERS` dialog opens with a lot of options. +- Click on `NEW`, choose `4 MISSION START` as **TYPE**. +- Give it the `Load MOOSE` as **NAME**. +- Leave the **EVENT** option set to `NO EVENT`. +- Optional: Choose a color for easy recognition (e.g. yellow). + + ![dcs-triggers-mission-start-conf.png](../images/beginner/dcs-triggers-mission-start-conf.png) + +- In the middle part the `CONDITIONS` will be shown. + For this trigger we do not configure any conditions. + + ![dcs-triggers-mission-start-conditions.png](../images/beginner/dcs-triggers-mission-start-conditions.png) + + {: .important } + > The trigger type `4 MISSION START` does not support `CONDITIONS`.
+ > So `CONDITIONS` must left blank when using it.
+ > **If you add a condition the trigger will never be executed!** + + ![dcs-triggers-mission-start-actions-conf.png](../images/beginner/dcs-triggers-mission-start-actions-conf.png) + +- On the right side `ACTIONS` is shown. +- We need to click on `NEW`. +- Choose **ACTION** `Do SCRIPT FILE` and ignore all other actions. +- Click **OPEN** and navigate to the downloaded `Moose_.lua` file. +- The result should look like this: + + ![dcs-triggers-mission-start-actions.png](../images/beginner/dcs-triggers-mission-start-actions.png) + +## Add the mission script + +- Click on `NEW`, choose `1 ONCE` as **TYPE**. +- Give it the `Load Mission Script` as **NAME**. +- Leave the **EVENT** option set to `NO EVENT`. +- Optional: Choose a color for easy recognition (e.g. green). +- The result should look like this: + + ![dcs-triggers-once-conf.png](../images/beginner/dcs-triggers-once-conf.png) + +- Switch to the middle part, the `CONDITIONS` section.
+ For this trigger we add one condition: + + ![dcs-triggers-once-conditions.png](../images/beginner/dcs-triggers-once-conditions-conf.png) + +- The combination of `1 ONCE` with `TIME MORE(1)` will ensure, that the mission + script is executed 1 second after the mission is started. + +- On the right side under `ACTIONS` you need to add the script: +- Click on `NEW`. +- Choose **ACTION** `Do SCRIPT FILE`. +- Click **OPEN** and navigate to the created `hello-world.lua` file. + +{: .important } +> Most important is the fact, that the mission script (`hello-world.lua`) +> is executed **after** `Moose_.lua`, because the mission script needs the +> classes defined in `Moose_.lua`. And they are only available when `Moose_.lua` +> is executed before the mission script. + +## Test the mission + +- Save the mission again. +- Click on the green **Fly mission** cirlce on the left tool side bar. +- It is an empty mission, so skip `BRIEFING` with `START` and then `FLY`. +- You spawn as a spectator. After some seconds you will see this message in + the upper right corner: + + ![dcs-message.jpg](../images/beginner/dcs-message.jpg) + +This is the same result as already seen in the last chapter, but this time you +have create everything on your own. + +{: .note } +> You can use this mission as a template for your own missions. So you don't +> need to do alle these steps again and again. + +## Update mission script + +- Open the `hello-world.lua` with Notepad++ again. +- Change the text a little bit, like `Hello Dude! ...` and save the file. +- Run the mission again. +- The text will not be changed in the mission. Why? + The mission editor copies the script into the mission file when you add it. + Ever change on the script file on your hard disk is not recognized by mission editor. + You have to add the file after each change again. + +- On the left side of the `TRIGGERS` dialog click on `Load Mission Script`. +- On the right side under `ACTIONS` you need to add the script again: + - Click **OPEN** and navigate to the created `hello-world.lua` file. +- Save the mission and test it again. +- Now the new text should be shown. + +## Update Moose + +Moose is constantly being developed so that new functionallity is added or +existing errors are corrected. Also from time to time changes of the DCS +scripting engine comes with a new DCS version. It may therefore be useful or +necessary to update Moose. + +- To update Moose download it again and add it again in the same way you did + with the mission script in the last step. + +## Next step + +Let's move on to the [demo missions]. + +[Notepad++]: https://notepad-plus-plus.org/downloads/ +[Saved Games folder]: tipps-and-tricks.md#find-the-saved-games-folder +[Moose_.lua from develop branch]: https://raw.githubusercontent.com/FlightControl-Master/MOOSE_INCLUDE/develop/Moose_Include_Static/Moose_.lua +[demo missions]: demo-missions.md diff --git a/docs/images/beginner/dcs-triggers-once-conditions-conf.png b/docs/images/beginner/dcs-triggers-once-conditions-conf.png new file mode 100644 index 0000000000000000000000000000000000000000..e751ea40ff51d2066e06b7a5b10522d0d7051005 GIT binary patch literal 11728 zcmcI~Ra9J0@Fp7EEd&d0gS)%C4?Zxsy9JmqSa1mLAtX3q@F0Nmnc^Cclo|(2-u>QM^-%uOCEj zT_stBA7hjUuLg>}jD`#XLTwV(qZR6_jp3ne?2Ukc+x_2z*zaCugMh$ct0FI>A7F8k zf9tQ;KX+RQVYqEk83-v@S$Km~WGZ;7QD-~sb@ppx4ZiAwOxqLj4!y`foVAH|A?+jl z;{jvQx0N*0wGZo!YwPQ0Bm0yIi9R-qbuqSf)#IYhg%S_PeAFj*PP@Rmmtk`v#FcjR zkzEOFJT8fKeye?!kwg^g0)mf=W((V!8aRodSbBqp0Qfi)BlSBfkYMhXS89BYWtT;0 zzvm^kQNS^n5a6r>TBUMr{R?)X6Oasdz?!3(wRrMG78ul_;)&ki6E4&MjRNg(Qs@7Y zE~b#nzyRXzKAMTu{Oe^Pj1(_~I06cy;5U2qPdw_Uwm;P{Gu{y~BMyxa-FAy*25zft z?tVwcES0v~v@ljPQy5#5m#Xex3Bs_(+No-&_3&g#+Bz>TYHt&`L5aJw%guHqjfo+l zsH5<=5jq=jLK4f9yf}WJO|h{@8ycN-!_#lWoilq;MiuDNVru5u#)X4 z@8+%<&Mo}*E9_WNC_#o=ZXW*4ut9zxcllqJp#id{QcNDwu*OeBur*b91=+v0f}=W-zf$?<}3EBE|n#{7KT6_PW(z<93{Hy zi*K-r)1o^zhf+{(nj(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kh`Cveu%f7) zlZKfn^**RTyyn+gUOa6s3wKCvZ0azc`+~jrvmW(fX*B@3SM-Zne6Psip%VeZD0#O+ zM*RuIDw)Ha<-#H*=6L(S_6iI2$p5->Wd8n}`5#t3q$f2_&6w=q|8D~O@5&HK?X9Eg zUGcH>>trk~$}kB5lo21j1m*wYN$yA;H_n0nb)`GJkEp4nv_L3p6n<5C{HuJPCeLaL gE&s^0`GVYh<)SM6C6)d47B+&4f~NcrSrGJp0l252lK=n! literal 0 HcmV?d00001 From 0ae9be49daacf38be2efbeef7224d3e3ceace495 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 16 Dec 2023 09:31:44 +0100 Subject: [PATCH 2/2] Update Range.lua - Fixed random good by phrase --- Moose Development/Moose/Functional/Range.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Range.lua b/Moose Development/Moose/Functional/Range.lua index 13fb54c04..8da132f14 100644 --- a/Moose Development/Moose/Functional/Range.lua +++ b/Moose Development/Moose/Functional/Range.lua @@ -2187,7 +2187,7 @@ function RANGE:onafterExitRange( From, Event, To, player ) local text = "You left the bombing range zone. " - local r=math.random(2) + local r=math.random(5) if r==1 then text=text.."Have a nice day!"