Jump to content

Arma2 / Dayz Custom Script Maxplayers


Finest

Recommended Posts

Hello Everybody :)

 

im new here an i hope anyone can help me :D

i would like to use the custom script to set the Maxplayers Variable in my Config.cfg

 

MOVE dayz_1_2017.chernarus\Config.cfg dayz_1_2017.chernarus\server.old

Type dayz_1_2017.chernarus\server.old | findstr /v maxPlayers > dayz_1_2017.chernarus\server.old2

Echo maxPlayers = $[service.Slots]; >> dayz_1_2017.chernarus\server.old2

MOVE dayz_1_2017.chernarus\server.old2 dayz_1_2017.chernarus\Config.cfg

If Exist dayz_1_2017.chernarus\server.old Del dayz_1_2017.chernarus\server.old

If Exist dayz_1_2017.chernarus\server.old2 Del dayz_1_2017.chernarus\server.old2

 

when i start the bat alone it will work fine :)

but when i use the custom scripts i will get no effekt on this :/

 

Operation System: Windows (for arma2)

Script Engine: Batch/Shell

before Start

Ignore errors

 

so what i do false :/

i hope anyone can help me :/

Link to comment
Share on other sites

@echo off

MOVE dayz_1_2017.chernarus\Config.cfg dayz_1_2017.chernarus\server.old

Type dayz_1_2017.chernarus\server.old | findstr /v maxPlayers > dayz_1_2017.chernarus\server.old2

Echo maxPlayers = %ThisService_Slots%; >> dayz_1_2017.chernarus\server.old2

MOVE dayz_1_2017.chernarus\server.old2 dayz_1_2017.chernarus\Config.cfg

If Exist dayz_1_2017.chernarus\server.old Del dayz_1_2017.chernarus\server.old

If Exist dayz_1_2017.chernarus\server.old2 Del dayz_1_2017.chernarus\server.old2

 

atm i use

 

Before started (executed by the Service Manager)

 

and before started dont support this service ....

aaa shit how can i use now the playersvariable ...

Available variables: Service Manager Scripting Variables

Edited by Finest
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 19 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use