[Windows 10 Mobile Apps. and Games] GamerWael:
How to play Mini DayZ on Windows Phone

This tutorial was written on Linux, however the process should be pretty much the same for Windows.

Requirements:

1. Mini DayZ apk

2. A computer with node and cordova installed

Steps:

First of all rename the apk to .zip and extract it.

Go inside the folder and go to the assets folder. Right click and open in terminal.

In the terminal type:

cordova platform add browser

Then in the same folder create a file called

config.xml

and paste the following into it:

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<preference name="windows-appx-target" value="uap" />
<preference name="windows-arch" value="arm" />
<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<platform name="windows">
<preference name="windows-appx-target" value="uap" />
<preference name="windows-arch" value="arm" />
<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
</platform>
</widget>

Then do:

cordova run

If you get the following error:

cordova-custom-config: Skipping auto-restore of config file backup(s)
Unable to load PlatformApi from platform. Error: Cannot find module 'cordova-common'
Unhandled error. ('The platform "browser" does not appear to be a valid cordova platform. It is missing API.js. browser not supported.')

Then do the following:

npm i cordova-common

Then do:

cordova run

Now if you get the following error:

Cannot find module 'cordova-serve'

Then do the following:

npm i cordova-serve

And finally do:

cordova run

You should see something like:

Static file server running @ http://localhost:8000/index.html

Go to that url in your browser and it should be working.

Now to get it working on your phone make sure both your phone and laptop are connected to the same network.

Now you must find your laptop's local ip. On Linux do the following:

hostname -I

You should see something like

192.168.0.xxx

Go to your phones browser and go to http://192.168.0.xxx:8000/index.html

AND VOILA IT SHOULD BE WORKING!!

Once everything is loaded it should be safe to shut down the server on your laptop. And the best part is your game gets saved in your browser so you can continue playing where you left off.

If someone is generous enough to host this on heroku or your own website, please let me know.

If you know any other games that are built with cordova please let me know.

ERRORS:

1. For some reason the audio works on my laptop but it doesn't work on my phone. If anyone can fix this please let me know.

2. I tried to pack this into an .appx file via Phonegap but it didnt work. The appx file was getting installed but whenever I opened it I just got a black screen. Can anyone get it to work?