Page 1 of 2
Croos-platform?
Posted: Sat Jan 17, 2009 12:22 am
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
Posted: Sat Jan 17, 2009 2:39 am
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.
Posted: Sun Jan 18, 2009 2:51 pm
by Kaisen2100
no more comments lol?
thanks
Posted: Sun Jan 18, 2009 7:48 pm
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.
Posted: Sun Jan 18, 2009 11:33 pm
by Kaisen2100
purebasic some commands that i cant use in mac / linux

Posted: Mon Jan 19, 2009 8:20 pm
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.
Posted: Tue Feb 17, 2009 4:37 am
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
Posted: Tue Feb 17, 2009 7:01 pm
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.
Posted: Wed Feb 18, 2009 1:57 am
by freak
> Two windows are openned if you wan't use windowedscreen.
This works since 4.30. Did you try it ?
Posted: Thu Feb 26, 2009 2:47 pm
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 ?
Posted: Thu Feb 26, 2009 2:55 pm
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.
Posted: Thu Feb 26, 2009 4:30 pm
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
Posted: Fri Feb 27, 2009 12:52 am
by freak
Did you file a bugreport about this ?
I actually didn't work on the input stuff, so Fred has to check that.
Re: Croos-platform?
Posted: Fri Feb 27, 2009 1:37 am
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...
Posted: Fri Feb 27, 2009 12:01 pm
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
