I always disliked the Radiant triggers, so I created my own triggers, which I could also place in custom maps.
Random dump of the script files used to create custom triggers with example code just...
I always disliked the Radiant triggers, so I created my own triggers, which I could also place in custom maps.
Random dump of the script files used to create custom triggers with example code just...
You're replying to a thread that has [advanced] in its title with basic programming questions, without providing any error logs.
Dont. Do. That.
Hey all,
you can now add your YouTube / GitHub / Steam profile links to your user account. I had to add some regexes to prevent the input against XSS attacks, so this is what I came up with:
...
Hey guys! I'm pretty happy to announce that we just launched a new server hosting company called Ares-Servers. We have a variety of games over at https://ares-servers.com including CoD1, CoD UO,...
Great, i will add it soon, just need to find offsets for 1.2 and 1.3 too
Edit: Ok here it is: https://github.com/voron00/libcod/commit/88ee15a056b71540387e3a0b7c0a0ec3a4958125
Didn't test on...
Ok, watching a bit longer the pointer logic going on here, I just realized my if's were total useless, they actually can't check anything. They basically add a number to 0 or greater and test if that...
1106
Original crash, without overwriting in libcod.
Hm, I wonder if #0 is really the last executed opcode address (program counter, aka PC), since the backtrace should probably be a bit more similiar. Can you post the output of layout asm in gdb?
...
Ookay..I just had the same segfaults today. And i almost know how it happens: 2 guys, with the same ip(!), GUID 0(!). 1 of them crashes with the EXE_LOSTRELIABLECOMMANDS (i didn't really get this...
Based on vorons reversed function, lets just eliminate all possible segfaults (four dereferences of pointers in the if):
int hook_BG_IsWeaponValid(int a1, int a2) {
int v3;
...
*(char**)foo casts foo to a char-pointer-pointer. char-pointers are basically arrays of characters, more commonly referred to as strings. So a char-pointer-pointer is a string-pointer. The * in front...
The prints are ok but you wont get any useful info from that as it will return the same integer its char becasue that will return the name of weapon e.g m1garand_mp, and ye it must be right after v3...
Also maybe put:
printf("Last weapon used: %s\n", *(char**)(v3 + 0));
To see which weapon has crashed the server (this would be the last message before the crash then). Have you tried...
Ok so the crash is in the BG_IsWeaponValid, which is (i guess ) related to weapons. You proably need to check them out. And this function is small so why not just revere it, going to be a piece of...
Ye, but remember the "Original" function is still redirected, so when you call it without unhooking it, you are catched in a loop. Hence this little helper class:
cHook::cHook(int from, int...
I didn't fully understand the magic stuff and database thing but apparently you want to find what causes the segfault.
When a program crashes it should generate a core dump file. For more or less...
Some useful IDA macros I thought i'd dump here for future reference;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned long ulong;
//...
You don't need to let it crash, you can unhook a hooked function in itself, call itself, save the return value, rehook it and just return the saved value, so for the engine it's like nothing...
http://www.nesmaps.com/maps/SuperMarioBrothers/SuperMarioBrosMap1-2.png
The rate limit patch is not related to crashes. It is for preventing people from generating too much traffic on your server.
I never found why the server crashes when you are seeing a few cmdCount...
Hey guys,
I managed to reduce the footprint of the cod2 server files to a whopping 325 meg, using some dirty, dirty libcod tricks.
Anyone interested in this?
Have you tried debugging where that async query fails? I got servers with lots of uptime using async mysql without any problems.
+ async: no lags
- async: my server crash by error Segmentatio Fault
PS: i remove async and make normal query (mysql_query(...)) - server stop crashing (uptime > 20 days)
Stop blaming async mysql for your crashes unless you can show a stacktrace.
Async mysql is required if you run your mysql server on a different box, as network laggs transition into server laggs....
By default the name is always "core" I think, hence overwriting old core dumps, but you can change the name pattern and add the PID for example:...