Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - UBERmonkeybot

Pages: 1 [2] 3
16
Hi Guys,I am getting Errors whilst compiling for android

At stage 4 i get .

BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on

BUILD FAILED
C:\NEW_GLBasic_v14\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
C:\NEW_GLBasic_v14\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:694: null returned: 1



I have investigated the XML file but can't work out why it is failing

compiling for  win is fine so i know the code works.

17
I have installed AE 3.01.1 and now my Tablet is returning a desktop of 1728x1080 its usually 2560 x 1600.

When i swap back to AE 2.11.2  all is fine.

 :S

18
GLBasic - en / Android extras virtual keyboard
« on: 2015-Nov-26 »
Hi Guys,
How do i get the returned data from Android.getVKText$()

    I have tried various things but cant trap the output.The program just seems to run onto the next commands and doesn't wait for the done button.

Code: (glbasic) [Select]

Android.startVKText("Title","mess","done","cancel")
REPEAT
        h$=Android.getVKText$()
STDOUT "doing"
// STDOUT Android.getVKText$()
UNTIL h$=CHR$(13)
STDOUT "gone past"
STDOUT h$

19
GLBasic - en / Strange numbers returning
« on: 2015-Nov-26 »
eh?

Code: (glbasic) [Select]


  LOCAL alpha#=1
  FOR rim=0 TO 5
  DEBUG "\n"+alpha
  alpha#=alpha#-0.3


NEXT



I am getting 1.e-001 when it should be returning 0.1,This is no good as i am feeding the numbers into alpha,What am i doing wrong?

i have added the line          IF alpha# >0 AND alpha#< 0.1 THEN alpha=0.1
so the code works,just seems strange.

20
GLBasic - en / 3d question
« on: 2015-Oct-10 »
I have copied the example from the docs and i cant get it to work.
I do not see a pyramid.
I have changed a few bits from the original, they are :-
added GENX_OBJ()
X_MAKE2D just so i could put the print statement in
and i added 1,1000,45 to the X_MAKED bit as the compiler was complaining.

I have checked to make sure the pyramid saves and viewed it in Hemlos' AGOSA(very nice =D)

Code: (glbasic) [Select]
LOCAL mx,my,b1,b2,phi
LOCAL ob=GENX_OBJ()

 X_OBJSTART ob
  X_OBJADDVERTEX -5, -10, -5, 0,0,RGB(0,0,255)
  X_OBJADDVERTEX  5, -10, -5, 0,0,RGB(0,0,255)
  X_OBJADDVERTEX  0,   0,  0, 0,0,RGB(255,255,255) // Peak
  X_OBJADDVERTEX  5, -10,  5, 0,0,RGB(0,0,255)
  X_OBJADDVERTEX -5, -10,  5, 0,0,RGB(0,0,255)
// ..new Group
  X_OBJNEWGROUP
// ...or Bottom
//  X_OBJADDVERTEX  5, -10, -5, 0,0,RGB(0,0,255)
//  X_OBJADDVERTEX -5, -10, -5, 0,0,RGB(0,0,255)

  X_OBJADDVERTEX -5, -10, -5, 0,0,RGB(0,0,255)
  X_OBJADDVERTEX  0,  0,   0, 0,0,RGB(255,255,255)
  X_OBJADDVERTEX -5, -10,  5, 0,0,RGB(0,0,255)
 X_OBJEND

//  X_SAVEOBJ "Pyramid.ddd", 5

 // X_LOADOBJ "Pyramid.ddd", ob

 WHILE TRUE
  MOUSESTATE mx, my, b1 ,b2
 
  phi=mx*360 / 640

  X_MAKE3D 1,1000,45
  X_CAMERA 0, 1500, -3000,   0 ,0 ,0
  X_DRAWAXES 0, 0, 0

  X_AMBIENT_LT 0, RGB(255,255,0)

  X_MOVEMENT mx-230, 0, 0
  X_SCALING 3, 3, 3
  X_ROTATION phi, 0, 1, 0
  X_DRAWOBJ ob, 0
X_MAKE2D
PRINT "RUNNING",100,100
  SHOWSCREEN
 WEND
END

21
GLBasic - en / .dbg() Question
« on: 2015-Oct-10 »
Hi,
I wonder if someone could tell me how to output .dbg() to STDOUT.
I am wanting to send it to android monitor for debugging purposes.

Thanks in advance

22
GLBasic - en / No serial
« on: 2015-Oct-01 »
 I Paid for glb on the 27th and still have not received a serial.I have emailed the forum help and the email address on the PayPal account but still haven't heard anything...boohoo I want to play  :(

23
GLBasic - en / Error when running HTML5
« on: 2015-Sep-20 »
when i try to run in a browser i get this

Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.


Could anyone tell me what's going on here and how i can remedy it.
Thanks

M

24
I don't know if this is a bug or not but...

Right click on taskbar icon only list certain files in V14,Except for a couple of programs i have downloaded from the website.
In V12 it lists all last used files.

25
GLBasic - en / GETJOY question
« on: 2015-Sep-06 »
Hi,
When i run the following code i am consistenly getting values in  xx and yy outside -1 to 1 how can this be possible?

Prob me being stupid again.


Thanks in advance.

Code: (glbasic) [Select]
REPEAT

LOCAL xx#,yy#,b

FOR i=0 TO GETNUMJOYSTICKS()-1
xx#=GETJOYX(i)
yy#=GETJOYY(i)
b=GETJOYBUTTON(i,0)


