Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Smart people ~ Great Scripts
User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by DesignDevil » 13 Aug 2009, 09:20

Hello tS'lers - i present here my actual project.

I'm working on the conversion of the tS 6.6 SDK from C++ to FreeBasic. That means, you can now develop your tS PlugIns within a Basic Dialect nearly to the good old QBasic - or any other Basic Language.

Why FreeBasic?

- As the name say: FreeBasic is free - it is a open source project
- The Language is easy to understand (to learn) but powerfull enough to work with
- FreeBasic creates fast and small code without any runtime librarys
- There are a lot of librarys which can be used with FreeBasic (i.e. DataBase, Graphic Libs etc.)
- A really good help is available as documentation (in english and also german) and also a good comunity in both languages
- And at last point: i don't like C++ ;)

So, what have i done so far?

- I converted the C++ header files into the FreeBasic language (still in progress).
- I figured out the problems with using resources in the dll. That means: you can easly create your PlugIn Window per Drag 'n Drop in the FormEditor of the FreeBasic IDE (i use FBEdit as example) and start with coding.
- I wrote my first PlugIn to test the possibility if i get this to work (still in progress - see attached image)

CONLUSION:
If you are interested by this project and writing your own tS PlugIns - maybe you have experience in C++ OR any Basic language - feel free to help me.
You do not have the required permissions to view the files attached to this post.
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by froo » 13 Aug 2009, 19:35

Hi DesignDevil. It's good to see this. Keep it up! :)

User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by DesignDevil » 14 Aug 2009, 19:32

So, i'm finshed.

I have written a tutorial about using the FreeBasic conversion of the trueSpace SDK and i made a package which inludes:

- The original SDK
- A sample TSX (Wheely)
- A Tutorial about installing and using the FreeBasic conversion, using the sample TSX and writing your own TSX in FreeBasic

you get the package on my website (SDK + STUFF): http://www.designdevil.de

Questions, Tips - give it to me ;)
Last edited by DesignDevil on 16 May 2010, 21:41, edited 1 time in total.
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6

User avatar
Emmanuel
Master Chief Petty Officer
Posts: 515
Joined: 14 Jun 2009, 06:47

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by Emmanuel » 16 Aug 2009, 17:38

Oooooh ! This looks VERY interesting.

You deserve a huge thank you for this awesome work :superbanana: :superbanana: :superbanana:
I have plenty of plugins ideas in mind but a very little knowledge of C++... so this could be the chance to make my dreams come true !

At the moment I am rather busy but I promise I will be back soon on this thread !

User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by DesignDevil » 16 Aug 2009, 20:47

Thanks a lot.

Well, it is not finished yet. From time to time i find a issue in some of the functions. But, hey, it is the v1.0 ;)

For now i try to translate all original sample plugins into FreeBasic to get more experience and to give more samples.

FreeBasic himself is not the easiest basic language but this is founded in the "role" that his has to play as a "up to date compiler".

It's not so easy to learn as to the QBasic time. But if you have a bit experience in VisualBasic, PureBasic or or another language, then you can find here a good language to work with.

The reason for all that is, that i self have a lot of ideas in mind for plugins. And this although i have a big collection on my website. Also i write computer programs since 20 years now, but C++ was ever to difficult to me. I don't no why because i can write in many Basic dialects, php, delphi. Also JavaScript (a bit) ... but C++ doesn't go into my head ;)
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6

User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by DesignDevil » 20 Aug 2009, 12:03

Hi folks ... the version 2.0 is UP ;)

I have rewritten the complete code as i detected that the created code by the SWIG converter was terrible wrong.

I rewrote every line of code so that we now don't have to assign every variable as a pointer - which is a lot easier to write and, more importend, to understand.

I rewrote also the tutorial and translated more samples from the original SDK into FreeBasic.

Be aware of the following: The "viewcam" sample doesn't work correctly. But also the original does that not. But my FreeBasic version does the same failure so i'm sure i translated the code correctly ;)

If anyone has a idea how i could fix that contact me - it would be cool to get this to work.

Download on my website .

And now: let's write some cool plugins.
Last edited by DesignDevil on 16 May 2010, 21:42, edited 1 time in total.
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6

User avatar
First Light
Senior Chief Petty Officer
Posts: 169
Joined: 22 May 2009, 11:17
Type the number ten into the box: 0
Location: Michigan, U.S.
Contact:

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by First Light » 20 Aug 2009, 13:42

Thanks, DesignDevil. I hope to try something similar for the Workspace Side of tS 7.61 in the future.

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by froo » 21 Aug 2009, 12:33

Hi DesignDevil.
You might want to create a thread for the FreeBasic" TS 6.6 SDK at http://www.truespaceplugins.com" onclick="window.open(this.href);return false; as well:


http://truespaceplugins.com/forum.html" onclick="window.open(this.href);return false;

Froo

User avatar
DesignDevil
Master Chief Petty Officer
Posts: 500
Joined: 22 May 2009, 08:52
Type the number ten into the box: 0
Location: Neuruppin, Germany, Earth.
Contact:

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by DesignDevil » 21 Aug 2009, 12:42

Sound like a good idea - thx froo.

btw - FREEbasic not REALbasic ;)
I still use TrueSpace 6.6
Link: My Youtube Channel
Link: www.DesignDevil.de - Plugins, Tutorials and more about TrueSpace 6.6

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Post by froo » 21 Aug 2009, 14:12

Doh sorry about that. Coffee was not yet brewed. That's what I get for thinking before caffeine...

I fixed it. Thanks.

Froo

Post Reply