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 / Quick Question

Author
Message
Black Bullet
18
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 2nd Oct 2007 18:05 Edited at: 2nd Oct 2007 18:08
I'm very sorry this is in the dbc chat by accident , this is meant to be dbp

Is it possible to make a program that wil run another .exe when you choose , for example i want to make a multiplayer fps with fpsc but to do more than one map you need make a new .exe each time, so it would be much more orginised if i could have like a launcher program, is this possible?

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Oct 2007 18:31
umm yeah you can shell execute files, don't know how but you can

In programming, nothing exists
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 2nd Oct 2007 18:35
Yes, use the EXECUTE FILE command.

Example:



That code will execute the file "myexe.exe" when the button is clicked.

Good luck!


Black Bullet
18
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 2nd Oct 2007 20:41
does that work for dbpro?

Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 3rd Oct 2007 00:10
i dont know. mabe you should have put this in the DBP forum where people have dbp. It should work though.


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Oct 2007 22:35
This command has not changed in DBP.

Just try it - it's only a single line!

TDK_Man

KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 4th Oct 2007 01:20 Edited at: 4th Oct 2007 01:21
Um, I think there should be another endif before the loop. Tabbed, it should look like this:



Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Oct 2007 17:15 Edited at: 4th Oct 2007 17:17
Don't know if this will interest anyone but here's another way to write the area detection.
Also, it's a good idea to check the mouseclick first or the cpu will be checking the area all the time even though it doesn't need to.
I've also added in a box to give the user some help.


It's a little strange so I'll explain if anyone is confused

[edit]
Woooo! I've been de-slapped!

In programming, nothing exists
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 4th Oct 2007 18:16
Good for you OBese87 now try to control yourself from making stupid posts like that one that got you slapped!


Yea dude just try EXECUTE FILE.

I made you a cookie, but I eated it....
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 4th Oct 2007 19:05
Quote: "now try to control yourself from making stupid posts like that one that got you slapped!"

Ouch...
That's got you a slap.

j/k, obviously.

Quote: "Everyone's entitled to an opinion...but your opinions are wrong."

Login to post a reply

Server time is: 2025-05-31 21:11:37
Your offset time is: 2025-05-31 21:11:37