Page 1 of 2
Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 2:20 am
by kutt
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision
6445:
L2JDP Revision
9641:
Hi everybody
I'm in the process of adding a Global Gatekeeper to my server. I have read many many many posts about people asking how to do it.
I have the NPC in my npc_custom table, and the html files in the gs->data->html->default folder.
however, when i go to spawn the NPC in game with my Admin character, the client crashes. Now since I've tried spawning that npc ONE time, everytime i log into my server, the client crashes immediately.
How can i fix this? Please help! I'd be very appreciative.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 2:26 am
by kutt
Also, this only happens when I bring a character close to the place i tried spawning this npc (giran). Otherwise i can go about my business fine.
It's like I need to somehow tell the server to not render that npc now...but i dont know how to do that.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 2:31 am
by kutt
update: I deleted the entry from the npc_custom table and i can now log in and wonder giran with no errors...but can anyone tell me what i did wrong while trying to add the global gk?
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 4:33 am
by Hyrelius
Have a look at your console output - perhaps you see some Exception there being thrown. Also it does matter what exception causes the crash of your client. For example if some L2-HTML is bad, it can crash your client, but it most likely won't occur when you just get near the NPC.
If it's when you go near that NPC, try changing the npc-template - perhaps your client is damaged or the server has some seriously invalid values or something.. there are so many possible reasons for a client crash, that I don't think anyone here can help you except if you post what your client crash report looks like and if your server console (or any other log) reveals some information.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 9:30 am
by Gries
Seems that the gatekeeper teleported you into a critical error.....

Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 10:16 am
by jurchiks
Obviously some NPC data is invalid. Did you copy the original NPC's stats exactly? You should only modify the name/title values, the NPC ID and maybe the type, leaving all other stuff same as the original.
P.S. Is your npc of type Teleporter? The htmls should be in data/html/teleporters/.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 4:05 pm
by HappyLDE
Make sure the ID of the template is correct and exists in your client as well.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 4:28 pm
by kutt
Gries wrote:Seems that the gatekeeper teleported you into a critical error.....

Lol, that actually made me laugh. Thank you.
HappyLDE wrote:Make sure the ID of the template is correct and exists in your client as well.
where do i find out if this exists in my client?
jurchiks wrote:Obviously some NPC data is invalid. Did you copy the original NPC's stats exactly? You should only modify the name/title values, the NPC ID and maybe the type, leaving all other stuff same as the original.
P.S. Is your npc of type Teleporter? The htmls should be in data/html/teleporters/.
Do you recommend gatekeepers in the npc_custom or just npc table? To get it to successfully insert to the database I had to delete one item from the end of the insert statement (it was '0') because the gatekeeper i downloaded had one extra value on it from what my table had available...I was using trial and error...lots of error.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 4:49 pm
by jurchiks
For custom NPCs only custom tables, don't mix custom and retail together.
custom_npc table allows NPC IDs with 7 digits, if that gk had more then it was too long in the first place. Some devs really like making their custom NPC IDs too damn long.
where do i find out if this exists in my client?
If the idTemplate is in the normal NPC table (not custom inserted) then it must exist in your client, unless you're using the wrong client.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 4:58 pm
by kutt
The npc id i was trying to use was 50003.
I don't see it in my npc table, and i have deleted it from my custom npc table now.
And i can use any existing idTemplate for my gatekeeper I want, correct?
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 5:02 pm
by jurchiks
Well that definitely should have worked...
Yeah, any existing will work. Just copy all the stats, not just the idTemplate.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 5:07 pm
by kutt
jurchiks wrote:Well that definitely should have worked...
Yeah, any existing will work. Just copy all the stats, not just the idTemplate.
Ok, so if I copy the npc data, and set my id to 50003, in the custom npc table, it should be fine?
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 5:41 pm
by jurchiks
Try and see.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 9:06 pm
by kutt
jurchiks wrote:Try and see.
I have tried, and I have succeeded...Next question, She spawns, i've edited the html's to spawn where i want them to. BUT, her name and title don't appear above her head. And when I spawn a second instance of her and you click on her, the name it comes up with is the original NPC's name.
Re: Tried adding global gk, client crashes on load now.
Posted: Sun Mar 30, 2014 9:30 pm
by kutt
Ok, I have a title and name showing up now...however it is the original NPC's name and title. Not my custom one. Any ideas?