{"id":477,"date":"2010-08-13T11:12:46","date_gmt":"2010-08-13T17:12:46","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=477"},"modified":"2010-08-13T11:12:46","modified_gmt":"2010-08-13T17:12:46","slug":"galcon-palm-update","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/08\/13\/galcon-palm-update\/","title":{"rendered":"Galcon Palm update"},"content":{"rendered":"<p>Wow, it&#8217;s great to see how many people have been enjoying Galcon for the Palm Pre Plus!  I have gotten some really great feedback, so I&#8217;ve put together an update!  All of the in-game issues are related to the integration with the WebOS features, so I&#8217;m documenting the bug report and the solution here.<\/p>\n<p><strong>Item 1: Back gesture quits the app &#8211; Resolved, 95%<\/strong><\/p>\n<p>This was really easy.  I just capture the SDL key event for SDLK_ESCAPE and handle that as a &#8220;back&#8221; button.  The nice thing is due to all my work on the Android port where users demanded back button support, I had already added this feature!  So coding this only took about 5 minutes.  (The Android work I&#8217;m building on took a good day, so enjoy the back features, they work throughout the whole game!)<\/p>\n<p>The only shortfall of this fix is that when you use the back gesture from the main menu the app doesn&#8217;t minimize, it just sits there.  I could have it quit, but I&#8217;m not sure that would be better.  I&#8217;ll have to see what users say.  The PDK does not have a PDL_MinimizeApp() function or anything yet, so I&#8217;ll just leave it as is now.  The user can still tap the gesture area to minimize the app.<\/p>\n<p><strong>Item 2: Reduce idle CPU usage &#8211; Minor, no ideal solution<\/strong><\/p>\n<p>One user noticed Galcon was still using 2% cpu when minimized.  This is probably due to OpenGL rendering, which I really don&#8217;t need to continue doing when the app is minimized.  I considered reducing this to 0%, but if you are paused while in a multiplayer game you might want to be able to see the occasional visual update to the game.  And when you are really done playing anyways, it&#8217;s best to quit the game anyways.  So for now, I&#8217;m leaving this issue as-is, since I don&#8217;t think it would be an improvement to change how it works now.<\/p>\n<p><strong>Item 3: Respect the phone&#8217;s mute switch &#8211; Not a bug<\/strong><\/p>\n<p>I did a bit of searching in the Palm developer forums and found this answer: &#8220;No, the mute slider can&#8217;t be checked. When I asked our interface team about this, they say that the switch is a &#8220;ringer mute&#8221; switch, not a general system mute, so it doesn&#8217;t affect the volume of game or navigation programs.&#8221;  So, yeah, sorry, nothing I can do about this.<\/p>\n<p><strong>Item 4: Local multiplayer not working &#8211; Minor, no solution found<\/strong><\/p>\n<p>I got a report from a user that local multiplayer wasn&#8217;t working, and it seems that is the case.   I tried using &#8220;PDL_SetFirewallPortStatus&#8221; to enable access to the Galcon port, but that didn&#8217;t seem to improve it.  From checking in the forums it might be something a bit more complicated relating to how the firewall \/ networking works on the phone.  Fortunately, you can do 1v1 games if you just join a 1v1 server with your friend at the same time, so this is a pretty minor issue in the grand scheme of things.<\/p>\n<p><strong>Item 5: Unable to type numbers &#8211; Workaround warning added<\/strong><\/p>\n<p>This was a known bug from the beginning, due to how the PDK and SDL works, when a user presses the number pad and then presses a number key, a letter is sent to the SDL app.  The only way to get a number is for the user to hold down the number pad key and the number key.  The Palm developers have told me that my options are to hack in a translation (which wouldn&#8217;t respect international keyboards), or wait until a future release for a PDK function that could do a translation for me.  Since a hack that would break it worse for some users isn&#8217;t any good, and I want to do an update soon, I&#8217;ve decided to do the next best thing and prompt the user with a tip at the top of the Settings screen telling them of the physical workaround of not letting up on the number-pad key.<\/p>\n<p>&#8212;<\/p>\n<p>So, not a perfect update, but I&#8217;m very happy that I&#8217;ve been able to develop a solution for the back gesture . \u00a0And I think the addition of the warning with the keyboard issue is a reasonable workaround. \u00a0The other items I&#8217;ve verified, but not found ideal solutions for. \u00a0I also want to add Pixi support, but I hear that 1.4.5 isn&#8217;t going to be released to the Pixi, so there isn&#8217;t much rush for this to be put out. \u00a0Once I get ahold of firmware to dev on the Pixi I&#8217;ll try and update Galcon for it though.<\/p>\n<p>-Phil<\/p>\n<p>P.S. I&#8217;m just about to submit this update, so it probably won&#8217;t hit the store for a couple days.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wow, it&#8217;s great to see how many people have been enjoying Galcon for the Palm Pre Plus! I have gotten some really great feedback, so I&#8217;ve put together an update! All of the in-game issues are related to the integration with the WebOS features, so I&#8217;m documenting the bug report and the solution here. Item [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,114],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-galcon","category-palm"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":6,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/477\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}