|
This thread is locked; no one can reply to it. |
1
2
|
Would some of you please test this ?? |
Ariesnl
Member #2,902
November 2002
|
http://members.home.nl/ejm.martens/ViperFighter_test.zip My game works perfectly on my computer .. and also on some other comps I added a logfile that logs everything important the program seems to "crash" when deleting a GUI object.. but it does so even with the simpelest objects... how is this possible ?? I cannot really debug this because it works on my computer whatever I do I tried resolving all warnings but OpenLayer comes with a big load of warnings... If someone could help me in finding the solution to this I would be very gratefull.. Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
ri99ers
Member #9,111
October 2007
|
Hi Edwin, sorry to tell you the game still crashes for me at exactly the same point (pressing the start button), but here are the contents of your log files. BSG.TXT Starting GUI ERROR.TXT #0 0x6965ae9c nvoglnt!DllMain (??:??) Hope these help, Ri99ers. |
bamccaig
Member #7,536
July 2006
|
It is crashing for me as well in XP SP2. What third party libraries does it use? bsg.log:
error.txt: #0 0x6965ae9c nvoglnt!DllMain (??:??) #1 0x03390fb4 ?? (??:??) #2 0x0334a518 ?? (??:??) #3 0x0022fc98 ?? (??:??) #4 0x00001401 ?? (??:??) #5 0x00447890 gk_render_line_gl_utf8 (C:/Program Files/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/iostream:77) openlayer.log:
I don't know if it helps, but edwin.tst is empty (0 bytes) and I just happened to select the Edwin option. Ariesnl said: I cannot really debug this because it works on my computer whatever I do You could ask for permission to debug on the computers where it does crash. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
piccolo
Member #3,163
January 2003
|
hey i think its your list box that crashing it. add and new crash as well. edit: wow |
bamccaig
Member #7,536
July 2006
|
I'm installing OpenLayer and FMOD so I can build the project myself... I don't know if I'll be any help, but I'll try... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Albin Engström
Member #8,110
December 2006
|
Add a config file, my monitor can't(EDIT) view 800x600 for some reason, would be nice if one could switch from full screen to windowed with a config file. |
bamccaig
Member #7,536
July 2006
|
I said: I'm installing OpenLayer and FMOD so I can build the project myself... I don't know if I'll be any help, but I'll try...
CodeBlocks project link libraries: openlayer freetype png z agl alleg user32 gdi32 glu32 glyph loadpng opengl32 fmod
-- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Ariesnl
Member #2,902
November 2002
|
I think you should add OpenLayer to the additional compiler dirs Openlayer\include to the compiler I only use OpenLayer and Fmod and CodeBlocks with MinGW @ piccolo: see bsgGUI.h and bsgGUI.cpp Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
bamccaig
Member #7,536
July 2006
|
Ariesnl said: I think you should add OpenLayer to the additional compiler dirs... I copied the OpenLayer libs to the C:\MinGW\lib directory. I tried adding C:\MinGW\include\OpenLayer to the compiler directories and it didn't change anything... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Audric
Member #907
January 2001
|
http://www.allegro.cc/forums/thread/595417/733887#target Audric said:
The checklist is: Linker options: -lopenlayer -lglyph-agl -lfreetype -lpng -lz -lagl -lalleg -luser32 -lgdi32 -lglu32 -lopengl32 -lalleg -lfmod Hope it helps. |
Ariesnl
Member #2,902
November 2002
|
@bamccaig never copy or even worse overwrite the tings that come with your compiler !!! Use the additional dirs !!;) Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
bamccaig
Member #7,536
July 2006
|
Ariesnl said: @bamccaig never copy or even worse overwrite the tings that come with your compiler !!! I wouldn't overwrite anything... Unless the installation instructions say otherwise I usually copy the contents of the include and lib directories into the corresponding compiler include and lib directories. I suppose it is a better idea to group them into a subdirectory though... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: I suppose it is a better idea to group them into a subdirectory though... PErsonally, I think its better to properly install 3rd party libraries into the compilers path structure. That way if you ever upgrade the compiler and other libs by blowing the mingw folder away and replacing it, you KNOW you need to reinstall the 3rd party libs, instead of just hoping you dont have to. -- |
bamccaig
Member #7,536
July 2006
|
Thomas Fjellstrom said: PErsonally, I think its better to properly install 3rd party libraries into the compilers path structure. That way if you ever upgrade the compiler and other libs by blowing the mingw folder away and replacing it, you KNOW you need to reinstall the 3rd party libs, instead of just hoping you dont have to. Yeah, that's why I would group them into a subdirectory of the compiler directories... <tt><mingw_dir>\include<library_name[_version]></tt> Or did you mean something else? -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: Or did you mean something else? Sorta. Just install it as the lib tells you to. includes and any subdirs into <compiler>/include and libs into <compiler>/lib. Anything else just makes for confusion later with trying to figure out why "#include <foo.h>" doesn't work cause you forgot you placed stuff into "#include <foo_version/foo.h>". -- |
bamccaig
Member #7,536
July 2006
|
Thomas Fjellstrom said: Sorta. Just install it as the lib tells you to. includes and any subdirs into <compiler>/include and libs into <compiler>/lib. Anything else just makes for confusion later with trying to figure out why "#include <foo.h>" doesn't work cause you forgot you placed stuff into "#include <foo_version/foo.h>". Which is what I normally do, but I do see the advantage of being able to quickly uninstall a library that you no longer use... It would make the job a lot easier if the library had it's own subdirectories... And it should be easy enough to add those subdirectories to the compiler include directories when compiling... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Ariesnl
Member #2,902
November 2002
|
I hope someone catches this horrible bug ... I need this code to work, after this project an RTS is in the planning, using almost the same engine ... Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Bonked out when I selected the 'test' pilot and pressed start. I'm on Vista. Wouldn't let me switch out to other applications with Alt-Tab or Win-Tab either. Had to open task manager to get to the window that said it stopped working and closed it with that. I'm not currently up for installing fmod and openlayer but if you upload a win32 debugging binary with the appropriate debugging dll's I should be able to run it through gdb and maybe track down the problem through the source code. You'd have to make it run in windowed mode (less than 1024 X 768) though otherwise I'd probably have to blind type into the gdb window since it doesn't show up when it's switched to and the application it's running is in fullscreen. If I could even switch back to the gdb window anyway. I attached a zip file with the bsg.log , openlayer.log , and data.bsg files from running the program in it. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
bamccaig
Member #7,536
July 2006
|
I'd sure like to figure out why the compilation fails for me at home... It doesn't make any sense... I've installed OpenLayer and FMOD, yet somehow it still fails... Unless perhaps the OpenLayer, FMOD, and/or Allegro versions conflict in some way... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Edgar Reynaldo
Major Reynaldo
May 2007
|
My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Ariesnl
Member #2,902
November 2002
|
There is also a precompiled Openlayer 2.1 version wich is the one I use For some reason compiling libs always goes wrong with me .. it's some curse or something Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
bamccaig
Member #7,536
July 2006
|
Yeah, I used the prebuilt version as well... In Linux, I'm happy compiling projects myself, but in Windows I generally use prebuilt binaries if official ones are made available. Retracing my steps, I think I installed OpenLayer 2.0 (OpenLayer2.0.zip) from SourceForge. I then installed FMOD 3.75 (fmodapi375win.zip) from the FMOD Web site. I have Allegro 4.2.2 installed, in case that matters... I don't really understand how OpenLayer and Allegro relate, but IIRC I didn't overwrite my current Allegro installation with the files that came with OpenLayer... So perhaps the problem is a version conflict between libraries... I see that you used OpenLayer 2.1 whereas I used OpenLayer 2.0... I don't know anything about OpenLayer so I just kinda guessed about the entire installation... Perhaps I should try openlayer-2.1-mingw-glyphkeeper.zip per your other thread? -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Audric
Member #907
January 2001
|
bamccaig: Yes that's the one I referred to as "Openlayer 2.1, mingw-glyphkeeper edition", and I can confirm it builds Ariesnl's game fine. If you use the right linker arguments. |
Fladimir da Gorf
Member #1,565
October 2001
|
OpenLayer just uses Allegro, it doesn't modify it. Ariesnl, maybe there's a problem with the GK routines, could you try with the internal text renderer, which comes in the 2.1 version? OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
bamccaig
Member #7,536
July 2006
|
Audric said: Yes that's the one I referred to as "Openlayer 2.1, mingw-glyphkeeper edition", and I can confirm it builds Ariesnl's game fine. If you use the right linker arguments. Success!! It built successfully! Now if I could only figure out how to debug it... ** EDIT **
Looks like it's leading to the bsgGUIObject and bsgListBox destructors... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
1
2
|