From bc09a3dbd0343128d7418017139ae545cf609ca5 Mon Sep 17 00:00:00 2001 From: ole Date: Tue, 15 Aug 2017 22:32:02 +0200 Subject: [PATCH] Merged things together and made a version 1.4 of it --- .vscode/tasks.json | 18 +++-- @ExileServer/addons/scratchie_server.pbo | Bin 20403 -> 20318 bytes CHANGELOG.txt | 32 +++++---- README.md | 88 ++++++++++++----------- 4 files changed, 77 insertions(+), 61 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a841529..a1867ce 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,17 +1,23 @@ { "version": "0.1.0", "name": "PBO Task", - "command": "cmd", - "isShellCommand": true, - "showOutput": "always", - "args": ["/C"], + "command": "powershell", + "echoCommand": true, + "args": [ + "${workspaceRoot}\\setup.ps1" + ], "tasks": [ { - "taskName": "Pack", "suppressTaskName": true, + "taskName": "Build", "isBuildCommand": true, + "args": [ "-Build"] + }, + { + "suppressTaskName": true, + "taskName": "Patch Mission", "args": [ - "cpbo -y -p \"${workspaceRoot}\\ExileServerMod\\scratchie_server\" \"${workspaceRoot}\\ExileServerMod\\scratchie_server.pbo\"" + "-PatchMission" ] } ] diff --git a/@ExileServer/addons/scratchie_server.pbo b/@ExileServer/addons/scratchie_server.pbo index d04a0542c56a53cbc503bac44cab3a2fd765feff..cb4e5be46838ee1031cfe7e870a808b883b614f6 100644 GIT binary patch delta 2342 zcmb6bU2IcTxOK2~cXXp&TiUH`w|DK@wOxPLt=nDKG3LTx%3x#AASt!IV^_M{a@zu< zD>{7;)PUn7QDP!S6E%hh%t(xh35oGR1tCPEF-F0d_@aW-#29^;=bZk~vT5Q;ZqE1r zcfRwTyL3_d-K)|U)uE)wP4mYksi+u9M`w60oZ`fzoG6hP$9F$GGP=(wDPPwYJX0GH zVQ6$Byd@S(2&2Mu!ZDLfmJ3N%LJ%5WbahnC8oCxAv&tsNdZ$*ZB$9JAI=EZYpso2dN%ON@G7>$^#R81m=koZy-5#G0vvTNL z`c(RU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ddtxnLqE`O!7bF&@VAUs#>8g zHQhwm;|deq(GWb##LeqPi z(@4j(jY!klR-}tsn^Z6=U^aKP4XFD?>nvkrFxtXGr*1+~gvA&ab;f!@M=_(3OpN6Y z$FiKC#q{p#_MwNSx|8BDGNF%w_v&oQ)nlYX^G9`a>i;SQ<5YdKcD?=tX0=?e0j5hs z2_jpDK9rmhs`XS}A7_DM`XF+@>Gg0=&+?o>kQek7U^93`&@oa2$xzjTL5hkglL6i~ zObHM#+u=!LM&$ZTYWUOGRFuf;l*uj13bO;2OjSjRZU>_a6qM{1m@}UfvxSwY`bv1G zOI=a}We~P(hJuYQWmQtZ{jJubMg~3h=5j_R)OXhYa*TC3!?*#BN}SCT$s^Axx6r=aobJ|@UE=`DQmCC zrYk^duj8em4aYHWzl>vvg>KwMgfNhI+bB0TZIs(? z+8#@8pPZ2u7+I7y8o#p|+J+cZt?o5g4xXyO&B(xVTW&Y5yQA@BGM3KZzMDKqW~oFZ zA4`Yg8CrqKc!G4v+>t}EG|C*uo228%W5p9C8xnUQ|1KVS5}3~L_6c0Dlx#RUn@f^E z;kP6Px)V%JU@Mlq`bs_`{IH$ssq(h2-&?!9JqVrh?p z(>q>5`uC0jqyb+y(!7t}4_+cB|!2F;_mpK~8TVn0u%xo?ljXBuqS=`GD zU6iiJAB1R^voxujR502q8DRjeD=?m9WeP78n&;9yo>ilb&V^Version: 1.3 | Author: ole1986 | This extension is licensed under the Arma Public Licence +Version: 1.4 | Author: ole1986 | This extension is licensed under the Arma Public Licence

@@ -13,46 +13,63 @@ Videos: [PART #1](https://www.youtube.com/watch?v=zVPXYhhYrbU) [PART #2](https://www.youtube.com/watch?v=2MC45ycnOkc) - thanks to Rythron -## Installation +## Requirements -This README uses some placeholders ++ Arma 3 Tools (installed through Steam - https://community.bistudio.com/wiki/Arma_3_Tools_Installation) -Placeholder | Description ----------------------- | ------------- -<MissionFile> | Exile.<Mapname>.pbo (E.g. Exile.Altis.pbo ) -<ExileServerMod> | @ExileServer Exile server mod folder located in game directory. +## Build -### Required Tools +You can either use Visual Studio code or the powershell to build and patch all necessary files -+ PBO Manager (I use cpbo from http://www.kegetys.fi/category/gaming/armamods/) -+ Notepad++ or any other Text Editor (https://notepad-plus-plus.org/) -+ Exile Mod version 0.9.8 +Use the below command to build server pbo -### Database setup +``` +PS> .\setup.ps1 -Build +``` + +Use the below command to patch your mission file (a dialog will be prompted to select the mission pbo) + +``` +PS> .\setup.ps1 -PatchMission +``` + +## Install + +After you have followed the steps from the **Build** chapter, the below files are being generated. +Copy these files to your server into the **correct** destination directory + +Location | Destination Folder +---------------------------------------- | ---------------------- +@MissionFile\ | mpmission +@ExileServer\addons\scratchie_server.pbo | @ExileServer\addons\ -+ Import the mysql file `mysql\lottery.sql` into your exile database (through mysql or phpmyadmin for example). +## Database setup + ++ Import the mysql file `mysql\lottery.sql` into your exile database (either through mysql or phpmyadmin). + Copy and repalce the `mysql\exile.ini` with the file located in `\extDB\sql_custom_v2\exile.ini` -### MissionFile +## Battleye -+ **Unpack** the `` +When you use Battleye, please amend the below BE files to allow remote calls -+ Copy the folders `MissionFile\overrides` and `MissionFile\addons` into your `` directory -+ Modify the `\config.cpp` and add the below line inside `class CfgExileCustomCode` +**scripts.txt** -``` -ExileClient_gui_xm8_slide_apps_onOpen = "overrides\ExileClient_gui_xm8_slide_apps_onOpen.sqf"; -``` ++ add the below to the end of line `7 remoteexec` -+ Modify the `\description.ext` and add the below line inside `class CfgRemoteExec -> class Functions` + `!="remoteExecCall [\"ExileServer_lottery_network_request\"," !="remoteExecCall ['ExileServer_lottery_network_request',"` + +**remoteexec.txt** -``` -class ExileServer_lottery_network_request { allowedTargets=2; }; -``` ++ add the below to the end of line `7 ""` + + `!"ExileServer_lottery_network_request"` + +## Finish -### Exile Server +After all the below steps are properly done, please RESTART the Arma 3 server and log into the game. +You should see three additional "apps" when opening XM8 -+ Copy the `ExileServerMod\scratchie_server.pbo` into your `\addons` directory +## Advanced Setup ### Buy Scratchies from Traders @@ -80,20 +97,9 @@ _officeTrader addAction ["Buy Scratchie(200,-)", { ["buy" _officeTrader addAction ["Get Prize!", { ["get",ExileClientSessionId, player, ""] remoteExecCall ["ExileServer_lottery_network_request", 2]; }]; ``` -### Battleye +### Developer Hints -**scripts.txt** - -+ add the below to the end of line `7 addAction` (important for office trade action menu) +This project was developed using Visual Studio Code and uses git to manage the source code. +Feel free to Pull Request your changes. - `!="officeTrader addAction"` - -+ add the below to the end of line `7 remoteexec` - - `!="remoteExecCall [\"ExileServer_lottery_network_request\"," !="remoteExecCall ['ExileServer_lottery_network_request',"` - -**remoteexec.txt** - -+ add the below to the end of line `7 ""` - - `!"ExileServer_lottery_network_request"` +Thank you