[TUTORIAL] Getting Started with AndEngine

  ... tutorials on how to use AndEngine.

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby RealMayo » Wed Nov 30, 2011 7:25 pm

Thanks Giszmo! So as you mentioned, "inactive" is irrelevant when trying to use the AndEngine extensions? Good to know 8-)
User avatar
RealMayo
 
Posts: 1682
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby Tommy Herbert » Thu Dec 08, 2011 7:58 pm

Thanks very much for this tutorial series. I'm much further forward than I was before.

I'm stuck about 2 minutes into part 2. When I try to import my local copy of the AndEngineExamples project, the import dialogue says 'No projects are found to import'. In your video, at 2'29'', the white projects box has an entry in it, with a little checkbox. But my projects box is empty. Is it relevant that I'm using a Mac?

Thanks for any help,
Tommy
Tommy Herbert
 
Posts: 11
Joined: Thu Dec 08, 2011 7:41 pm

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby RealMayo » Fri Dec 09, 2011 12:10 am

Hi Tommy,
I'm unfamiliar with Macs, but...
1) Make sure you copied the examples into your Eclipse Workspace folder on your computer
2) When trying to import the local copy, you need to (in Eclipse) navigate to the Eclipse Workspace folder on your computer
3) You should then be able to choose that local copy for importing into Eclipse

If the above doesn't work then you can try...
1) Don't make a local copy, just use the Mercurial copy that you originally grabbed
2) For the Mercurial copy, still modify the "default.properties" file in Eclipse and still Link Source all of the AndEngine extensions
User avatar
RealMayo
 
Posts: 1682
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby Tommy Herbert » Fri Dec 09, 2011 12:45 pm

Hi RealMayo,

Thanks for your help. I tried again and got a little further forward. I think last time I'd failed to copy the .classpath file into my AndEngineExamples_local folder. Having done that, I tried again to import the project and found that this time the project box contained the name of the project I wanted, but it was greyed out. At the top of the dialogue was the warning, 'Some projects cannot be imported because they already exist in the workspace'. I deleted the original AndEngineExamples folder and moved the AndEngineExamples_local folder to the Desktop. I was able to import it from there with the 'Copy projects into workspace' option ticked - a new AndEngineExamples folder appeared in my workspace, and an AndEngineExamples project appeared in Eclipse's Package Explorer, without the Mercurial information after its name. So now my situation has some name differences from the one in the video, but I think I'm ready to proceed!

Thanks again,
Tommy
Tommy Herbert
 
Posts: 11
Joined: Thu Dec 08, 2011 7:41 pm

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby Tommy Herbert » Fri Dec 09, 2011 6:10 pm

Update: successfully completed the three parts of the tutorial. Thanks very much.
Tommy Herbert
 
Posts: 11
Joined: Thu Dec 08, 2011 7:41 pm


Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby robjo003 » Thu Dec 15, 2011 8:01 pm

:D thanks an bunch! Great tutorial...
robjo003
 
Posts: 7
Joined: Thu Dec 15, 2011 7:59 pm

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby Avenger » Thu Dec 22, 2011 8:59 am

Hi everyone, i have the following errors, hope you could help me

