Page 1 of 2

Posted: Thu Apr 25, 2002 3:06 pm
by BackupUser
Restored from previous forum. Originally posted by bluez.

i'm not entirely sure if this is the right forum to ask, but here it goes... i am looking into programming several applications, amongst which games... nothing serious, just fun

having used gfabasic in the past (great but discontinued language) i would like to have your opinion on doing some things in purebasic...

- tcp/ip and udp (either using direct api calls or build in commands), got this properly working in gfabasic

- bitblit (sprites and stuff, got this properly working in gfabasic)

- sound (multiple wav files, select one, set volume, fade in / out, start / stop playing etc.) don't have this working under gfa

- compatibility... what are the experiences between the different versions or the latest version under the different os's?

to give some examples in what direction i would try to work... something like command & conqueror, and something like edonkey...

any comments would be appreciated... as i am trying to decide wether to buy it or not


... this copy of me has been unregistered for 36 years (no spam please)

Posted: Thu Apr 25, 2002 6:06 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.

PureBasic is a very fine language for both. Game and Application coding.
But let me be more specifie:

Application coding is very easy, and its very usefull that the windows API can be fully implemented in your code. That makes PureBasic more powerfull then other languages.

Gamecoding is more hard. Yes, its possible but if you do not watch on the filesize and you are not intrested in portable your game to amiga or linux, then Blitz2d/3d should be your choice. (Sorry Fred!)

I recommand a combination of both. PureBasic is VERY optimized, and is not as easy then BlitzBasic for beginners. As you wrote you coded in GFABasic you are maybe an experienced coder.

Join our community and everyone (also included the coder of PB, Fred) will support you in developing your stuff!

Hope I could help.
Cheers
Mike

Tranquilizer/ Secretly!
Registred PureBasic User

Posted: Thu Apr 25, 2002 6:52 pm
by BackupUser
Restored from previous forum. Originally posted by merendo.

