lennaert's Forum Posts

  • Using HData like ""   (empty)

    I get this in the response tab:

    array(14) {

    ["Content-Length"]=>

    string(1) "4"

    ["Content-Type"]=>

    string(48) "application/x-www-form-urlencoded; charset=UTF-8"

    ["Accept"]=>

    string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"

    ["Accept-Language"]=>

    string(14) "en-gb,en;q=0.5"

    ["Cache-Control"]=>

    string(8) "no-cache"

    ["Connection"]=>

    string(5) "close"

    ["Dnt"]=>

    string(1) "0"

    ["Host"]=>

    string(15) "lennaerthohe.nl"

    ["Origin"]=>

    string(22) "http://localhost:50000"

    ["Pragma"]=>

    string(8) "no-cache"

    ["Referer"]=>

    string(23) "http://localhost:50000/"

    ["User-Agent"]=>

    string(72) "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"

    ["X-Forwarded-For"]=>

    string(13) "94.212.140.34"

    ["X-Real-Ip"]=>

    string(13) "94.212.140.34"

    }

    As soon as I put something in the HData entry field t doesnt work.

  • Your using Yii framework :) nice stuff, but, does way too much in the background.

    try a blank php page and add:

    <?php

    header('Access-Control-Allow-Origin: *');

    var_dump(getallheaders());

    ?>

  • Can you post an example of what to input in the HData entry field ?

  • If you use firefox, and install the firebug plugin, then have the console open as your call is made, you can see the all the details of the calls, including the headers.

  • I got this standard when my sprites are bigger then 2048x2048

  • Have you tried starting your construct as admin ?

  • Ok, got it to work partially.

    my calls go through to a php page after I added the cross domain support to my php file:

    header('Access-Control-Allow-Origin: *');

    edit: did you happen to write your test pages, and tested them, from the same server you are making your call too ?

    In that case it would work, as its the same domain.

    Bbut when you use previewe from construct, or from a mobile device where it is installed as an app, its form another domain.

  • edit: nvm, doing new test, unpacked wrong

  • You could use firefox with firebug, then check the console (ctrl+shift+j) for advanced information and insight to your ajax calls.

    For instance, the error code (if any) could give a good indication whats wrong.

    It will give a clear indication whether or not it was a valid call.

    I use firebug with anything url calls related, as it gives moset possible insight to whats wrong with a call, and, if need be, check the contents down to the headers if need be :)

  • You do not have permission to view this post

  • 1+1+1+3+6   << how would that one work ? wouldnt that be 12 ? (whats the reasoning behind it)

    You statement: I have to calculate the sum of all numbers in the range 10.

    Leaves a lot to the imagination.

    Or it could be 55.   >_>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are some good javascrip engines out there for chess, not the best or smartest, but far more capable then you would likely imagine.

    Oscar Toledo site, nanochess

    You would need to derrive your own construct 2 equivelant from it.

    Here is a running example

  • Add hiddin sprites on the potential locations you want the image to appear. Lets call them spawners. The object to appear, objectX.

    Have an event run every X seconds as desired, and use it to destroy and spawn a new objectX.

    event: every 2 seconds - action: destroy objectX

    subevent to every 2 seconds:

    event: system, pick random spawners - action: object spawners spawn objectX at image point 0.

    Every 2 seconds the objectX gets deestroyed and spawned on a new random picked spawn point.

  • Replacing images/changing them, is covered in the beginners guide tutorial.

    If you have not tried this yet, I can surely advise it as it will make your development experience a lot easier :)

  • There's probably no general problem with the computer that can cause both Chrome's and Firefox's problems at once.

    There are, many.

    video card drivers up to date ?

    Latest versions of the browsers ?

    Disabled all unneeded browser plugins ?

    Cleared cache and or temporary files ?

    Did you run them firefox and chrome in paralel with windows ? or installed the macos versions ?

    Did your IT class firefox run the game normally ? (if it had it and you tried that)

    Those are some approaches you could check.

    Generally, Chrome is considered top notch to test and run the web variant games of construct 2 in.

    Derrived from your statements, I would say the culprit is your local system. Seeing as the game even ran fine on an internet explorer on your school.