Dont replace the stock iwd files. Add an iwd file with the same file in it (maps/mp/gametypes/dm.gsc) with a higher prefix (like zzz_my_mod.iwd) to your main folder, or switch to a fs_game.
Dont replace the stock iwd files. Add an iwd file with the same file in it (maps/mp/gametypes/dm.gsc) with a higher prefix (like zzz_my_mod.iwd) to your main folder, or switch to a fs_game.
i replaced iwd file with stock one. I remember i got disconnected while transfering (from laptop to server via ssh), so it must have happened then. now it is replaced and it is working fine. Tnx to all
The error came back :( and i tryed what Robson sugested..server crashes couse it detects false iwd file :/
dont know what else to do here...anything?
can you give me some intel why do i get error in dm.gsc..it is the second errror since i installed server. Do you have any answers. Thanks
******* script runtime error *******
removed entity is not an entity: (file 'maps/mp/gametypes/dm.gsc', line 347)
lpattacknum = attacker getEntityNumber();
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 69)
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
*
started from:
(file 'maps/mp/gametypes/dm.gsc', line 704)
waittillframeend;
*
************************************
********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/dm.gsc', line 704)
********************
----- Server Shutdown -----
Sending heartbeat to cod2master.activision.com
==== ShutdownGame ====
attacker makes a kill, and in that same instant leaves the server. The attacker is no longer valid. The server is then trying to get his entity number, and can't because he has left the server. Hence the error.
I wouldn't worry about it. it is just a small glitch in the game code.
i wouldnt worry about it if server would still be running after this error, but it shuts down.That is why i am trying to find a solution. TY
turn developer off (/rcon developer 0; rcon map_restart) when you make your mod public.
Or change that piece of code a bit so it checks if the attacker is still defined, or make it determine the attacker's entnum earlier on.
Script runtime errors do not shut a server down. They are simply reported, but the server carries on. As IzNoGod has said, make sure you aren't running in developer mode. That is the only explanation for a server shutting down after a runtime error - that you have developer mode switched on.
ok guys. TNAX ALOT. will try this. and report back in day or two.
p.s. : ok, have tryed that but still error. How can i check if i set developer to 0? is there a way to know if it is set to 0?
sure, type /rcon developer open console and check what value is set.
so easy you say, a? ;) i checkedit and it is set to 0. I hope i dont get those errors now. will let you know.
Failing that, turn off logfile - in your server config file, set this:
set logfile "0"
I get a error in iptables when i write this code:Error message:Code:iptables -A INPUT -p udp -m string --algo bm --string "BANNED_CDKEY" --sport 20700 --dport 28961 -j DROP
iptables -A INPUT -p udp -m string --algo bm --string "INVALID_CDKEY" --sport 20700 --dport 28961 -j DROP
What to do?Code:iptables: No chain/target/match by that name.
Im using CentOS.
And i get this:
Code:-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
Maybe try adding -t filter.
https://www.centos.org/forums/viewtopic.php?t=8995Code:iptables -t filter -A INPUT -p udp -m string --algo bm --string "BANNED_CDKEY" --sport 20700 --dport 28961 -j DROP
iptables -t filter -A INPUT -p udp -m string --algo bm --string "INVALID_CDKEY" --sport 20700 --dport 28961 -j DROP
I had tried it already.. It don't work :/
sorry to interupt again..but is there a way to disable DM mode, so only TDM, HQ, CTF,... are enabled. I think it crashes becouse of DM mode.
And i would also like to know if i can disable vote for DM mode (i have votes enabled). so they wont be able to vote for DM Carentan for example, but to still give them all other vote permisions??? thanks
Remove iw_07.iwd and iw_15.iwd from your servers main folder, then repack all those files into another file from which you remove dm.gsc, then use that file on your server (do not name it iw_07 or iw_15.iwd)
Does 'iptables -m string -help' work? And what does it say? You are probably missing the string filter module for iptables.
When you do 'cat /proc/net/ip_tables_matches' it should contain atleast string.
If it isn't in the list try loading it with: modprobe ipt_string.
Hi, so, which file is, what show the masterserver, and no must waiting 20mins? I use 1.3 cracked linux server, port: 28139
Read the information here: http://killtube.org/showthread.php?1...ull=1#post8293
Edit: INVALID_CDKEY means that the cd key is in use.Code:iptables -A INPUT -p udp -m string --algo bm --string "BANNED_CDKEY" --sport 20700 --dport 28139 -j DROP
iptables -A INPUT -p udp -m string --algo bm --string "INVALID_CDKEY" --sport 20700 --dport 28139 -j DROP
very nice tutorial.
is it possible to do the same for CoD4 servers?
iptables strings are not working for me. Only this is working:
Quote:
iptables -A OUTPUT -p udp --dport 20700 -j DROP
unfortunately if I did this
the servers become invisible in the master list. *SAD*Quote:
iptables -A OUTPUT -p udp --dport 20700 -j DROP
This strings are not working at all:
no matter ports, destination or source.Quote:
iptables -A INPUT -p udp -m string --algo bm --string "BANNED_CDKEY" --sport 20700 --dport 28961 -j DROP
iptables -A INPUT -p udp -m string --algo bm --string "INVALID_CDKEY" --sport 20700 --dport 28961 -j DROP
So I did a traffic dump, and I have this UDP stream from port 20700:
*??? > replaced some unique ids I believe, related to CDkey and etc... guid or something.Code:....getIpAuthorize 250977360 7.7.**.** "" 0 PB "???"....ipAuthorize 250977360 deny BANNED_CDKEY 0 ???.
Conversation is going both ways - in and out between server IP and 63.146.124.40 (cod2master.activision.com has address 63.146.124.40).
After all that, server sends to client
and that's it.Code:....error
EXE_ERR_BAD_CDKEY
Can you help?
Linux server, ubuntu 13.10, game servers 1.3 CoD2
---
update: If the string IpAuthorize is removed, connection is ok with invalid cdkey,
"Connecting player #4 has a zero GUID" and "Sending heartbeat to cod2master.activision.com". Server is missing in master list.
I tested on my own Ubuntu 13.10 (desktop) and I can add the iptables rules there (sudo is required if you are not running it under root)
You need to change the port to the port you are running your server on:
(sport is master server's port and dport is your own)Code:iptables -A INPUT -p udp -m string --algo bm --string "BANNED_CDKEY" --sport 20700 --dport [your game port] -j DROP
iptables -A INPUT -p udp -m string --algo bm --string "INVALID_CDKEY" --sport 20700 --dport [your game port] -j DROP
Now you need a modified binary for your game that you can find here:
http://killtube.org/showthread.php?1...-(1-0-1-2-1-3)
(you need at least the nodelay)
Hi Mitch,
happy new year and thank you for your answer.
I found a way to fix it. Unfortunately it is not working with ip tables at all.
Just find getIpAuthoruze in bin file using hex editor and rename it (first one) with something else, so it will not get IP authorization for clients who want to connect to the server. That's it. :)
You need to change the sport to 20710.
Edit: you might need both, because it seems to resolve to 20700 too. I am still having problems with the port 20700. Wireshark says it is unreachable for me.Quote:
Resolving cod2master.activision.com
cod2master.activision.com resolved to 63.146.124.40:20710
Quote:
[21:48] Mitch: hi
[21:48] Mitch: can you edit my post
[21:48] Mitch: http://killtube.org/showthread.php?1...ter-list/page8
[21:48] Mitch: and say that port 20700 is for player info (guid)
[21:49] Mitch: and 20710 is for reporting to the master server
[21:49] Mitch: aka heartbeat
[21:56] <This user is now offline>
Hi,
thanks for the great guides. I'm having problems with iptables. It doesn't seem to be filtering "BANNED_CDKEY" and "INVALID_CDKEY". I've installed on Ubuntu Server 14.04. Everything works, but it's not showing in master list and not filtering those two and all people that don't have an original cd-key can't connect.
My iptables:
Any idea?Code:root@oc:/home/cod2server# iptables -nL | grep 20700
DROP udp -- 0.0.0.0/0 0.0.0.0/0 STRING match "BANNED_CDKEY" ALGO name bm TO 65535 udp spt:20700 dpt:31333
DROP udp -- 0.0.0.0/0 0.0.0.0/0 STRING match "INVALID_CDKEY" ALGO name bm TO 65535 udp spt:20700 dpt:31333
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:20700
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:20700
Hm I ran a command:
But I still've got the same error: Bad CD Key code.Code:LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded_1_3_nodelay_va_loc +set fs_basepath /home/cod2server/cod2 +set fs_homepath /home/cod2server/cod2 +set net_ip *.*.*.* +set net_port 31333 +set dedicated 2 +exec dedicated.cfg +set sv_punkbuster 1 +map_rotate
Am I doing something wrong?
You are using a nomysql version, did you compile it yourself? Otherwise it might be damn old. Try this one: http://killtube.org/downloads/libcod/2014_05_22/
Like IzNoGod said, you need to set sv_cracked. Example:
Code:
LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded_1_3_nodelay_va_loc +set fs_basepath /home/cod2server/cod2 +set fs_homepath /home/cod2server/cod2 +set net_ip *.*.*.* +set net_port 31333 +set dedicated 2 +exec dedicated.cfg +set sv_punkbuster 1 +set sv_cracked 1 +map_rotate
@kung foo man: I've tried your code with updated libcod2_1_3.so and it still says Invalid CD Key :/
@Mitch: yes, mine runs on 31333.
Any other advice will be greatly appreciated. Thanks!
Yes, I used kung foo man's code:
Is it ok if I use for a cracked server cod2_lnxded_1_3_nodelay_va_loc file?Code:LD_PRELOAD=libcod2_1_3.so ./cod2_lnxded_1_3_nodelay_va_loc +set fs_basepath /home/cod2server/cod2 +set fs_homepath /home/cod2server/cod2 +set net_ip *.*.*.* +set net_port 31333 +set dedicated 2 +exec dedicated.cfg +set sv_punkbuster 1 +set sv_cracked 1 +map_rotate
I've solved it! I only changed code to:
Then I updated punkbuster and everything is smooth :)Code:LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_3.so ./cod2_lnxded_1_3_nodelay_va_loc +set fs_basepath /home/cod2server/cod2 +set fs_homepath /home/cod2server/cod2 +set net_ip *.*.*.* +set net_port 31333 +set dedicated 2 +exec dedicated.cfg +set sv_punkbuster 1 +set sv_cracked 1 +map_rotate
Thank you all for your help!