Menu

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.

Show posts Menu

Messages - UBERmonkeybot

#211
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
.
#212
Ahhh i see.Haha ok.

I have had a look at your scaling routine,I will look in more depth.

Thanks very much
#213


Code (glbasic) Select

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">JetPac</string>
    <string name="Force_TV_720">0</string>
    <string name="Max_Y_Resolution">720</string>
    <string name="Double_Scaling">1</string>
</resources>



I have added that to strings.xml and it seems to make no difference
#214
hmm i don't know why it's quitting so quickly,It's fine on my windows setup,maybe i left some debug code in that version.

I am not planning on selling or even finishing this game as it is just a tester to see how i get along with the language.

I just can't understand why the android system is like this,It seems insane to have to hardcode to a desired resolution especially when there are so bloody many of them...DOH!
#215
I am sure if i go through my code i can speed it up in certain areas but it appears to be running 3 times slower than my PC and it appears to be mainly down to teh scaling.

I have tried zoomsprite  and also polyvector

I have also been messing around in android manifest.

and set these settings to this but it doesn't seem to make any difference.
android:smallScreens="true"
android:normalScreens="false"
android:largeScreens="false"

Here is a link to the code    https://drive.google.com/file/d/0B_jPlZixO8uQcmtreUVTb0t1QU0/view?usp=sharing

if you wish to disable debug comment out line 15 in jetpac page


Thanks for your time guys.
#216
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.
#218
Just out of interest Kanonet how did you know about the .count property i can't find any mention of it,I am a total Noob with GLB and am in discovery mode.
#219
Nice game and also really annoying!!   =D
#220
Hey Thanks Kanonet that's a really great tip.
#221
Yes debug is on.

I am stepping through the FOREACH loop and trying to output the content of an array of types
If you notice before and after the loop there are   debug commands,these work fine but anything inside the FOREACH is not output.  e.g.  TEST

Code (glbasic) Select




FUNCTION plotEnemy:
//DEBUG "\nenemy"
// These values are defined LOCAL:
//LOCAL y=0
LOCAL q,x#,y#
        DEBUG "\n PRE- GIMMER"


FOREACH q IN Enemy[]

x#=q.x#
y#=q.y#
DEBUG "\n   Enemy[q].x" +q.x#

        DEBUG "\nTEST"
        // q.x#=q.x#+q.xv#
// q.y#=q.y#+q.yv#
DRAWRECT x#,y#,50,50,0x666666

                DEBUG "\n GIMMER"
//PRINT  q.y#
//PRINT  q.x#
//INC y
NEXT

//
// DEBUG "\n  x "//+Enemy[0].x#,600,100
// DEBUG "\n  y "+Enemy[0].y#
////debug "test"


ENDFUNCTION // PLOTENEMY
#222
Hi all,
I have just discovered that Debug isn't working inside FOREACH loops.


Is this normal? :|
#224
Thanks for that Mr P.

I would imagine boxcol is a much cheaper way of going about collisions  which is fine with a tile based game but what do you do with an irregular or deformable backdrop?

i.e. Lemmings.

I am right on the verge of buying GLB but this might sway it.
#225
I have pulled out SPRCOLL and gone over to a boxCol instead,No more problems...