Sounds good
Last week I had a few problems on one PC where a FullScreen window made everything green. I have not tested it much yet though.
Sounds good
Last week I had a few problems on one PC where a FullScreen window made everything green. I have not tested it much yet though.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Please test it, but i have bad experience of OpenGL on laptops, the gpu's are often some odd variant of the normal cards with lacking driver support.
Found a small bug in the imageclass, for some reason i have switched place of the parameters in some functions, ie drawAdd:
Procedure DrawAdd(X,Y,Alpha);
Procedure DrawAdd(X,Y,PatternIndex, Alpha);
Should really be
Procedure DrawAdd(X,Y,Alpha);
Procedure DrawAdd(X,Y, Alpha, PatternIndex);
for consistency across the board.
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
I finally might have a bit more time to start converting the classes and creating test cases for the scripting engine. Was curious to see what you felt were the most important classes and units to convert. I'm thinking:
phxImage
phxSprites
phxSpriteEngine
phxTexture
phxFont
I'm sure that there are more, so let me know. I'll post something once I have some demo's working with the headers. I figure that will be the easiest way to find what I'm missing
- Jeremy
http://www.eonclash.com/
Yeah, something like that, the functions and classes in phxTexture is rewritten from scratch through.
Here's a link to the latest version of the documention, something like 20h work behind that so far:
http://glxtreem.net/phoenix/docs.rar
Image, Texture, Screen, Font, Input is covered so far.
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
Well, interestingly enough I've ran into some problems. I've successfully wrapped everything up, but when trying to run I get errors somewhere deep in the bowles of the system.
You can download the source from: http://www.eonclash.com/phoenix/Phoenix2006-08-15.zip
It would be nice if someone would take a look at the demo\Scripting\Scripting.lpr project. In the bin folder you will find a file called Game.lua. Run the Scripting.exe and everything is fine. Open Game.lua and change:
toCode:--[[ Images:LoadImagePattern('Sprites.png', 32, 32); Images:LoadImage('Rectangle.png'); Images:LoadImage('Octagon.png'); --]]
Now it will blow up when it tries to load the images. Looking at the code didn't help me any neither did the stack dump . Any ideas? Until I figure this out, fonts, Image collections, and sprites won't work . Once I figure it out, I'll make a clean build and we should have scripting support.Code:Images:LoadImagePattern('Sprites.png', 32, 32); Images:LoadImage('Rectangle.png'); Images:LoadImage('Octagon.png'); --]]
- Jeremy
http://www.eonclash.com/
BTW, Here is the dump that I get while running:
The same thing will happen if you try to use the font:Code:[FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $004FBC75 REMOVE_FROM_LIST_VAR, line 562 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004FB1B1 SYSGETMEM_VAR, line 966 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F9838 SYSGETMEM, line 1002 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F4389 GETMEM, line 229 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F32F2 fpc_dynarray_setlength, line 185 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/dynarr.inc $004EED75 TPHXTEXTURELOADER_FREEIMAGE__LOADBITMAP, line 498 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EF259 TPHXTEXTURELOADER_FREEIMAGE__LOADIMAGEDATA, line 591 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EE9A2 TPHXTEXTURELOADER__LOADTEXTURE, line 432 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EF8EB TPHXIMAGE__LOADIMAGE, line 205 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas $004F0BF3 TPHXIMAGELIST__LOADIMAGE, line 675 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas $004DF91A LUATPHXIMAGELISTLOADIMAGEPATTERN, line 784 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/lua/lua_phxImages.pas $002648B6 $0026BA4E $002649F8 $00261E76 $002642E3 $00264C8A TApplication.HandleException Access violation Stack trace: $004FBC75 REMOVE_FROM_LIST_VAR, line 562 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004FB1B1 SYSGETMEM_VAR, line 966 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F9838 SYSGETMEM, line 1002 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F4389 GETMEM, line 229 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc $004F32F2 fpc_dynarray_setlength, line 185 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/dynarr.inc $004EED75 TPHXTEXTURELOADER_FREEIMAGE__LOADBITMAP, line 498 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EF259 TPHXTEXTURELOADER_FREEIMAGE__LOADIMAGEDATA, line 591 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EE9A2 TPHXTEXTURELOADER__LOADTEXTURE, line 432 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas $004EF8EB TPHXIMAGE__LOADIMAGE, line 205 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas $004F0BF3 TPHXIMAGELIST__LOADIMAGE, line 675 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas $004DF91A LUATPHXIMAGELISTLOADIMAGEPATTERN, line 784 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/lua/lua_phxImages.pas $002648B6 $0026BA4E $002649F8 $00261E76 $002642E3 $00264C8A [FORMS.PP] ExceptionOccurredCode:Font = TPHXFont:new() Font:LoadFont('Arial16.phfnt')
- Jeremy
http://www.eonclash.com/
Hi Andreaz
Bad news. My PC at home that gave me a funny color full screen version previously doesn;t display anything using the new version
I was using specifically the Input demo, and also took my previous version of the demo and ran it. Both just give me blank screens.
Its an AMD 64x2 4400, X1600 card and 1GM RAM.
What sort of tests can I do to try work out what the problem is.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Yeah, i've started writing documentation for the completed components. Mor fun then to write everything at onceOriginally Posted by WILL
Well only pgd for now, there's just a blank page att http://phoenix.glxtreem.net/ so far. We could use some sweet logo through
Me neither
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
Try changing the resolution, deaphtbits, vsync and so in TPHXScreen.Open and see if that helps.Originally Posted by cairnswm
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
Bookmarks