putcomp problem

So I’ve been attempting to run a Graal The Adventure server, and it’s working pretty well, except for seemingly random crashes. I finally figured out that it was the baddies causing all those crashes.

While normal baddies (manually added in the level editor) work fine, baddies spawned with putcomp tend to crash the server. I did some testing and found that spawning one baddy with putcomp and killing it does nothing, but if more than one baddy is on the screen and one dies, everything gets real laggy and NPCs stop working, so I have to restart the server.

I found a couple threads on the matter but they weren’t much help. Does anyone know a proper fix or workaround for this problem? I really, really just want to play some classic Graal and do quests, and this shit is givin me a headache.

[QUOTE=LoakeyRonso;38880]
@trash use putnpc2 and make a text file with a default baddy script in it , you will have to make ganis for them tho as i don’t think any exist right now .
[/QUOTE]
Since I’m just trying to run Graal The Adventure, would I have to replace all instances of putcomp with this method? Because that’s gonna take ages. I know people have run GTA servers before so I’m wondering how they got around this problem.

Sooooo… no one else knows how I can stop the putcomp baddies in GTA from crashing the server?

Putcomp is worse than broken, there should be a thread from when somebody else was working on GTA before, can’t recall what they did. The last time somebody had it up they still had to deal with the server crashing all the time. Regardless I’d search the forums for GTA references and start looking through their problems/solutions.

I’ve been searching and searching, and I haven’t found anything useful. The only threads that mention this specific problem stop just short of having an actual solution. I’m about to just give up on this. Blegh

They actually cause worse problems than server crashing, the best way to go really is to delete any instance and replace it with baddies or something. Otherwise you randomly get invisible baddies you can’t kill.

Yeah, what I’m doing now is just playing through all the quests, and if any putcomp baddies show up and crash the server, I just edit the level and replace them with normal baddies. It’s a huge pain, but oh well. Thanks for trying to help, anyways.

If you can duplicate the problem in a level and send it to me, I can look for the cause and fix it.

Here’s what I figured out: If more than one putcomp/putnewcomp baddy is on the level and one dies, everything starts lagging really bad and NPCs cease to function, forcing me to restart (and the gserver will only close if I hit the X, ctrl+C won’t work). However, if there is only one baddy and it dies, nothing happens.

I also tried putting putcomp baddies together with regular baddies (added to the level manually). The regular baddies die without any problems, but as soon as I kill one of the putcomp baddies, it crashes (even if it’s the only baddy left in the level).

Hope you can figure out what’s causing this and fix it. It’s driving me nuts.

Okay, I solved it. There gserver was getting stuck in an infinite loop. If you want the fix, you’ll have to grab the source code and compile the gserver yourself, or you will have to use gserver2 version 0.14.0.

Hopefully I’ll release a new version of the gserver soon-ish.

I thought it was obvious it was falling into an infinite loop. Just didn’t know why.