Play 'index.html' in your browser ! !

Discussion and feedback on Construct 2

Post » Mon Jan 30, 2012 10:15 pm

How to play 'index.html'in your browser.

You can use this method to play/test your Construct games(html.index) in your browser (running from your hard drive) without getting the dreaded security alert.( Ive only got a Voda 2 gig internet limit, so having the abilty to test a game before uploading to Dropbox is gonna help......anyway the important bit.


Insructions
-----------

1, Go to Website
and download 'mongoose' web server (open source Chrome project)

mongoose3.exe
(its only about 130kb) I got the 'no istall'version


2, Drop the mongoose.exe file into the exported Construct game directory (containing your html.index file) and double click it.(the .exe)
The server creates an icon on your bottom taskbar when its running.

3, Start you browser, and point it to   http://your_machine:8080 (I used http://127.0.0.1:8080) for machine number.

4, Your game start loading into your browser.
To close the server ( right clicking icon for options)

MY spec :Windows XP SP2 CHROME 16.0.912.77 m

It worked first time , but i might have been lucky.

Please read the documentation on the mongoose website before using it.

There are various settings and security issues that you need to know about.

USE AT YOUR OWN RISK
chrisbrobs2012-01-30 22:56:28
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Mon Jan 30, 2012 10:35 pm

Don't you mean 'index.html'? Also, why not just preview inside Construct 2? It's quicker and should work the same.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Jan 30, 2012 10:56 pm

Maybe for offline gaming? I am still confused as to how to accomplish offline gaming with HTML5.
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Mon Jan 30, 2012 11:14 pm

@VampyricalCurse : You have this tutorial to guide you with offline gaming with Construct 2 exported projects.

@Ashley: I think what Chris meant is testproof an exported project without having to upload it to an online webserver first.
Solution, local server testing.

Moongoose, WAMP any kind of html server with local application will do the trick indeed.
Moongoose sounds simple enough though for quick tests (hierarchy of the files starting in the very same place as the executable, this is easy and quick to remember for punctual testing).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Mon Jan 30, 2012 11:38 pm

Construct 2 uses its own local server for previewing on. The code is almost identical for preview vs. export. So it's hard to imagine anything that could go wrong, apart from I guess maybe quickly checking all your third party plugins work with the minifier.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Jan 31, 2012 1:43 am

"The Final build"

"During the early days of iPhone software development, there were no mechanisms for doing beta tests. Those of us on the bleeding edge were developing apps with very little peer review and beta testing.

But this essay isnt about reminiscing. Its about telling you how to test the applications you upload to iTunes Connect.

If youve submitted an application to the App Store, you know that sinking feeling of not being able to test your final build. The binary that gets signed with the App Store distribution mechanism cannot be run on your test devices: you cant be sure that the final bits you send to Apple are complete.

But theres a simple way around this problem and its called codesign. The same application we used for our pre-Ad Hoc beta testing can also be used for a final test on your App Store submissions.

The first step is to create your distribution build for the App Store. For this example, well be using the Frenzic application and putting it into build/Distribution-iphoneos. After the build completes, make the ZIP file archive immediately. Put it in a safe place so you can upload it to iTunes Connect after you finish your final test.

Now you can move the updated application onto a test device and make sure that the final build is OK. Everything except the signature is the same: if theres a missing file or something thats messed up, youll be able to find it before the QA engineers at Apple do (and with 10 day turnaround times, thats a very good thing.)

Once youre happy that everything looks good, upload the ZIP file you created earlier to iTunes Connect and crack open a beer. As youre enjoying that beer, take a look at the codesign man page for more information on this essential utility. Or write an essay for your web log :-)

Updated July 2nd, 2009: Note that this procedure can also be used if you are beta testing. This is particularly helpful in cases where youve upgraded to an iPhone 3GS and the Ad Hoc .mobileprovision file for the beta contains the UDID for your older device. Many developers have hit the 100 device limit since the release of the new phone, and cant add devices into a new .mobileprovision file. Youll be able to test the beta releases after signing the code with your own certificate. The only case where this wont work is when the app being resigned uses the keychain."

Download full version rtf

Also:
A Overview of Game Testing Techniques.pdf
LINK

Testing the final product BEFORE distribution is essential. When a car rolls of the Ford production line it gets tested...You cannot final test a product until its finished.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot], LoneVox, Silverforce, Unconnected, Zebbi and 11 guests