Subscribe to GameFromScratch on YouTube Support GameFromScratch on Patreon
5. April 2012

 

 

image

 

Uggh.  Create a new Ice Cream Sandwich ( Android 4 ) emulator in AVD Manager, hit run and KABOOM! “emulator-arm.exe has stopped working”.  Lovely.

 

Still haven’t figured out exactly what the problem is, but I do know disabling the camera “fixes” the problem.  The most confusing part, creating an emulator that runs ICS, but uses a different screen resolution than WXGA and everything works just fine.

 

So, if you are trying to run the Android emulator using WXGA resolution and it keeps crashing, try disabling the camera.  I’ll update if I ever figure out exactly what is causing the problem.  I found this thread, which suggested disabling ATI Tray tools, however, my machine is nVidia based so that isn’t going to do it.

General


20. March 2012

 

 

As you might have noticed from my previous post I am currently evaluating Appcelerator and I have to say, the early frustrations are far too common.  In the future I may do a full review, if I don’t give up on it completely.  For now though, let me share a few of the issues I’ve run into, beyond the one described in the previous post.

 

 

Failed to find Javac.

I got an error the first time I tried to compile my code, stating that it failed to find javac. So I opened a command prompt, CD to %JAVA_HOME% and there it is.  WTF?  Some Googling later and I discover it doesn’t support file paths with spaces!  Seriously?  What, is this 1994?  Moved Java to c:\jdk and problem went away.  Seriously, when was the last time you ran into an app that didn’t support spaces?

 

 

Blackberry Support

A big part of why I chose Appcelerator in the first place is support for iOS, Android AND Blackberry, as I have all three tablets in my house.  I go to make a Mobile application in Appcelerator and Blackberry is grayed out.  I click through to a “Get SDK” link, download 500mb of Blackberry stuff, restart Appcelerator Studio and… Blackberry is still grayed out.  Turns out this is a “pro only” feature…  and that’s only discovered by reading a forum post, their own documentation says nothing of the sort!  Disappointing, not only that it’s a premium feature, but because they didn’t indicate this anywhere, the UI suggests otherwise, causing me to waste a couple hours of my life.

 

 

Android device support

So, native blackberry support isnt a huge deal, now that you can bundle Android apps as Blackberry Playbook apps, so I continue on targeting just Android.  I configure and setup the Android SDK, create a demo app, launch it on by Transformer, all good so far.  So I set a breakpoint, hit debug and…….. the emulator launches.  If you’ve done any Android development, you know using this emulator is somewhere between an 8 and 9 out of 10 on the “Things that hurt” scale.  It is sloooooooooooooooow.  But get this, Appcelerator can’t debug on device, emulator only.   This.  Sucks.  Hard.

 

 

 

 

So, let’s just say, after two days I am extremely unimpressed, and I haven’t even got around to coding yet!

 

 

Anyone out there have prior experience with Appcelerator?  Am I just hitting all the bad stuff up front, or is this what I should expect as the norm?

General


24. February 2012

 

 

I appreciate that you gave away your software for free and some of it has real potential, but the volume of spam is getting way too high. 

 

image

 

These are some of the emails I have received from DAZ since signing up earlier this month, this doesn’t include my receipts/serial number emails, nor the half dozen or so I deleted outright.  Even worse, the opt-out link results in:

 

image

 

 

 

 

Bit of advice if anyone from Daz is listening… dial the volume back and make opting out a one click process ( that works! ). General rule of business; don’t piss off your customers!

 

You have now been marked as junk by me and I imagine I am not alone.  Keep this up and all of your emails will be flagged as junk by default, completely ruining what you are trying to accomplish.  What about the rest of you that signed up for the free Daz/Bryce/Hexagon bundle, are you getting sick of the spam?

General


15. December 2011

 

 

 

Ok, let me quickly start with this.

 

I am an idiot.

 

I am not denying it, I am currently paying the price for a very stupid action; I have no illusions as to who is primarily to blame, its 100% on me ( well… and Microsoft ).  Anyways….

 

Several months back I installed the Visual Studio 2011 developer preview, yeah not on a VM, but instead on my production machine(s).  Yeah that was plural, my idiocy is compounded.  Of course I know I shouldn’t have installed it in production, but simply put, its new and shiny!  Besides, they actually say it will install and work side by side with Visual Studio 2010, so I listened to them!

 

Then, as is the way of things, I started running out of space on that hard drive partition and since I wasn’t really using it I went ahead and uninstalled Visual Studio 2011.  So, Microsoft says it will *install* side by side with VS 2010, which is true… it just won’t uninstall!

 

After uninstalling the 2011 preview, I opened up a C++ tutorial project I am finishing off and:

 

C:\Projects\GameFromScratch\GFSCPP\Pang9\Pang.vcxproj : error  : MSBuild does not contain a value for the "VCTargetsPath" property.

Ahhh crap.

 

My Express install is also broken.  Joy. Sad smile

 

I think this can be fixed, apparently VCTargetsPath is a registry key setting, but once these kinds of things start cropping up, I get paranoid about my build environment.  Long story short, it looks like a re-install is in my future, and that sucks.

 

