Hey,
jetzt gibts das wie versprochene Tutorial:
LUA-DOKUMENTATION für die Lua-Funktionen des Servers
How to set up a Lua-Server?
Requirements: ability to set up a normal server,
Step 1: Extract all the files
Step 2: Now make a new directory (call it "Lua-Teeworlds" or whatever u want)
Step 3: Put all the files from the server and the client into your new directory:
Step 4: add the mod by copying the files of the mod into your Lua-Teeworlds directory.
(Note: If the mod is not splitted in folders and there are no further instructions, just copy all mod-files into the lua folder)
Step 5: Open the autoexec.cfg in your application data folder for teeworlds
Step 6: Add the command "add_lua_file NameOfFile.lua" to bind a lua script to your server,
in this example write "add_lua_file server.lua" (which is the main lua script of the Zomb-Mod)
You
can split your mod in subdirectories such as /lua/Zomb/, in order to
add the file now just write the relative path from your lua folder. You
can rename the .lua file in most cases
too. (e.g.: "add_lua_file Zomb/main.lua")
You can add a lua file while the server is running via the rcon too.
(In order too play Zomb you have to deactivate teambalancing, and the command "add_vote "Start" lua StartRound" in your autoexec.cfg is recommened, but you can also start a round with the rcon command "lua StartRound")
Step 7: Start the Server and be happy ::D:
Spoiler anzeigen
jetzt gibts das wie versprochene Tutorial:
LUA-DOKUMENTATION für die Lua-Funktionen des Servers
How to set up a Lua-Server?
Requirements: ability to set up a normal server,
- the newest n-Server (Download) or use the one which comes with the Zomb-Mod ),
- the n-client, in order to play on the server (Download ),
- a Lua Mod (we will use the Zomb-Mod by Map94 in this tutorial (Download ) )
Step 1: Extract all the files
Step 2: Now make a new directory (call it "Lua-Teeworlds" or whatever u want)
Step 3: Put all the files from the server and the client into your new directory:
Step 4: add the mod by copying the files of the mod into your Lua-Teeworlds directory.
(Note: If the mod is not splitted in folders and there are no further instructions, just copy all mod-files into the lua folder)
Step 5: Open the autoexec.cfg in your application data folder for teeworlds
Step 6: Add the command "add_lua_file NameOfFile.lua" to bind a lua script to your server,
in this example write "add_lua_file server.lua" (which is the main lua script of the Zomb-Mod)
You
can split your mod in subdirectories such as /lua/Zomb/, in order to
add the file now just write the relative path from your lua folder. You
can rename the .lua file in most cases
too. (e.g.: "add_lua_file Zomb/main.lua")
You can add a lua file while the server is running via the rcon too.
(In order too play Zomb you have to deactivate teambalancing, and the command "add_vote "Start" lua StartRound" in your autoexec.cfg is recommened, but you can also start a round with the rcon command "lua StartRound")
Step 7: Start the Server and be happy ::D:
Wie mache ich einen Lua-Server?
Anforderungen:
Fähigkeit einen normalen Server aufzusetzen
Step 1: Entpacke alle Dateien
Step 2: Erstelle einen neuen Ordner (nenn ihn "Lua-Teeworlds" oder wie auch immer du möchtest)
Step 3: Packe alle Dateien des Clieten und des Servers in den neu erstellten Ordner:
Step 4: Füge die Mod hinzu, indem du die Mod-Dateien auch in den neu erstellten Ordner packst.
(Hinweis: Wenn die Mod nicht vorher in Ordner unterteilt ist und es auch keine weiteren Anleitungen gibt, packe einfach alles zusammen in den /lua/ ordner)
Step 5: Öffne the autoexec.cfg in deinem Anwendungsdaten/ oder AppData/Roaming/ ordner für Teeworlds
Step 6: Füge die Zeile "add_lua_file NameOfFile.lua" hinzu, um gleich beim Starten des Servers ein Lua-Skript im ordner /lua/ anzubinden.
In unserem beispiel: "add_lua_file server.lua" (server.lua ist das Haupt-Skript)
man kann die Lua-Dateien auch noch in unterorder aufteilen, wie z.B.: /lua/Zomb/. Um dann ein Lua file hinzuzufügen, müsst ihr noch den ordnernamen angeben auch könnt ihr oft die Lua-Datei selbst umbennen. (z.B.: "add_lua_file Zomb/main.lua").
Ihr könnt die Lua-Skripte auch während der Server läuft einbinden, dazu gebt ihr den gleichen befehl einfach ins rcon ein.
(Um die Zombie-Mod spielen zu können, müsst ihr Teambalancing deaktivieren. Außerdem ist es empfehlenswert in autoexec.cfg noch die zeile "add_vote "Start" lua StartRound" einzuufügen, um Spielern die Möglichkeit zu geben eine neue Runde zu starten. Alternativ kann eine neue Runde mit dem Rcon-Befehl "lua StartRound" gestartet werden)
Step 7: Starte den Server und sei glücklich ::D:
Anforderungen:
Fähigkeit einen normalen Server aufzusetzen
- der neuste n-server (Download) (oder ihr benutzt den, der mit der hier verwendeten Zomb mod kommt ),
- den n-client, um auch auf dem Server spielen zu können (Download ),
- Eine Lua-Modifikation (hier benutzen wir die Zomb-Mod by Map94 (Download ) )
Step 1: Entpacke alle Dateien
Step 2: Erstelle einen neuen Ordner (nenn ihn "Lua-Teeworlds" oder wie auch immer du möchtest)
Step 3: Packe alle Dateien des Clieten und des Servers in den neu erstellten Ordner:
Step 4: Füge die Mod hinzu, indem du die Mod-Dateien auch in den neu erstellten Ordner packst.
(Hinweis: Wenn die Mod nicht vorher in Ordner unterteilt ist und es auch keine weiteren Anleitungen gibt, packe einfach alles zusammen in den /lua/ ordner)
Step 5: Öffne the autoexec.cfg in deinem Anwendungsdaten/ oder AppData/Roaming/ ordner für Teeworlds
Step 6: Füge die Zeile "add_lua_file NameOfFile.lua" hinzu, um gleich beim Starten des Servers ein Lua-Skript im ordner /lua/ anzubinden.
In unserem beispiel: "add_lua_file server.lua" (server.lua ist das Haupt-Skript)
man kann die Lua-Dateien auch noch in unterorder aufteilen, wie z.B.: /lua/Zomb/. Um dann ein Lua file hinzuzufügen, müsst ihr noch den ordnernamen angeben auch könnt ihr oft die Lua-Datei selbst umbennen. (z.B.: "add_lua_file Zomb/main.lua").
Ihr könnt die Lua-Skripte auch während der Server läuft einbinden, dazu gebt ihr den gleichen befehl einfach ins rcon ein.
(Um die Zombie-Mod spielen zu können, müsst ihr Teambalancing deaktivieren. Außerdem ist es empfehlenswert in autoexec.cfg noch die zeile "add_vote "Start" lua StartRound" einzuufügen, um Spielern die Möglichkeit zu geben eine neue Runde zu starten. Alternativ kann eine neue Runde mit dem Rcon-Befehl "lua StartRound" gestartet werden)
Step 7: Starte den Server und sei glücklich ::D:
Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von Patafix ()