Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / PurePlugin

Author
Message
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 12th Apr 2007 01:27
Not sure what this does but does it make a dll out of functions you write in DBPro?

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 12th Apr 2007 03:29
My understanding of it is that it allows you to easily create DBP Plugins with the use of the PureBasic Language. - Correct me if I am wrong.

Cash or Freddix might have more info on that one.

Terrain Generation has a whole new face.
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 12th Apr 2007 05:11
I went back and searched it and it seams to be you write the plugin in PureBasic. By use of PurePlugin you could call DBPro commands in your plugin. So you could make dll version of the functions you would had wrote in DBPro. Does that some it up?

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 12th Apr 2007 06:42
Right.

Terrain Generation has a whole new face.
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 12th Apr 2007 12:03
Exactly.

PurePLUGIN is a full package with all needed files (+samples) to create TPC Plugin for DarkBASIC Professional using PureBASIC language.
More to this, PurePLUGIN contain all definitions to allow you to directly use the DarkBASIC Professional commands directly inside your Plugin using special Commands/Functions.
PurePLUGIN bring DarkBASIC Professional plugin creation to another level. It's now really easy and fast to create a plugin for DarkBASIC Professional. It's also easy to migrate a function you've created in DarkBASIC Professional to PureBASIC source code format to use in your TPC Plugin.

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 12th Apr 2007 16:05
ok that sounds great. I also had read that some folks was gaining fps converting there DBPro function into a dll. I am going to buy purebasic and pureplugin this weekend!

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 13th Apr 2007 00:37
Yes For example, in the PureSCROLLING demo, I get a 16% Performances up using PureBASIC DLL :p

Take a look at here:
http://forum.thegamecreators.com/?m=forum_view&t=100668&b=5

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 13th Apr 2007 02:59
@Freddix

Thanks for that link. DBPro mode I got 444 fps and in TCP mode I got 520 thats a 76 fps increase! This going to be worth it!

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 14th Apr 2007 03:35
Just bought PureBasic and PurePlugin just waiting for email for PurePlugin

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 15th Apr 2007 00:15
Hi I am just tring to make a dll from the sample dll.pb file. In this file it says

I replace whats in the quotes with my info I got from you in my e-mail. Then I go to complier-create executable. I open up PurePLUGIN-SampleDLL.res in ResHacker. It already shows the stringtables so I exit. Ok I open up my dll in XVI32 and replaced AConstructor00YAXXZ with ?Constructor@@YAXXZ. I put my dll along with pureplugin.dll in user plugins in DBPro. I typed the command part of each command line in the string tables. DBPro says it does not uderstand the command. It is apparent I am missing something,so please help!!

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 15th Apr 2007 00:25
No

Compile your DLL from PureBASIC into DLL format.
Open your DLL with Resource HACKER
Add new resource and add the SampleDLL.res
save the DLL
Open XVI32
Open your DLL into XVI32
Replace the Constructor name like described
Save your DLL
Copy it in the PlugIN-USER
Copy also PurePLUGIN.dll in the PlugIN-USER
Run the DBPro sample

It may work.

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
dononeton
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: Tusaloosa, AL : USA
Posted: 15th Apr 2007 00:49
Thank you Freddix. Everything is working now. Very cool stuff

AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB

Login to post a reply

Server time is: 2024-11-22 16:40:01
Your offset time is: 2024-11-22 16:40:01