<< Back to Help Forum   Search

Posts 1 - 9 of 9   
Linux desktop app config: 2021-03-24 16:32:35


BJ 
Level 56
Report
Hey, I tried to add Warzone location to PATH but I can't run game since it looks at current directory (home for example) for some config.
$ Warzone
Set current directory to /home/xxx
Found path: /home/xxx/Warzone
no boot config - using default values
(Filename: Line: 476)

And doesn't launch. Is there a way to pass some relative path to actual game directory? There's no readme, no help, no instruction.
Linux desktop app config: 2021-03-24 16:55:31


l5v.r1v
Level 44
Report
Don't know the particulars since I don't use the standalone but if you know where the config file actually is, you could create a symlink to it in your home directory as a quickfix.
Linux desktop app config: 2021-03-24 16:59:20


Sequoia
Level 54
Report
report this as a bug to fizzer, he replies very soon
Linux desktop app config: 2021-03-24 16:59:48

Fizzer 
Level 64

Warzone Creator
Report
Linux desktop app config: 2021-03-24 17:01:36


Sequoia
Level 54
Report
oh wow
Linux desktop app config: 2021-03-24 17:11:13


BJ 
Level 56
Report
Fizzer - that's not it. I could just create an alias for joint instruction like
cd $HOME/games/Warzone && ./Warzone

but I wanted to see if it's possible to run it (simplifyng) like this: $HOME/games/Warzone/Warzone

Reason is because my dynamic menu searches for binaries in $PATH, so in order to use it should be launchable from any location.

Another thing, why such design choice to allow launch only from directory it resides?
You could add some check for relative location and look for appropriate files there.
Linux desktop app config: 2021-03-24 17:14:06


BJ 
Level 56
Report
IMO binary should be conscious of its location.
Linux desktop app config: 2021-03-26 12:37:26


The Voynich Manuscript
Level 56
Report
You could add a script in your $PATH with the name "warzone" and all it does is something like

cd /path/to/warzone && Warzone


then you can just type "warzone" in your shell and the script will launch the actual executable from its location

Is this what you're trying to do?
Linux desktop app config: 2021-03-27 03:36:27


cj13 
Level 62
Report
What do you mean by launch only from directory it resides?

➜  ~ ls bin/StandaloneLinux/       
LinuxPlayer_s.debug  UnityPlayer_s.debug  UnityPlayer.so  Warzone  Warzone_Data
➜  ~ cd Desktop/temp 
➜  temp ../../bin/StandaloneLinux/Warzone
Set current directory to /home/cj13/Desktop/temp
Found path: /home/cj13/Desktop/temp/../../bin/StandaloneLinux/Warzone


This runs fine...

Edited 3/27/2021 03:42:30
Posts 1 - 9 of 9