nutmix's Forum Posts

  • 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.

  • cvp, did you resize vertically? If you resize horizontally (make it wider or narrower, its ok, but making the window longer/shorter leaves the sprite at completely random locations, some times off the screen at the top, sometimes half way down the screen. It only works if you make it longer/shorter really slowly and carefully. The same code for X (i.e. for horizontal movement) is fine, its just vertically that its hugely buggy.

    In FF, I sometimes get a blank black screen also.

    I just tried it in FF, and its just as buggy. Try making the browser longer quickly in jumps.

    This bug used to be in Anchor, many versions ago (99?) which is why I dont use it any more. Until now, setting the Y manually has worked instead.

    If i change the project to set Y every tick, its fine, but doing operations every tick like this will affect performance.

    I suspect that its the Browser On resized which is the problem - its missing re-size events for what ever reason.

  • The anchor behavior cannot center sprites. Using events, I can center a sprite Horizontally Ok, but I cant do anything with it vertically, it just jumps around and goes a random Y, sometimes going off screen completely.

    https://www.dropbox.com/s/opoehw830axlyc3/viewportYproblem.capx

    The code I am using is this:

    Browser On resized : mylogo Set Y to ViewportTop("lobby") + 27

                         mylogo Set X to (ViewportLeft("lobby") + ViewportRight("lobby")) / 2

    I want to fix the logo 27 pixels from the top of the screen. It just doesnt work.

    Any ideas why? I'm sure I used to do it like this.

    Note: I have set the origin of the logo sprite to be X in the center, Y at the top. (i.e. origin x=width/2, y=0)

  • Stupidly, I have overwritten the version with one with webGL switched off. This solves the problem until we find out why it is happening.

  • I get the above error when trying to run my game in chrome after exporting it as a HTML5 web app. Its designed for iphone size.

    http://test.nektan.com/bingo/

    Has anyone seen this before? Hitting reload loads the game ok. I don't know how to get more information about the error.

    Chrome version 28.0.1500.72.m (windows 7 pro)

    FF is ok.

    Simon.

  • Ok, found an easy solution.

    1) double click on Files/icons/loading-logo.png (see post from ramones above).

    2) in the sprite editor, import your own sprite image.

    3) Done!

    Now the preloader displays your logo.

    NOTE:

    1)This is nothing to do with the loader layout which I already have customized.

    2) It seems you can use any size of loader icon, doesnt have to be 66px like the original.

    Thanks for your help!

  • when you load c2, it shows the C2 cog, which is great, but I am being asked to change it to the games icon. Is this possible? I guess I could change it after each export, but this would be difficult.

    Also, the game does not show an icon in the browser. I notice a bunch of C2 icons (4 different sizes) in the root of the exported projects, what are these used for? Perhaps they are not used as they are not in the root of the site, but in a sub dir/virtual dir?

  • html5 apps can be "add to the home screen" in iphone/ipad etc.

    Has anyone managed to do this with C2?

    Any ideas how to get something like this into the project:

    <link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png" />

    <link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png" />

    <link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png" />

    <link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png" />

    I guess I could edit the template, but then it would give the same icons for each project. I could also edit the index.html and manualy drop the images into the project, but to have to do this each time I export will be difficult.

    Thanks!

  • Hi, I have a group with one "every 5 seconds do x" in it.

    The problem is, when I want to start the 5 seconds going, the first call is usualy instant, and the second one follows very soon after. At least the first call is anywyere between 0 and 5s, the following onces are 5 seconds appart.

    I have tried various methods to "start" the 5s timer when i need it to start. I have put it in a group, and tried enabling and disabling, this did not help.

    I added a condition, and set that condition to true when I want the ever 5 seconds to start, but that didnt help.

    So I'm a bit stuck on how to get it to start such that from point X, 5s later, the first action of the every 5 s will be called.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • test4

  • Ashley, could this problem be load balancing to multiple forum servers without sticky sessions?

    Or possible circular routing through the load balancer?

  • blackhornet - interesting, I had no idea you had to iterate through stuff that was picked. Many thanks for clearing this one up for me.

    I guess the picker with iterator is the same speed as an iterator with a condition (i.e. my final event), may be the iterator with condition is faster (as I expect the picker will also be an iterator).

  • There are many forum systems out here, most with significantly better markup (or mark down), including auto creating links for URLS, WYSIWYG, drag and drop images, etc. How about switching to one which works, and works with more features?