I am a newcomer to GLBasic, I used DarkBasic and Blitz before, and I find the simplicity and multi-platform support of GLBasic amazing! I'm hooked! I was able to complete a game in just 2 days that works great on win32, OSX and Linux with little effort! Amazing! I plan to buy a license asap. I'm just facing a few annoyances that I'd like to share, maybe someone can help:
1. For the OSX version I noticed that it doesn't use my icon and keeps generating the default icon, and I have to edit the resulting .icns file. Am I missing something? It would be nice if GLBasic creates the OSX .icns file based on my project's icon.
2. on all platforms, I really need a pre-termination procedure for saving the state of the application using INIOPEN and INIPUT, the inline destructor method crashes when calling these commands :-(
3. I use the ESC key in my app, I noticed that the "ALLOWESCAPE false" works on win32 but not on OSX and Linux (the app terminates immediately when pressing ESC regardless)..
anyone faced any of these problems??
- CapJ
For 1, it is annoying the standard one is continually created for OSX
Quotethe inline destructor method crashes when calling these commands :-(
What do you mean by that ? Are you talking about GLB_ON_QUIT ? Is so, very little can be used in that...
As for 3, I have mentioned it before...
Quote from: MrTAToad on 2009-Sep-12
What do you mean by that ? Are you talking about GLB_ON_QUIT ? Is so, very little can be used in that...
Thanks for the quick reply! GLB_ON_QUIT worked for me! I thought this was used for the iPhone only, it turns out it works for all.
- CapJ
On a Mac, you cant use any graphics, sound or things like that there...
A quick follow up: it seems like GLB_ON_QUIT doesn't work on WinCE, is this a bug or intentional? the only thing I'm doing there is saving 2 values to ini files using INIOPEN and INIPUT, works OK with win32, Linux and OSX. Any workarounds? TIA.
.. further testing seems to reveal that there's a problem writing to ini files on WinCE (reading is ok though)..
Tried writing to the user's document folder ?
yes, tried the docs folder, but no use. after more testing it's either GLB_ON_QUIT is not getting triggered or it doesn't allow INIPUT when the app is quitting. INIPUT work elsewhere in the app. thanks.
How are you ending the program ? There are cases (like ShellEnd) where GLB_ON_QUIT isn't called...
GLB_ON_QUIT - no grapics, no input. Just write a file.