GLBasic forum

Main forum => GLBasic - en => Topic started by: spacefractal on 2017-Jan-30

Title: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-30
as you have seen, its quite some time ago im have updated Android Extras (which is still on Android 5.x SDK) as well iOS, which still have various issues. The most noticed is the FrameBuffer issues.

Also since im have not done any new games and apps in quite a year and most focus have been Steam, then im might leave iOS as well Android market. My iOS dev account would been expired in around sep, and im might do a one or few more updates to both systems (Android to just upgrade to newest SDK).

But my Mac is old as 2009 and can not update it to Sierra, which might been required for iOS11 and can no longer update it. Im do currectly does not have plans to purchase a new Mac, because im have basically no sale on iOS at all anymore, all sale is on Steam, that it. But im do might sell both my iPhone 6 and Mac and then purchase a new used Mac (2011-2012) in the summer. IM will do allways keeps both my iPads as well Apple TV. So im do not leave iOS completly at all and still possible to test things.

Im might even do a few updates for iOS10, because its still combatible with my very old mac (im have to say, its understanding, why Sierra cant run it, its about 7-8 years old Mac, but did Ram upgrade it once).

Also im also might leave Android as well. But im Will do few updates before im do. Also for the Android, its still on Android 5.0 SDK, but im do believe its still works as intended, so all im will do with Android is update to the newest SDK, which should been a no brainer issue. Im will look into that sooner or later (im currectly even use a Android device, not iPhone 6, but its a compeltly different issue).

Please note, im did write this before few years back, so im might return again, and im will not leave glbasic at all and im will still help etc what im can of course, and even might do some updates as well (when possible). Im have simply just done a new game in a year or such. But.... Steam was a great platform yet.

Steam have been a >excellent< platform for me and im still have a very great sale. So im should a day integrate Steam features to glbasic (but its works fine with Steam DRM). Im will do still been in this forum and help of course.

PS. VR is fun!
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Jan-30
Hello, I link an article where you explain how to virtualize Sierra with VMware. I have done it this way and it works perfectly. So I got rid of buying another Macbook (mine was from 2008). I hope it works for you in the future.

https://techsviewer.com/install-macos-sierra-vmware-windows/
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-30
im normally not like hacks and run on none original hardware generally. But im will check that out. Howover this would FIRST been a issue with evenuelly iOS11, and NOT with iOS10.

Mine was a Mini Mac 2009. Im did ram upgraded it once (from 2 to 8gb), due its was really slow.
Title: Re: about IOS & Android Updates
Post by: UBERmonkeybot on 2017-Jan-30
Thanks for all you hard work SF. :good: :nw:
Title: Re: about IOS & Android Updates
Post by: bigsofty on 2017-Jan-30
Yup, you've done a lot good here dude. I'm not targeting iOS at the moment, similar problems my mac is not fully 64bit. It's a pain really as a 64 bit OS X CPU is not needed to generate 64bit iOS code. It's just Apple being Apple ie, at total PITA.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-31
as im said my mac was from 2009, so im cant here bash Apple to drop support so old systems. The current xCode do still works on the previous system, but im do aware Apple might drop that OS when they move to iOS11, which is first to around September.

So its not a shorttime issue, but more a longtime issue.

The most important bug hopefully can been fixed is the annoying framebuffer thing. Im do have no clue why that happens. When that is fixed, im believe iOS10 would works great with glBasic with all important features.

Im are currectly will try that link out, even im perfer original hardware.
Title: Re: about IOS & Android Updates
Post by: erico on 2017-Jan-31
Yep, thanks for all the hard work on glb Space!
I have done little last year too, too much life s++t to deal in brazil wasted a lot of time.
I hope this year I can push some games around, and hope you can too. :good:
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Jan-31
Sad news Spacefractal. Thank you very much for your hard work especially with 64 bits conversion for IOS.

