View Full Version : InitGameAPI()
MagNet
09-16-2006, 07:12 PM
My game wasn't able to run normally but the demos were so I checked what the difference was, the demos used InitGameAPIEx instead of the InitGameAPI, I know that they did this in the beta versions but it didn't really matter since it only gave you more settings to set...
BUT
now I had to use it because the InitGameAPI() function seems to be quite buggy :P
In my game it totally started fucking up with minimizing the window lol and in fresh stuff it puts the GameAPI over the whole screen and DOESN'T SHOW ANYTHING. (No sprites etc...)
I think that this needs some fixing because
a) It's annoying yet can be fixed by using the Ex one
b) The new projects doesn't use the extended function so new users might be quite unhappily surprised
c) The game editor uses it...
d) You wan't your software bugfree, amirite?
kornalius
09-16-2006, 09:27 PM
None of the demos uses InitGameAPI() you are sure? I'll have to double-check that.
Are you using fullscreen or non-fullscreen settings in the InitGameAPI() ? You need non-fullscreen, set it to false.
MagNet
09-16-2006, 09:45 PM
I don't think I said none, well some don't and that's why some of them work, I'll check the settings but I don't think there's any setting like that in the InitGameAPI()
Lemme check...
InitGameAPI(h$, &GameProc, 5); Any fullscreen setting there? No.
And it's not even really fullscreen what's it doing, it doesn't change the resolution, it stays at the desktop res and just shows the FPS in the corner.
Oh and you might get on MSN aswell, I like that more than these forums :)
kornalius
09-18-2006, 06:53 PM
InitGameAPI and InitGameAPIEx all uses the same _init() function. Can you confirm which demo works correctly, I can start from there.
chipmunk
09-22-2006, 01:05 PM
In Simple2_1.ppl changed InitGameAPIEx(h$, &GameProc, 240, 320, false, 5, 60); to InitGameAPIEx(h$, &GameProc, 240*2, 320*2, false, 5, 60);
background.bmp - 480*640. But on my vga pocket (asus a730w) only 1/4 part of image
kornalius
09-22-2006, 04:33 PM
Try using the VGA enabled runtime. Replace PPL.EXE on your PocketPC in \Program Files\PPL\ with the one in \Program Files\PPL\WM2003. The PPL.EXE that is default is not VGA enabled.
MagNet
09-22-2006, 07:10 PM
Why is that?
kornalius
09-22-2006, 09:02 PM
Because the build for PocketPC2000 is set as default to support older devices. The WM2003 build support VGA devices. There are two different compilers that need to be used to either support PPC2000, 20002 and another to support WM2003, 2003se and 2005.
chipmunk
09-27-2006, 09:09 AM
I change ppl.exe on my pocket to new ppl 1.2. But exe not created and no vga:-(
kornalius
09-27-2006, 01:01 PM
Have you set the resolution in your InitGameAPIEx to be 480x640? Don't expect it to create .exe's with the WM2003 build that I released yesterday. You need runtime files for this which will be released today in 1.02.
chipmunk
09-27-2006, 02:48 PM
Have you set the resolution in your InitGameAPIEx to be 480x640?
Yes.
kornalius
09-27-2006, 03:19 PM
Mmmm. What do you see and which program are you running? If you move a sprite or draw something at 512,512 do you see it?
I know I got had it working on my Axim v51x before, I just don't remember how I did it. I will look into it tonight and get back to you. If a fix is needed and doesn't make it in 1.02, I will be releasing 1.03 very soon (within the week).
mmtbb
09-27-2006, 04:40 PM
Chipmunk,
Whether you set Simple2_1 to VGA or not, it won't matter unless the actual background image is 480x640. The background image is 240x320. Therefore you are always going to get a quarter screen in VGA.
chipmunk
09-27-2006, 05:23 PM
kornalius, mmtbb
I use demo Simple2_1. In file I change "InitGameAPIEx(h$, &GameProc, 240, 320, false, 5, 60);"
to "InitGameAPIEx(h$, &GameProc, 480, 640, false, 5, 60);" and file background.bmp to my bmp 480*640. On desktop I has vga, on Pocket - svga.
mmtbb
09-27-2006, 05:34 PM
I'll try to duplicate it when I get a chance and see what can be done. I make PPC VGA games all the time with predictable results
mmtbb
09-27-2006, 06:20 PM
Just as Kornalius asked, are you using the WM2003 build?
mmtbb
09-27-2006, 06:35 PM
I just tested it on my Axim x50v. Works great. It is the PPL.EXE you are using.
chipmunk
09-28-2006, 10:56 AM
Use version 1.02. Exe file creation - pocket and wm2003, but vga is none.
mmtbb
09-29-2006, 06:29 AM
That is really strange. When you run it through the editor on the PPC, does it give you VGA?
Also, is your device wm2003 or wm2005?
chipmunk
09-29-2006, 10:24 AM
asus a730w, wm2003
kornalius
09-29-2006, 03:52 PM
We will test VGA further more for v1.04. We won't have time to resolve it (if there is any bugs) for 1.03 unfortunately. 104 should be coming next week.
matteo.m
10-14-2006, 01:57 PM
Hi all... i'm using PPL 1.05. Today i create a new project on desktop pide , 'Game Api advanced project', just to play a bit around with game stuff.. so after created the new project, i saved the skeleton and give run targeting intelPC. Result: big black screen.. so i take a look and after changing the line '
InitGameAPI(h$, &GameProc, 5);
with
InitGameAPIEx(h$, &GameProc, 240, 320, false, 5, 60);
i got my 240x320 screen... so i did a search on the forum and i found this thread... A suggestion in the Pide: F1 help, Ctrl F1 Msdn Help, Alt F1, search on ArianeSoft forum
kornalius
10-14-2006, 08:44 PM
Yes you are getting a fullscreen GameAPI. You can change this with the InitGameAPIEx. Change the InitGameApiEx value False to True, it will be fullscreen.
InitGameAPI is a simplified fullscreen version of InitGameApiEx.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.