What is the error? ANDROID

Previous topic - Next topic

Szantai

What is the error?

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1100: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1114: exec returned: 1

MrTAToad

Is this the first compiler error (ie no APK files have been created) or second stage (in which case your virtual machine isn't running; your device doesn't accept unsigned applications or you have run out of space on your device).

Szantai

The first error how to fix it?

Szantai

ok emulator problems solved.

Unfortunately, graphics are not visible :(

MrTAToad

Need to put them in the Media directory and load from there - it does all work well.

Szantai

THX :) it works perfectly  :D

MrTAToad


Szantai

#7
I made a bouncing ball on background. Is a test project. But too slow...
I try to polyvector.
It is also slow.
I'll get it right?

Code (glbasic) Select

x=0
y=0
LOADSPRITE "Media/bkg.bmp",0
LOADSPRITE "Media/ball.png",1

/// rugalmas pattogás
start:
xpos=160 //posx
ypos=100 //posy
a=RND(50)+150  //szög (0-jobbra) (180-balra)
v=RND(3)+7     //sebesség
g=0.8    //gravitáció
t=0

repules:

/// kirajzolás

STARTPOLY 0 // Bitmap = No.0
  POLYVECTOR   0,   0,   0,    0, RGB(255, 255, 255)
  POLYVECTOR   0, 320,   0,  320, RGB(255, 255, 255)
  POLYVECTOR 240, 320, 240,  320, RGB(255, 255, 255)
  POLYVECTOR 240,   0, 240,    0, RGB(255, 255, 255)
ENDPOLY

STARTPOLY 1 // Bitmap = No.1
  POLYVECTOR   0+x,   0+y,   0,    0, RGB(255, 255, 255)
  POLYVECTOR   0+x,  30+y,   0,   30, RGB(255, 255, 255)
  POLYVECTOR  30+x,  30+y,  30,   30, RGB(255, 255, 255)
  POLYVECTOR  30+x,   0+y,  30,    0, RGB(255, 255, 255)
ENDPOLY

/// röppálya számítás
x=v*t*SIN(a)+xpos
y=v*t*COS(a)+(g/2)*(t*t)+ypos
//
IF  x>210 OR x<0 OR y<0 OR y>290
xpos=x
ypos=y
v=v-0.3     //sebesség (surlódás)
t=0
IF v<0 THEN v=RND(3)+7
IF x>210 OR x<0
a=-a
xpos=x
ypos=y
v=RND(3)+14
ENDIF
IF y<0
y=-ypos
ENDIF
IF y>290
xpos=x
ypos=y
v=v-0.5    //sebesség (surlódás)
ENDIF
ENDIF
//
SHOWSCREEN
t=t+1
GOTO repules


is code not perfect only test... :)

Edit: Changed to code-blocks /Moru

Szantai

tel: vodafone 858 smart
pfff... :)
it is...

MrTAToad

That device has a 528 MHz ARM 11 (apparently, which is odd as ARM 6/7 is usually used).

It might be worth trying my sprite speed tester at https://play.google.com/store/apps/details?id=com.unmap.spritespeedtester&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS51bm1hcC5zcHJpdGVzcGVlZHRlc3RlciJd

And see what FPS/Average FPS you get.  My Samsung Galaxy Mini manages 16 non-rotating and non-scaling sprites with anti-aliasing at 14.6 FPS.  Changing to use POLYVECTOR increases the FPS to around 36FPS

Increase to 122 and we have 15FPS although FPS increases when POLYVECTOR isn't used...

Szantai

#10
Language Timothy!


[EDIT] Ian

Szantai

Possible to increase speed? I want to use glbasic.

MrTAToad

Make sure that you are using the latest GLBasic version as there were a few unneeded debug statements in previous versions.

Remember to use the release APK file too.

Just dont expect PC level performance - mobile phones aren't near that level yet...

Szantai

glbasic ver.: 10.283
downloaded games are fast :(

Szantai

I can not develop gbasic to android market sale.
Should be considered the weaker models.
:help: