A salad of blogs, tutorials and thoughts of game engines, games, c++ and all sorts of related stuff

Tuesday 29 July 2014

Monday 28 July 2014

Genymotion and Android Studio and Google Play Services

10:40 Posted by LoudParrottLab No comments
My head wanted to blow up after trying out Android Studio and nothing seemed to work...

So what has happened? Basically I have updated to Android Studio 0.8.4 and have decided to create an app with stock login activity.

Then I thought I am going to launch this in the Genymotion supplied emulator (because it is light years faster)

Then I have started to receive errors related to google play services api and the login google plus button....

???

Ah yes unfortuntely due to some licensing all of the google stuff is missing from the Genymotion supplied Android simulators.

Here is the solution on Stackoverflow:
How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device?

After I have installed the apps and performed some updates of Google Play and the related apps everything went fine.

Sunday 27 July 2014

How to convert Yosemite.app to iso or dmg

02:50 Posted by LoudParrottLab 6 comments
Just a quick note!

If your Redemption Code for Yosemite download is used or invalid you can go to this website
https://appleseed.apple.com/sp/betaprogram/guide

And on the bottom request a new one. Then from your developer account you can download the OS X which will open you App Store App. If the code is invalid use the code that you have just requested from the above link.

After your download stop the install, close the window and the package will be in your /Applictations folder that you have to copy to somewhere else as after installation the package will be deleted and will use it to convert it to an ISO image so that we can install it using Parallels


So today I was trying to install into my Parallels the new Yosemite OS x 10.10

I have found a nice script and the original is here
http://forums.appleinsider.com/t/159955/howto-create-bootable-mavericks-iso
I have reedited this for Yosemite

# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

# Convert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite

# Increase the sparse bundle capacity to accommodate the packages
hdiutil resize -size 8g /tmp/Yosemite.sparseimage

# Mount the sparse bundle for package addition
hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build

# Remove Package link and replace with actual files
rm /Volumes/install_build/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/

# Unmount the installer image
hdiutil detach /Volumes/install_app

# Unmount the sparse bundle
hdiutil detach /Volumes/install_build

# Resize the partition in the sparse bundle to remove any free space
hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage

# Convert the sparse bundle to ISO/CD master
hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite

# Remove the sparse bundle
rm /tmp/Yosemite.sparseimage

# Rename the ISO and move it to the desktop
mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.iso

Xcode6 or Xcode5 show all output (remove “Showing first 200 notices only”)

02:11 Posted by LoudParrottLab , , No comments
I have made a discovery today. Basically I was annoyed by the fact that Xcode has output only the first 200 lines of the build log while building Unreal Engine. Unreal Engine build log is over 1000 lines so was I was building blind after 200 lines, when building in Xcode. (xcodebuild is a different story,  I had the advice to build from the command line, but I wasn't happy entirely with that as it involves more windows, more switching, and from Xcode you can perform some tasks and adjust some settings quicker). I have seen a screen similar to the one below where my log has stopped after 200 lines.



So then after googling a little bit figured that there is a setting that one can use to show all the log.

1.) So in XCode 6 click on the Show the Report Navigator the little clock on the right.



 2.) Then right click anywhere in the log window and select Expand All Transcripts as shown in the pic below.



 2.) As a result you will see a screen similar to the image below, and see that the log is updating constantly if everything goes well.




 3.) To turn it off right click again anywhere in the log window and select Collapse All Transcripts.


Have a happy and productive day. :)