View previous topic :: View next topic |
Author |
Message |
Comtois Member
Joined: 01 Aug 2007 Posts: 7
|
Posted: Wed Aug 01, 2007 8:57 pm Post subject: How to create a PlugIn with PureBasic |
|
|
Hello all.
I'm new here and i dont speak very well english
I just start to create a PlugIn with PureBasic. It does nothing except to display the scene in a Tree. It is just to learn how to create a PlugIn.
You can download the PlugIn to give it a try.
http://herved25.free.fr/sources/TestPlugIn.zip
Code source is in the Archiv.
[EDIT]
Small update , added Panel and a tree for primitives , materials, lights ...
Last edited by Comtois on Thu Aug 02, 2007 9:31 pm; edited 1 time in total |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Wed Aug 01, 2007 9:03 pm Post subject: |
|
|
I haven't seen or tested your plugin but I just wanted to say it is very nice to see a language like PureBasic being used to create plugins for DeleD. Keep up the good work! |
|
Back to top |
|
|
Nocturn DeleD PRO user
Joined: 08 Aug 2004 Posts: 635
|
Posted: Thu Aug 02, 2007 11:48 am Post subject: |
|
|
It works here perfectly, even with 1.7 and the 1.71 beta.
Nice Plugin template as PB source (well commented). Thanks! |
|
Back to top |
|
|
espritcool Member
Joined: 02 Aug 2006 Posts: 91
|
|
Back to top |
|
|
Comtois Member
Joined: 01 Aug 2007 Posts: 7
|
|
Back to top |
|
|
Comtois Member
Joined: 01 Aug 2007 Posts: 7
|
Posted: Sun Aug 05, 2007 10:08 am Post subject: |
|
|
i try to import a scene.
So i create a xml with PureBasic, and send it to Deled.
Deled reply
Quote: |
---------------------------
Error
---------------------------
CallBackProc: TPluginManager.SetData: Unexpected character '?' in input (...<?xml vers), position (1,3).
---------------------------
OK
--------------------------- |
Yes, it's normal , because PureBasic add a XML declaration
Quote: |
<?xml version="1.0" encoding="UTF-8"?> |
Why you dont use it ? |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sun Aug 05, 2007 5:13 pm Post subject: |
|
|
Well... euh... we just don't. No particular reason for that. I think we should probably start using it though. It is the "right thing to do", so to speak. For now, you just need to remove that line yourself. |
|
Back to top |
|
|
Comtois Member
Joined: 01 Aug 2007 Posts: 7
|
Posted: Mon Oct 15, 2007 8:10 am Post subject: |
|
|
PB Team has added a special flag for me and Deled
Quote: |
#PB_XML_NoDeclaration = 2 ; do not add the <?xml ...?> declaration |
See here |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Mon Oct 15, 2007 6:30 pm Post subject: |
|
|
That page won't load for me right now, but these guys are officially our heroes now! Good news, thanks for letting us know.
As a sidenote, we'll have DeleD support (read: ignore, it's not like we'll be supporting a gazillion different encodings all of a sudden) soon. |
|
Back to top |
|
|
|