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 / Serial port/RS232 Commands or dll ?

Author
Message
MasterChief
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: Washington, USA
Posted: 29th Oct 2004 12:47
Anyone know of a .dll or plug-in for DarkBasic Pro to send and receive serial data via comm ports?

I have a project that is a Mech Warrior style simulator which you would climb into and fight your opponent via a network/internet. It has 6 axis of movement from the platform which responds to walking, being hit, runnding, turning, etc.
It is like to a real flight simulator but operates from electro-hydraulic pilot valves.
Two will be built for the players. A DarkBasic flight simulator game could also be programmed. You get the picture

So...I would greatly appreciate any assistance in a DarkBasic Plugin/command

Thanks!
Doyle
Torrey
19
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 29th Oct 2004 13:51
I know the instructions in assembler, but the problem is that windows restricts access to the ports directly, so the only answer is to write a hardware driver. And when it comes to dbpro, that's really not a good solution.
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 29th Oct 2004 18:26
Well, you don't need a driver, you can use the Windows API for that (CreateFile, SetupComm, GetCommState, BuildCommDCB, GetCommState, SetCommTimeouts etc.).
I think I saw a plugin that supports the serial ports, but I don't remember where.

Play Nice! Play Basic!
The ultimative 2D Game Language.
Version 1.00 available now!
Torrey
19
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 29th Oct 2004 18:33
You're right about that API, I was going to edit my post, but I just left it at that. On one of the mods sites there is a plugin for this I think?
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 29th Oct 2004 18:40
That's possible, I don't remember who wrote it, though.

Play Nice! Play Basic!
The ultimative 2D Game Language.
Version 1.00 available now!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Oct 2004 21:37
It was TCA, but it's a 'use at your own risk' and a 'don't expect support' type DLL.

I don't even know if he still has it on his site, but if not, I'm sure he'll send it or the source to you.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
MasterChief
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: Washington, USA
Posted: 31st Oct 2004 04:03
Thanks for the update. The API routines might be the best approach. Please provide additional suggestions...

THANKS!
Warm regards,
Doyle
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th Nov 2004 01:46 Edited at: 4th Nov 2004 02:30
MasterChief,

I am adding serial port communications to my not yet released DBP_VB6LIB dll. I will have something you can test soon.

EDIT: OK, inital tests are successful! I have referenced the mscomm32 class in my DLL and have successfully opened,closed,queried the comm port from a DBP exe. Now on to the fun stuff, sending and receiving actual data. I will keep you posted.


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th Nov 2004 03:16
Sending data complete. Now onto receiving....
I will most likely make a thread in WIP Called DBP_VB6LIB so this will be seen and available to the community. If I no longer post updates here they will be found in the new thread. I wont create the thread until the first version is available for download, which should be later on today.

cheers


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
Teh Go0rfmeister
20
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 4th Nov 2004 03:16
wait- cr, isnt that the dll u sent me?!?!?!? wow... now to haxor and 1337orize it to find out its other functions...

can you give info on what stuff's going to be in this plugin? your plugins are the cool

CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th Nov 2004 03:18 Edited at: 4th Nov 2004 03:21
its the same dll but with way more stuff. right now it has the password box and the Comm Port stuff I am almost done adding. As far as other stuff in it, some useful stuff similar to netlib, but without the net framework overhead. File functions & INI file functions will prolly be first on the list after I finish the comms stuff.


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
MasterChief
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: Washington, USA
Posted: 10th Nov 2004 10:09
CattleRustler,
I can't wait!! Sounds like you are real close!

Thank you!!!
Doyle
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 10th Nov 2004 12:13
MC

there is a version available, I will post it tomr

me sleepz0rz now


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 11th Nov 2004 04:47
doc file included

http://www.mod2software.com/dbp/dbp_vb6lib.zip


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!

Login to post a reply

Server time is: 2024-05-11 04:41:04
Your offset time is: 2024-05-11 04:41:04