Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » All about modding JA2 » Changing Voice File slots for Merchants
Changing Voice File slots for Merchants[message #344367] Fri, 04 March 2016 17:43 Go to next message
edmortimer

 
Messages:829
Registered:January 2015
Location: Home Free
I tried to create more merchants using NPCs. However, they would use voice file slots that are used for that character's main storyline -- their intro dialogue, their game hint, being attacked, etc. How would I go about changing the slots the game calls for merchant related business? Is this even possible? If not, then there's no way to use existing NPCs as new merchants (buy, sell, repair). Also, does anyone have the all voice file slots called by the merchant routine?




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Changing Voice File slots for Merchants[message #344370 is a reply to message #344367] Fri, 04 March 2016 20:56 Go to previous messageGo to next message
Scheinworld

 
Messages:907
Registered:December 2007
Location: Baltic Sea, Germany
Hi Ed,

I never created a new merchant or repairguy with Flugente's Externalised Merchants feature, but I always had this idea in the back of my head.

edmortimer wrote on Fri, 04 March 2016 16:43
Also, does anyone have the all voice file slots called by the merchant routine?


I would suggest to check and compare the .edt files (and dialogue lines) of existing merchants like Tony, Keith, Jake... and see if their lines (and content) have things in common.
If you see commonalities please note the Speech Record number(s) / NPC_Speech file names.

For changing Record numbers you have to use a NPC-Editor otherwise, but maybe you can avoid this step.

Good luck!


Best regards; Schein...

[Updated on: Fri, 04 March 2016 20:58]




Kermi's JA2 archive | JA2 (v1.13) Wiki & friends
"a mod is never finished, only releasable"

.- Will Gates


Re: Changing Voice File slots for Merchants[message #344373 is a reply to message #344370] Fri, 04 March 2016 21:33 Go to previous messageGo to next message
edmortimer

 
Messages:829
Registered:January 2015
Location: Home Free
Quote:
never created a new merchant or repairguy with Flugente's Externalised Merchants feature, but I always had this idea in the back of my head.


I finally figured it out and got it to work perfectly . . . except for the speech files. The merchants will work, just say the wrong things.

Quote:
I would suggest to check and compare the .edt files (and dialogue lines) of existing merchants like Tony, Keith, Jake... and see if their lines (and content) have things in common.
If you see commonalities please note the Speech Record number(s) / NPC_Speech file names.


I was hoping I wouldn't have to do that, but it seems I'll have to. It seems SirTech re-used speech record numbers without any standard . . . because the NPCs I tried (almost all of them) said different things from different situations. For example, when saying 'good bye" as a merchant Father Walker would use his 'getting attacked' speech file, while Waldo would use either one of his two normal 'good-bye' speech files.

Quote:
For changing Record numbers you have to use a NPC-Editor otherwise, but maybe you can avoid this step.


I'm afraid that is the way it'll have to be. I haven't used the NPC-Editor yet . . . got any documentation for it?




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Changing Voice File slots for Merchants[message #344376 is a reply to message #344373] Fri, 04 March 2016 21:59 Go to previous messageGo to next message
Scheinworld

 
Messages:907
Registered:December 2007
Location: Baltic Sea, Germany
Hi Ed,

edmortimer wrote on Fri, 04 March 2016 20:33
I finally figured it out and got it to work perfectly . . . except for the speech files. The merchants will work, just say the wrong things.


If it works why you just don't replace these "wrong" speech files with voice file(s) of right content?

Just note which speech file(s) your merchant NPC wrongly says in which situation and exactly these speech files you replace with something useful, edit the .edt and voilĂ ! :-)


edmortimer wrote on Fri, 04 March 2016 20:33
I'm afraid that is the way it'll have to be. I haven't used the NPC-Editor yet . . . got any documentation for it?


Best NPC scripting info is still from The_Scorpion I think:
http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=13298&goto=188151&#msg_188151

I have no documentation about any NPC-Editor itself, sorry. You can find a few in Kermi's archive, but best you see and test yourself which one is the best for you (and which is running on your system?).
http://kermi.pp.fi/JA_2/Modding_Tools/


Best regards; Schein...



Kermi's JA2 archive | JA2 (v1.13) Wiki & friends
"a mod is never finished, only releasable"

.- Will Gates


Re: Changing Voice File slots for Merchants[message #344377 is a reply to message #344376] Fri, 04 March 2016 22:10 Go to previous messageGo to next message
edmortimer

 
Messages:829
Registered:January 2015
Location: Home Free
Quote:
I finally figured it out and got it to work perfectly . . . except for the speech files. The merchants will work, just say the wrong things.

If it works why you just don't replace these "wrong" speech files with voice file(s) of right content?

Just note which speech file(s) your merchant NPC wrongly says in which situation and exactly these speech files you replace with something useful, edit the .edt and voilĂ ! :-)


Because it replaces important speech files. Though Waldo uses his goodbye lines for goodbye, he uses his Skyrider hints for the rest of his merchant speech.

Edit: Likewise, Father Walker uses his Food for Omerta lines for his merchant speech. As an example.

Quote:
Best NPC scripting info is still from The_Scorpion I think:
http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=13298&goto=188151&#msg_188151

I have no documentation about any NPC-Editor itself, sorry. You can find a few in Kermi's archive, but best you see and test yourself which one is the best for you (and which is running on your system?).
http://kermi.pp.fi/JA_2/Modding_Tools/


I'm afraid these editors will corrupt the files -- as the editors do not seem to be updated regularly. So the one named NPC-Editor is good to use?

[Updated on: Fri, 04 March 2016 22:13]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Changing Voice File slots for Merchants[message #344379 is a reply to message #344377] Fri, 04 March 2016 23:07 Go to previous messageGo to next message
Scheinworld

 
Messages:907
Registered:December 2007
Location: Baltic Sea, Germany
Hi Ed,

edmortimer wrote on Fri, 04 March 2016 21:10
Because it replaces important speech files. Though Waldo uses his goodbye lines for goodbye, he uses his Skyrider hints for the rest of his merchant speech.

Edit: Likewise, Father Walker uses his Food for Omerta lines for his merchant speech. As an example.


Okay, I see. Then you can't get out of using a NPC-Editor to change Speech Record number(s) in specific .npc file, edit the specific .edt with an EDT-Editor and finally don't forget to add the NPC_Speech file with right name/Record number.


Quote:
I'm afraid these editors will corrupt the files -- as the editors do not seem to be updated regularly. So the one named NPC-Editor is good to use?


No. The .npc script format of current v1.13 is still the same like in old vanilla. So the NPC-Editors do not need to be updated in this regard, but could make running problems on modern PC's and/or different systems eventually. I still use Windows XP and/or Windows 7.

I still use this old one here:
http://kermi.pp.fi/JA_2/Modding_Tools/NPC.rar

And sometimes the one from Batman:
http://kermi.pp.fi/JA_2/Modding_Tools/NPCEdit.zip

The NPC Scripter by VM is a newer one and most current as far as I can say, but I'm not sure(!):
http://kermi.pp.fi/JA_2/Modding_Tools/NPC_Editor_BigMaps.zip

There are some other NPC-Editors in Kermi's FTP. You have to see and test which one you like and you can handle best. Good luck with the scripts! thumbs up


Best regards; Schein...

[Updated on: Fri, 04 March 2016 23:18]




Kermi's JA2 archive | JA2 (v1.13) Wiki & friends
"a mod is never finished, only releasable"

.- Will Gates


Re: Changing Voice File slots for Merchants[message #344383 is a reply to message #344379] Sat, 05 March 2016 08:23 Go to previous messageGo to next message
edmortimer

 
Messages:829
Registered:January 2015
Location: Home Free
Quote:
No. The .npc script format of current v1.13 is still the same like in old vanilla.


Thank you, that alleviates my fears.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Changing Voice File slots for Merchants[message #344462 is a reply to message #344383] Wed, 09 March 2016 23:41 Go to previous messageGo to next message
CVB

 
Messages:136
Registered:September 2014
Location: Berlin
Ed,

if you get this to work, would you be willing to write a small how-to guide? Maybe we don't need to reinvent the wheel time and again...

Although it's quite hilarious when Hans threatens to kill you for buying porn from him happy



Peace is a purely theoretical state of affairs whose existence we deduce because there have been intervals between wars.
J. Pournelle
Re: Changing Voice File slots for Merchants[message #344464 is a reply to message #344462] Thu, 10 March 2016 07:55 Go to previous message
edmortimer

 
Messages:829
Registered:January 2015
Location: Home Free
Quote:
if you get this to work, would you be willing to write a small how-to guide? Maybe we don't need to reinvent the wheel time and again...


Sure, as soon as I have a chance to work on it.

Quote:
Although it's quite hilarious when Hans threatens to kill you for buying porn from him happy


Or Father Walker who, instead of saying good-bye, screams "God will get you for this!"




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Previous Topic: Illegal Soldier ID
Next Topic: Faction Quotes
Goto Forum:
  


Current Time: Tue Oct 17 01:01:46 EEST 2017

Total time taken to generate the page: 0.01036 seconds