News:

Welcome! If you're new here, please register to have full access

Main Menu

Killing Floor Mapping Tutorial

Started by Snipe34, March 07, 2010, 23:14

JD

Yeah, I know about that method, but I find it too slow...I mean, save map->run kfmod->create server->choose map->wait 'till it loads->bring coffe->yadda yadda....I was hoping there are some faster methods to test maps in KF, like in ut2004.

Hicks

Quote from: Vanico on November 13, 2011, 15:16
That's how I do it. I never run the map from editor. I just run the game and open it ingame.
I don't see the problem...

But remember: Every KF map needs "KF" before it. You can't find it ingame when you don't name it "KF-blah" for example.
That's right! :D I'm testing my maps exactly like that.
Don't run map from editor, JD. Run it ingame. And some maps need to be tested on dedicated server too, if you're use some kind triggers.

JD

Well, at least I learned something new today. Thanks everyone! :3

Vanico

Quote from: JD on November 13, 2011, 15:21
Yeah, I know about that method, but I find it too slow...I mean, save map->run kfmod->create server->choose map->wait 'till it loads->bring coffe->yadda yadda....I was hoping there are some faster methods to test maps in KF, like in ut2004.

My KF + Map is opened in 5 Seconds :p

N3Cr0

Maybe you could write a batch file which first opens a dedicated server with the map and then it starts the game connecting to localhost / IP 127.0.0.1
Never tried, but it may be an option.

JD

Quote from: N3Cr0 on November 13, 2011, 17:11
Maybe you could write a batch file which first opens a dedicated server with the map and then it starts the game connecting to localhost / IP 127.0.0.1
Never tried, but it may be an option.

Hmm, that sounds like an excellent idea! Thanks, Necro!

[MiA]Raj

Quote from: N3Cr0 on November 13, 2011, 17:11
Maybe you could write a batch file which first opens a dedicated server with the map and then it starts the game connecting to localhost / IP 127.0.0.1
Never tried, but it may be an option.

Something like this

UCC server KF-Doorway-to-Hell.ut2?game=KFmod.KFGameType?Other_options=blablabla ini=KFMod20.ini log=KFmod20.log -mod=KFMod20
UT2004 127.0.0.1 -mod=KFMod20


The last command is actually a pretty quick way for joining our server, avoiding waiting for slow master server or typing the IP.
Eg, make a shortcut to UT2004.exe somewhere with arguments, like this:
"UT2004.exe 108.61.255.109 -mod=KFMod20"
Or "UT2004.exe gs1.themiasma.com -mod=KFMod20"

N3Cr0

Exactly as Raj says.
But there might be a way to execute both commands at the same time.
Under Linux I would do that with "&&"  or "|" for pipe commands and maybe a short sleep time.
like this:

UCC server KF-Doorway-to-Hell.ut2?game=KFmod.KFGameType?Other_options=blablabla ini=KFMod20.ini log=KFmod20.log -mod=KFMod20 && sleep 3; UT2004 127.0.0.1 -mod=KFMod20


But under I'm not sure if it works that way under Windows. I will try it later.

N3Cr0

OK, just tried it.
Make a batch file with following content and place it in yout UT2004/system directory:

start UCC server KF-Doorway-to-Hell.ut2?game=KFmod.KFGameType?Other_options=blablabla ini=KFMod20.ini log=KFmod20.log -mod=KFMod20
start UT2004 127.0.0.1 -mod=KFMod20


if your game starts before the server you should try to make the system wait a little, unfortunately there's no sleep command under Windows, but you can let the system wait by pinging yourself, like this


cls
@ echo off
start UCC server KF-Doorway-to-Hell.ut2?game=KFmod.KFGameType?Other_options=blablabla ini=KFMod20.ini log=KFmod20.log -mod=KFMod20
ping 127.0.0.1 -n 6
start UT2004 127.0.0.1 -mod=KFMod20

JD

Whoa! This sure is some useful stuff! Much thanks again! :)

poompoom500

 :( To JD,

Yep. You can do those things above, or you can also make a batch file and an icon that links to the batch for a one click start.

1. Make a copy of your "Play KF.bat" file from your C:\Program Files\Unreal Tournament 2004\KFMod20.
2. Edit it by pasting the code below:
@ECHO OFF
SET MOD_NAME=KFMod20
START ..\System\UT2004.exe 108.61.255.109 -MOD=%MOD_NAME%

3. Rename that file to "Play KFMiasma.bat".


4. Then make an icon for it in your desktop - copy your "Killing Floor 252" icon and rename it "Killing Floor 252 Miasma"; right click on the icon and get the properties; you should be in the "Shortcut" tab; then go to "Target:" and paste the code below:
"C:\Program Files\Unreal Tournament 2004\KFMod20\Play KFMiasma.bat"

click "OK"; and you're good!



[MiA]Raj

#41
Quote from: N3Cr0 on November 13, 2011, 20:16

if your game starts before the server you should try to make the system wait a little, unfortunately there's no sleep command under Windows, but you can let the system wait by pinging yourself, like this

Actually, in Windows Vista and 7 there's timeout command. Eg "timeout 10" to wait 10 secs.

And if that doesn't work for some reason or you got XP, get Windows Server 2003 Resource Kit Tools, it gives you the "sleep" command.

@Poom, instead of using batch files, you could just make a shortcut of UT2004.exe somewhere and change the arguments of it.
Oh, and server IP might change. Use this URL instead of IP: gs1.themiasma.com.



poompoom500

 :-[ To MiA Raj,

It's more this way - "C:\Program Files\Unreal Tournament 2004\System\UT2004.exe" gs1.themiasma.com -MOD=KFMod20.

[MiA]Raj

You mean those quotes? Doesn't make a difference here...

N3Cr0

Spaces are not supported by Windows (because they seperate the .exe/command from additional parameters).
In case of a directory called Unreal Tournament 2004 we have two of them.
So we need the quotes here.
Linux is easier here, it would be like  .../Unreal\ Tournament\ 2004/...