1 (edited by ReD|FoX43.rus 2014-02-12 16:01:48)

Topic: I dont know this error

Hello, tees.

I've made a mod, but smth went wrong.
It crashes on "MACRO_ALLOC_POOL_ID_IMPL(CPlayer, MAX_CLIENTS)" (player.cpp line 9)

I didnt change anything in this part of source...

P.S. In linux it crashes with segmentation fault

As I noticed, after map change some Classes isnt reset.
For example, when i change map, old positions of pickup(shotgun, grenade, rifle, hp, armor) didnt delete.
So when another map loaded, old pickups appeard in map where they dont have to be.

So i think i deleted function which resets all game.
Help to fix it:)

Sry for my bad English

2

Re: I dont know this error

So something seems to be wrong with deleteing/creating players.

Why don't you just revert the changes you made if you know that something is not reset correclty?


Use a debugger to see what happened right before the crash. Maybe this helps you to find the cause.

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

3

Re: I dont know this error

meh...
I can't find bug
I've re-made mod...

P.S. If sb meet this problem

if(m_apPlayers[ClientID])
OnClientDrop(ClientID);

in OnClientConnected function can help you.
But its not full solution.