Iye, on 24 March 2020 - 11:21 AM, said:
The dedicated server also uses the q3config to store its settings. In case you make any changes while the server is running, those need to be stored. The game can only write out the whole config file, so it cannot edit your server.cfg
This is one of the reasons you are not supposed to run a server out of your client directory.
As far as i know unlimited ammo is not a feature that you can enable, but requires a server side modification. The best you can do with cheats enabled is give yourself ammo using a command/keybind.
as for ammo i just wanted to spam weapons while jumping instead of saving and loading location after dying to regain ammo but i think i can live with that
as for q3config.cfg file i found workaround since i dont want to guess if map i wanna play is in server map folder or not i just want them to be in same folder where all downloaded maps are so i wont need to care about it ever again
but thx anyway now i know not to dig deeper into the problem
if any1 have same issue like me here is my workaround with batch script
!!! BUT BEFORE YOU DO ANYTHING JUST IN CASE BACKUP q3config.cfg FILE !!!
1. open text editor and paste there what i write below in
BOLD YELLOW text (i gonna explain what each line do at the end)
cd "q3ut4"
if not exist "CONFIG" mkdir CONFIG
xcopy /y "q3config.cfg" "CONFIG"
cd ..
start "" "Quake3-UrT-Ded.exe" +exec server.cfg
cd "q3ut4"
cd "CONFIG"
ping 127.0.0.1 -n 4 > nul
xcopy /y "q3config.cfg" ..
Exit
2. click file>save as> and save it as .bat for example Urban Terror Server.bat (you could just download any .bat file from internet right click it and hit edit then just paste my script into it and hit ctrl+s and it will still work)
3. place it in urban terror main folder same place where you have Quake3-UrT.exe and Quake3-UrT-Ded.exe
4. just launch it and enjoy
for ppl that dont want to see command prompt window and care to convert it to exe so they can set some cool icon (tons of them on google images)
download
https://bat-to-exe-c...en.softonic.com Bat to Exe Converter
all you need to do with it is
in batch file well chose batch file
in visibility choose invisible application
now go to version information tab
in icon file just select icon of your choosing
and hit compile
its done just put it in urban terror main folder like in step 3
as for script what it does i gonna explain function of each line (but in short of it it just copy your q3config.cfg file to different folder then wait some time (which you can adjust) while server is loading and is overwriting q3config.cfg with default one after which it copy it back to q3ut4 folder so everything looks like it was untouched)
cd "q3ut4" <- from where bat file was executed it tells it to go to q3ut4 folder
if not exist "CONFIG" mkdir CONFIG <- in q3ut4 folder if there is no CONFIG folder it will just create it if it does it will just skip this line
xcopy /y "q3config.cfg" "CONFIG" <- copy q3config.cfg file and paste it into CONFIG folder where /y means if it exist overwrite it without asking for confirmation
cd .. <- CD mean go to folder while .. mean one above so we are back in urban terror main folder
start "" "Quake3-UrT-Ded.exe" +exec server.cfg <- start mean execute this line and proceed with rest of the script ("") this actually refers to IN CURRENT DIRECTORY launch Quake3-UrT-Ded.exe applying server.cfg file (note that quotation signs "" alone are for CURRENT DIRECTORY while "program.exe" quotation signs containing some file name are there just for script to read whole file name)
cd "q3ut4" <- CD means go to folder q3ut4 in this case
cd "CONFIG" <- CD go to folder CONFIG
ping 127.0.0.1 -n 4 > nul <- this whole line is just delay command for script to wait 4 secs in this case you can change to anything you want in case your server loads longer or faster than mine for example ping 127.0.0.1 -n
10 > nul will make script wait for 10 seconds
xcopy /y "q3config.cfg" .. <- again its copy q3config.cfg file and paste it here .. means go one folder above so we go from CONFIG folder to q3ut4 folder
Exit <- i let you guess what it means
i hope someone will find it helpful
This post has been edited by zerox4: 24 March 2020 - 03:56 PM