Following Kostya's suggestions , I delved into the AndEngine and 
AndEngineTexturePackerExtension code and compared my code to that in the 
texturepacker example.  I had blindly used the Eclipse import organization 
key bindings.  It had used the import from AndEngine rather from the 
extension.

I simply replaced the imports from my code with the imports from the 
example and all was good.

Just something to beware of.

B.
On Friday, August 3, 2012 4:27:59 PM UTC-7, billb wrote:

> I have a project that finally reached a steady-state that was "functional" 
> when I had computer issues.
>  
> I saved my entire project (I'm using Eclipse v4.2.0) and then fixed my 
> hardware issues.
>  
> After re-installing Eclipse and then importing my project followed by 
> importing both AndEngine and AndEngineTexturePackerExtension (newly 
> downloaded from Git).
>  I now only have one error and it is with the method call to load my 
> texture file.
>  
> The error I'm getting is: The constructor 
> TexturePackLoader(TextureManager, String) is undefined
> The constructor in AndEngineTexturePackExtension does have the above 
> definition, however, the TexturePackLoader in AndEngine does not.
>  
> I've tried re-arranging the libraries and the import statements, all to no 
> avail.
>  
> Does anyone have insight into what would cause this previously working 
> code to later not parse properly?
>  
> Here is the code:
>
> try 
> { 
>    BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/"); 
>    Log.i("SPLAT FILE", settings.getSplatFile()); 
>    //
>    //--- The below line is where the error occurs!
>    //
>    final TexturePack spritesheetTexturePack =  new 
> TexturePackLoader(this.getTextureManager(), 
> "gfx/splats/").loadFromAsset(this.getAssets(), settings.getSplatFile()); 
>    spritesheetTexturePack.loadTexture(); 
>    this.mSpritesheetTexture = spritesheetTexturePack.getTexture(); 
>    // The texture region library has all the individual sprites from the 
> spritesheet. 
>    this.mSpritesheetTexturePackTextureRegionLibrary = 
> spritesheetTexturePack.getTexturePackTextureRegionLibrary(); 
> }
> catch (final TexturePackParseException e) 
> { 
>    Log.e("Error", String.valueOf(e)); 
> }
>
>  
>  
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to