Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Upgrading projects from 1065 to 1076

Author
Message
anwserman
13
Years of Service
User Offline
Joined: 20th May 2011
Location: Wisconsin
Posted: 25th Jun 2012 15:22
Hey everyone,

I'm getting ready to transition my iOS and Android projects from AGK1065 to AGK1076. Is it relatively painless to update the AppGameKit players to their new versions from within my existing projects, or should I just start new projects from scratch and swap in the necessary data (package names, signing, etc.)?

I'm hoping I can just copy and paste over everything, except for any project settings files. But this seems way too easy to be ture.

Any advice would be great. Thank you!

Hi there. My name is Dug. I have just met you, and I love you.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 25th Jun 2012 17:22 Edited at: 25th Jun 2012 17:25
answerman, having switched versions of AppGameKit back and forth to test things, I've come up with a set of commands that I use on all updates.

One of the key things to remember is that, as of 1074, all platforms expect to find the bytecode and media in a media directory. You need to create a media directory under your assets one and put everything except AGKSplash.png in it. (As per my example at the bottom.)

A good command to use before anything else, to make sure directory/file permissions are set well:


These are commands I execute every time I update/change my AppGameKit version. I have my Windows AppGameKit installed in C:\TGC\AGK (I never use the Program Files directories if given the choice, I hate spaces in paths/file names). And I used simply 'android-ndk' for the Android NDK path (I used the most recent version). And I just created from IDE down in the android set, since I didn't need anything else in the AppGameKit tree.

To update the core AppGameKit stuff:


To update my own projects after updating core AppGameKit (this is important to make sure that your project uses any new stuff):


After doing the above to make sure the permissions are correct and that Eclipse will be able to run the app on the Android device:


Now, just so you have a working player, build the player:


Edit /cygdrive/c/Android/IDE/apps/interpreter/interpreter.cpp to uncomment the correct line so that your app will run instead of the player. In v1075 and v1076 it is at line #255:


Copy from your AppGameKit Tier1 directory, clean and compile your app:


Good luck!

Cheers,
Ancient Lady
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 25th Jun 2012 17:23 Edited at: 25th Jun 2012 17:25
Depends on which tier you use.
If it's Tier 1 you can probably just copy & paste your code / images / resources to new projects.

If it's Tier 2 you should use new templates and copy your stuff into them.

You shouldn't encounter any problems.

@EDIT
Ancient Lady was first, but my answer is shorter, incase you don't want to handle cygwin commands.

Follow me on twitter! @MotionStruct
Motion Struct blog
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 25th Jun 2012 17:30
kamac, it is especially important for a v1065 to v1076 conversion to do more than just copy resources/code for Tier 1.

There are some significant changes in what gets used to build the app in the jni and src directories. I had troubles with this until Paul pointed out the problem.

answerman, for the iOS stuff, you want to make sure that you update the files in the Classes directory, as some have definitely changed.

And, be careful when copying over the directories. Copy any of your project directories outside of the AppGameKit area first. When you do the copy of whole directories on a Mac, it wipes out everything that was there. It does NOT preserve directories/files that aren't in the copy-from source. After you copy over the AppGameKit directories, put your own projects back and update the files in the Classes directory.

Cheers,
Ancient Lady
anwserman
13
Years of Service
User Offline
Joined: 20th May 2011
Location: Wisconsin
Posted: 26th Jun 2012 14:38
Ancient Lady - thank you very much for the detailed step-by-step instructions. I will refer back to to this when I end up making the step from 1065 to 1076.

(I cheaped out and just shipped out updates again using 1065 for iOS and Android, but I've slowly have been transitioning via Windows development. Everything I do now will be 1076, I just really needed to push out some updates)

And thanks for the warning on Mac, but it came one day too late! I was so confused to why half of my files kept disappearing when I did the update XD
--------------------------------------------
Ok, so to clarify....

Assets\media - this is where bytecode and all support files go
Assets - this is where the AGKsplash.png goes?

Hi there. My name is Dug. I have just met you, and I love you.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Jun 2012 19:51
answerman,

I'm glad I helped. I had posted in the iOS forum 'Lessons learned the hard way' about the copy issue. I'm sorry you also learned the hard way.

Android setup:
assets/media - everything except AGKsplash.png
assets - AGKsplash.png

iOS setup:
media under Resources - everything except icon files and Default(-landscape/-portrait).png files
Resources - icon files and Default(-landscape/-portrait).png files

Oddly, on my Mac/iOS setup, I had the icon files and Default(-landscape/-portrait).png files in the media directory and it worked. But, to be on the safe side, they should probably be directly in the Resources list.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-11-23 17:00:37
Your offset time is: 2024-11-23 17:00:37