Jump to content


123tomek

Member Since 12 Dec 2007
Offline Last Active Mar 14 2012 07:57 PM

Topics I've Started

Problem with send post function on IE

01 December 2011 - 12:49 PM

What is wrong with function send_post.

function send_post(url, params) {
  var http = new XMLHttpRequest();
  http.open("POST", url, true);
  //Send the proper header information along with the request
  http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  http.setRequestHeader("Content-length", params.length);
  http.setRequestHeader("Connection", "close");
  http.onreadystatechange = function() {//Call a function when the state changes.
       if(http.readyState == 4 && http.status == 200) {
            alert(http.responseText);
       }
  }
  http.send(params);
  return http.responseText;
}

In most recent browsers (Opera, FireFox and Chrome) it works fine but on IE 9.x not exactly. When I use this function to all data is sent correctly to the php file. I can save the php file-level variables to a file uploaded highscore but GM does not receive feedback and all the time waiting for the execution of subsequent commands. This is only for IE, other browsers are working properly.

splash_show_web or execute_shell("http://..")

29 November 2011 - 11:39 PM

Hi!
After that code
splash_set_main(false);//czyli w osobnym oknie
splash_set_fullscreen(true);//pelny ekran
splash_show_web('http://retrospect.com.pl',-1);

or that
execute_shell("http://retrospect.com.pl",0);

nothing happens. Do these commands are supported in gmhtml5?

ds_grid_set_grid_region not work

29 November 2011 - 05:11 PM

Is this another mistake? Action ds_grid_set_grid_region (index, source, x1, y1, x2, y2, xpos, ypos). With the grid with the following contents:

/ / grid "example"
A 1
B 2
C 3
D 4
E 5

after ds_grid_set_grid_region (example, example, 1, 0, 4, 1, 2, 0) on itself (which is described in the documentation as the most allowed) should get a grid:
/ / grid "example"
A 1
B 2
B 2
C 3
D 4

and get this:

/ / grid "example"
A 1
B 2
B 2
B 2
B 2
The conclusion is that this command immediately instead download the entire grid area to copy and then paste the whole works on the target position so that it takes one line of copy in target ii place, then reaches for another line and so on until the end of this, as does that of itself is still in effect, duplicates the first line (step earlier because the information has been overwritten by the source). This is easier to see at a larger table and more when copying items.

Event "no more lives" not work

28 November 2011 - 10:59 PM

Hi!
It supported the event, "no more lives" in gmhtml? Lives are counted (detachable) correctly but reaches 0 when the event does not "no more lives".

Problem with ds_grid_read

27 November 2011 - 12:56 PM

Hi!
I have problem with ds_grid_read.

global.hs:=ds_grid_create(10,2);
tmp:="590200000A0000000200000001000000000000000000000008000000546F6D736B692031000000000000000000005940000000000100000000000000000000000800000044756E64656520320000000000000000008056400000000001000000000000000000000008000000546F6D736B692033000000000000000000005440000000000100000000000000000000000800000044756E6465652034000000000000000000805140000000000100000000000000000000000800000044756E6465652035000000000000000000004E40000000000100000000000000000000000800000044756E64656520360000000000000000000049400000000001000000000000000000000008000000546F6D736B692037000000000000000000004440000000000100000000000000000000000800000044756E6465652038000000000000000000003E400000000001000000000000000000000008000000546F6D736B692039000000000000000000003440000000000100000000000000000000000900000044756E64656520313000000000000000000000244000000000"; //this is my hs table - is working on GM 8.1 and html5 exe file
ds_grid_read(global.hs,tmp); //this crash my game

When I use this code I have problem with may game (stop with loading bar) and Error: JSON.parse: unexpected non-whitespace character after JSON data.