But yeah, I know I am the one to blame.

 

 

Anyways, time for the TL;DR section.

If you installed the VS 2011 preview on a production machine, DO NOT REMOVE THEM!

 

And shame on you, you should know better than to install pre-beta software on a production machine! Smile

General


12. August 2011

 

So, for an upcoming post, I’ve decided to dive back into the world of C++ and let me tell you, I already remember why I hate this world so much.  I am an experienced programmer, well over a dozen years coding professionally and I have into a half dozen roadblocks already.  I just can’t fathom how a new developer navigates this minefield!

 

First off I started with CodeBlocks and SFML 1.6 and ran into a major snag right away.  Simply put, the version of MingW that ships with CodeBlocks is not compatible with the version used to compile SFML.  End result, you either need to download MingW separately from CodeBlocks and install the version that works with SFML, or you need to compile SFML yourself to make compatible binaries.  Either option is pretty much a non-starter for a new developer.

 

So I switched over to Visual Studio 2010 that was already installed on my machine, started a new project and …

bjebejcc

 

Lovely…  It would seem that either Visual Studio 2010 SP1, installing Visual Studio Express for XNA / WinPhone, or just upsetting the gods in general has resulted in my install no longer working.  I download and install Microsoft SQL Server Compact 3.5 and no luck.  Install Microsoft SQL Server Compact 3.5 SP2 for Desktop 32 and 64 bit and finally my intellisense seems to be working again… great fun that was.

 

Anyways, at this point I arrive home and decide to switch to my primary development machine, which fortunately is properly configured, set up all the include and library directories in my project, copy the dll’s over into the debug folder and…

 

error

 

Oh for the love of god!  Guess what happened… the SFML binaries are built for Visual Studio 2008 and simply will not work with Visual Studio 2010.  End result… you’ve got to build them yourself.  This again is a complete non-starter for a new developer.  Heck, it’s a pain in the ass for an experienced developer!

 

So I go ahead and download the Visual Studio 2008 sources, open the sln file and let it convert to 2010 format and run a build.

Error    30    error C1083: Cannot open include file: 'QWidget': No such file or directory    c:\users\mike\downloads\sfml-1.6-sdk-windows-vc2008\sfml-1.6\samples\qt\qsfmlcanvas.hpp    9    1    qt
Error    31    error C1083: Cannot open include file: 'wx/wx.h': No such file or directory    c:\users\mike\downloads\sfml-1.6-sdk-windows-vc2008\sfml-1.6\samples\wxwidgets\wxsfmlcanvas.hpp    9    1    wxwidgets
Error    43    error C1083: Cannot open include file: 'QWidget': No such file or directory    c:\users\mike\downloads\sfml-1.6-sdk-windows-vc2008\sfml-1.6\samples\qt\qsfmlcanvas.hpp    9    1    qt
Error    44    error C1083: Cannot open include file: 'wx/wx.h': No such file or directory    c:\users\mike\downloads\sfml-1.6-sdk-windows-vc2008\sfml-1.6\samples\wxwidgets\wxsfmlcanvas.hpp    9    1    wxwidgets

 

…. ugh.  In the end, not really a big deal, just remove the qt and wxsample projects and everything will be fine (or install qt).  Still another monkey wrench thrown at new developers though.

 

Then just to make things even more enjoyable, when you compile the release dll you get:

 

Error    18    error LNK2019: unresolved external symbol "private: static unsigned int * sf::Font::ourDefaultCharset" ([email protected]@[email protected]@0PAIA) referenced in function _main    C:\Users\Mike\Downloads\SFML-1.6-sdk-windows-vc2008\SFML-1.6\samples\build\vc2008\Pong.obj    pong
Error    19    error LNK1120: 1 unresolved externals    C:\Users\Mike\Downloads\SFML-1.6-sdk-windows-vc2008\SFML-1.6\samples\bin\pong.exe    1    1    pong
Error    21    error LNK2019: unresolved external symbol "private: static unsigned int * sf::Font::ourDefaultCharset" ([email protected]@[email protected]@0PAIA) referenced in function _main    C:\Users\Mike\Downloads\SFML-1.6-sdk-windows-vc2008\SFML-1.6\samples\build\vc2008\PostFX.obj    postfx
Error    22    error LNK1120: 1 unresolved externals    C:\Users\Mike\Downloads\SFML-1.6-sdk-windows-vc2008\SFML-1.6\samples\bin\postfx.exe    1    1    postfx

 

Now this is a simple fix, add the preprocessor directive SFML_DYNAMIC to the postfx and pong projects ( not sure why this isn’t already set… ) but again, for a new developer, another show stopper.

 

This is the kind of stuff that really makes me not miss C++!

 

Oh, and for those new developers out there struggling to get SFML working with Visual Studio 2010, I’ve compiled them for you.  Just download them here (6mb zip) and extract these files to your executable directory.

Programming


AppGameKit Studio

See More Tutorials on DevGa.me!

Month List