d2s-editor icon indicating copy to clipboard operation
d2s-editor copied to clipboard

No forum or anything else to discusse so...

Open LeGrosWinnie opened this issue 4 years ago • 6 comments

Hello, I am trying to create my own version but when I go to constants.html and Run I don't get the same kind f result as the original file. Are we supposed to replace the whole contant of the file "constants.bundle.min.js" ??? Original is like : var constants=function(e){var i={};function

Mine is like : window.constants = {"constants": {"classes":[{"n":"Amazon","c":"ama","ts":[null,null,null],"s":{"lpl":8,"mpl":6,"spl":4,"lpv":12,"spv":4,"mpe":6}},{"n":"Sorceress","c":"sor","ts":[null,null,null],"s":{"lpl":4,"mpl":8,"sp

In mine I have a lot of "null" (you can already see that just above) and "{}" : "rare_names":[null,{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]

Same for magic_prefixes etc.

Anyone has a full guide of which files I need to extract from original storage ?

LeGrosWinnie avatar Feb 01 '22 08:02 LeGrosWinnie

My goal is to try to create an editor that works for any mods with replacing unknow items, etc., with default item (like UdieToo did on its time, and it worked fine with a lot of mods).

LeGrosWinnie avatar Feb 01 '22 08:02 LeGrosWinnie

You would need to make something offline then and extracting them when running your tool. The txt files you need to extract from the casc are

        "data/local/LNG/ENG/string.txt",
        "data/local/LNG/ENG/patchstring.txt",
        "data/local/LNG/ENG/expansionstring.txt",
        "data/global/excel/CharStats.txt",
        "data/global/excel/PlayerClass.txt",
        "data/global/excel/SkillDesc.txt",
        "data/global/excel/Skills.txt",
        "data/global/excel/RareSuffix.txt",
        "data/global/excel/RarePrefix.txt",
        "data/global/excel/MagicPrefix.txt",
        "data/global/excel/MagicSuffix.txt",
        "data/global/excel/Properties.txt",
        "data/global/excel/ItemStatCost.txt",
        "data/global/excel/Runes.txt",
        "data/global/excel/SetItems.txt",
        "data/global/excel/UniqueItems.txt",
        "data/global/excel/ItemTypes.txt",
        "data/global/excel/Armor.txt",
        "data/global/excel/Weapons.txt",
        "data/global/excel/Misc.txt",
        "data/global/excel/Gems.txt",

dschu012 avatar Feb 01 '22 11:02 dschu012

Nice it works (without changing the the constants file for now).

Still, why is the format not the same as original file when I generate it ? constants.bundle.min.txt constants.bundle.min generated from original game.txt

LeGrosWinnie avatar Feb 02 '22 08:02 LeGrosWinnie

Nice it works (without changing the the constants file for now).

Still, why is the format not the same as original file when I generate it ? constants.bundle.min.txt constants.bundle.min generated from original game.txt

i got same issue did you mange to figure it out .. if so how? x,x

BourbonCrow avatar Mar 26 '22 10:03 BourbonCrow

Nice it works (without changing the the constants file for now). Still, why is the format not the same as original file when I generate it ? constants.bundle.min.txt constants.bundle.min generated from original game.txt

i got same issue did you mange to figure it out .. if so how? x,x

I just does what dschu012 said, extract all fils from mpq and put them at the same place as "css", "js", etc. so in at the root of the project.

For now I stoped working on it by the way as it is not my primary language.

LeGrosWinnie avatar Mar 26 '22 16:03 LeGrosWinnie

        "data/local/LNG/ENG/string.txt",
        "data/local/LNG/ENG/patchstring.txt",
        "data/local/LNG/ENG/expansionstring.txt",

these coems as .tbl files not txt and i also tried converting them to txt using AFJ tbl Edit 1.12u no matter how i do it the file dont generate correctly.. am i dented or what? o.o cause i got all the files mentioned in the correct folders as listed above

BourbonCrow avatar Apr 19 '22 10:04 BourbonCrow

#188

retro-pc avatar Feb 20 '24 23:02 retro-pc