Titan Network

Community => City of Heroes => Topic started by: Kaiser Tarantula on February 01, 2013, 11:40:28 PM

Title: NPC Idle Chatter - is it in the client?
Post by: Kaiser Tarantula on February 01, 2013, 11:40:28 PM
One of the best things about CoH was the idle chatter and text responses of NPCs.  Some quality lore was buried in those.  With the game now down, we can no longer use it as a reference.

However, that got me thinkin' - are the NPC chatter lines stored in the client?  Can we perhaps data-mine the client to get them out and read them again?

I personally wouldn't know where to begin, but there's gotta be folks on here who know better than I do.  I kinda want to compile a Praetorian Clockwork dictionary.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: redgiant on February 02, 2013, 10:59:57 PM
Try a pigg viewer, a lot of message text for the UI menus and dialog for localization is in the .pigg files. Not sure about all of the NPC chatter but I can't imagine them downloading that text on-the-fly at runtime.

misc.pigg has a lot of text like the above, for example.

Rule #1 of MMO network code is: Don't send it if you can install it on the client.

It's not inviolable, but to deviate would mean there is a big benefit to counter the disadvantage of further burdening the server with Stuff It Shouldn't Have To Do while still coping with all the Stuff It Has To Do. An advantage like dynamic branching decision making and associated text that they only update in the server without needing you to patch anything, at the expense of having to download it lazily at login, map load or whatever event makes the most sense for locality, prediction and perf.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Codewalker on February 03, 2013, 05:46:52 AM
No, NPC dialog is not in the client. It arrives over a chat channel just like if a player were talking in /local, except it's the NPC channel.

For a while, however it WAS in the client, along with mission briefing text. Apparently this was an accident and those localizations were not supposed to end up in the client files. It was definitely there at GR release and disappeared somewhere around issue 21.

So if you can dig up an old version, you might be able to find some of what you're after.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Triplash on February 03, 2013, 06:33:11 AM
Quote from: Codewalker on February 03, 2013, 05:46:52 AM
For a while, however it WAS in the client, along with mission briefing text. Apparently this was an accident and those localizations were not supposed to end up in the client files. It was definitely there at GR release and disappeared somewhere around issue 21.

So if you can dig up an old version, you might be able to find some of what you're after.

So... a really good place to start would be the install you get from the GR edition disc?
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Codewalker on February 03, 2013, 02:02:49 PM
If you have one, clientmessages-en.bin is the file you're after.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Kaiser Tarantula on February 03, 2013, 04:16:13 PM
Drat.  The only installation disc I have is the Good vs. Evil edition from way back when.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Triplash on February 03, 2013, 05:58:44 PM
Well I could install mine and send you that file out of it. One question first. For purposes of Icon and... possible future things... I don't need the game installed, right? Just keep a copy of the main folder and things can run from in there.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Blondeshell on February 03, 2013, 07:07:14 PM
Some of us kept historical copies of the \piggs folder as each issue came out..

Issue 20 clientmessages-en.bin (https://www.filesanywhere.com/fs/v.aspx?v=8b69628b5f667276a1)
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Triplash on February 03, 2013, 07:54:55 PM
That works too :)

Archiving type people are awesome. They really are.
Title: Re: NPC Idle Chatter - is it in the client?
Post by: Arachnion on February 03, 2013, 10:34:59 PM
Thanks for that, Blondeshell!

;D