Jump to content
Caledor

Editing global.res

Recommended Posts

Hi guys

Almost a year ago I managed to find the infamous s2rw tool to edit the global.res file. I managed to use it at that time but now, after replacing my old pc with a new one and reinstalling sacred 2, all I get is the "no sacred 2 found" message at launch. How am I supposed to make it work?

ps. I apologize in advance if talk about the matter is not allowed. I haven't found anything suggesting it is but all the relevant threads are no longer here so...

Share this post


Link to post
Share on other sites

If you want to decode global.res, then s2rw needs to be in the same folder, so inside the locale folder for your language. For decoding you can just run the program and go from there.

 

For encoding, it needs to be in the Sacred 2 system folder (so I have two copies of s2rw sitting in my Sacred 2 folder). For encoding you have to use command prompt. Direct it to start in the /system folder and enter the command:

 

S2rw.v.1.7exe globalEn_texts.txt En+

 

That's for English. For Italian it would look like:

 

S2rw.v.1.7.exe globalIt_texts.txt It+

 

The language abbreviations are "De", "En, "Fr", "Ru", "Cz", "Pl", "It", "Hu", and "Sp".

 

This also assuming you didn't rename the decoded text file to something else.

Edited by Flix
  • Like! 3

Share this post


Link to post
Share on other sites

Thank you very much flix, now it works. Just wanted to say that putting it into the locale folder didn't help but I managed to decrypt the global.res from by running it from the system folder and copy pasting the file there.

Also, sorry to bother you again but could you please provide me an english global.res patched with the Community patch (or the decrypted globalEn_texts.txt). I want to improve the italian localization and having the original for comparison would be a great help

Share this post


Link to post
Share on other sites

Thank you very much flix, now it works. Just wanted to say that putting it into the locale folder didn't help but I managed to decrypt the global.res from by running it from the system folder and copy pasting the file there.

Also, sorry to bother you again but could you please provide me an english global.res patched with the Community patch (or the decrypted globalEn_texts.txt). I want to improve the italian localization and having the original for comparison would be a great help

 

CM Patch 1.50 English Texts

  • Like! 2

Share this post


Link to post
Share on other sites

 

Thank you very much flix, now it works. Just wanted to say that putting it into the locale folder didn't help but I managed to decrypt the global.res from by running it from the system folder and copy pasting the file there.

Also, sorry to bother you again but could you please provide me an english global.res patched with the Community patch (or the decrypted globalEn_texts.txt). I want to improve the italian localization and having the original for comparison would be a great help

 

CM Patch 1.50 English Texts

Thanks again!

  • Like! 1

Share this post


Link to post
Share on other sites

 

 

Thank you very much flix, now it works. Just wanted to say that putting it into the locale folder didn't help but I managed to decrypt the global.res from by running it from the system folder and copy pasting the file there.

Also, sorry to bother you again but could you please provide me an english global.res patched with the Community patch (or the decrypted globalEn_texts.txt). I want to improve the italian localization and having the original for comparison would be a great help

 

CM Patch 1.50 English Texts

Thanks again!

And welcome to DarkMatters Caledor!~

 

:)

 

gogo

  • Like! 1

Share this post


Link to post
Share on other sites

https://drive.google.com/file/d/0B4izpdMnaorhejI4SGFSVzRCMUk/view?usp=sharing

@Flix In this file I've corrected all the names of the items for the italian version of CM 1.50.

I've uploaded it cause I though you might be intrested in integrating it in the original CM. In any case, feel free to use it as you see fit. Maybe one day I'll work on dialogue strings as well.

Edited by Caledor
  • Like! 2

Share this post


Link to post
Share on other sites

https://drive.google.com/file/d/0B4izpdMnaorhejI4SGFSVzRCMUk/view?usp=sharing

@Flix In this file I've corrected all the names of the items for the italian version of CM 1.50.

I've uploaded it cause I though you might be intrested in integrating it in the original CM. In any case, feel free to use it as you see fit. Maybe one day I'll work on dialogue strings as well.

Nice work Caledor!

 

:)

 

gogo

  • Like! 1

Share this post


Link to post
Share on other sites

Thanks gogo! (for your ice elf guide as well ;) )

lol, yay , that ice elf is still alive!

she was a lot of fun playing^^

 

:)

 

gogo

  • Like! 1

Share this post


Link to post
Share on other sites

Hi all,

 

I would like to change stats on amazing cool looking SW Scourge of Lordaeron set. Or better say, I wanna make copy of this set with different names and new stats and bonuses. And maybe add/change weapon.

BUT..

My S2rw.v1.7.exe (downloaded from Flixs´ link) for editing global.res is giving me this error: S2rw registry check - No Sacred 2 found.

I have two copies of S2rw...

one in D:\SteamLibrary\SteamApps\common\Sacred 2 Gold\locale\en_UK folder

and one in D:\SteamLibrary\SteamApps\common\Sacred 2 Gold\system folder

 

