ricky Posted September 3, 2011 Share Posted September 3, 2011 Hi I can get my swat 4 server running on the desktop, then i get message unblock this in firewall works fine, shows up on hlsw. But no matter what i do to the instal uninstal scripts, when the server is created its not adding to the firewall exceptions, anyone have any ideas. I have searched the forums on swat4 for cant see any post pointing to the problem i have. many thanks for any help Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted September 3, 2011 Share Posted September 3, 2011 hows your install script? is the swat 4 server running under local system account? Link to comment Share on other sites More sharing options...
ricky Posted September 4, 2011 Author Share Posted September 4, 2011 Hi heres my instal script @echo off&setlocal enableextensions for %%* in (.) do set serviceid=%%~n* if not defined serviceid set serviceid=%CD:\=% net user %serverip%%serverport% /add /passwordchg:no net localgroup tcagroup %serverip%%serverport% /add net localgroup users %serverip%%serverport% /delete net accounts /maxpwage:unlimited cacls "E:\Program Files\TCAdmin Control Panel\Monitor\Services\%serviceid%" /t /e /g %serverip%%serverport%:f cacls %gameserverroot%.. /t /e /g %serverip%%serverport%:f sc config %serviceid% obj= .\%serverip%%serverport% password= netsh firewall add allowedprogram "%gameserverexe%" %serverip%_%serverport% ENABLE Link to comment Share on other sites More sharing options...
adamnp Posted September 4, 2011 Share Posted September 4, 2011 is it not adding it at all? or are you just still not getting to the game--If the latter, remember Swat4 utilizes 2 ports make sure you have them both open. I also recall it being quite finicky and only wanting to run on the 'main' ip of the server. Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted September 4, 2011 Share Posted September 4, 2011 Hi heres my instal script @echo off&setlocal enableextensions for %%* in (.) do set serviceid=%%~n* if not defined serviceid set serviceid=%CD:\=% net user %serverip%%serverport% /add /passwordchg:no net localgroup tcagroup %serverip%%serverport% /add net localgroup users %serverip%%serverport% /delete net accounts /maxpwage:unlimited cacls "E:\Program Files\TCAdmin Control Panel\Monitor\Services\%serviceid%" /t /e /g %serverip%%serverport%:f cacls %gameserverroot%.. /t /e /g %serverip%%serverport%:f sc config %serviceid% obj= .\%serverip%%serverport% password= netsh firewall add allowedprogram "%gameserverexe%" %serverip%_%serverport% ENABLE change this to: sc config %serviceid% obj= LocalSystem netsh firewall add allowedprogram "%gameserverexe%" %serverip%_%serverport% ENABLE Swat4 has to be started under local system account to work properly Link to comment Share on other sites More sharing options...
ricky Posted September 4, 2011 Author Share Posted September 4, 2011 I have it set to primary ip And i have changed the install script last 2 lines to what you said, and also deleted my instal script and added only the 2 lines you said. Thank you so far for your help still cant get responce through tca admin and still not being added to the firewall exceptions Here is my command line that im using Downloaded off here -port=%serverport% Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.