nutmix's Recent Forum Activity

  • Kyatric, how do I contact Tom? I may be able to help - I know quite a lot about load balancing, networking and session management.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok, the problem seems to be that SIII 4.1.2 browser reports 360 as the width and device-width, but has a pixel density of 2. This is more or less the same as iphone - it reports half the resolution, and you have to factor in the pixel density.

    The question is, how do I hack the output of C2 to work on this device? I dont know much about CSS, but I guess the crux is to

    a) detect this case

    b) force C2 to use the native resoution.

    Anyone done this?

  • I have a HTML5 game which is designed for 640 or wider (iphone). On any screen wider than 640, it looks good too.

    On SIII mini, which is only 480 wide, its a bit cramped, but playable.

    But on the SIII (android 4.1.2 + chrome) which is 720 wide, I only see a tiny part of the game, looks like its a phone with only 360 with (like switching retina mode off on the iphone).

    However, an older SIII, with android 4.0, and the android browser, looks great! The game can use the full 720 width.

    So the question is, does anyone know whats in 4.1.2 which is "downgrading" the resolution to half the native resolution? Anyone seen this?

    The C2 project is a mobile one with crop fulscreen mode and "use ios retina display" set to "iphone only"

  • I get that error occasionally using C2 1.39 and IOS 6.1.3 on iphone 4. Have not been able to reproduce. Assume its a loading order issue or similar. Refreshing seems to fix.

  • Sounds work well on iphon4 with ios 6.1.3, and both sounds and music work perfectly on ipad with ios 6.1.3

    However, they do not work at all on iphone 5 with ios 6.1.4

    Try this 2 line capx which uses the C2 sounds. I tried in C2 preview, and also exporting as HTML5 and running from a web server.

    https://www.dropbox.com/s/9v8yderjrrvmthh/soundTest2.capx

    Any one know why this is, and more importantly, how to fix?

    Also, music (see capx) does not work on iphon4, 6.1.3, either as music or as sound (one is streamed, the other downloaded). Any ideas?

    Unfortunately, packaging is cocoon etc is not an option.

  • How can I stop C2 generating the offline.appcache? When I get a final version, ill add it back, and pray I dont need to patch it.

  • Interestingly, this is the response from the web server when Chrome requests the file:

    HTTP/1.1 304 Not Modified

    Date     Thu, 01 Aug 2013 17:13:01 GMT

    Server     Apache

    Connection     close

    ETag     "5a149e9-402-4e2e5ccdd308a"

    The server is in a different time zone. The server and client clocks are correct.

    I last updated the file at 19:12 GMT+2 (which FTP shows correctly as the timezone adjusted modification time)

    When I ran this it was 19:15 in Gibraltar, which was 18:15 in UK, which in summer is 17:15 GMT or UTC.

    This was the request:

    GET /bingo/offline.appcache HTTP/1.1

    Host     test.nektan.com

    Connection     keep-alive

    If-Modified-Since     Thu, 01 Aug 2013 17:01:59 GMT

    If-None-Match     "5a149e9-402-4e2e5ccdd308a"

    User-Agent     Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

    Accept-Encoding     gzip,deflate,sdch

    Accept-Language     en-US,en;q=0.8

    The crux is that apache is returning the 403 response incorrectly for a file which was just modified. This would appear to be a bug in Apache (which is unlikely) or other time zone related issue?

  • This is the offline.appchache

    CACHE MANIFEST

    #1375349555

    index.html

    c2runtime.js

    jquery-2.0.0.min.js

    icon-16.png

    icon-32.png

    icon-114.png

    icon-128.png

    loading-logo.png

    NETWORK:

    *

  • Kyatric, I can confirm that:

    1) I export the entire project each time, delete all the old files on the web server, and upload all the exported files each time.

    2) I don't modify in any way any file between exporting and uploading to server.

    3) I always upload all files.

    4) the web server is correctly setting the mime type to text/cache-manifest when I want it in Charles Proxy.

    5) repeated Shift+F5, Ctrl+F5, F5, Ctrl+Shift+F5 etc. has no effect.

    6) test.nektan.com/test I have uploaded a project with a slingle layout with a single number. On my browser it is 4, but I have updated it several times to 7 I think. Chrome (and safari on ios) are stuck on 4. any new person will see the new version (7 or so). The only way i can get chrome to go from 4 to 7, is do do that thing with chrome://appcache-internals/

    7) It doesnt appear to be the network, as if I request the offline.appcache, http://test.nektan.com/test/offline.appcache I see the correct file with the correct mimetype, content etc. But Im not 100% sure what the header should look like.

  • I have a real problem, and can't work it out.

    By default, the C2 mobile project uses the offline.appcache feature which is supported by many browsers.

    The problem is, once we have uplaoded one version,then delete the files and upload a new version of the game, we can only ever see the old version.

    Getting the new version is proving to be a very difficult job.

    In Safari on ihpone 4, ios 6, it never seens the new version, no matter how much refreshing you do.

    Same with chrome on desktop, once you have an old version loaded, you wont get a new one.

    but IE 10, always sees the new version.

    I thought it was the apache web server caching the offline.appcache, but this doesnt seem to be the case. When My local chrome goes to the sites URL, using Charles proxy, I can see it gets the full and correct offline.appche, but kinds of ignores it. After it has read it once, the sever just sends 304 (not modified) response, which is correct.

    In our office, we have one person with windows 7 who always sees the new version in all 4 browsers (IE, FF, Opera and chrome). We have another person who only ever sees the old version, which includes myself. so its not the ISP. In the office we have no proxy or caching.

    On chrome, you dont seee the new version even if you "Empty the cache" from the tools menu, then go to the site again. you have to do this:

    1) go to this URL: chrome://appcache-internals/

    2) Find the site.

    3) hit the remove button.

    4) "empty the cache" in tools.

    5) now when you go to the site, you will see the new version.

    Safari on mobile is similar, requireing every user to go into settings->safari->Clear cookies and data.

    We cant expect all our customers to do this each time, and have to mail them to tell them there is a new version.

    On apache, I added this in the .htaccess:

    AddType text/cache-manifest .appcache

    If I modify any file on the Apache web server, then request it again, I seem to always get the latest version. The hosting company says they don't do any explicit caching in Apache.

    But I think this was redundant, as the mime time which Apache is returning was that already.

    If I run IIS locally, and deploy to that, I dont get the issue in Chrome or safari.

    Any ideas? Anyone else with the same issue?

    I cant tell if its a problem with:

    1) the local PC

    2) the ISP

    3) C2

    4) windows chrome & safari on ios6

    5) Apache.

  • I have two SSDs in my laptop, the Crucial M4 256GB mSATA for windows, and a Crucial M4 512GB for data. I just dont want them to fail after only a few years through excessive and hopefully avoidable IDE temp files etc. ive moved the chrome cache into ramdisk at least.

  • As you may know, SSD disks wear out. Mine are rated to writing 40GB a day for 5 years before failure. When you add up your browser cache, system cache, VMs, and IDE file changes and compilation (e.g. C2), you reach that 40GB pretty quickly.

    So the answer is to move as much as possible off the SSD onto ramdisk.

    The question is are there any temp files which C2 writes, e.g. when you save, or when you hit the Run Layout button, which we can redrected to the ramdisk? E.g. by changing registry settings, or creating directory links?

    Many Thanks.

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies