Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create a PlugIn with PureBasic

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins
View previous topic :: View next topic  
Author Message
Comtois
Member


Joined: 01 Aug 2007
Posts: 7

PostPosted: Wed Aug 01, 2007 8:57 pm    Post subject: How to create a PlugIn with PureBasic Reply with quote

Hello all.

I'm new here and i dont speak very well english Confused

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
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Wed Aug 01, 2007 9:03 pm    Post subject: Reply with quote

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! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nocturn
DeleD PRO user


Joined: 08 Aug 2004
Posts: 635

PostPosted: Thu Aug 02, 2007 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
espritcool
Member


Joined: 02 Aug 2006
Posts: 91

PostPosted: Thu Aug 02, 2007 1:14 pm    Post subject: Reply with quote

For me too, the plugin play good
_________________
Formation gratuites
Mmorpg gratuit
Enemy territory
Textures gratuites
Back to top
View user's profile Send private message MSN Messenger
Comtois
Member


Joined: 01 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 7:11 pm    Post subject: Reply with quote

Thank you all.

New version , now it display all the scene. Primitives, materials and lights.

Code source is in the archiv.

http://herved25.free.fr/sources/TestPlugIn.zip
Back to top
View user's profile Send private message
Comtois
Member


Joined: 01 Aug 2007
Posts: 7

PostPosted: Sun Aug 05, 2007 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Sun Aug 05, 2007 5:13 pm    Post subject: Reply with quote

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. Smile For now, you just need to remove that line yourself.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Comtois
Member


Joined: 01 Aug 2007
Posts: 7

PostPosted: Mon Oct 15, 2007 8:10 am    Post subject: Reply with quote

PB Team has added a special flag for me and Deled Smile

Quote:
#PB_XML_NoDeclaration = 2 ; do not add the <?xml ...?> declaration


See here
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Mon Oct 15, 2007 6:30 pm    Post subject: Reply with quote

That page won't load for me right now, but these guys are officially our heroes now! Smile 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum