problem with 0.9.6
Hi , i just installed the new 0.9.6 and is not working properly on my pc. When i try to run an example that involve gapi i get an access violation on the opcode newform and so i have to abort and i see a lots of warning on errorlog.txt. but if i run again, i get same access violation , but no anymore the warning in the errolog. I post screen copy of an example, images from 1 to 3 is first run, 4 and 5 is the second run. thanks
The warnings are normal. PPL tries to give warning messages for variables that have not been declared locally to a proc/func. However if this variable has been declared as global somewhere else it will still generate a warning. These are just reminders to make sure you are not using a local variable thinking it's local when it's in fact a global.
I will check the NewForm() issue you are having next Monday and get back to you then.
i dont know if this can help but when i just run ppl itself (no ide) i get this error message.. Thanks
Hi,
I just tried running the Bounce.ppl with and without the PIDE and it worked fine.
Can anyone else confirm it's working or not on their PC and PPC?
PS: mateo, was it working before the latest release?
Yes it was working very fine... you want me to try to uninstall it and reinstall it? Is not only bouce that is not working... basicly all the examples are giving me the same kind of problem. On the pocketpc i dont have this kind of trouble. Thanks
Do the Editor.ppl or Main.ppl work?
editor not working
Good, at least I know it's with the window creation and not related to the GameAPI.
Can you please contact me on to support email address or my MSN account tomorrow if possible?
Kornalius i must thank you for the quick fix about this issue! Now ppl on my pc is working perfectly.. Bye bye Matteo
Yep, me and matteo worked on this issue together. It turned out the WM_CREATE message was being sent twice to the window. I fixed this by sending the message to PPL code only.
Just to let you know, I'm encountering some problems with hardware buttons on both PC and PPC. When I press right it works like left and left doesn't work at all. Neither do the other buttons, only up and down work.
Since most of the demos have exit made on some button I have to restart the ppc lol.
Is there any fix for this?
Wow this is strange. Does anybody else experience this?
yes i didnt a deep test but for example on pocketpc it happen that the exit button dont work (tried on bounce demo) and i have to reset. if i change the source with the keydown it work. i will do a deeper test.
What do you change exactly in the source?
WM_TIMER:
// Check the keys if they are pressed.
if (KeysPressed$[keys.vkUp$])
PostMessage(hWnd$, WM_CLOSE, 0, 0);
end;
if (KeysPressed$[keys.vkDown$])
end;
if (KeysPressed$[keys.vkLeft$])
end;
if (KeysPressed$[keys.vkRight$])
end;
if (KeysPressed$[keys.vkA$])
PostMessage(hWnd$, WM_CLOSE, 0, 0);
end;
so basicly to me is not working the vkA$, adding the exit on the up$ i'm able to get out. This behavior i have it only on pocketpc side
I will look into the code tomorrow. It might be your device having some other values for the hardware keys than usual PPC's. If I remember correctly, PocketFrog which drives the GameAPI is handling the key presses.
I will have a better answer for you tomorrow.
I'm having another issue running the starfield demo.
Isnt working properly both sides pc and pocketpc
because the value of border.left$ border.right$
border.top$ and border.bottom$ are all set to 0.
thanks
Matteo: I don't have any controls on the key values, it entirely done in PocketHAL. I will need more information about your device, OS in order to ask for help in their forums. Are you running in a lanscape orientation mode?
Concerning the Border$ variable, send me the code you are trying to run. I don't understand how this can be zero all the way.
Hi kornalius, I'm using an ipaq 2750 with window mob 2003 sec edition, the code i'm running is the starfield into the demo folder. As i told you something wrong with the key to exit and also with the border values and this make the screen to not have stars on it. i Show the code where i putted to display the values.
#include "GameAPI.ppl"
// Initialize the stars array structure.
proc InitStars
ShowMessage(border.left$);
ShowMessage(border.right$);
ShowMessage(border.top$);
ShowMessage(border.bottom$);
i$ = 0;
while (i$ < 256)
Stars.x$[i$] = border.left$ + random(border.right$ - border.left$ - 1);
Stars.y$[i$] = border.top$ + random(border.bottom$ - border.top$ - 1);
Stars.Speed$[i$] = random(4) + 1;
i$++;
end;
end;
Wow, I am getting the same results here. Sorry about not believing you. Until I tested I was sure nothing changed in the latest release. Boy I was wrong. I will look into it and get back to you shortly.
Ok to fix the Border$ problem, go to the GameAPI.ppl library and remove the line
- Code:
Local(Border$)
in proc _init. Then make sure you copy the library to all the runtime Lib\ directories, on the PC and PPC.
ok i did it, I removed the line as you suggested, and in effect now the border variable are set but the border.bottom$ is quite out of range because it contain 1162629200 and so is still not working properly, sorry
Sorry add Border$ to the Global() line just on top. I forgot the variable needs to be a global.
sorry but the Border$ in my GameAPI.ppl it's already declared as Global so i still have the problem. Did you had any chance to figure out what is wrong with key.vkA$? Ciao
Hello Kornalius, anything i can check to solve the issue about the border?
You will have to wait for the next update. I think 0.9.6 had a bug really. The next release should fix both problems.
thanks
