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.

DarkBASIC Discussion / DBC Program <> IExplorer?

Author
Message
C l a r k
21
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 21st Jun 2004 14:57 Edited at: 21st Jun 2004 15:18
Hi-
I'm programming a forum based MUD game online, except with many components programmed in DBC (fighting, shopping, working for money etc.) I figured that that shouldnt be to hard...for a battle it might be structured like: IE relays player names to a program that waits in the background for IE's command, the program comes to the front, two SQL queries are run, each player's stats are retrieved, multiplayer functions should work for the actual battle (not too hard with only two people,) and finally, two more SQL queries are run to update the stats of each player.

My question is: is it possible for IE to relay information to a DBC program? I've seen this work with some things on Yahoo...

PS-Please don't flame me and say that this is too ambitious...I know it is. There's probably an 80% chance of this proving to be way too hard; I'm just toying around and seeing whats possible.

EDIT: I had an idea...what if the two programs relayed info via SQL?
There could be a field in the users table that could be like "current_DBcommand"...whenever the online script wanted the DBC program to do something, it could update that field with a new command. (There would also be a table for battle info, where the DBC program could extract the two player's names.) The player's user-id could be saved elsewhere on the computer...let's call is $usrid in both codes. It could be something like...

PHP:


DBC (SQL query format is probly wrong...I'll just use the PHP one.):


Concept Software: http://concept.dbspot.com

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Jun 2004 15:07
I'm not 100% sure about how well a DBC app can run on a server.

If you're running it locally, then you shouldn't have any troubles, but on a server, it would need to be a Windows OS server and have DirectX 9.0b installed.
But, if some how it works, then the way to do it is to call the program with command line switches, and use DBC's CL$() command to get what you passed it.

Then, you'd have to put the results of the calculations into a file or somesuch, which your script can read.

One last thing... You're right about you're title of this thread, a DBC app is not equal to internet explorere

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
C l a r k
21
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 21st Jun 2004 15:19
I knew someone would say that about the title...perhaps it should be <-> to indicate the whole transfer idea...

No, each player would run the program from his/her computer, it wouldnt reside on the server.

Concept Software: http://concept.dbspot.com

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Jun 2004 16:10
You'll have a hard time executing an exe from an online script... If you can, then you just found a new way to infect people with viruses...

Anyway... good luck.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
C l a r k
21
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 21st Jun 2004 22:47
Whoopee.

No, not neccisarily (sp?). The exe would have to be run from the client's machine.

Concept Software: http://concept.dbspot.com

BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 22nd Jun 2004 09:53
Yeah, but transferring data back and forth, and so much of it.........hard to keep track of.....

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html

Login to post a reply

Server time is: 2025-05-26 03:21:52
Your offset time is: 2025-05-26 03:21:52