[Plugin] Windows Phone Updated - New Tutorial!

Post your completed addons to share with the community

Post » Wed Sep 04, 2013 10:23 am

Just wanted to say a MASSIVE THANK YOU to thehen, for making this fantastic plugin.

Your hard work helped to make our game release possible!

Thanks thehen, you're a true DUDE! ;)

Download Hexzul on Win Phone, for free check it out here
B
32
S
6
G
7
Posts: 489
Reputation: 8,217

Post » Thu Sep 05, 2013 3:23 pm

@Blacksmith awesome stuff! Just played through and rated five stars!

Congrats on the release, this is one of the best games that uses the Windows Phone plugin so far :D
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Thu Sep 05, 2013 4:31 pm

@thehen thank you for the rating, and the kind words :) I hope many more people think the same    Blacksmith2013-09-05 17:44:06
B
32
S
6
G
7
Posts: 489
Reputation: 8,217

Post » Wed Sep 11, 2013 7:09 am

Why we have to use "your" Windows Phone Project files it seems not reliable. Your plugin not working alone. As far as I understand it we have to make some changes on my Windows Phone Project folder. What are theses necessary changes. I read this tutorial but I'dont understand what should I do ? I need really help I stucked on certification in Windows Phone store because "On back button" event not working can you explain me what should be my next steps ? I'm only add the plugin as a object and add the back button event so what is next ?
B
4
Posts: 17
Reputation: 284

Post » Wed Sep 11, 2013 12:11 pm

@mertyildiran[QUOTE]I'm only add the plugin as a object and add the back button event so what is next ?[/QUOTE]Make sure you follow the tutorial:[QUOTE]Included in the Windows Phone Plugin for Construct 2 is a ready-exported project that we just need to drop the relevant exported files into. Never export directly from Construct 2 into this project otherwise vital files will be overwritten. I generally have two folders, one for the project and one for the exported files. Then I just copy what I need from the exported folder to the Windows Phone 8 project folder, helping to ensure nothing important gets overwritten.

Copy the Project folder included with the plugin to a safe location. Next, export the Construct 2 game for Windows Phone 8, ensuring that Minify script is unticked (Minifying works but for some reason performance is much slower on Windows Phone). For more information on exporting your project read How to Make a Windows 8 App -> Exporting from Construct 2.

Now we have two folders, one for the Windows Phone 8 project and one for our exported Construct 2 project. We now need to copy over our JavaScript and any images or files currently not included (no audio yet - that comes later).

From your exported Construct 2 project copy the c2runtime.js file and the images directory to the Windows Phone 8 project folder. For this game thats all you need, but if your own project has files included, ensure they get copied across too.

Open up the Windows Phone 8 project (WindowsPhonePluginForConstruct2.sln) and well need to add our images to the solution. Navigate to the solution explorer, right click the images folder, select Add -> Existing Item, then add the newly copied image files.[/QUOTE]thehen2013-09-13 22:50:01
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Sep 13, 2013 8:27 pm

@thehen

My question was actually about the following issue. You are saying at this tutorial: "Copy specific files to Project folder in my Windows Phone Plugin package." In this wise we can make necessary changes on our project folder easily. But we want to learn what are these changes means because of some security criterias. There is no any explanation at the tutorial. I have analyzed the changes with GitHub and here is the result. So I'm asking you for an explanation about the differences between your Project folder and unmodified Construct 2 output.
B
4
Posts: 17
Reputation: 284

Post » Fri Sep 13, 2013 10:41 pm

@mertyildiran I've no idea what you're comparing there. If you look at the standard exported MainPage.xaml.cs and compare to mine, that will detail the majority of the changes. These aren't listed in your commit.

Do you have any security concerns in particular? Any additions are listed in the plugin, and any other changes have been visual, like fixing resolution, supporting landscape and adding a splashscreen.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sat Sep 14, 2013 8:30 am

I'm comparing these two folder:

My output from your example .capx :



Your project folder:



There are a lot of differences more than a file.

In your folder:

+MockIAPLib folder
+Assets/SplashScreen.png
+Bin folder(created by Visual Studio)
+obj folder(created by Visual Studio)

(App.xaml.cs)
+//Application.Current.Host.Settings.EnableFrameRateCounter = true;
-      if (RootVisual == null)
+            WasTombstoned = !e.IsApplicationInstancePreserved;
+            if (WasTombstoned)
-      
-            MainPage m = (MainPage)((PhoneApplicationFrame)RootVisual).Content;
-            m.OnAppActivated();
+            }
+            else
+            {
+               MainPage m = (MainPage)((PhoneApplicationFrame)RootVisual).Content;
+               m.OnAppActivated();
+            }
+            {
(App.xaml.cs)

Also there are a lot of differences at Mainpage.xaml and Mainpage.xaml.cs

(index.html)
+    @-ms-viewport { width: 100%; }
-    {
-      // Indicate Windows Phone 8 platform
-      window["c2isWindowsPhone8"] = true;
-      
+    {    
(index.html)

(offline.appcache)
-#1379097799
+#1368019887
+logo.png
-icon-16.png
-icon-32.png
-icon-114.png
-icon-128.png
-loading-logo.png
(offline.appcache)

There can be more differences escaped from my eye. So I'm saying you should explain these differences.
B
4
Posts: 17
Reputation: 284

Post » Sat Sep 14, 2013 10:58 am

@mertyildiran these should all be pretty self-explanatory and are on the feature list. Also a lot of these like icon changes etc. are because of updates to Construct 2 rather than the plugin, so check the Construct 2 release notes.

It's not really expected for me to explain the functionality of every line of code. It should be considered a rewrite, and you're more than welcome to just copy the functionality into your project that you need.

Both the Construct 2 exporter and my version are based on the Visual Studio Windows Phone HTML5 Template.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sat Sep 14, 2013 6:41 pm

These "every line of code" are in C# and it can access to native feautres of Windows Phone. At the security side for example, placement of some malicious script into project is possible. Also we want to learn the logic of these differences for development. So in the tutorial, you should explain these differences, at least superficially. This is a requirement for everyone. Am I first person to asking for this ?
B
4
Posts: 17
Reputation: 284

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests