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

Topics - mykyl66

#1
I tried to compile for osx and each time it gets to compiling + lining and never goes further. No issue compiling for windows or anything else so far.

Cheers

Mike
#2
Any known issues running current glbasic apps on ipad 3? I'm asking as other apps we have developed using Corona don't display correctly apparently. I doubt the glbasic apps will have any issues to be honest but its worth knowing and I don't have the benefit of owning an ipad3.

Cheers

Mike
#3
I sent an email a few days ago and have not heard back. Not sure if my anti spam thing got rid of the reply.

Cheers

Mike R
#4
Hi,

I am trying to compile in xcode a simple test app saving and creating some files and then opening them on a new run of the app.

This is what the results in xcode are.

Any ideas as to what may be causing this? I have no idea what this battery thing is that is being called.

Cheers

Mike R

"_max", referenced from:


      _iPhoneBattery in libGLBasiciPhone-egl.a(iPhoneAppController.o)


  "_min", referenced from:


      _iPhoneBattery in libGLBasiciPhone-egl.a(iPhoneAppController.o)


ld: symbol(s) not found


collect2: ld returned 1 exit status


Ld build/iPhone.build/Release-iphoneos/iPhone.build/Objects-normal/armv6/character_creator normal armv6
cd /Users/mykyl/Desktop/XCode/GLBasic
setenv IPHONEOS_DEPLOYMENT_TARGET 3.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -L/Users/mykyl/Desktop/XCode/GLBasic/build/Release-iphoneos -L/Users/mykyl/Desktop/XCode/GLBasic/Lib -F/Users/mykyl/Desktop/XCode/GLBasic/build/Release-iphoneos -filelist /Users/mykyl/Desktop/XCode/GLBasic/build/iPhone.build/Release-iphoneos/iPhone.build/Objects-normal/armv6/character_creator.LinkFileList -dead_strip -lstdc++ -miphoneos-version-min=3.0 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework CoreLocation -framework OpenAL -lGLBasiciPhone-egl -lpng-gf -lPROGRAM -framework MediaPlayer -o /Users/mykyl/Desktop/XCode/GLBasic/build/iPhone.build/Release-iphoneos/iPhone.build/Objects-normal/armv6/character_creator

Undefined symbols:
  "_max", referenced from:
      _iPhoneBattery in libGLBasiciPhone-egl.a(iPhoneAppController.o)
  "_min", referenced from:
      _iPhoneBattery in libGLBasiciPhone-egl.a(iPhoneAppController.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
#5
hi,

Currently been testing seedrnd and noticed on pc it works fine but on the iphone no matter what initial seed I give it it always returns the same number. I am using version 7 of glbasic as Im not comfortable using beta software for developing on.

Cheers

Mike R
#6
I seem to have thought about this a bit too late but Here is my question.
I have had my app tested on an early iphone up to the latest iphone 3gs as well as on an ipod touch generation 1 up to the latest 3g but suddenly had a thought. I think that all of them are running the latest 3.x os.

I have been building for the base 3.x all this time but suddenly wondered if I have to do anything to make sure it will run on folks machines who are perhaps still on 2.x etc?

Will an app compiled using 3.x work on the earlier os machines? I am obviously not using in app purchases etc as I don't have a clue how to do that.

Can anyone help?

Hoping to show what we have been up to in the coming week.

Cheers

Mike R
#7
Hi, I'm not sure exactly how to describe this so here is the information xcode debugger throws up as my game is loading up.

As I said it never happened before this latest up date but that doesn't mean that's whats caused it. I have no clue. Please can anyone help.
I guess the leaking thing is worrying me, especially as I have no clue what would cause that.

if you need more info please ask.

Thanks

Mike

run
Runningââ,¬Â¦
[Switching to thread 11779]
[Switching to thread 11779]
sharedlibrary apply-load-rules all
(gdb) continue
2010-03-20 15:52:15.820 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x205a50 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acc107 0x3356453b 0x30ae1805 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.859 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x207d60 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acc107 0x30ad00d9 0x30ae187d 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.976 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x207610 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acc107 0x30ad67d3 0x30ae06a7 0x30ae062d 0x30acd2f9 0x30ae05c7 0x30ae189d 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.984 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x2087c0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acdbb3 0x30acd1a7 0x30acd121 0x30ae06bb 0x30ae062d 0x30acd2f9 0x30ae05c7 0x30ae189d 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.989 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x208880 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acdbb3 0x30ae05f7 0x30ae189d 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.993 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x2089e0 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acc107 0x3356c7f9 0x30ae18d7 0xb1b8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
2010-03-20 15:52:15.996 [1244:207] *** _NSAutoreleaseNoPool(): Object 0x208a50 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x30af7f87 0x30acc135 0x30acc107 0x30acc331 0x30acc1c3 0xb1e8 0x6d48 0xb618 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe022bd 0x2fe06a15 0x2fe016fd 0x2fe01050)
init with coder
app did finish launching, view=0x21d4d0
start ani
applicationDidBecomeActive
backing: 320 x 480
Init GFX
#8
It doesn't matter what code I try and use, if I compile in version 7.237 of glbasic I get the following debug errors in xcode when compiling.

Any help please or is this a newly introduced bug in the latest version of glbasic?

No idea what is happening as I am at no point trying to run any movies or whatever and the same code worked perfectly before.

Thanks

Mike R

Build iPhone of project iPhone with configuration Debug

Check dependencies

Undefined symbols:
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
      _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr in libGLBasiciPhone-egl.a(iPhoneAppController.o)
  "_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
      __objc_classrefs__DATA@0 in libGLBasiciPhone-egl.a(iPhoneAppController.o)

