!!! Import new patch NGD 1.2 fixed A5.51 bugs !!!
Posted: Tue Jan 06, 2004 5:37 am
I realize that I was misleading the A5 users by saying A5 compatible when it was not. So I when back and debug the problem with A5.51
I was able to get the parcel to read A5.51, A5.551 and A6.xx,all comercial version or better.
I did not test it on versions lower than comercial but it should work fine.
on a5.51 the splash screen does not fade in and out. So during the fade in-out the screen is forzen for thee secods before the game start.
You can dowload the 1.2 patch here: http://www.physicsengine.com/downloads/newton1_20.zip
Note: for A5.51 users.
When you paste the lcode frgamnet to add the Map to the dll
your code should look like this
notice that there is a wait(1) instead of sleep(1) between the lines
level_load(office_wmb); and NewtonAddMap (office_wmb, splashscreen);
this is important for A5.51 user, ony one frame way between those lines.
I hope this clear the problems with the differents A5 version.
Good luck
Ps: Can we support anything bellow A5.51? No. I still own a IBM pc and I which Microsoft make window xp compatible with my IBM PC but the fact is that is not posible.
Newton
I was able to get the parcel to read A5.51, A5.551 and A6.xx,all comercial version or better.
I did not test it on versions lower than comercial but it should work fine.
on a5.51 the splash screen does not fade in and out. So during the fade in-out the screen is forzen for thee secods before the game start.
You can dowload the 1.2 patch here: http://www.physicsengine.com/downloads/newton1_20.zip
Note: for A5.51 users.
- Code: Select all
The template for A5.51 has a sleep(1) after the call lo load level
the code look like this:
function main()
{
.....
.....
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
// set it visible
splashscreen.visible = on;
// wait 3(!) frames for triple buffering, until it is flipped to the foreground
wait(3);
// now load the level
level_load(office_wmb);
// wait the required second, then switch the splashscreen off.
sleep(1);
...
...
}
When you paste the lcode frgamnet to add the Map to the dll
your code should look like this
- Code: Select all
function main()
{
....
....
// center the splash screen for non-640x480 resolutions
splashscreen.pos_x = (screen_size.x - bmap_width(splashmap))/2;
splashscreen.pos_y = (screen_size.y - bmap_height(splashmap))/2;
// set it visible
splashscreen.visible = on;
// wait 3(!) frames for triple buffering, until it is flipped to the foreground
wait(3);
// now load the level
level_load(office_wmb);
wait(1);
dll_handle = newtonHandle;
NewtonAddMap (office_wmb, splashscreen);
freeze_mode = 1;
// wait the required second, then switch the splashscreen off.
sleep(1);
splashscreen.visible = off;
bmap_purge(splashmap); // remove logo bitmap from video memory
...
...
}
notice that there is a wait(1) instead of sleep(1) between the lines
level_load(office_wmb); and NewtonAddMap (office_wmb, splashscreen);
this is important for A5.51 user, ony one frame way between those lines.
I hope this clear the problems with the differents A5 version.
Good luck
Ps: Can we support anything bellow A5.51? No. I still own a IBM pc and I which Microsoft make window xp compatible with my IBM PC but the fact is that is not posible.
Newton