Tried adding global gk, client crashes on load now.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Tried adding global gk, client crashes on load now.

Post 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.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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?
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: Tried adding global gk, client crashes on load now.

Post 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.
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
User avatar
Gries
Posts: 307
Joined: Fri Jun 17, 2011 9:45 am

Re: Tried adding global gk, client crashes on load now.

Post by Gries »

Seems that the gatekeeper teleported you into a critical error.....

Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Tried adding global gk, client crashes on load now.

Post 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/.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Tried adding global gk, client crashes on load now.

Post by HappyLDE »

Make sure the ID of the template is correct and exists in your client as well.
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post by kutt »

Gries wrote:Seems that the gatekeeper teleported you into a critical error.....

Image

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.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Tried adding global gk, client crashes on load now.

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Tried adding global gk, client crashes on load now.

Post by jurchiks »

Well that definitely should have worked...
Yeah, any existing will work. Just copy all the stats, not just the idTemplate.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Tried adding global gk, client crashes on load now.

Post by jurchiks »

Try and see.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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.
kutt
Posts: 49
Joined: Sat Mar 08, 2014 1:47 am
Location: USA

Re: Tried adding global gk, client crashes on load now.

Post 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?
Post Reply