ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
137 stars 31 forks source link

NPC don`t connect after GMX restart #280

Open 0Z0SK0 opened 1 year ago

0Z0SK0 commented 1 year ago

After the restart, FCNPC does not connect the NPC (there are no messages in the log - "NPC_% has joined the server", but NPC_Create return True(1)).

But if you do another restart, everything works fine.

I think the problem is in the OnGamemodeExit hook, it cleans the structures incorrectly.

0Z0SK0 commented 1 year ago

A possible fix (Debian 12 and others) is disabling ASLR in the system.

echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

The problem probably arises due to the change of the base address of the samp-server.