Advanced Server Setup
-
- Posts: 162
- Joined: Mon Jun 06, 2016 2:29 pm
- Location: Poland
- Player profile: https://ddnet.tw/players/-9479--187-M-237-M-171--9479-/
Advanced Server Setup
Advanced Server Setup
written by MiM
Just thought i'd share my setup for fast map testing and some other tweaks.
(we're gonna work with standard ddnet files, i'd recommend backing up your files)
What this tutorial will do:
-It will make it so when you save your map in the editor, you can just ctrl+shift+e back to the game,
-The server will close after you close the ddnet client
-It will add 2 shortcuts:
(useful if you have dynamic ip like me)
"Ctrl+T" Connects to your server
"Ctrl+G" Copies ip:port to clipboard
Note: Make sure that you have a map named 'LiveTest' in the data>maps folder.
We're done.
1.Start up the game thru DDNet Modified.exe
2.Join your server by pressing Ctrl+T
3.Edit some stuff in your map, save it as LiveTest
4.Vote to reload
5.Profit
Ill keep this updated if i come up/someone suggests any useful things.
written by MiM
Just thought i'd share my setup for fast map testing and some other tweaks.
(we're gonna work with standard ddnet files, i'd recommend backing up your files)
What this tutorial will do:
-It will make it so when you save your map in the editor, you can just ctrl+shift+e back to the game,
call vote to reload map and changes to the map will apply
-The server will run in the background process (no more annoying alt-tabs)-The server will close after you close the ddnet client
-It will add 2 shortcuts:
(useful if you have dynamic ip like me)
"Ctrl+T" Connects to your server
"Ctrl+G" Copies ip:port to clipboard
First, lets set up some stuff in autoexec_server.cfgShow
1.In your ddnet folder, open up autoexec_server.cfg (in notepad o.o)
2.Add this vote -
3.Change
to
2.Add this vote -
add_vote "Reload" "reload""
like so:3.Change
# Map to start server with sv_map "Kobra 4"
to
# Map to start server with sv_map "LiveTest"
Swap the maps folderShow
We're gonna set this up so the server reads maps from
%appdata% > teeworlds > maps
1.Delete existing 'maps' folder from the data folder.
2.Go to your %appdata% > teeworlds folder and send the maps folder to desktop as a shortcut.
3.Rename it from 'maps - Shortcut' to 'maps' and put that bad boi into the data folder.
%appdata% > teeworlds > maps
1.Delete existing 'maps' folder from the data folder.
2.Go to your %appdata% > teeworlds folder and send the maps folder to desktop as a shortcut.
3.Rename it from 'maps - Shortcut' to 'maps' and put that bad boi into the data folder.
Lastly, we need some stuff to do the work for usShow
Its 2 ahk scripts that will do a bunch of stuff for us.
So instead of launching the game thru the standard DDNet.exe, we will be doing it with DDNet Modified.exe
(If you're worried that ill hack your doggo pictures you can google 'how to convert .exe back to .ahk' and see the code in notepad)
1. Download
DDNet Modified
Put both files into your game folder.
3.Create a .txt file named 'Port' in your game folder like so
Open it up with notepad and put your server port in there like this:
Save
So instead of launching the game thru the standard DDNet.exe, we will be doing it with DDNet Modified.exe
(If you're worried that ill hack your doggo pictures you can google 'how to convert .exe back to .ahk' and see the code in notepad)
1. Download
DDNet Modified
and
Server ShortcutsPut both files into your game folder.
3.Create a .txt file named 'Port' in your game folder like so
Open it up with notepad and put your server port in there like this:
Save
We're done.
1.Start up the game thru DDNet Modified.exe
2.Join your server by pressing Ctrl+T
3.Edit some stuff in your map, save it as LiveTest
4.Vote to reload
5.Profit
Ill keep this updated if i come up/someone suggests any useful things.
Last edited by ┇»MiM«┇ on Fri Aug 02, 2019 11:53 am, edited 8 times in total.
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: Server setup (For fast map testing straight from editor)
Nice. I guess this is the AHK program?
Code: Select all
#NoEnv
#SingleInstance, Force
#Persistent
SetTitleMatchMode, 2
DetectHiddenWindows, On
If !WinExist("ddnet client")
{
run, ddnet.exe
run, server.exe, , hide
}
SetTimer, ProcessCheckTimer, 6000
Return
ProcessCheckTimer:
Process, Exist, ddnet.exe
If ErrorLevel
return
Else
{
Process, Close, server.exe
ExitApp
}
-
- Posts: 162
- Joined: Mon Jun 06, 2016 2:29 pm
- Location: Poland
- Player profile: https://ddnet.tw/players/-9479--187-M-237-M-171--9479-/
Re: Server setup (For fast map testing straight from editor)
Yup, nothing crazy
- Ravie
- Posts: 380
- Joined: Sat Feb 04, 2017 5:04 am
- Player profile: https://ddnet.tw/players/Ravie/
- Mapper profile: https://ddnet.tw/mappers/Ravie/
- Clan: TOP
Re: Server setup (For fast map testing straight from editor)
When you "Load current map" and then save while logged into rcon the server automatically reloads itself tho (at least for me it does)
-
- Posts: 266
- Joined: Sun Apr 16, 2017 2:33 am
- Location: U.S.A.
- Player profile: https://ddnet.tw/players/Bolto/
- Clan: Kerger
not so easy for me.
Using "Exe2Ahk.exe" to decompile "DDNet+ Server.exe" gives the error "Open: The following error occurred: NotARC", non of the other results faired better.
Nice tutorial, well laid out, easy to follow. i assume the above code(Deens post) is the AutoHotKey 'code', which is good as you rely on an external host, bad practice for tutorials which are meant to be around for a while. i wish DDnet would include some way of making LAN servers to test & play Maps, not so unlike others have.
EDIT: thanks, it worked, also this useful https://autohotkey.com/boards/viewtopic.php?f=6&t=59015
Nice tutorial, well laid out, easy to follow. i assume the above code(Deens post) is the AutoHotKey 'code', which is good as you rely on an external host, bad practice for tutorials which are meant to be around for a while. i wish DDnet would include some way of making LAN servers to test & play Maps, not so unlike others have.
EDIT: thanks, it worked, also this useful https://autohotkey.com/boards/viewtopic.php?f=6&t=59015
Picture of codeShow
viewtopic.php?f=16&t=5819 & search for "old version", although your's is better looking then mine, so who i'm i to judge. sorry if i sound like an ignorant fool, we all have to start some where.
peace!
sharing sources is the way to go man, we want people to take idea's & make them better. as long as people can easy get them with this Resource Hacker the same results are achieved. also messy is how you make it look, not the information presented, see my tutorial peace!
Last edited by GG Kid on Mon Apr 29, 2019 8:07 am, edited 2 times in total.
-
- Posts: 162
- Joined: Mon Jun 06, 2016 2:29 pm
- Location: Poland
- Player profile: https://ddnet.tw/players/-9479--187-M-237-M-171--9479-/
Re: Server setup (For fast map testing straight from editor)
Not sure what you're talking about p.p and besides, i'd rather have a vote to do that for me instead of everytime i save the map in the editor it reloads the server.
I think Exe2Ahk is outdated. You can try using this.GG Kid wrote: ↑Tue Nov 13, 2018 3:20 am Using "Exe2Ahk.exe" to decompile "DDNet+ Server.exe" gives the error "Open: The following error occurred: NotARC", non of the other results faired better.
Nice tutorial, well laid out, easy to follow. i assume the above code(Deens post) is the AutoHotKey 'code', which is good as you rely on an external host, bad practice for tutorials which are meant to be around for a while. i wish DDnet would include some way of making LAN servers to test & play Maps, not so unlike others have.
I would post every script in here but that would just make this topic messy.
-
- Posts: 162
- Joined: Mon Jun 06, 2016 2:29 pm
- Location: Poland
- Player profile: https://ddnet.tw/players/-9479--187-M-237-M-171--9479-/
Re: Server setup (For fast map testing straight from editor)
Ctrl+T should always work now.
If you notice that the game doesn't register some key strokes please tell me.
If you notice that the game doesn't register some key strokes please tell me.
SpoilerShow
Bumping this just so people that use it (although i know there aren't many of them) will get the updated files.
Who is online
Users browsing this forum: No registered users and 2 guests