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 Professional Discussion / need Dark basic Coder

Author
Message
mmuziek
16
Years of Service
User Offline
Joined: 31st Jul 2009
Location: holland
Posted: 8th Dec 2010 15:38
hello to all mod makers that made a FPSC mod.
i want to make a simple mod to launch a game bypassing the menu's

as i on my own has no experiance with DB or DBP

i need someone who can help me. with it

to be short i must be able to pass commandline parameters to the game at startup.
for example :

START mygame.exe host myusername

now it must hostgame with username : myusername

same for joingame

START mygame.exe join Myusername 192.168.1.1

now it must join the ip 192.168.1.1 with username myusername

its that simple.
and i for sure will award the one who can make this mod.
or help me make it. but for now i still dont know anything so thats gonna take a while

Greetings mmuziek

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 8th Dec 2010 16:40
Gimmee teh coedzzzz!!11!!1

My signature is NOT a moderator plaything! Stop changing it!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Dec 2010 16:46
Compared to other guys that ask for coders, this one isn't asking that much... A simple execute file will do the trick. But why use DBP? You could just program a small .bat file and shell execute it from there... I'm not that familiar with the command line with windows, but I think it's called START.

TheComet

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 8th Dec 2010 16:47
Quote: "I'm not that familiar with the command line with windows, but I think it's called START."

you mean cmd.exe

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 8th Dec 2010 17:27
Not sure if it's exactly what you want but you could try it...

thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 8th Dec 2010 17:35
Quote: "you mean cmd.exe"

He means to command to execute a file. START actually just starts another copy of cmd.exe, you don't need a command to run an exe, just the name.


mmuziek
16
Years of Service
User Offline
Joined: 31st Jul 2009
Location: holland
Posted: 8th Dec 2010 19:36
no

no no

i can execute it but i want to bypass the menu's by giving the game parameters like hostgame or joingame.

in a batch file it looks like this

START mygame.exe hostgame mmuziek

now with that code it must host a game DIRECTLY with the username mmuziek

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Dec 2010 19:57
Is this what you want?

Quote: "CL$
This command will return the string passed in as a command line when the program is run as a standalone executable.

Syntax

Return String=CL$()

Returns

The return value is a string.

Description

When this program is created as an executable file, any additional parameters entered after the executable name are treated as a single command line string. You can use this string to control how your executable behaves based on the contents of the string.

Example Code

PRINT CL$()
WAIT KEY

See also

CORE Commands Menu
Index"


You can then include extra lines in your code such as

mmuziek
16
Years of Service
User Offline
Joined: 31st Jul 2009
Location: holland
Posted: 8th Dec 2010 20:48
almost

well to be short.

i must find someone who can recompile the FPSC game engine. who alraidy know the code from that engine.

and want to inplent that what you show me here into. the engine so i can bypass the screens

mmuziek
16
Years of Service
User Offline
Joined: 31st Jul 2009
Location: holland
Posted: 9th Dec 2010 13:36
otherwise can somebody tell me the variables in the FPSC game source that are used on the menu to store the username ip.
and activated host-join game

and

how does Darkbasic gets the second parameter and the thirt

START mygame.exe hostgame myusername upadress

gets currently

hostgame myusername upadress

it must be splitted

hostgame
myusername
upadress

thanks for any help

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 9th Dec 2010 19:17 Edited at: 9th Dec 2010 19:19
From what I remember, FPSC doers not have multiplayer as standard, only as a MOD. Therefore, the variables can be anything.

You need to first find a mod which adds multiplayer, then ask the author of that mod for "teh coeds!!1!!" (lol).

*EDIT*
Quote: "as i on my own has no experience with DB or DBP"

I'd get some experience before attempting anything like this! If you don't know how to create your own code, how on earth can you expect to alter someone else's?!

My signature is NOT a moderator plaything! Stop changing it!
mmuziek
16
Years of Service
User Offline
Joined: 31st Jul 2009
Location: holland
Posted: 9th Dec 2010 20:43
if you know FPSC then you also know that it has multiplayer function.

as i read out the full code i find many but really many vars that points to multiplayer joining hosting and other vars.

i just need to know wich one.

and for most inportant

does anyone know

how to get multiple startup parameters

Login to post a reply

Server time is: 2026-07-21 19:19:03
Your offset time is: 2026-07-21 19:19:03