This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submission format for LPC-2 | |
======================================================================== | |
* enforce public version controled hosting. | |
using git/svn/cvs/bzr/hg whatever you like and | |
host it at github/sourceforge/bitbucket/launchpad etc | |
* Handing in an installscript which must run on a provided free distro vm. | |
It should not contain a 'wget my-executable' or such, but actually | |
- install deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lua | |
local function checkenv(varname) | |
local value = os.getenv(varname) | |
if not value then | |
print(varname .. ' not set') | |
os.exit(1) | |
end | |
return value | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
start) | |
cd /srv/manademo/ | |
rm ./manaserv-game.log | |
rm ./manaserv-account.log | |
su manademo -c "HOME=\"/srv/manademo\" ./start-server.sh 2>/dev/null" > /dev/null & | |
;; | |
stop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Use: | |
-- lua debugger.lua <mapfile to debug> | |
-- e = exit | |
-- t = talk to npc | |
-- tr = trigger a trigger | |
-- cp = create player | |
-- in = info about npc | |
-- it = info about trigger | |
-- ip = info about player |