NOTE: DEFAULT WOULD BE . FOR CURRENT DIRECTORY, TO NOT BREAK CURRENT INSTALLATIONS.
The worldserver/loginserver should also be able to find the configs in /etc/eq2emu/CONFIG.ini (but if there's a config in the current directory, use that instead).
This would also probably require being able to specify a custom log path, probably also in LoginServer.ini.
logpath=/var/log/eq2emu
Both logpath and script/structpath should definitely default to their current paths, ., but this would allow for package maintainers to package it appropriately for their distribution.
I plan on adding something like this in my fork and would like to see it upstreamed as well, along with getting feedback on approaching this issue. After this is added, I'll add a Debian packaging script and make a Debian repo to make it easy for people to maintain their own servers.
Allowing scripts to be in a custom path would help with packaging for Linux distributions.
My proposal is to add something like this to LoginServer.ini (or another more appropriate ini by suggestion).
```
[WorldServer]
scriptpath=/var/lib/eq2emu/scripts
structpath=/var/lib/eq2emu/structs
```
NOTE: DEFAULT WOULD BE `.` FOR CURRENT DIRECTORY, TO NOT BREAK CURRENT INSTALLATIONS.
The worldserver/loginserver should also be able to find the configs in `/etc/eq2emu/CONFIG.ini` (but if there's a config in the current directory, use that instead).
This would also probably require being able to specify a custom log path, probably also in LoginServer.ini.
```
logpath=/var/log/eq2emu
```
Both logpath and script/structpath should definitely default to their current paths, `.`, but this would allow for package maintainers to package it appropriately for their distribution.
I plan on adding something like this in my fork and would like to see it upstreamed as well, along with getting feedback on approaching this issue. After this is added, I'll add a Debian packaging script and make a Debian repo to make it easy for people to maintain their own servers.
Allowing scripts to be in a custom path would help with packaging for Linux distributions.
My proposal is to add something like this to LoginServer.ini (or another more appropriate ini by suggestion).
NOTE: DEFAULT WOULD BE
.
FOR CURRENT DIRECTORY, TO NOT BREAK CURRENT INSTALLATIONS.The worldserver/loginserver should also be able to find the configs in
/etc/eq2emu/CONFIG.ini
(but if there's a config in the current directory, use that instead).This would also probably require being able to specify a custom log path, probably also in LoginServer.ini.
Both logpath and script/structpath should definitely default to their current paths,
.
, but this would allow for package maintainers to package it appropriately for their distribution.I plan on adding something like this in my fork and would like to see it upstreamed as well, along with getting feedback on approaching this issue. After this is added, I'll add a Debian packaging script and make a Debian repo to make it easy for people to maintain their own servers.
Not a working patch, but this is essentially along the lines of what I'm thinking of for the log + data path.