In regedit I have these informations:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ascaron entertainment\sacred 2

currentversion = 2.56.2.0

InstallPath = D:\SteamLibrary\steamapps\common\Sacred 2 Gold

language = en_UK

movietrack = 6

speech = en_UK

 

HKEY_CURRENT_USER\Software\Ascaron Entertainment\Sacred 2

currentversion = 2.65.2.0

EULA = 0x00000001 (1)

InstallPath = D:\SteamLibrary\SteamApps\common\Sacred 2 Gold

Language = en_UK

LastUpdateCheck = 0x000b422e (737838)

MovieTrack = 6

ShortcutProgramMenu = Installed

Speech = en_UK

 

I tried to change InstallPath to ...common\Sacred 2 Gold\system

but got same error..

Pretty despaired now...

  • Like! 1

Share this post


Link to post
Share on other sites

My S2rw.v1.7.exe (downloaded from Flixs´ link) for editing global.res is giving me this error: S2rw registry check - No Sacred 2 found.

 

Are you trying to decode or encode?

  • Like! 1

Share this post


Link to post
Share on other sites

Well both.. I also downloaded your CM Patch 1.50 English Texts.

I believe things will be more difficult than I thought before.

There are many guides and tips but they are all scattered around the forum.

Is it possible to make some beginner guide (better video than text) from scratch?

 

Let´s say, I have Sacred 2 Gold installed and just patched with CM patch 1.50, nothing else.

And I would like to make copy of Smoke Without Fire set (1h sword, shield, amulet) with different item stats, different set stats. So after modding there will be original Smoke Without Fire set + new same looking set called for example Dancing Fire with different stats and set bonus (choose whatever you want). What shall I do step by step as a beginner?

 

I will really appreciate any video step by step comprehensive guide. Long and dark winter evenings are before us and I believe with good guide I will be able to mod any existing set to fit my gaming taste or fit better my char build. Thank you very much.

Share this post


Link to post
Share on other sites

I will really appreciate any video step by step comprehensive guide. Long and dark winter evenings are before us and I believe with good guide I will be able to mod any existing set to fit my gaming taste or fit better my char build. Thank you very much.

 

I would just copy the blueprints (scripts/server/blueprint.txt) for the items and give them new unique blueprint ID's. Then use those ID's to generate the hash for the new item names and paste them into the texts.

 

 

newBlueprint = {
  id = 4204,
  name = "set_demonshield_smokescreen",
  palettebits = "1111111111111111",
  dmgvariation = 0,
  minconstraints = {20,13,0},
  lvljump = 20,
  usability = 0,
  allotment_pmfpi = {833,167,0,0,0},
  uniquename = "set",
  specialuseonly = 0,
  bonusgroup0 = {666,1400,10,9,0}, -- Chance to Evade %
  bonusgroup1 = {284,1500,10,9,0}, -- Defence Value %
  bonusgroup2 = {830,1550,10,9,0}, -- Chance to Reflect Close Combat
  bonusgroup3 = {673,1450,10,9,0}, -- Ranged Defence Value
  bonusgroup4 = {815,1350,10,9,0}, -- Spell Resistance %
  bonusgroup5 = {751,1000,10,9,0}, -- Gold Slot
  itemtypes = {13582,},
  wearergroups = {'WEARGROUP_SERAPHIM','WEARGROUP_DRYADIN','WEARGROUP_CENTURIO','WEARGROUP_HIGHELVE','WEARGROUP_DRAGONMAGE',},
}
mgr.createBlueprint(4204, newBlueprint);

newBlueprint = {
  id = 4205,
  name = "set_demonsword_magic",
  palettebits = "1111111111111111",
  dmgvariation = 0,
  minconstraints = {20,13,0},
  lvljump = 20,
  usability = 0,
  allotment_pmfpi = {500,500,0,0,0},
  uniquename = "set",
  specialuseonly = 0,
  bonusgroup0 = {665,1400,10,9,0}, -- Opponent's Chance to Evade -%
  bonusgroup1 = {530,1350,10,9,0}, -- Attack Value +%
  bonusgroup2 = {528,1250,10,9,0}, -- All Damage +%
  bonusgroup3 = {816,1350,10,9,0}, -- Spell Intensity +%
  bonusgroup4 = {750,1000,10,9,0}, -- Silver Socket
  bonusgroup5 = {751,1000,10,9,0}, -- Gold Socket
  specialuseonly = 0,
  itemtypes = {13583,},
  wearergroups = {'WEARGROUP_DEFAULT',},
}
mgr.createBlueprint(4205, newBlueprint);

newBlueprint = {
  id = 4224,
  name = "set_demon_amulet",
  palettebits = "1111111111111111",
  dmgvariation = 0,
  minconstraints = {20,13,0},
  lvljump = 20,
  usability = 0,
  allotment_pmfpi = {1000,0,0,0,0},
  uniquename = "set",
  specialuseonly = 0,
  bonusgroup0 = {889,900,10,9,0}, -- Regen per hit
  bonusgroup1 = {527,900,10,9,0}, -- Life Leech per Hit
  itemtypes = {10535,},
  wearergroups = {'WEARGROUP_DEFAULT',},
}
mgr.createBlueprint(4224, newBlueprint);

 

