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.


Messages - ckrum

Pages: [1]
1
Yes you helped me get going again.
BOTH your observations are true.

2
At first glance it looks like you nailed it. Thank YOU!!
The array size is adjustable at the start of the real program I just put in some static values and used enough code to describe the problem.
The original program I am recreating in GLBasic was created a long time ago using TurboBasic.
Thank YOU!
 

3
oh and here is what it says when it compiles.

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:3e3491bf - 3D, NET
Wordcount:15 commands
compiling:

linking:
success
_______________________________________
*** Finished ***
Elapsed: 2.7 sec. Time: 19:35
Build: 1 succeeded.


4
Bug Reports / Using a multidimentional array.
« on: 2013-Oct-16 »
I have a problem which probably has a very simple answer however I have been unable to find it.
Here is some simple code to illustrate the problem.
This code creates an array 80x80 with data.
This program will fail as it begins to run.
It wont get to the first mousewait.
I need help to understand how to create an array and yet still be able to run.
I have changed this up a lot of ways.. the common denominator to failure is to try and use the array.
Code: (glbasic) [Select]
// --------------------------------- //
// Project: omgbug
// Start: Tuesday, October 15, 2013
// IDE Version: 10.283


// SETCURRENTDIR("Media") // go to media files

GLOBAL ArrayHeight%,ArrayWidth%,grid%,myarray[]

DIM myarray[ArrayHeight%][ArrayWidth%]

ArrayHeight% = 80
ArrayWidth% = 80

LOCAL a%,b%
FOR a%=0 TO ArrayHeight%

FOR b%=0 TO ArrayWidth%

myarray[a%][b%] = "Data"

NEXT
NEXT

PRINT "The array has data",100,100

SHOWSCREEN
MOUSEWAIT

FOR a%=0 TO ArrayHeight%

FOR b%=0 TO ArrayWidth%

myarray[a%][b%] = ""

NEXT
NEXT

PRINT "The array is empty",100,100

SHOWSCREEN
MOUSEWAIT


5
THANK YOU THANK YOU THANK YOU. 
That line was added automatically .. I did not type it.. and I never really read it until you pointed it out.
I appreciate the help.
IT WORKED !!
You do not know how many times I tried.. different things .. THANK YOU!

6
ok now its in both directorys .. the .app and the media and I think a couple more places.. I even tried to add the files in the dialog on the right in the editor.. to OTHER.. I can send the file.. I think I will send you the APK

7
I wrote a program just for testing it.

// --------------------------------- //
// Project: showme
// Start: Saturday, October 05, 2013
// IDE Version: 10.283
// SETCURRENTDIR("Media") // go to media files
LOADBMP "myeye.png"
LOADFONT "font2.png",0
LOADFONT "smallfont.png",1
SETFONT 0
PRINT "HELLO THERE",100,100
SETFONT 1
PRINT "HELLO THERE",200,200
SHOWSCREEN
MOUSEWAIT

everythings in the .app directory.. I am copying it and testing it again.. I think I tried that with the other two apps.. moving it to the Media .. I think I put a copy everywhere.. I will test again.

8
I can even see the graphics in the debug apk file .. they are there .. the font .. the background and the sprite..
The graphics show up when I run the program on the PC.
I fail to get the font, background or sprite to show on the android.


9
OMG .. finally I got it..
so the fix is ..
In the GLBASIC subfolder insure the following path exists..
C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\add-ons

FREAKIN AWESOME.. Now HahaHA.. 'EVIL LAUGH'

Thank you very much.

10
FAQ / Re: ENDIF without IF
« on: 2013-Sep-30 »
thanks... I think I am gonna enjoy GLB esp when I get the freakin thing to build the apk files.. :rant:

11
I tried creating it under the SDK folder on drive C:\sdk\Compiler\platform\android\android-sdk-windows\add-ons

then I tried locating it in the root..

C:\Compiler\platform\android\android-sdk-windows\add-ons

I created drive letter Q and it just changed the error saying it cant created R:\....etc

by default add-ons was already in the path... C:\sdk\android-sdk\add-ons

The JDK SDK , AVD etc. works with other software .. this should be simple.. probably is .. but never for me. LOL
I will keep trying ..

12
I have the same problem it seems.
I bought the book.. followed all the instructions..
still getting the same results..

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:3e3491bf - 3D, NET
Wordcount:53 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE
Exception in thread "main" java.lang.RuntimeException: Failed to create Q:\Compiler\platform\android\android-sdk-windows\add-ons.
   at com.android.sdklib.SdkManager.loadAddOns(SdkManager.java:665)
   at com.android.sdklib.SdkManager.createManager(SdkManager.java:144)
   at com.android.sdkmanager.Main.parseSdk(Main.java:221)
   at com.android.sdkmanager.Main.run(Main.java:118)
   at com.android.sdkmanager.Main.main(Main.java:102)
Buildfile: build.xml does not exist!
Build failed
.
BUILD STAGE 2: Build DEBUG and install on device
Buildfile: build.xml does not exist!
Build failed
finished Android build-script.
Android=C:\Users\krumholt\Documents\GLBasic\textlotto1\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 3.9 sec. Time: 11:58
Build: 1 succeeded.

13
FAQ / Re: ENDIF without IF
« on: 2013-Sep-29 »
You are Genius!
Thank you very much.
I just found and bought the GLBasic today.
Thanks to you my program runs correctly.
It is a simulation of the lottery drawing to help the user generate a unique set of numbers.
It simulates an actual drawing by mixing virtual lottery balls rather than generating random numbers.
Not like that is going to help me win the lottery but the concept provided some enthusiasm on my part to fight the syntax.

Thank you again.

14
GLBasic - en / Re: Window Maximize Button
« on: 2013-Sep-29 »
There is an option for FULL SCREEN on the options dialog  PROJECT/OPTIONS.

15
FAQ / ENDIF without IF
« on: 2013-Sep-29 »
Feeling like a newb
Here is the code..
IT PRODUCES AN ERROR - ENDIF without IF
THE 'IF' STATEMENT IS CLEARLY PRESENT SO IS THIS A BUG?
// --------------------------------- //
// Project: omgbug
// Start: Saturday, September 28, 2013
// IDE Version: 10.202
// SETCURRENTDIR("Media") // go to media files

DIM mynumber%[6]
//create an array of numbers for sort
mynumber%[1] = 5
mynumber%[2] = 3
mynumber%[3] = 1
mynumber%[4] = 2
mynumber%[5] = 6
mynumber%[6] = 4

//bubblesort the array
FOR a% = 1 TO 5
   FOR b% = a%+1 TO 6
       IF a%<>B% AND mynumber[a%] > mynumber[b%] THEN   
            memory%=mynumber%[b%]
           mynumber%[b%]=mynumber%[a%]
          mynumber%[a%]=memory%       
      ENDIF   
    NEXT
 NEXT
 
 FOR i%= 1 TO 6
 PRINT i% + " " + mynumber%[i%], 100 + (i%*20),100
 NEXT

Pages: [1]