I agree with tranquil. PureBasic is a really good language, but it´s very young, still has lot´s of bugs ( Sorry Fred, I´m sure, you´ll soon fix them :wink: and it´s not for beginners. If you´re just starting out, you should start with BB or better HTML and start there with little Java-script codes.
I´m not sure if PB already makes it possible to use the UDP protocoll, BB does.PB makes you possible to access the systemregystry to save informations for your games or application, BB doesn´t.Finally, I think both languages are good. I worked with both, but I think game-programming is much better in BB than in PB. But as tranquil already told you: You can make applications in quick time.AND: If PB doesn´t offer you the things you need, you may use the InlineASM support (If you speak ASM, but I don´t think so :wink:
But if you´re coding just for fun I recommend you to use Java-script. There you can also open dialogs and draw buttons, and so on...

Greetings, merendo

We always need to hear both sides of the story (by Phil Collins)

Posted: Fri Apr 26, 2002 4:50 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

HTML = HyperText MARKUP LANGUAGE

Has nothing to do with programming languages.

Recommend JAVA-Script for people interested
in programming ??
Never heared that before, but maybe thats the
new generation.... hopefully not.

cya,
...Danilo

(registered PureBasic user)

Posted: Fri Apr 26, 2002 6:12 am
by BackupUser
Restored from previous forum. Originally posted by tranquil.

@Bluez:

By the way. I'M coging and edonkey clone in PureBasic. And it will be much better then the original one. (Hope so) :)
Progress on client: 30% Progress on server 45%

Mike

Tranquilizer/ Secretly!
Registred PureBasic User

Posted: Fri Apr 26, 2002 7:46 am
by BackupUser
Restored from previous forum. Originally posted by TronDoc.
By the way. I'M coging and edonkey clone...
for dummies like me, what's an "edonkey"? -Joe

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:

Posted: Fri Apr 26, 2002 9:07 am
by BackupUser
Restored from previous forum. Originally posted by tranquil.

Its a Filesharing tool like WinMX or Napster. But its very intelligent.
If you are downloading big files the client connects to more people who sharing this file and transfers it at the same time. So you get often high download rates.

http://www.edonkey2000.com

Bye

Tranquilizer/ Secretly!
Registred PureBasic User

Posted: Fri Apr 26, 2002 11:08 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> i am trying to decide wether to buy it or not

PureBasic is not really suited to BASIC beginners, simply because of its power
and partly-inadequate documentation. That is, a lot of stuff is missing in the
docs, and newbies usually get the answer to a problem here as a result. That
said, PureBasic is extremely powerful, and can do all that you asked in your
post (except UDP, I think). I don't know how well it would go with a Doom-type
game engine, but for apps and simpler games it is superb. And the support that
you get, both in these forums and by Fred (the author) himself, is second to
none. Buy it. I promise you won't regret it -- I didn't.


PB - Registered PureBasic Coder

Edited by - PB on 26 April 2002 12:12:56

Posted: Fri Apr 26, 2002 11:15 am
by BackupUser
Restored from previous forum. Originally posted by bluez.

mmmm.... tranquil, you might be following the same trail as i am... although you might be on the wrong track when dealing with servers... (but i'm happy to discuss that in another forum, appears to be a bit off topic in here)

can you give me a short sample of the code? (just a few lines so i can see how things like ports look like in purebasic)

(any former gfa users in here?)

below you can find a sample in gfa... of tcp/ip stuff, that i do using winsock calls... it works... i think the code will look a bit mangled due to copy / paste but perhaps it's a good indication of what (beginners) level i am at


IF test_socket_listen!=TRUE AND test_socket_n% 0 AND ws_retval% 0
PRINT ws_retval&;" error"
'
' very unlikely, this should never happen unless you specify the wrong socket
'
ELSE
PRINT ws_retval&;" okay"
ENDIF
'
' winsock dll: gethostbyaddr
'
' retval%=P:(ws_dll_gethostbyaddr%)(L:address_p%,address_l&,type&)
'
' in: address_p% a pointer to an address in network byte order
' address_l& length of the address
' type type of address
' out: retval% pointer to a hostent structure
'
' note: immediately read the hostent structure, there is no guarantee that it
' stays in place or stays correct
'
ws_retval%=P:(ws_dll_gethostbyaddr%)(L:V:test_caller%(test_socket_n%),4,0)
IF ws_retval%>0
PRINT "found: ";
PRINT CHAR{LONG{ws_retval%}}
ELSE
PRINT "not found"
ENDIF
'
ws_inet_ntoa(test_caller%(test_socket_n%))
PRINT "caller ";ws_inet_ntoa$;": ";test_caller$(test_socket_n%)
'
'
PRINT test_socket_max%-test_socket_n%;" connections available..."
'
IF test_socket_n%=test_socket_max%
'
' reached the maximal number of sockets designated for connections, close the listening socket
'
PRINT "close socket used for 'listen' ";ws_socket&;"... ";
ws_retval& = P:(ws_dll_closesocket%)(ws_socket&)
IF ws_retval& 0
PRINT ws_retval&;" error"
ELSE
PRINT ws_retval&;" okay"
ENDIF
test_socket_listen!=FALSE
PRINT "no more connections accepted"
PRINT "disconnect clients or press [x] to exit..."
ENDIF


... this copy of me has been unregistered for 36 years (no spam please)

Posted: Fri Apr 26, 2002 11:49 am
by BackupUser
Restored from previous forum. Originally posted by fred.
I agree with tranquil. PureBasic is a really good language, but it´s very young, still has lot´s of bugs ( Sorry Fred, I´m sure, you´ll soon fix them :wink: and it´s not for beginners.
Could you post all the bugs you know here in the bugs section ? I will be very glad to fix them if I know them. At the current state (v3.10) no bugs are on my fix list, so for me, PB is bug free.

Fred - AlphaSND

Posted: Fri Apr 26, 2002 12:54 pm
by BackupUser
Restored from previous forum. Originally posted by freak.
At the current state (v3.10) no bugs are on my fix list, so for me, PB is bug free.
Take a look at my signature

Hey guys, PB is young, that's true, but bugs are fixed faster than anywhere else I know! So bugs are no problem, even if you find one, you won't have to deal with it for long.

Keep up the good work, Fred!!


I don't think that PB is much harder to learn for beginners than any other language. You can write small Progs in Minutes! And you don't have to use
advanced stuff like API, but you can still add it, if you want.

The only problem for beginners with PB is, that there are not much Tutorials, or even Books like for other languages.

Timo

--

A debugged program is one for which you have not yet found the conditions that make it fail.


Edited by - freak on 26 April 2002 14:17:23

Posted: Fri Apr 26, 2002 2:24 pm
by BackupUser
Restored from previous forum. Originally posted by TronDoc.
At the current state (v3.10) no bugs are on my fix list, so for me,
PB is bug free.Fred - AlphaSND
I only see v3.00 on your web site?

Posted: Fri Apr 26, 2002 5:55 pm
by BackupUser
Restored from previous forum. Originally posted by merendo.

@Fred:
No bug. That´s wrong, you forgot the bug with the Printer. HP DeskJet 950C. Don´t think that I´m fussy, but... :wink: Did you already find a sollution for the bug?

@Danilo:
I can assure you: JavaScript will NOT be the new generation. There you don´t have to be scared :wink:. HTML is a script. Not a language (Did I every say that?). Anyway, I´m still thinking, that everything depends just on the programmer. Not on the language.

Bye, merendo

We always need to hear both sides of the story (by Phil Collins)

Posted: Fri Apr 26, 2002 8:42 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
@Fred:
No bug. That´s wrong, you forgot the bug with the Printer. HP DeskJet 950C. Don´t think that I´m fussy, but... :wink: Did you already find a sollution for the bug?
Hum, this is ONE bug, and already fixed (just look at your own topic and see my answer, from 14 april. Where are all the others bugs (You said 'lot of bugs') ?

Fred - AlphaSND

Posted: Sat Apr 27, 2002 6:51 am
by BackupUser
Restored from previous forum. Originally posted by Rings.

As one of and early registered PureBasic - User i have following Statement:

1. PureBasic is easy to learn, coz its a Basic-Language
2. Migration from VB is a bit tricky,but not difficult.This is
while Pure has its ground-syntax from Amiga.But there are only a handfull
commands that has a other syntax than in QuickBasic,VB or even GFA.
3. You can do that in PureBasic.Believe it.If you ever want to code a small, efficient,fast and systemnear Programm, its easy in Pure.You have full acess to the Windows-api.If you ever want to make a connection using UDP ? why not doing it easily with the Windows-Api.
4. PureBasic has a very fast 'bug-support'
In no other Language i know and own, there is such a fast support.
This is possible, coz Pure is based on a lib-system and Fred is one of us.
And note, Fred can only fix bugs as he knows.So mail him or
take a look at the IRC Channel: #PureBasic
5. PureBasic has Inline-ASM.That is so cool.
6. Its cheap.I owned also Powerbasic($199) which has not such possibilities.
7. As a pro-developer i have tested a couple of languages.
So everyone of those languages has it's benefits.
In VB,Delphi you can easy write Buisness/Desktop-appz.
In BB3D you can write 3D-Games(not so easy at it seams).
And in Pure you can write easy appz,tools and 2D-games very easiliy and with no unneeded overhead like in BB,VB or Delphi.
Pure can access ODBC, the standard in Database-Access.Its easy and cheap
if you use MySQL.
If you want to code with a 3D-lib, use one of those in the market, even
some OpenSource-ones(search for Allegro).The LibCommand's can do that for you.

PureBasic is one of my favorite languages.

Its a long way to the top if you wanna .....CodeGuru