Those are the 3 items. Note the blueprint ID is entered twice for each item. There's also the set bonuses:

 

newBlueprintSet = { -- Smoke without Fire (Demonset)
  id = 221,
  name = "",
  singleSet = 1,
  groupSet = 0,
  mixedSet = 0,
  artefact = 0,
  blueprintsinset = {4204,4205,4224,},
  bonusgroupsforset0= {650,1400,2,0},  -- All Armor +%
  bonusgroupsforset1= {1110,1400,3,0}, -- Opponents' Armor -%
}
mgr.createBlueprintset(221, newBlueprintSet);

 

You can give your new set a new ID.

 

For the names, use this format with S2RW: BLUEPRINT_XXXX and SET_XXX where the X's are the numbers. Then hit "our own hash" to generate the number for global_texts. Enter the number (preserve numerical order) and hit TAB then type the name of the item/set.

  • Like! 1

Share this post


Link to post
Share on other sites
Flix as we talk about PM, follow the error that occurs when opening the program that opens the "Global.res":




He says he is not finding the game's executable.


Remembering that I bought the game for Steam, Gold version of the game.


I'm using Windows 8.1, I do not know if this influences the program that opens the "Global.res"

Share this post


Link to post
Share on other sites

Try putting all the files into the game's system folder, then run the program from that location.

Share this post


Link to post
Share on other sites
It only has one executable and one .dll, all the files are already there. And yet it still makes that mistake.


Flix do you use which Windows there? Can you normally open the file there on your PC? Could it be that version of Steam that I bought?

Share this post


Link to post
Share on other sites

Make a dummy file (a file with no extension) called "nos2" in the same directory, then trying running the program again.

  • Like! 1

Share this post


Link to post
Share on other sites

I managed to open this files

but I have no idea what to do

for example: I try to edit the name of a skillmodification, because I chanced the effekt in the spells.txt

how do I change the existing text for that skill mod?

Share this post


Link to post
Share on other sites
On 9/14/2015 at 11:23 PM, Flix said:

If you want to decode global.res, then s2rw needs to be in the same folder, so inside the locale folder for your language. For decoding you can just run the program and go from there.

 

For encoding, it needs to be in the Sacred 2 system folder (so I have two copies of s2rw sitting in my Sacred 2 folder). For encoding you have to use command prompt. Direct it to start in the /system folder and enter the command:

 

S2rw.v.1.7exe globalEn_texts.txt En+

 

That's for English. For Italian it would look like:

 

S2rw.v.1.7.exe globalIt_texts.txt It+

 

The language abbreviations are "De", "En, "Fr", "Ru", "Cz", "Pl", "It", "Hu", and "Sp".

 

This also assuming you didn't rename the decoded text file to something else.

Guy... whenever I do this from "access denied"
Help me!!!:Just_Cuz_21:

Share this post


Link to post
Share on other sites

OK so I was bored and as such I tried decoding-changing texts-reencoding the global.res to see how it's done. Here is a step by step with English as the source language. And Vagner it's really easy once you understand how it's done. ;)

  1. Extract the contents of S2rw.v1.7.rar into ...\Sacred 2 Gold\locale\en_UK. Extract the contents of S2rw.v1.7.rar into ...\Sacred 2 Gold\system. Create a text file called noS2 in each directory and remove their .txt extension.
  2. Run S2rw.v1.7.exe in the language folder, choose "En" on the drop-down menu on the upper left corner and click "decode". This creates a text file in the language folder named globalEn_texts.
  3. Do the changes you want to do in Notepad++. Be sure to replace all instances of the same name in the whole file (e.g. changing a town's name).
  4. Go to ...\Sacred 2 Gold\system and create a shortcut to cmd.exe, right click->new->shortcut and find cmd.exe in the correspondent Windows folder. After creating the shortcut right click on it, choose "properties" and on the first tab where it says "start at" paste ...\Steam\steamapps\common\Sacred 2 Gold\system so that when you run cmd it'll start directly in that folder.
  5. Copy the decoded and altered globalEn_texts file into ...\Sacred 2 Gold\system and now run the cmd.exe shortcut. Write S2wr.v1.7.exe globalEn_texts.txt En+ and it'll start encoding the new global.res file. You can see almost immediately a file called "globalEn_char_report" appearing, and after a while a file named "global.res_En_new" will be in your folder.
  6. Now just backup the original global.res and put the newly encoded one in the language folder. Rename the new file to just global.res and you're done.

I had the teleport for Skook's Corner active so I changed all instances of that name in the globalEn_texts to "teste", reencoded it and it worked like a charm. The process is actually easier than it seems at first sight, but I had to do some trial and error before I could nail it.

  • Like! 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×