[2011-12-22 01:57:27 - AndEngine] ERROR: Unknown command 'crunch'
[2011-12-22 01:57:27 - AndEngine] Android Asset Packaging Tool
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] Usage:
[2011-12-22 01:57:27 - AndEngine] aapt l[ist] [-v] [-a] file.{zip,jar,apk}
[2011-12-22 01:57:27 - AndEngine] List contents of Zip-compatible archive.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
[2011-12-22 01:57:27 - AndEngine] badging Print the label and icon for the app declared in APK.
[2011-12-22 01:57:27 - AndEngine] permissions Print the permissions from the APK.
[2011-12-22 01:57:27 - AndEngine] resources Print the resource table from the APK.
[2011-12-22 01:57:27 - AndEngine] configurations Print the configurations in the APK.
[2011-12-22 01:57:27 - AndEngine] xmltree Print the compiled xmls in the given assets.
[2011-12-22 01:57:27 - AndEngine] xmlstrings Print the strings of the given compiled xml assets.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
[2011-12-22 01:57:27 - AndEngine] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
[2011-12-22 01:57:27 - AndEngine] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \
[2011-12-22 01:57:27 - AndEngine] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \
[2011-12-22 01:57:27 - AndEngine] [--rename-manifest-package PACKAGE] \
[2011-12-22 01:57:27 - AndEngine] [--rename-instrumentation-target-package PACKAGE] \
[2011-12-22 01:57:27 - AndEngine] [--utf16] [--auto-add-overlay] \
[2011-12-22 01:57:27 - AndEngine] [--max-res-version VAL] \
[2011-12-22 01:57:27 - AndEngine] [-I base-package [-I base-package ...]] \
[2011-12-22 01:57:27 - AndEngine] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \
[2011-12-22 01:57:27 - AndEngine] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \
[2011-12-22 01:57:27 - AndEngine] [--product product1,product2,...] \
[2011-12-22 01:57:27 - AndEngine] [raw-files-dir [raw-files-dir] ...]
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] Package the android resources. It will read assets and resources that are
[2011-12-22 01:57:27 - AndEngine] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R
[2011-12-22 01:57:27 - AndEngine] options control which files are output.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2011-12-22 01:57:27 - AndEngine] Delete specified files from Zip-compatible archive.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2011-12-22 01:57:27 - AndEngine] Add specified files to Zip-compatible archive.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] aapt v[ersion]
[2011-12-22 01:57:27 - AndEngine] Print program version.
[2011-12-22 01:57:27 - AndEngine]
[2011-12-22 01:57:27 - AndEngine] Modifiers:
[2011-12-22 01:57:27 - AndEngine] -a print Android-specific data (resources, manifest) when listing
[2011-12-22 01:57:27 - AndEngine] -c specify which configurations to include. The default is all
[2011-12-22 01:57:27 - AndEngine] configurations. The value of the parameter should be a comma
[2011-12-22 01:57:27 - AndEngine] separated list of configuration values. Locales should be specified
[2011-12-22 01:57:27 - AndEngine] as either a language or language-region pair. Some examples:
[2011-12-22 01:57:27 - AndEngine] en
[2011-12-22 01:57:27 - AndEngine] port,en
[2011-12-22 01:57:27 - AndEngine] port,land,en_US
[2011-12-22 01:57:27 - AndEngine] If you put the special locale, zz_ZZ on the list, it will perform
[2011-12-22 01:57:27 - AndEngine] pseudolocalization on the default locale, modifying all of the
[2011-12-22 01:57:27 - AndEngine] strings so you can look for strings that missed the
[2011-12-22 01:57:27 - AndEngine] internationalization process. For example:
[2011-12-22 01:57:27 - AndEngine] port,land,zz_ZZ
[2011-12-22 01:57:27 - AndEngine] -d one or more device assets to include, separated by commas
[2011-12-22 01:57:27 - AndEngine] -f force overwrite of existing files
[2011-12-22 01:57:27 - AndEngine] -g specify a pixel tolerance to force images to grayscale, default 0
[2011-12-22 01:57:27 - AndEngine] -j specify a jar or zip file containing classes to include
[2011-12-22 01:57:27 - AndEngine] -k junk path of file(s) added
[2011-12-22 01:57:27 - AndEngine] -m make package directories under location specified by -J
[2011-12-22 01:57:27 - AndEngine] -u update existing packages (add new, replace older, remove deleted files)
[2011-12-22 01:57:27 - AndEngine] -v verbose output
[2011-12-22 01:57:27 - AndEngine] -x create extending (non-application) resource IDs
[2011-12-22 01:57:27 - AndEngine] -z require localization of resource attributes marked with
[2011-12-22 01:57:27 - AndEngine] localization="suggested"
[2011-12-22 01:57:27 - AndEngine] -A additional directory in which to find raw asset files
[2011-12-22 01:57:27 - AndEngine] -G A file to output proguard options into.
[2011-12-22 01:57:27 - AndEngine] -F specify the apk file to output
[2011-12-22 01:57:27 - AndEngine] -I add an existing package to base include set
[2011-12-22 01:57:27 - AndEngine] -J specify where to output R.java resource constant definitions
[2011-12-22 01:57:27 - AndEngine] -M specify full path to AndroidManifest.xml to include in zip
[2011-12-22 01:57:27 - AndEngine] -P specify where to output public resource definitions
[2011-12-22 01:57:27 - AndEngine] -S directory in which to find resources. Multiple directories will be scanned
[2011-12-22 01:57:27 - AndEngine] and the first match found (left to right) will take precedence.
[2011-12-22 01:57:27 - AndEngine] -0 specifies an additional extension for which such files will not
[2011-12-22 01:57:27 - AndEngine] be stored compressed in the .apk. An empty string means to not
[2011-12-22 01:57:27 - AndEngine] compress any files at all.
[2011-12-22 01:57:27 - AndEngine] --debug-mode
[2011-12-22 01:57:27 - AndEngine] inserts android:debuggable="true" in to the application node of the
[2011-12-22 01:57:27 - AndEngine] manifest, making the application debuggable even on production devices.
[2011-12-22 01:57:27 - AndEngine] --min-sdk-version
[2011-12-22 01:57:27 - AndEngine] inserts android:minSdkVersion in to manifest. If the version is 7 or
[2011-12-22 01:57:27 - AndEngine] higher, the default encoding for resources will be in UTF-8.
[2011-12-22 01:57:27 - AndEngine] --target-sdk-version
[2011-12-22 01:57:27 - AndEngine] inserts android:targetSdkVersion in to manifest.
[2011-12-22 01:57:27 - AndEngine] --max-res-version
[2011-12-22 01:57:27 - AndEngine] ignores versioned resource directories above the given value.
[2011-12-22 01:57:27 - AndEngine] --values
[2011-12-22 01:57:27 - AndEngine] when used with "dump resources" also includes resource values.
[2011-12-22 01:57:27 - AndEngine] --version-code
[2011-12-22 01:57:27 - AndEngine] inserts android:versionCode in to manifest.
[2011-12-22 01:57:27 - AndEngine] --version-name
[2011-12-22 01:57:27 - AndEngine] inserts android:versionName in to manifest.
[2011-12-22 01:57:27 - AndEngine] --custom-package
[2011-12-22 01:57:27 - AndEngine] generates R.java into a different package.
[2011-12-22 01:57:27 - AndEngine] --auto-add-overlay
[2011-12-22 01:57:27 - AndEngine] Automatically add resources that are only in overlays.
[2011-12-22 01:57:27 - AndEngine] --rename-manifest-package
[2011-12-22 01:57:27 - AndEngine] Rewrite the manifest so that its package name is the package name
[2011-12-22 01:57:27 - AndEngine] given here. Relative class names (for example .Foo) will be
[2011-12-22 01:57:27 - AndEngine] changed to absolute names with the old package so that the code
[2011-12-22 01:57:27 - AndEngine] does not need to change.
[2011-12-22 01:57:27 - AndEngine] --rename-instrumentation-target-package
[2011-12-22 01:57:27 - AndEngine] Rewrite the manifest so that all of its instrumentation
[2011-12-22 01:57:27 - AndEngine] components target the given package. Useful when used in
[2011-12-22 01:57:27 - AndEngine] conjunction with --rename-manifest-package to fix tests against
[2011-12-22 01:57:27 - AndEngine] a package that has been renamed.
[2011-12-22 01:57:27 - AndEngine] --product
[2011-12-22 01:57:27 - AndEngine] Specifies which variant to choose for strings that have
[2011-12-22 01:57:27 - AndEngine] product variants
[2011-12-22 01:57:27 - AndEngine] --utf16
[2011-12-22 01:57:27 - AndEngine] changes default encoding for resources to UTF-16. Only useful when API
[2011-12-22 01:57:27 - AndEngine] level is set to 7 or higher where the default encoding is UTF-8.
[2011-12-22 01:57:27 - AndEngine] --non-constant-id
[2011-12-22 01:57:27 - AndEngine] Make the resources ID non constant. This is required to make an R java class
[2011-12-22 01:57:27 - AndEngine] that does not contain the final value but is used to make reusable compiled
[2011-12-22 01:57:27 - AndEngine] libraries that need to access resources.
Avenger
 
Posts: 3
Joined: Wed Nov 09, 2011 5:15 am

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby RealMayo » Sat Jan 07, 2012 10:00 am

:flag_red: UPDATE :flag_red:

:information: I have updated the first post of this thread with a new tutorial for AndEngine GLES2 :!:
User avatar
RealMayo
 
Posts: 1682
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: [TUTORIAL] UPDATED - Getting Started with AndEngine

Postby ikoymaster » Sun Jan 08, 2012 4:01 am

none of the "text" examples and the other examples making use of AndEngine's "text" are not working... I need help!!!

I'm using huawei IDEOS...
ikoymaster
 
Posts: 15
Joined: Fri Nov 04, 2011 1:10 pm

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: Alexa [Bot], Majestic-12 [Bot], Robyrq and 42 guests