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 - Minion

#16
what im trying to do (very basically) is this ...

Code (glbasic) Select

TYPE Tthing
x
y
z
a$
b$
c$
ENDTYPE

LOCAL temp AS Tthing

LOCAL ok

temp.x = 99
temp.y = 50
temp.z = 1
temp.a$= "abc"
temp.b$= "123"
temp.c$= "test"




ok = OPENFILE(0, "file.dat", FALSE)
WRITE 0,temp
CLOSEFILE


ok = OPENFILE(0, "file.dat",TRUE)
READ 0, temp
CLOSEFILE



... in its simplest form. Of course I`d want to write out an array of said type etc (its just to show the principle here etc). as it is i have to run thru the whole type saving each individual "bit"

#17
Not sure if this is possible or not (perhaps an undocumented feature that Ive not heard about) but is it possible to write and read types ? Would really save a lot of time being able to write a type instead of of writing each individual field from it (and read them of course).
#18
Can I just confirm that the "Back" button code actually works ? Ive tried various combinations in my code and nothing seems to change. I even tried the AndroidSample version as well, changeing the "END" statement to this.

Code (glbasic) Select

IF Android.GameControllers("Menu")>100
sound3.play(FALSE)
ENDIF


But it just exits the app (ive tried bothe the back and menu buttons on my phone). Ive also tried changing the EnabaleBackButton from True to False and still no change. In all cases it just exits the app.
#19
Just updated the AE using the "Android Extras Update 2.2.x -> 2.3", ran my prog and now I get this :(

Code (glbasic) Select

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "C:\Users\Windows User\Documents\GLBasic\Cassette50\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
Checking Icons....
BUILD STAGE 2: Start compiler (android.bat)
C:\Program Files (x86)\GLBasic_v12\Compiler\platform\android\android-sdk-windows
Error: Target id 'android-18' is not valid. Use 'android.bat list targets' to get the target ids.
.
BUILD STAGE 3: Build a debug build
Buildfile: build.xml does not exist!
Build failed
.
BUILD STAGE 4: Build a release build
Buildfile: build.xml does not exist!
Build failed
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m


Everything seemed to be working fine, and I only updated it so I can get to use BACK/MENU buttons. Anyone have any idea whats gone wrong or how to fix this ?
#20
Hey..its not a bug....its an easter egg :)
#21
Off Topic / Re: nexus 7 ??
2012-Nov-06
Yep, all my stuff refuses to work on Nexus 7 too (a shame really as i would prolly would have had about 1,500 sales by now going by all the  cancelations and emails Ive had). Gernot is aware of the problem tho and is beavering away at a solution ;)
#22
GLBasic - en / Re: Q*Boyd
2012-Nov-04
Just like to say I hit 1000 sales over night :)
#23
Quote from: Kitty Hello on 2012-Sep-13
DDgui has a folder selector. At least in v12, i think.
But you're right, its missing.

V12 ? But we`ve only just got V11 !!! Is this planned for the next release then ? ;)
#24
Beta Tests / Re: V11 beta
2012-Sep-11
#25
Quote from: spicypixel on 2012-Sep-10

It's foolish because when the language is being parsed prior to compiling, the fact that I get a syntax error because I'm joining a string which is defined as a STRING hence the quotes "\" should not give errors. It should know that its a string and not give an error, how can that NOT be foolish. I love GLB but don't be so rose tinted, this is a stupid error.

\" is a control sequence to print a single quote so the compiler is expecting another quote on the end of your string thus "\"". its not an error.
#26
Quote from: Moru on 2012-Sep-10

The foolish part is windows using \ as a path separator. :-) I believe you should be using / in GLBasic, no matter what you are programming for.

Yup ...found that part out too when trying cross platform stuff. I couldn`t work out why my some of my sounds wouldnt load on other devices... Was me being an idiot and using \ instead of / ! took me a week to find that after trying to resample all my sounds at different bitrates and formats. I dont make that mistake now tho ;)
#27
I think its due to the \ being part of a control sequence. if you use \\ it should insert a single \ into the string
#28
Quote from: Kitty Hello on 2012-Aug-02
...
I know operators are nicer to use but it's no longer BASIC, I think.

Nuff said
#29
Jsut to let you (and everyone else) know, Gernots in a spot of bother so will not be making many (if any) public appearances here for a while. This doesnt mean he isnt working on V11, just that he has to keep a low profile from now on. Im sure if you have any really urgent questions or queiries I can relay them to him (in a fasion) but I cant guarentee a (quick) response.
#30
GLBasic - en / Q*Boyd
2012-Jul-09
Riding high in the charts now ;)