ld: symbol(s) not found
collect2: ld returned 1 exit status


#9
Hi,
I am doing some test code for compiling on the touch. I can move a rectangle around the screen no problem using the joystick commands. My issue is this.

I would like to offer the ability to calibrate the screen according to the angle the player is holding his touch.

e.g. If I lay the touch on the table and start the game there is a rectangle sitting in the center of the screen. When I tilt the screen the rectangle moves around. (I can already do this).

Now I want to hold the touch in my hand in a comfortable position and when I start the game no matter what position I am holding the touch in I want the rectangle to once again be in the center of the screen. and play the same way as before. Of course the rectangle Must stay within the screen area.

So far I can get it to start in the center regardless of the angle I am holding the touch by setting an offset but for some stupid reason the whole screen is being offset.

How are you folks doing this calibration type thing.

Thanks.

Mike R
#10
I have had a look through the manual and one minute its talking about books then employees and somewhere along the way I got lost. :D

ANY tips would be very helpful.

Thanks

Mike R
#11
I can compile it for pc in 320x480 resolution and the same for the ipod touch but I dont seem to have that resolution option for mac osx?

Is this an error?

Cheers

Mike R
#12
Im not sure when it crept in but there seems to be an issue. I press f9 where I want to step through the code and unlike before I updated GlBasic it seems very hit and miss if it works.

I cant work out where the problem actually is but it makes it difficult.

I have managed to get it working finally but have noticed that the line that is currently hilighted when you are stepping through is NOT the line being executed.

everything is out by one line.

e.g if two lines says this

SETACTIVEMOUSE MsActive
DRAWRECT 0,0,320,60,RGB(255,0,0)
then when drawrect is hilighted during step through setactivemouse is the line that is actually about to be executed.

Can this be looked at please.

Mike R
#13
I have been using the platforminfo command and relying on getting the result IPOD as stated in the help file. However what it actually returns after much hair pulling is IPOD TOUCH. :)

I wondered why the app was not doing what I was expecting.

I dont own an iphone so can anyone tell me what an iphone will actually return?

Mike R
#14
Hi,

After compiling my application on iPod Touch, I am getting an fOpen error on my ini files AFTER the first ini file has been successfully opened and read from.

It's not like I can explicitly close a file, because CLOSEFILE requires a handle defined by OPENFILE.

Besides which, as I understood it, INIOPEN handles closing of files when a new one is called. So can anyone tell me where I'm going wrong or any iPhone specific gotchas?

e.g

request: fopen("Media/lastsave.ini", "rb") failed
wrt-request: fopen("Media/lastsave.ini", "wb") failed

The paths are correct as are the filenames. Its just fails.

Mike R
#15
Hi, Does anyone here have an idea how to perhaps go about detecting if an application being run on the touch devices is pirated or not. I have read some disturbing articles recently on the state of piracy with touch device apps and it concerns me.

I dont want to give anyone who has not bought the app any access to any of the bonus material or online highscore tables etc.

It amazes me that they use the excuse "it gives the player the ability to try before they buy" That excuse was perhaps legitimate in the days of $50 games but when your talking about 99cents or $2 there is no excuse.

Any ideas thoughts?

Cheers

Mike R
#16
Hi,

I have made some sprites with nice soft edges in photoshop so that it will blend in with the background. However glbasic seems intent on making any soft edges solid regardless of using loadsprite or loadanim etc. Not nice when your trying to put forward a professional look with clean edges in your graphics.

(the transparency is  a graduated transparency that gradually fades out as it moves to the edges of the sprite.)

I cant use this pink malarky as when the graphic is scaled as you progress in the game you get  pink fringe so I use true transparency in my png's.

Any info needed please ask as I am at the end of my tether here.

I thought I would put a little explanation. Imagine you want a glowing ball on screen with nice transparent soft glow at the edge instead of the harsh edge that is being produced currently. (Its like it takes semi transparent pixels and makes them solid.)

Mike R

#17
I am looking to get a small windows laptop to do my coding on (I don't like having windows on my macs) and one in particular has the option of upgrading to Windows 7. I just wanted to know if there are any issues with this.

Cheers

Mike R
#18
Why am I getting an out of dim array with this code? It seems that the Array is never actually created but I am at a loss as to why now. I am at the end of my tether now. I am just trying to test something and want to create a bunch of items on screen but cant even get past this blasted out of dim array. What is crazy is in my main app everything works perfectly but I cannot get this damned error worked out. (I know nothing will show on screen as thats next.

Mike

Code (glbasic) Select
DIM Creature[IdNumb][5]

begin:

GOSUB NewBeasts

SHOWSCREEN

GOTO begin

// ------------------------------------------------------------- //
// ---  NEWBEASTS  ---
// ------------------------------------------------------------- //
SUB NewBeasts:
ID = 0
FOR Beast = 0 TO 50
Creature[IdNumb][0] = ID
Creature[IdNumb][1] = RND(10)
Creature[IdNumb][2] = RGB(RND(255),RND(255),RND(255))
NEXT
ENDSUB // NEWBEASTS
#19
I am working and testing GlBasic alongside my friend. The biggest issue is we both have different times when we can get on and do code. I would like a way to show my changes in the code by perhaps colouring the font as red and he could colour his purple or whatever.

Perhaps the ability to colour your remarks with a code. e.g anything after // can be an explanation of the code. What if there was a way to setup an alternative in the configuration. e.g. //m/ would put anything I added after this in a certain colur.

Im not sure what way to be honest but a way to share code and see who changed what would be handy.

It would allow easy scanning of the code to find changes the other has made and discuss problems or solutions.
Probably not thinking this through very well but I hope you get the idea.

Mike R