IF xx#<-0.991 THEN xx#=-1
IF xx#> 0.991 THEN xx#= 1
IF yy#<-0.991 THEN yy#=-1
IF yy#> 0.991 THEN yy#= 1
DEBUG "\ni "+i+" xx "+xx#

NEXT
PRINT "Joytest",100,100
SHOWSCREEN



UNTIL FALSE

26
GLBasic - en / Mem2Sprite
« on: 2015-Aug-31 »
Could someone please cast their eye over this,
I don't understand why this doesn't draw a green square.

Thanks

Code: (glbasic) [Select]
GLOBAL   single%[]//[15]

GLOBAL w=16,h=16
DIM single%[w*h]

GLOBAL test2%
test2%=GENSPRITE()


FOR y=0 TO h-1
FOR x=0 TO w-1

single[x+(y*w)]=INTEGER(0xff00ff00)
DEBUG "\n"+x+" "+y+" "+HEX$(single[x+(y*w)])
// BREAK

NEXT
NEXT


LOCAL u


test2%=MEM2SPRITE(single%[],test2%,w,h)
IF test2%=0
DEBUG "\ntest2%=0  MEM2SPRITE FAILED"
END
  ENDIF
 
 
  DEBUG "\ntest2%= "+test2%
  PRINT test2%,100,80
 
  DRAWSPRITE test2%,100,100
  SHOWSCREEN
  MOUSEWAIT
 

27
Bug Reports / Prescaler not working
« on: 2015-Aug-24 »




I cannot get prescaler to work reliably.I cannot increase screen by 2

e.g.

Game screen is @ 1280x800
Prescaler 2560,1600

so its 2 x  the original but is the size of the original
if i multiply by 1.5 then you can visually see that it is different.

I have read somewhere else that this may be a bug so have started a thread on it.

Anyone else experiencing weirdness,if not i will post my code

28
This might be more of a configuration issue but I can't compile for android.

It fails just before stage 4.
I have installed the Android Target.
 :|


_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:4bbcff56 - 2D, WIN32
Wordcount:40 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-22"
You can use "C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
ECHO is off.
androidmanifest.xml:
Make sure to check do a manual check for those.
android:minSdkVersion="10" android:targetSdkVersion="22"
ECHO is off.

AndroidIcons.exe [v21-3-2015] running...
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_36_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-ldpi/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_48_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-mdpi/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_72_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_72_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-hdpi/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_96_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-xhdpi/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_180_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-xxhdpi/icon.png
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_192_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-xxxhdpi/icon.png
C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_ouya_AndroidExtras.png is missing (732x412 size)
the Ouya icon is not important, if you dont want to support the console
copy C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/icon_ouya_AndroidExtras.png to C:/Users/PC/Desktop/glbasic/stuff/GLBasic/my stuff/GLBasic/prescaler 1/distribute/Android/res/drawable-xhdpi/ouya_icon.png

Checked AdActivity (intersititals):
Does not uses a AdActivity

Android Extras version (SDLActivity.java):
* 2.11.2

Checking Icons Finished...

BUILD STAGE 2: Start compiler (android.bat)
SDK=R:\Compiler\platform\android\bin\..\android-sdk-windows
Updated project.properties
Updated local.properties
Updated file C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\build.xml
Updated file C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\proguard-project.txt
Updated project.properties
Updated local.properties
Updated file C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\build.xml
Updated file C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\proguard-project.txt
.
BUILD STAGE 3: Build a debug build
Buildfile: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 24.2.0
 [checkenv] Installed at R:\Compiler\platform\android\android-sdk-windows

-setup:
     [echo] Project Name: glbasic
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
     [echo] Resolving Build Target for glbasic...
[gettarget] Project Target:   Android 5.1.1
[gettarget] API level:        22
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\rsObj
    [mkdir] Created dir: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for glbasic...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 12 source files to C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
      [dex] input: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\bin\classes
      [dex] input: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\libs\android-support-v4.jar
      [dex] input: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\libs\gson-2.2.2.jar
      [dex] input: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\libs\ouya-sdk.jar
      [dex] input: C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\libs\openiab-0.9.7.2.jar
      [dex] Pre-Dexing C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\prescaler 1\distribute\Android\libs\android-support-v4.jar -> android-support-v4-afcb4d4dba3f9c2bacb9aaeb23ada72b.jar

BUILD FAILED
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:283: null returned: 1


Total time: 2 seconds
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 warnings

BUILD FAILED
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
R:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:283: null returned: 1

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.

29
GLBasic - en / Game running slowly on android
« on: 2015-Aug-08 »
Hi SuperKnowledgabelForumPeeps.

Noob question 40092

I have compiled my game to android to find it is running really slowly compared to windows,I think it is down to my polyvector stretch from 1280 x 800 to the resolution on my tablet (Galaxy S4 2560 x 1600).
From what i have read it would appear that i have to re-scale my graphics and game coords for each and every resolution,Is this really the case?
It seems rather mad that i can't just change the resolution on the tablet especially seeing as it will be running full screen.
I do remember seeing a post with someone saying they just used the 3d commands in a 2d implementation anyone have any thoughts on this?

Thanks in advance.

30
Hi all,
I have just discovered that Debug isn't working inside FOREACH loops.


Is this normal? :|

Pages: 1 [2] 3