I wonder if I'm the last person targeting IOS with glBasic. There are some issues still do not resolve: Touches doesn't work with iPhone 6 + or 7 +. and delaysTouchesBegan (we still have an annoying delay just in the left side of the screen) compiling with xCode 10.1  :'(   :'(   :'(
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-31
im believed the touched did fixed recently. Since the issue still exists, im cannot do anything more, unless im get the device to test with. Im cannot blindfix a issue at all. Im do thinks the issue is in iphoneviewcontroller.m, which you do have full access it. Same with delaysTouchesBegan issue. Im do not have a device to test with. So currectly nothing im can do at all, and im do NOT want to blindfix issues at all.

Im not even sure im want to pay a new iPhone yet for just fixing issues for others, and also im have just sold my iPhone 6 today, but im will do keep both my iPads. Im might purchase a iPhone 7, but not even sure im will go a + one. But im will let see what happens in the future. Its might delay a month or two or such.

Also im have not have a plan to purchase a new Mac at all, if im dont have plans to updates own software. That it. But, im currectly testing VMWare yet. Currectly its downloading xCode now.

PS. Im also have to say: Android is MUCH MUCH easier to deal with against iOS, where you require a lots of steps and annoying requirements from Apple.
Title: Re: about IOS & Android Updates
Post by: MrPlow on 2017-Jan-31
Sad to see you wont be as active!

Thanks to you and Gernot and your AE extras and Admob - I have made some money on Android and I agree Android is soooo much easier and apps are live on Google Play within 2 hours.

With your help I have gathered over 1.7m downloads across all my apps. So glad your Steam projects have been successful and hope you keep developing!

Please keep checking in on the Forum to help with our issues :)
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-31
as im wrote im well not leave soon and im will still checkout :-), so im does NOT leave the forum (remember Steam have been a Excellent platform for me, quite surpriced how well it did). Howover im do not have doing any new thing in the last year, property because im being older and older (im 40 years old now). Howover currecty im also testing VMWare and see what happens. That can mightbeen easier.

But im do not want to blindfix issues, so the plus issues wont been fixed, not by now.

