Is the string.tbl from D2data.mpq hard coded?
Moderator: Nizari
-
- Posts: 10
- Joined: Thu Apr 27, 2017 12:16 pm
Is the string.tbl from D2data.mpq hard coded?
The process I used was to extract the string.tbl from the D2data.mpq and changed the introduction from "hello stranger" to "hello Josh". I then placed the modified tbl into the d2data.mpq and repacked it. I start a new single player game and Warriv still said "Hello stranger. I closed the game reopened the mpq and extracted the tbl. Then, I open the tbl and the changes are there, they just aren't showing up in game. Any ideas?
Re: Is the string.tbl from D2data.mpq hard coded?
Try placing the file in the same directory, but in Patch_D2.mpq
Terms of Service
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
-
- Posts: 10
- Joined: Thu Apr 27, 2017 12:16 pm
Re: Is the string.tbl from D2data.mpq hard coded?
That didn't work either, bout to pull my hair out lol. The closest I have ever gotten to getting this to work was if I changed the directory from: data/local/lng/eng/BETA, to: data/local/lng/eng. It changed the dialogue, but it messed up the main menu and create character screen. By messed up I mean, for example, that "single player" button is gone and "multiplayer" shifts up in the position that "single player" should be.
Re: Is the string.tbl from D2data.mpq hard coded?
You have to put in the same direction as it was above. The game doesn't read your new directions without CE.
Your Bug looks like you replaced the string or cleared it in some way. May attach the .tbl file and i will look into it for you.
Your Bug looks like you replaced the string or cleared it in some way. May attach the .tbl file and i will look into it for you.
-
- Posts: 10
- Joined: Thu Apr 27, 2017 12:16 pm
Re: Is the string.tbl from D2data.mpq hard coded?
Unfortunately it won't let me upload the file because it is too large. The only thing I changed in it was warrvi's introduction from< "Hello stranger...", to, "hello Josh....". I have tried putting it in the same directory format that it was in d2data.mpq and placing it in the d2 directory. Then, I added -direct -txt to the shortcut, doesn't work, he still says, "hello stranger....". Then, I tried deleting the string.tbl in the d2data.mpq anjd placing the modified one in the same place, then repacked it. I start a new game and, sill no change.
Re: Is the string.tbl from D2data.mpq hard coded?
Some things to try that may help.
Use WinMPQ. it's the only MPQ editor that works to properly update an MPQ file.
you may also have to download the VB runtimes to get it working.
http://sfsrealm.hopto.org/downloads/WinMPQ.html
Load your new string.tbl into Patch_D2.mpq as
data\LOCAL\LNG\ENG\string.tbl
No reason to load it in D2Data.mpq, because Patch_D2.mpq is read first by the game.
It might be a good idea to re-extract the original string.tbl, in case the one
your working with got messed up.
Also the one extracted from D2Data.mpq
data\LOCAL\LNG\ENG\BETA\string.tbl
might not even be valid, i forget where the valid one is located.
When changing an existing line in string.tbl files don't delete or move original
line positions, because the table offsets are lookup values hardcoded into the game.
Cheers
Use WinMPQ. it's the only MPQ editor that works to properly update an MPQ file.
you may also have to download the VB runtimes to get it working.
http://sfsrealm.hopto.org/downloads/WinMPQ.html
Load your new string.tbl into Patch_D2.mpq as
data\LOCAL\LNG\ENG\string.tbl
No reason to load it in D2Data.mpq, because Patch_D2.mpq is read first by the game.
It might be a good idea to re-extract the original string.tbl, in case the one
your working with got messed up.
Also the one extracted from D2Data.mpq
data\LOCAL\LNG\ENG\BETA\string.tbl
might not even be valid, i forget where the valid one is located.
When changing an existing line in string.tbl files don't delete or move original
line positions, because the table offsets are lookup values hardcoded into the game.
Cheers
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
-
- Posts: 10
- Joined: Thu Apr 27, 2017 12:16 pm
Re: Is the string.tbl from D2data.mpq hard coded?
Thank you very much for your information and suggestions. I will try it and let you all if it works.
-
- Posts: 10
- Joined: Thu Apr 27, 2017 12:16 pm
Re: Is the string.tbl from D2data.mpq hard coded?
Holy cow finally! lol. That was it, the program I was using was screwing it up. I switched to Winmpq and it worked in game right off the bat. A big thank you to all who tried to help me, and a big thank you to devurandom for the solution