Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Greek2me

Pages: 1 ... 176 177 178 179 180 [181] 182 183 184 185 186 ... 570
2701
Not open source, not trustworthy for cryptography.
I recommend connectbot.

I only use it on my internal net so the crypto isn't as important to me, but thanks, I'll make the switch.

2702
Help / Re: Is there a way to enable addons ingame
« on: March 26, 2014, 01:35:49 PM »
No, there's not a good method to do so.

However, if it's a script you can do this in console:
Code: [Select]
e("Server_Whatever");
or
e("Script_Something");

Don't do that with anything that uses datablocks. (vehicles, weapons, sounds, etc.)

2703
So...this works on mobile devices?

Yeah, I use JuiceSSH for all my Android SSH needs: https://play.google.com/store/apps/details?id=com.sonelli.juicessh

2704
Drama / Re: DelTheNinja's rage on Greek2Me's 4 team trench war(45915)
« on: March 25, 2014, 08:46:32 PM »
all of which are terrible ones
http://forum.blockland.us/index.php?topic=254435.0

Jesus Christ, you guys are overreacting. There is one incident over the course of several years of hosting, and you act like it's a big deal. It's not.

2706
Deactivate the package for now, im going to have to completely rewrite the server. Ugh
What's the name of the package?

2707
My server is still having problems connecting.

2708
Drama / Re: DelTheNinja's rage on Greek2Me's 4 team trench war(45915)
« on: March 25, 2014, 09:30:35 AM »
I have 11 super admins and 30 admins.

2709
Suggestions & Requests / Re: Bot n' Player Teams
« on: March 25, 2014, 12:26:34 AM »
https://bitbucket.org/Greek2me/slayer/downloads/Gamemode_Slayer.zip

Set the "Preferred Players" in the Teams tab.

2710
Drama / Re: DelTheNinja's rage on Greek2Me's 4 team trench war(45915)
« on: March 24, 2014, 10:20:05 PM »
first you say that you "know kinex" and don't punish him, now this? wtf greek?

It's a conspiracy!

2711
Perfectly fine. All the cpu usage appears to be distributed across all 8 cores, so a server reporting "10% CPU usage" would be using what I'm likening to 10 out of 800% CPU usage.
EDIT: and as such, I'm using less than 40%/800% at absolute peak.

Nice. Have you found that servers use a lot of CPU even when nobody's in them? I didn't have that on Windows but I'm noticing it in Linux.

2712
Suggestions & Requests / Re: onMinigameWin + onMinigameTeamWin
« on: March 24, 2014, 11:06:32 AM »
The problem with this is that there can be multiple winners and that they can be either players or teams. The event system doesn't really have that level of flexibility.

2713
My server has been unable to post. The error keeps showing up.

2714
Suggestions & Requests / Re: Bypass too many player touch events
« on: March 23, 2014, 11:11:09 PM »
Increase your schedule quota.

2715
I made an easy script to run a Blockland server on Linux. Follow the instructions below.



  • Place all Blockland files in $HOME/blockland-server/. (You can specify a custom path - more on that later)
  • Take this script and place it in a file called blockland-server in your ~/bin directory (create if needed):
Code: [Select]
#!/bin/sh

## Blockland Dedicated Server Launcher
## Written by Greek2me.

# Define defaults.

attach_screen=false
game_mode="Custom"
server_mode="dedicated"
server_number=-1
server_path="$HOME/blockland-server"
server_port=

# Parse arguments.

OPTIND=1
while getopts "ac:d:g:ln:p:" opt; do
case "$opt" in
a) attach_screen=true
;;
c) server_customArgs=$OPTARG
;;
d) server_path=$OPTARG
;;
g) game_mode=$OPTARG
;;
l) server_mode="dedicatedLAN"
;;
n) server_number=$OPTARG
;;
p) server_port=-port $OPTARG
;;
esac
done
shift $((OPTIND-1))
[ "$1" = "--" ] && shift

# Validate the server path.

if [ ! -f "$server_path/Blockland.exe" ]; then
echo "No Blockland server was found at $server_path."
exit 1
fi

# Determine which server number this is.

if [ "$server_number" -lt 0 ]; then
server_number=$(screen -list | grep -c blockland-server)
fi

# Launch the server.

screen -dmS blockland-server$server_number xvfb-run  -a wine wineconsole --backend=curses $server_path/Blockland.exe ptlaaxobimwroe -$server_mode -gamemode $game_mode $server_port $server_customArgs

sleep 1

# Check that the server exists.

if screen -list | grep -q "blockland-server$server_number"; then
echo "Starting server $server_number"
echo " > Running game mode $game_mode"
else
echo "Failed to start server."
exit 1
fi

# Attach to the server.

if [ "$attach_screen" = true ]; then
screen -x blockland-server$server_number
if [ $? -gt 0 ]; then
echo "Failed to attach to server."
fi
fi
    [/li]
  • You can now launch the server by running blockland-server. Arguments:
    • -a Attach to the console automatically. Otherwise, the server will not be displayed in console.
    • -c '-trace -exampleArg' Allows you to pass custom arguments to the server.
    • -g gamemode_name Specify the game mode.
    • -l Starts a LAN server.
    • -n number Specifies a server number. Not needed for most people.
    • -d /path/to/server Specify a custom location for the server.
    • -p 28000 Specify a custom port number for the server.


To attach to a running server's console:
Type this into terminal:
Code: [Select]
screen -x blockland-server0
Increment 0 if you have multiple servers.

To detach from a server console:
Press Ctrl+a and then press d.

Required Packages:
  • wine
  • xvfb
  • screen


Changes 2017/01/09:
  • Added shutdown script.
Changes 2016/12/13:
  • Now works on Debian
  • Added -p argument for port.
  • Changing server path now uses -d argument.




NEW - Shutdown Script:
Code: [Select]
#!/bin/bash

SERVER_COUNT=$(screen -list | grep -c blockland-server)
IDX=0
while [[ $IDX -lt $SERVER_COUNT ]]
do
        echo "Shutting down server $IDX"
        screen -S blockland-server$IDX -p 0 -X stuff "$(printf \\r)commandToAll('MessageBoxOK',\"Warning\",\"The server is shutting down in 5 seconds.\");scheduleNoQuota(5000,0,shutdown);scheduleNoQuota(7000,0,quit);$(printf \\r)"
        IDX=$(( $IDX + 1 ))
done
echo "Sent quit command to all servers."
Shuts down all servers.

Pages: 1 ... 176 177 178 179 180 [181] 182 183 184 185 186 ... 570