Croos-platform?

Advanced game related topics
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Croos-platform?

Post by Kaisen2100 »

Hello, i am thinking in creating a game (program is the right word) to make you able to play, by email, a new chess variant i created a few months ago.

I think the variant is very good and people will like it, so i want to make a program for people play by email. Right now i will not make any engine to play against the CPU, it will be hard work because the variant is complex. So i just want to make a program to make using email, turn-based.

My big question is ... do you think it really matters if i make it cross-platform (win, mac and linux)?

I think it would be great doing it crossplatform ... but it is worth doing that?

thanks for your help
Last edited by Kaisen2100 on Mon Jan 19, 2009 1:13 am, edited 1 time in total.
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

Post by GBeebe »

Most of the commands that come with PB are compatible with win, linux, and mac. So your code may already be cross platform...able.
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

no more comments lol?
thanks
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

Post by GBeebe »

I mean, that's the reason I choose PB, because it's cross platform. As long as you don't use any external DLLs and what not, then odds are your code will work in other OSs.
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

purebasic some commands that i cant use in mac / linux :(
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
Robbie
User
User
Posts: 10
Joined: Fri Nov 11, 2005 9:57 am

Post by Robbie »

There are some commands that can only be used on a certain platform, such as DrawAlphaImage, which is only available on Win32, and WebGadgetPath which is only required on Linux. From what I can see in the help file, under the "Platform-dependant Functions" section, most, if not all of the commands, will do nothing, map to another command, or return 0 if you use them on a platform on which they are not supported.

The majority of PB commands, however, are cross-platform.
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post by Amiga5k »

Still, it would be nice to have the same behaviour on all platforms without having to make changes/exceptions in your source. Surely alpha is supported on these other platforms since my BlitzMax programs that use alpha work just fine there, so what's the reason for the non-support of alpha commands?

It would be helpful, and kind of nice too, if the IDE offered the option of indicating which parts of your code would only work on specific OSes: For example by placing a W for windows supported, L for Linux supported and/or M for Mac supported (heck, even A for Amiga...) in the column to the left of each line, or just scan the code before compilation and flag the incompatible/unsupported ones or show a command underlined if it doesn't meet the criteria your looking for (set in options of course).

Anyway, for true cross-development the command discrepancy is kind of a pain to keep track of during development...

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
Anonymous

Post by Anonymous »

We can't use Startdrawing() with sprite3D on linux :(
Two windows are openned if you wan't use windowedscreen.
DrawAlphaImage, which is only available on Win32,
But why ? sdl support alpha channel.

for me , i just my opinion ( don't shoot me :) ) , PureBasic on linux , is not finished.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> Two windows are openned if you wan't use windowedscreen.

This works since 4.30. Did you try it ?
quidquid Latine dictum sit altum videtur
Anonymous

Post by Anonymous »

freak wrote:> Two windows are openned if you wan't use windowedscreen.

This works since 4.30. Did you try it ?

Sorry , it's work fine now , great freak !
What is it ? GtkGlext , gtkglarea ?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Cpl.Bator wrote:Sorry , it's work fine now , great freak !
What is it ? GtkGlext , gtkglarea ?
Its the normal SDL window embedded into the Gtk one. Its quite a hack but it seems to work.
quidquid Latine dictum sit altum videtur
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post by flaith »

freak wrote:
Cpl.Bator wrote:Sorry , it's work fine now , great freak !
What is it ? GtkGlext , gtkglarea ?
Its the normal SDL window embedded into the Gtk one. Its quite a hack but it seems to work.
:? Which one got the focus ? I stop programming my little games cause there is no more answers from Examinekeyboards

example :
PB420 : http://flaith.free.fr/public/games/inva ... vaders_420
PB430 : http://flaith.free.fr/public/games/inva ... vaders_430

compiled with the same source without changes
“Fear is a reaction. Courage is a decision.” - WC
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Did you file a bugreport about this ?

I actually didn't work on the input stuff, so Fred has to check that.
quidquid Latine dictum sit altum videtur
citystate
Enthusiast
Enthusiast
Posts: 638
Joined: Sun Feb 12, 2006 10:06 pm

Re: Croos-platform?

Post by citystate »

Kaisen2100 wrote:Hello, i am thinking in creating a game (program is the right word) to make you able to play, by email, ...
if your game is played by email, why do you need cross-platform? I mean, if your program receives and sends the players' moves via email, it shouldn't matter the platform the server is on - and the client programs would already be the players' email clients...
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post by flaith »

freak wrote:Did you file a bugreport about this ?

I actually didn't work on the input stuff, so Fred has to check that.
i've just added more info on my previous bugreport here :
http://www.purebasic.fr/english/viewtop ... 227#271227

thanks :wink:
“Fear is a reaction. Courage is a decision.” - WC
Post Reply