having trouble keeping your server in good nick? I'm not going to help you install, as the reality github does a very, very good job of that. I will share some of the shortcuts that I use.
Hopefully this makes your servers a little bit more fun to run!
It means that extra parameters have to be used every time, leading to making the wrong build package and all that jazz.
Lets start with build.pl
The question marks are the defaults for build.pl just change them to the instance and world your using. you'll only ever have to run perl build.pl from here on out.
Here's mine for an example
Graz's Tips: For people with multiple instances & worlds: get a naming system. Our ausarma one is very simple, it's server number then world number. ANZ #3 runs chernarus so the instance number is 301. K.I.S.S!!! We're not building rockets, just a server
Lets move onto the other 3 files:
db_spawn_vehicles.pl
db_utility.pl
db_spawn_vehicles.pl
These all look roughly the same, the defaults are always under 'my %db = ('
Here what the db_spawn_vehicles.pl look like:
All the entries at the end are the ones your looking for:
Change them to you database details
My test server looks like this:
Coming: How to set up some simple tasks to keep vehicles spawning and the database clean!
Hopefully this makes your servers a little bit more fun to run!
- Get notepad ++ why? because it's amazing and it'll make everything so much simpler.
2. == The .pl files ==
Anyone with more then one server or who doesn't like the default dayz - dayz - changeme has altered their my sql a little bit.It means that extra parameters have to be used every time, leading to making the wrong build package and all that jazz.
Lets start with build.pl
- Open it with notepad ++
- Look for these lines
Code:
[I]# Set defaults if options are not specified
$args{'world'} = ($args{'world'}) ? lc($args{'world'}) : '????';
$args{'instance'} = '????' unless $args{'instance'};[/I]
The question marks are the defaults for build.pl just change them to the instance and world your using. you'll only ever have to run perl build.pl from here on out.
Here's mine for an example
Code:
$args{'world'} = ($args{'world'}) ? lc($args{'world'}) : 'mbg_celle2';
$args{'instance'} = '109' unless $args{'instance'};
Graz's Tips: For people with multiple instances & worlds: get a naming system. Our ausarma one is very simple, it's server number then world number. ANZ #3 runs chernarus so the instance number is 301. K.I.S.S!!! We're not building rockets, just a server
Lets move onto the other 3 files:
db_spawn_vehicles.pl
db_utility.pl
db_spawn_vehicles.pl
These all look roughly the same, the defaults are always under 'my %db = ('
Here what the db_spawn_vehicles.pl look like:
Code:
my %db = (
'host' => $args{'hostname'} ? $args{'hostname'} : 'localhost',
'instance' => $args{'instance'} ? $args{'instance'} : '1',
'limit' => $args{'limit'} ? $args{'limit'} : '500',
'user' => $args{'username'} ? $args{'username'} : 'dayz',
'pass' => $args{'password'} ? $args{'password'} : 'dayz',
'name' => $args{'database'} ? $args{'database'} : 'dayz',
'port' => $args{'port'} ? $args{'port'} : '3306',
);
Change them to you database details
My test server looks like this:
Code:
my %db = (
'host' => $args{'hostname'} ? $args{'hostname'} : 'localhost',
'instance' => $args{'instance'} ? $args{'instance'} : '709',
'limit' => $args{'limit'} ? $args{'limit'} : '999',
'user' => $args{'username'} ? $args{'username'} : 'gr@ztest',
'pass' => $args{'password'} ? $args{'password'} : 'th1s1snotMiP@Ss',
'name' => $args{'database'} ? $args{'database'} : 'breakme',
'port' => $args{'port'} ? $args{'port'} : '3306',
);
Coming: How to set up some simple tasks to keep vehicles spawning and the database clean!