Showing posts with label marmalade. Show all posts
Showing posts with label marmalade. Show all posts

Marmalade SDK Exception cannot open file iwui style style group bin for serialising

| 0 comments |
I made a simple IW2D app with Marmalade SDK, it worked fine in the Windows emulator but when I deployed to Android I received this exception:

cannot open file iwui_style/style.group.bin for serialising (read), Did you include this file in your mkb assets block

The solution was  to add this block to my MKB file

assets
{
(data-ram/data-gles1)
ui.group.bin
(data-ram/data-gles1)
iwui_style/style.group.bin

}
Read More..

Marmalade SDK Exception Multiply Overflow

| 0 comments |
I was performing some transformations (scaling) on 2D sprites like this:
CIwMat2D matrix;
rot.Scale(IW_FIXED(2));
When I ran the app I received the following exception:
IwAssert failure (GEOM, 350). Message: Multiply overflow
The avoid this exception, you must set your matrix to the Identity matrix before applying transformations on it like this:
CIwMat2D matrix;
matrix.SetIdentity();
rot.Scale(IW_FIXED(2));
Read More..

Marmalade SDK Output Debug messages

| 0 comments |
If you want to output debug messages in your output console in Visual studio, you can do it in two ways:

  1. Use standard C++ output stream cout
    cout<<"Your Message"<<endl;
  2. use the Marmalade  s3eDebug module: first include the header:
    #include "s3eDebug.h"
    then
    s3eDebugOutputString("Your Message");
    to display integers you have to convert them to C style strings first:
    int x=10;
    char buffer[10];
    //convert the int to a char array
    sprintf(buffer,"%d",x);
    s3eDebugOutputString(buffer);
Read More..

Marmalade SDK Data cache overflow allocating XXX Increase GX DataCacheSize currently XXXXX exception

| 0 comments |
You may encounter this error if your application requires caching some data but the reserved cache size by your application does not have enough space.

to solve this, just increase the reserved cache space defined in your app.icf file:

[GX]
DataCacheSize=30000

Read More..