tinboye Posted May 22, 2016 Share Posted May 22, 2016 So i am trying to get this config file to populate certain variables but it just doesnt seem to want to populate certain fields so i am stumped. I have this config file for Out of Reach # Enter one VM parameter per line # To include another file, uncomment the following line and enter the file path: # -include-options [path to other .vmoption file] # DO NOT CHANGE THOSE VALUES UNLESS YOU KNOW WHAT ARE YOU DOING -classpath/p ./:lib/*:lib/jetty/lib/*:extensions/__lib__/* -Dfile.encoding=UTF-8 -Xms2048M -Xmx2048M -Djava.library.path=lib/win64 # Put your parameters below # Binds server to given IP and port, Smartfox's configuration change is also required! Please refer to wiki for more details -Door.server.ip.address=$[service.IpAddress] -Door.server.port=$[service.GamePort] # Web console port -Door.server.console.port=$[service.CustomPort1] # Steam master server query port -Door.steam.master.server.updater.port=$[service.QueryPort] # Database host (with port number) -Door.database.host=localhost:5432 # Database user -Door.database.user=![oordatabaseuser] # Database password -Door.database.password=![oordatabasepassword] # Database name -Door.database.name=![oordatabasename] # Overrides default web console user #-Door.web.console.user=![wcuser] #-Door.web.console.pass=![wcpassword] # Maximum allowable amount of players, must be in range <1;100> -Door.max.players.count=$[service.Slots] # This paramater is only for compability purposes it will be removed soon -Door.send.heartbeat.to.legacy.master=false then i setup the variables: oordatabasename $ipy<%ReturnValue = ThisUser.Variables.GetValue('UserName')%> oordatabasepassword $ipy<%ReturnValue = ThisUser.Variables.GetValue('Password')%> oordatabaseuser $ipy<%ReturnValue = ThisUser.Variables.GetValue('UserName')%> wcpassword pass wcuser admin but for some reason when i go to edit the config file, it does not populate those 3 fields # Database user -Door.database.user=![oordatabaseuser] # Database password -Door.database.password=![oordatabasepassword] # Database name -Door.database.name=![oordatabasename] it keeps them as what the default file is, not from what the template indicates i basically want the db and username and their tcadmin password to be used for their postgresql user/pass as i have a batch file that runs when they install the game: @ECHO OFF setlocal SET PGHOST=localhost SET PGUSER=postgres SET PGPASSWORD=Password echo CREATE USER %ThisUser_UserName% with password '%ThisUser_Password%' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; CREATE DATABASE %ThisUser_UserName% WITH ENCODING='UTF8' OWNER=%ThisUser_UserName% CONNECTION LIMIT=-1; ALTER ROLE %ThisUser_UserName% SET search_path = %ThisUser_UserName%; | "C:\Program Files\PostgreSQL\9.3\bin\psql.exe" -U postgres endlocal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now