Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 1,151 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Compatibility Extra/Commercial/Pro #267666
05/25/09 18:57
05/25/09 18:57
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline OP
Expert
slacer  Offline OP
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Hi,

a friend wants to start with A7 Extra while I own a copy of A7 Pro. He uses the trial version now, but he wants to buy the extra edition if he is happy with gamestudio.

The question is: will my code compile on his version but network functions will simply behave like an empty function?
Or does it create compilation errors and we have to put an

IFDEF XXX
// pro code here
ENDIF

every few lines?

-- slacer

Re: Compatibility Extra/Commercial/Pro [Re: slacer] #267809
05/26/09 11:35
05/26/09 11:35
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Just use the var "edition".

Example:
Code:
if(edition == 4) //Will work only wiht Pro
{
	//Pro code here.
}


Re: Compatibility Extra/Commercial/Pro [Re: Cowabanga] #267884
05/26/09 17:09
05/26/09 17:09
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline OP
Expert
slacer  Offline OP
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
The question is what happens if the "pro section" contains commands which will requiere a pro version.
Does this compile at all in an Extra edition, or will it result in an error message about an unknow function session_open?


Example:
Code:
if(edition == 4) //Will work only wiht Pro
{
	//Pro code here.
   if ( session_open( "demo" )) {
// do something
   }

}


Last edited by slacer; 05/26/09 17:10.
Re: Compatibility Extra/Commercial/Pro [Re: slacer] #267889
05/26/09 17:21
05/26/09 17:21
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
I guess it'll ignore it.

Re: Compatibility Extra/Commercial/Pro [Re: slacer] #267907
05/26/09 19:16
05/26/09 19:16
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline OP
Expert
slacer  Offline OP
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
@Cowabanga

I saw from your profile that you own the commercial edition.
If session_open is a Pro only feature, you could paste the code below into the main function and try to start it.

Code:
if(edition == 4) //Will work only wiht Pro
{
   //Pro code here.
   if ( session_open( "demo" )) {
      wait(1);
   }

}


Can you confirm it works or if it generates an error message?



Last edited by slacer; 05/26/09 19:16.
Re: Compatibility Extra/Commercial/Pro [Re: slacer] #267913
05/26/09 19:37
05/26/09 19:37
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
even

//Pro code here.
if ( session_open( "demo" )) {
wait(1);
}

itself works withour edition==4, although i thnik function doesnt do anything.


3333333333
Re: Compatibility Extra/Commercial/Pro [Re: Quad] #267921
05/26/09 20:12
05/26/09 20:12
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline OP
Expert
slacer  Offline OP
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
great smile
This means, I can try to use pro features in the game even if his version does not support all features.

Thank you

Re: Compatibility Extra/Commercial/Pro [Re: slacer] #268062
05/27/09 11:30
05/27/09 11:30
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
@Slacer:
Works fine with me.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1