GLBasic forum

Main forum => GLBasic - en => Topic started by: bigsofty on 2007-Aug-25

Title: Newton
Post by: bigsofty on 2007-Aug-25
Not a small request I know... but any chance of the Newton library being officially inserted into the GLBasic command set. Full compiler error checking, manual and run time error support. As a separate C++ library its a little unapproachable by your average basic programmer.

It could be a big selling point.

Just an idea.
Title: Newton
Post by: Kitty Hello on 2007-Aug-25
uhm... the newton is implemented as a .gbas file, whic offers everything as glbasic functions. With tooltip help, a manual (Right click, tools/Create Help) and all.
I can't see any benefit of implementing newton inside GLBasic. Also, there's no PocketPC/GP2X version for it.
I was planning on making a tutorial video, though. Noone has used it AFAIK, but it's really easy to use.
Title: Newton
Post by: bigsofty on 2007-Aug-25
The reference material is quite unapproachable for a newby, as its based on C++ but I do see your point with PocketPC / GP2X though.
Title: Newton
Post by: Brice Manuel on 2007-Aug-26
QuoteNoone has used it AFAIK,
I used it for a pinball game.
Title: Newton
Post by: bigsofty on 2007-Aug-27
Quote from: Brice Manuel
QuoteNoone has used it AFAIK,
I used it for a pinball game.
In GLBasic?
Title: Newton
Post by: Kitty Hello on 2007-Aug-27
\o/
Title: Newton
Post by: Brice Manuel on 2007-Aug-27
Quoten GLBasic?
Yeppers
Title: Newton
Post by: Moru on 2007-Sep-09
Pinball game? Gimme! :-)
Title: Newton
Post by: Brice Manuel on 2007-Sep-14
Quote from: MoruPinball game? Gimme! :-)
I will release it eventually.  I have rewritten it so it doesn't use newton.  It is not really heavy enough physics-wise to need newton.  

It is being done as a tribute to an 80's rock band called "Space Band" and will use artwork from their album cover.  I have been dealing with some health issues and haven't had a chance to get back with the band's founder/guitarist to see what songs (which will be background music) he wants to use for the game.

Nothing too fancy, though, just a really retro styled table, with nothing fancy.  Old-school pinball.  The only thing unique is it is an officially licensed game and will feature authentic Space Band artwotk and music.  More than anything else, it is a tribute to a great old band, and since the band's founder was a "Pinball Wizard" back in the day, this seemed a pretty fitting tribute ;)
Title: Newton
Post by: Moru on 2007-Sep-14
Sounds interesting, looking forward to see your work completed!
Title: Newton
Post by: bigsofty on 2007-Sep-14
So there is no longer pinball game using Newton? Do you still have the sources for that?
Title: Newton
Post by: Kitty Hello on 2007-Sep-15
Yes, that would be a good source for starting with newton.
Title: Newton
Post by: Brice Manuel on 2007-Sep-17
Quote from: bigsoftyDo you still have the sources for that?
Nope.
Title: Newton
Post by: Moru on 2007-Sep-19
Are the Newton samples supposed to be able to compile on a demo-compiler or should I give up getting them to run? I only get this error message:

"..\NewtonSDK.gbas"(22) error : redefinition as different type

This is on the first #ifdef line, if I remove all those and only leave the windows line I still get problems lower down, same error message.
Title: Newton
Post by: Kitty Hello on 2007-Sep-19
What version are you using? Do you have the SDK 5.x?
Title: Newton
Post by: Moru on 2007-Sep-19
I just downloaded everything fresh today
Title: Newton
Post by: Kitty Hello on 2007-Sep-20
OK, please delete the folder "My Documents\GLBasic\Samples". Then try a live-update.
If no update is online, remove the registry value:
HKEY_CURRENT_USER\Software\Dream_Design\GLBasic\HomePath_Version
and restart the editor. It should now copy the sample files again.
Title: Newton
Post by: Moru on 2007-Sep-20
Yes, it copied the samplefiles but it's still doing the same error, can you get it working? It's the same on all of the example files, complaining on the NewtonSDK.gbas

Code (glbasic) Select
INLINE
// Newton:

#ifdef LINUX     // <--- compiler is complaining on this line
#define NEWTON_DLL "newton.so"
#else
#define NEWTON_DLL "newton.dll"
#endif
Code (glbasic) Select
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2007.258 - 2D, WIN32

"..\NewtonSDK.gbas"(22) error : redefinition as different type
Title: Newton
Post by: Kitty Hello on 2007-Sep-21
What is going on!? Can anyone confirm this bug? It works perfectly on my new installation as well as on a virtualPC image... Oh dear.
It should not complain in an INLINE function at all...

Oh!!! Got it. You have the 2D SDK. Thus, INLINE is a no-no for you. It's only in the demo. Which is pretty stupid. You have more rights than a demo, but the demo can compile demo-inlines, you can't.
Hmmm.. Serious problem here. I'll look how to solve that.
Title: Newton
Post by: Moru on 2007-Sep-21
no worries with that for my sake, I'm soon buying the full package but might be nice for future demo-programmers that wants to try the language. Any chance for a linux compiler or is Wine supported and will it be supported in the future?
Title: Newton
Post by: bigsofty on 2007-Sep-22
Quote from: GernotFrischOh!!! Got it. You have the 2D SDK. Thus, INLINE is a no-no for you. It's only in the demo. Which is pretty stupid. You have more rights than a demo, but the demo can compile demo-inlines, you can't.
Hmmm.. Serious problem here. I'll look how to solve that.
How about a watermark if certain commands are used?
Title: Newton
Post by: Kitty Hello on 2007-Sep-22
Bigsofty: That's the way it should be, if you use any command you don't have a license for. INLINE is a bit of a problem, here.

Moru: Linux compiler is there (Shift+F8), but the editor (IDE) is not, yet. We're doing serious considerations and tests right now. Since a Mac IDE would be cool, too.