Author Topic: URGENT: License Problem  (Read 3261 times)

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
URGENT: License Problem
« on: 2009-Sep-15 »
Hi all,

I have a problem with my glbasic licence.
THe problem is when i try to use the following function (which MRTaToad sharing in other post):

INLINE
   extern "C" int system ( const char * command );
ENDINLINE

FUNCTION openWeb:
   INLINE
      system( "open http://www.mywebpage.com" );
   ENDINLINE
ENDFUNCTION


The compiler says, Demo mode: This command would require NET or 3D addon.
I am using net commands, which i have licence (my licence is for 2d and net), but the program start in demo mode.
I need 3d licence for use this command?? :S.

Best Regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Offline amarliani

  • Mr. Polyvector
  • ***
  • Posts: 115
    • View Profile
Re: URGENT: License Problem
« Reply #1 on: 2009-Sep-15 »
AFAIK yes, inline commands need full license.

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: URGENT: License Problem
« Reply #2 on: 2009-Sep-15 »
Yep need full license.

The Command what you need (open in webbrowser) will be available in one of the next updates.
include links to appstore on iphone.

MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MrTAToad

  • Guest
Re: URGENT: License Problem
« Reply #3 on: 2009-Sep-15 »
If you dont want to pay for the Net/3D add-on, the following also works on a Mac (and hopefully an iPhone :)

Code: GLBasic [Select]
LOCAL vv

SHELLCMD("open http://www.bbc.co.uk",TRUE,TRUE,vv)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10713
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: URGENT: License Problem
« Reply #4 on: 2009-Sep-15 »
If it's not working on iPhone (can someone test, please!?)

Try this:
make a text file: "iPhoneTools.mm"

Write this:
Code: GLBasic [Select]
#import <UIKit/UIApplication.h>

// change the ?id=... according to your app
extern "C" void AppStore()
{
        NSURL *appStoreUrl = [NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=329485776&mt=8&s=143441"];
        [[UIApplication sharedApplication] openURL:appStoreUrl];
}
 

Replace the part of the URL _after_ the ?id= with the thing you get from the iTunes store. Mine was:
itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=329485776&mt=8&s=143441

In your main game write:
Code: GLBasic [Select]
REQUIRE "iPhoneTools.mm"
IMPORT "C" void AppStore();

...
AppStore();
 

The bad thing is, that the REQUIRE of an .mm file will break the Win32 compiler, which is very stupid. GLBasic definitely needs a preprocessor in the next version.






Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: URGENT: License Problem
« Reply #5 on: 2009-Sep-15 »
No normal glbasic user can compile .mm files for iphone because sdk agreements from apple. (no headers and libs provided)
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
Re: URGENT: License Problem
« Reply #6 on: 2009-Sep-15 »
Hi,

First of all i have to say, this community is awesome!
I didn't know i need premium licence to use inline command, sorry! I didn't buy because i don't use any 3d (well al least for now!).
MrTAToad, i tryed your piece of code (thanks again for all your support!), and didn't work! :(.
And for mm file, as trucidare said, because of sdk agreements from apple, we can't provide any header of file, that aren't part of glbasic.
I suppose, i will wait for the next release, and don't include any 'More Games' url on this one.
Anyway, thanks all for your great support.

Great Tool, great community.

Best Regards, fjsantos.
« Last Edit: 2009-Sep-15 by fjsantosb »
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10713
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: URGENT: License Problem
« Reply #7 on: 2009-Sep-15 »
OK, I'll implement a WEBEND command then, that will END, but open a URL afterwards. That way you can go AppStore on iPhone and show "more files" at the end of your program.

MrTAToad

  • Guest
Re: URGENT: License Problem
« Reply #8 on: 2009-Sep-15 »
That'll be useful!

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
Re: URGENT: License Problem
« Reply #9 on: 2009-Sep-15 »
That will be great, thanks!
Best regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: URGENT: License Problem
« Reply #10 on: 2009-Sep-15 »
OK, I'll implement a WEBEND command then, that will END, but open a URL afterwards. That way you can go AppStore on iPhone and show "more files" at the end of your program.

Thanks this will be exactly what I need.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

  • Guest
Re: URGENT: License Problem
« Reply #11 on: 2009-Sep-15 »
It might be worth making sure that SHELLEND and this new command call GLB_ON_QUIT before they end, incase any tidying up stuff there is missed.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10713
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: URGENT: License Problem
« Reply #12 on: 2009-Sep-15 »
Yes, and: They do.

MrTAToad

  • Guest
Re: URGENT: License Problem
« Reply #13 on: 2009-Sep-15 »
Good!

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: URGENT: License Problem
« Reply #14 on: 2009-Sep-17 »
Are these commands in version 7.115?? Or are they still coming?  =D
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added