Also Android seens to require less mainstream than iOS does (even there is 1000's devices out there, but seens its not a real issue really), where Apple have tends to breaks thing. on Android, all issues could have been fixed by the user or by workaround.

Also im will update Apple TV to using newest glbasic as well when possible. Apple TV does not have the named issues at all, since you does not using touch at all. Im really like Apple TV, even its a lesser platform. Its a good platform to perfrom console like thing on it from us (which cant release on real consoles). This is same with Android TV.
Title: Re: about IOS & Android Updates
Post by: UBERmonkeybot on 2017-Jan-31
Wow! 1.7m! Is that all with GLB code?
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Jan-31
also congratulations with the 1.7m downloads. Im remember one of the app did the most? Im did do much less on Steam, but its a paid app of course, but still happy.

Also please note, my account does first expire in around sep, so there is comply of time yet and im might or might not renew it. im just want to write this post rather doing that in the last minuttes thing, but in a good time.
Title: Re: about IOS & Android Updates
Post by: MrPlow on 2017-Jan-31
I would love to get a title on Steam !!!
Your updates have allowed GLB to be used with Steam and that is super! I hope to give it a go sometime in the future!

Title: Re: about IOS & Android Updates
Post by: erico on 2017-Feb-01
I´d like that too.

About IOS, I wonder, aren´t the sales good enough to invest on it?
I know forking a mac and an iphone is quite a hard hit.
Title: Re: about IOS & Android Updates
Post by: yaKC on 2017-Feb-01
A lot if indie devs report 30% sales from Mac, 1% Linux on Steam so Mac is viable for sales compared to the mess that it Android/IOS stores.

Sent from my 01v21_v89_gq3008s_89t_5g using Tapatalk

Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-01
I'm have not do anything to glbasic for steam. Its worked out or box and did no other than warp the demand to the exe. So hence there is no archivement support and such.
Title: Re: about IOS & Android Updates
Post by: erico on 2017-Feb-01
I believe mac and linux are good extra paths, android too, I was just wondering about ios.
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-01
For me IOS is fine. Of course its a pain every new requirement from Apple. And I don't earn much money. Jus't for pay Apple's fee and a little more. But I have between 20-30 downloads per day and I hope one day increase sales.

I never published for Android because my friends don't earn money with it. And I know one guy that his game was cracked within the firsts months. So I think it's worthless to publish in Android.
Title: Re: about IOS & Android Updates
Post by: hardyx on 2017-Feb-01
Thank you for your GLB contributions spacefractal. I wish you have success in your games for Steam. Apple change the things every year with new hardware and software and it's not easy. I had to buy another Mac mini two years ago. I have to finish my games and make more this year.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-01
Also I'm did few ads free games as free, and where the was done for fun (spot race and catchout). I'm see what happens next phone I'm purchase. Its might not even been a iPhone. This is something I'm will consider later this month. I I'm have a nice reserve android phone, which works nicely. But again I'm like and love I pass. I'm hope somebody can fix the remaining issues, since I'm opened up all my files. I'm happy I'm did that, but I since most issues is often in those.

Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-01
the bad news:
Im have sold my iPhone 6.

They do said its works as its should and im will get a full price for it (used of course). That means the wifi on the iPhone 6 does work, so the wifi here is just bad and need purchase a new router (its a lesser issue).

the good news:
Im have dedicated, countinue to use iOS, so im purchased a new iPhone 6s Plus, found to a nice price with a nice reduced price.

That means im will a least fix the touchscreen relative issues, which im believe its the most important one. Even the FrameBuffer might not been fixed, you can still workaround and check when user use switch app. The app does NOT crash here, so you can save your positions and let it quit. Apple should still accept your app doing that. MultiTasking is not important for Games at all. But im do hopefully im can fix this annoying issue, but its not the most important one throught.

Also im will fix those issues later in the feb month, and might even add 3D Touch support by using GameInput API.

So even im might leave iOS/Android, im will leave it with a good shape!
Title: Re: about IOS & Android Updates
Post by: erico on 2017-Feb-01
Great news Space! :good:
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-02
Quote
Im have dedicated, countinue to use iOS, so im purchased a new iPhone 6s Plus, found to a nice price with a nice reduced price.

That means im will a least fix the touchscreen relative issues, which im believe its the most important one

Wow Spacefractal, you are so good!! Many, many, many thaks for this.

I was desperately looking for a guy with iPhone + to test the games (even if I don't have skills to fix the problem inside glBasic  :whistle: ). Thanks again for trying to fix this issue. I also think it's very important that glbasic runs properly in all devices.

You are great!!!  :good:  :good:  :good:
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-05
im are still waiting for the phone, but hopefully im can fix a least the touch issues later this month. hopefully im even can implemented 3d touch support with MOUSESTATE,  which means MOUSESTATE might not just return 0 and 1, but can been from 0-256 or something like that (MOUSESTATE uses INTEGER, not a float). Supporting it would of  course been the best way to do, than just disable it.
Title: Re: about IOS & Android Updates
Post by: yaKC on 2017-Feb-05
Thank you spacefractal for all your work, also theI saw your game suggested twice on Steam lately, was nice to know it's GLBasic :)

Sent from my 01v21_v89_gq3008s_89t_5g using Tapatalk

Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-09
Im for my iPhone 6plus and my games sens to run fine, but those used a older version.

So I'm take a look in this or next week about touch issues. I'm believe I'm can fix those my self.

For the framebuffer, I'm will send that to a technical issue at apple. Here I'm require in allowed to send the full source code, include glbasic source code... Simply not sure what happens and again it's worked fine in older version.

Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-10
Quote
Im for my iPhone 6plus and my games sens to run fine, but those used a older version.

I think the problem is from XCode 10 version. I haven't problems before. Unfortunately we need to solve this issue because it will persists in further versions. Thanks Space!  =D
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-12
The touch issues have just been fixed today and will later today of the follow days release a new vesion. Im also confirmed both previos iOS10 issues with 6+.

The framebuffer issue is impossible for me to fix, a issue im need to send to Apple (im not sure HeadKaze have time here). Im can first send it to the techincal support when im get a permission from Gernot (im need to send the whole glbasic source as well). This is about a techincal issue.

So until then im have dedicated when HIBERNATE is called, the app will automatic shot down, so nothing will fell wrong. Etc GLB_PAUSE is first sent and then GLB_QUIT. Better doing this than a framebuffer blackness on resume. You can then eventuelly save players states when that happens.

EDIT:
Checkout the iOS & Android sticky thread. Its not 100% finshed and have not updated the beta to Beta 2, so you need to replace some files..... Its until im hopefully can fix the framebuffer issue.
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-13
Wow Spacefractal you are a HERO!!!  :nw:

Many thanks for all your efforts. I'll wait for Beta 2 to test my games. I'm planning to launch a new one next month.
I hope to increase the interest in GLBasic + IOS in other people. I speak with my friends about how easy is programming for iPhone. We need more people.  :good:
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-13
You can download the touch fixes allready now. I'm have just not updated the beta yet.

The recommended fix did works, but added them in the main app controller.
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-14
I have tested your changes and the touch issues have been resolved. I need to send to Apple a new version of my game to test the iPhone 6,7+ issues, but I'm sure it works.  :good:  :good:  :good:

But now I have other problem with framebuffer issue and your last changes. My app uses inApp Purchases. When user activates them the app goes to second plane and with your last changes, when it happens, the app shutdown and the user can't purchase. Can you revert this issue to the previous version for the moment, please?

Many thanks
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-14
Just use the old a lib file then in the lib folder.  It's the only change I'm did from beta 1. Hence I'm did not replace that file yet.

You can also send it to TestFlight app and let me test it eventually.

I'm waiting for permission from Gernot before I'm can send the framebuffer issue to apple technicial service. It's the last major issue and I'm have no idea why yet.
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-16
It works fine!! My App runs again!  :good:

I need to make some changes and I'll send it to you by TestFlight.

Thank you four your help, Space   =D
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-20
@spacefractal Did you finally solve the problem with multitasking?
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-21
not yet. im cant fix that my self, and require a techincal support at Apple. Im have still not heard from Gernot, so im will pm him soon.

If you dont use inapp purchases etc, then the app will just automatic close down when switched, so you dont get black screen when return.
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-21
Hi SF. I do not use IN APP but Admob and I'm very interested in multitasking working correctly.

I appreciate your efforts.



Enviado desde mi iPhone utilizando Tapatalk
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-21
You should just quit when glb pause is called. Then it's will reload the app again. Here you could simulate multi tasking by saving player positions.....
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-21
So I'm doing it now but it takes time to load and the result is not what I wanted.


Enviado desde mi iPhone utilizando Tapatalk
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-21
If I must be sincere I don't understand quite well this issue. My App runs fine right now. Even if I change between apps and returrn my app continues fine without black screens and other errors mentioned. Of course I compile with GLBasic 12.  ::)
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-21
My applications in that case start from the beginning.


Enviado desde mi iPhone utilizando Tapatalk
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-23
Try this at the beginning of your code:

Code: (glbasic) [Select]
AUTOPAUSE TRUE
ALLOWESCAPE FALSE
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-23
I'll try it.

What do your GLB_ON_PAUSE and GLB_ON_RESUME do?


Enviado desde mi iPhone utilizando Tapatalk
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-23
GLB_ON_PAUSE saves the state of the game.

SUB GLB_ON_RESUME it does nothing but it is necessary because is called from in app purchases
Title: Re: about IOS & Android Updates
Post by: Alex_R on 2017-Feb-23
I haven't GLB_ON_QUIT. Spacefractal told me not to put in my code to prevent crashes. And he was right.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-23
GLB_ON_QUIT is sent with beta 2 as its does now, but you might want to use the lib from beta 1, because you use admob, which practically done the same.

GLB_ON_QUIT is property newer called other than that. But its would do that when the framebuffer issue is fixed (when the user close the app). Or its will been mean less to call that anyway.

Im did also fixed the quit crash as well.

What im missing and need to been fixed, which might take a month or two (its not a near week fix, sorry), that is the annoying framebuffer issue, but its can been workaround. Im do should checking with glbasic 12 as well (im using glbasic 14).

Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-23
I can not make it work. I have programmed a test code and this is the result:

Code: (glbasic) [Select]
LOCAL cont
AUTOPAUSE TRUE
ALLOWESCAPE FALSE

WHILE 1
INC cont
PRINT "test "+cont,0,30
SHOWSCREEN
WEND

SUB GLB_ON_PAUSE:

ENDSUB

SUB GLB_ON_RESUME:

ENDSUB

Attachment screenshot.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-24
So you use ios10.x beta 1 or beta 2?

The beta can been downloaded from the sticky thread.

I'm fixed that issue in either beta 1 or 2.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-24
also, if you use beta 1, you need to add END in the PAUSE sub, so the app quit gracefull, until this got fixed.

SUB GLB_ON_PAUSE:
   end
ENDSUB

PS. Please not this thread is NOT a support thread, so im might split  this thread. This thread was about im will leave iOS and Android, but want to fix the remaining bugs before im does. Im also might just pause...


Edit: I'm got a permission, so I'm will in this or coming week prepare the framebuffer issue to apple technical support.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-25
Good News:
The FrameBuffer issue have just been fixed, without Apples help. Its seens its was not a framebuffer issue at all, but instead its did newer resume correctly and was still paused. Hence the code was newer resumed and then you got a black screen. Its was a bug in HIBERNATE and AUTOPAUSE commands.

Also im required to force AUTOPAUSE to allways to been TRUE, even you try to change that to FALSE. The app might bug out with AUTOPAUSE FALSE. So the command will do nothing at all on iOS anymore, but im will not depreciation the command of course (its useful on other platforms).

Also you might need require to use SUB GLB_ON_LOOP: as well, which works and resume fine. Im do not have idea without that function still works. But its a area im will NOT fix.

Gernot, im will send the fixes to you, which is all is in SHOWSCREEN, HIBERNATE and in AUTOPAUSE commands.

Beta 3 will been soon out. Im do still need to prepare the xcode project to you other (im integrated glbasic source code directly into project, which was much easier to find bugs and fix that), not by using a lib. But im will only compile it to the a lib file for public.

Code: (glbasic) [Select]
[code=glbasic]
LOCAL cont
ALLOWESCAPE FALSE

SUB GLB_ON_LOOP:
INC cont
PRINT "test "+cont,0,30
SHOWSCREEN
ENDSUB

SUB GLB_ON_PAUSE:

ENDSUB

SUB GLB_ON_RESUME:

ENDSUB
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Feb-25
Those are great news!!!! :nw: :nw:.

Is it all about replacing the WHILE loop with SUB GLB_ON_LOOP?
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Feb-25
im do still need to release beta 3 with the fixes in the named commands. ALso im have no idea its will works without SUB GLB_ON_LOOP, but im will not garantee it, so if its bugs out, then im will not fix it.

SUB GLB_ON_LOOP is the way for futures updates from beta 3 and should doing that generally for glbasic for all apps. Not just for Java, but for all platforms. Its might been required for iOS in the future updates to function correctly.
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Mar-16
im got at reply with Gernot and me mergning source codes. So proerpty the Socks commands will been fixed soon on iOS as well im will update Android soon. Here im will also redone and checking Admob as well using the newest version.

Im do still need to check how HIBERNATE does on Android as well.

So im will release a Beta 4 later this week as well a new Android update. Im will update to Android 6.1 sdk and not to Android 7.0 this time. Correctly glbasic is based on Android 5.0. Im also dont thinks its much changes at all, except some permission checks.

Users on newer platforms can block permissions, which is now no longer "ALL or NOTHING" design, which im newer liked on Android.
Title: Re: about IOS & Android Updates
Post by: bigsofty on 2017-Mar-16
I'm not doing anything on mobile just now but this not devalue the work you've done here SF, good job!  :good:
Title: Re: about IOS & Android Updates
Post by: erico on 2017-Mar-16
sure shot, excellent work! :good:
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Mar-19
great news!!
Title: Re: about IOS & Android Updates
Post by: spacefractal on 2017-Mar-31
im have been quite off, due signess and other thing, so im have not coded something recently. Im hopefully this week take a look into the HIBERNATE multitasking and implementing SOCK issue im got from Gernot. Howover the most important, the multi taskning did fixed, so its usable for most app out here.

Also im should update Android to use Android 6.0 SDK as well doing a better integration of the ads. Im guess the crashes etc could also have been havent in HIBERNATE. But Android here does not have a well debugger. so its hard to do something.

But im recommerend all to use the GLB_ON_LOOP as main loop, newer using inside loop using Goto or a while/wend or such loops. This can breaks thing. Im will not fix that kind of issues, if its crash without used the function.
Title: Re: about IOS & Android Updates
Post by: msx on 2017-Mar-31
Take the time you want. Do not worry. We thank you for your effort.


Enviado desde mi iPhone utilizando Tapatalk
Title: Re: about IOS & Android Updates
Post by: erico on 2017-Apr-01
Sure shot, also, get well soon. :good: