Unpacker/Repacker trouble issue (need help)

Medyak

Member
Guide Author
Hello to all AO-developers. 🤟

I have a set of tools UnpackerV8, UnpackerV7, Repacker.
And exctracred pack.bin from V8 is think....
Only UnpackerV8 and Repacker works (in V7, as I understood, not for all processors have libraries, V8 only worked on a laptop).
Having created the spell on the XDB server and in the client side (unpacked pack.bin), it's time to pack.


There are problems here because I did not understand what files to insert into (Repacker/data/pacs/) except for unpacked changed pack.bin files. Trying to follow the guide failed as it was poorly written. Following the guide, I only got this (seen the same trouble in V7 but i think is becouse pack.bin not from 7 version of client :confused:)
HLbUDAKwDtk.jpg

After some time (1d) I tried to drop the entire packs folder of the client (allods.me) into (Repacker / data /). And it magically worked (but the same errors remained as in the image above ☝).
But compared to the original, the file sizes did not converge except for pack.bin.
We will solve this problem by replacing pack.bin in the client file with a new one and passing Pak through PakFixer (just in case).
Let's start the game and..... the game does not start 💩🤡.

If someone can help solve all these problems that I described here - I will be grateful.

Client: Allods.me
 
OP
Medyak

Medyak

Member
Guide Author

UPDATE:


I see no one will help me, perhaps because it is too difficult to describe everything. Will try to describe in more detail.
We read the txt file in the frame and try to understand.
####################[ Pack.bin Repacker ]####################
-- Copy files in clean 4.0 client --

Repacker: {
Options: {
BugMaps.txt - Maps that cause crash (Do not touch. Already set up)
Ignore.txt - Files that ignore replacer
Replace.txt - Files that replaced if exists
Options.txt: {
ClientVersion - Not included in this developer version
PackBin - Original pack.bin path that will be repacked
BinMapsFolder - Original map files folder that will be repacked
BugMaps, Replacer, Ignore - Settings files
}
}
Tools: {
:: Folder "Tools"

IndexEditor: {
:: Main tool for preparing to pack new xdb
Use RMB->Add->* or Drag file to window and File->Save, for add file/files in index.srv
If some files do not contain ResourceId, use Tools->Index_Null_Resources to create indexes
in current virtual folder
Attention: Tools->Index_All_Resources re-create indexes all xdb in current virtual folder
}
ZipPacker - Create any *.pak files for using in the game
PakFix - Fix *.pak files. May do not used
}
Description: {
System/index.bak.srv - Original index.srv. Do not touch
System/index.new.srv - index.srv with new xdb files
System/index.srv - Combined tool index.srv
}
Stages: {
Place xdb files in data folder or data/packs/XDB_*.pak
If added new files then reindex index.srv in IndexEditor
Launch AOgame.exe with param "-buildBinaries 1" for repacking *.bin files
Launch AOgame.exe with param "-buildTextPack 1" for repacking pack.loc file
If you want to upload only server xdb, use Tools->Generate_zip for create zip with server xdb
}
}

Developer: {
:: AOgame may launch without Launcher.exe
Options: {
:: InGame Replacer
:: Key: Ctrl+Shift+R - Replacing files

DevReplace.txt - Files that replaced if exists
Developer.txt: {
Replacer - Settings file
Regex - Enable Regular Expressions
RegexFile - Settings file if regex enabled
}
}
}

1. The first step is to copy Repacker to a clean client 4.0
unknown.png
Now we create the AllodsClient folder and copy our client there, and then throw the Repacker files into it.
unknown.png
I wrote a batch file so as not to go into CMD every time.

2. Second step we throw the extracted Pack.bin into our AllodsClient (C:\AOclient\data\Packs) and modify it.
unknown.png
But earlier, we need to change the server files. As a test, I copied IceComet (mage spell) to a new TEST folder along the path (XDB_Mechanics.Server.pak\Mechanics\Spells\TEST) and indexed them.
unknown.png
After checking if there is anything on the spell in the extracted pack.bin, we find the files in the client that are responsible for IceComet, copy them along our path.
unknown.png

3. The third step is setting up Repacker and launching it.
Since I do not have the unpacked pack.bin version of the Allods.me client (since Unpacker V8 does not want to unpack it), I will leave the original pack.bin which is provided by Repacker and is located in the ORI folder. I still don't understand what Replacer is responsible for, so we will not touch it.
I'll leave all the txt files here, maybe they have an error.
//Ships/HadaganGroup/Hadagan_Ship.(VisualShip).xdb
//Ships/KaniaGroupNew/KaniaGroupNew.(VisualShip).xdb
//Mechanics/Mounts/5thGrade/Mounts/ManaBikeStandart.(MountResource).xdb
//Items/BoxSpecialLoot/MountTokens/ZeroChopperToken.(ItemResource).xdb
Mechanics/Spells/ItemMall/BoxLoot/ZeroChopperToken/Merge.(SpellSingleTarget).xdb
Characters/Elf_female/ElfFemale.(VisCharacterTemplate).xdb
Characters/Elf_male/ElfMale.(VisCharacterTemplate).xdb
Characters/Gibberlings/GibberlingFemale.(VisCharacterTemplate).xdb
Characters/Gibberlings/GibberlingMale.(VisCharacterTemplate).xdb
Characters/Giberling_Group/GiberlingGroup.(VisCharacterTemplate).xdb
Characters/Giberling_Group/GiberlingFamily.(VisCharacterTemplate).xdb
Characters/Hadagan_female/HadaganFemale.(VisCharacterTemplate).xdb
Characters/Hadagan_male/HadaganMale.(VisCharacterTemplate).xdb
Characters/Kania_female/KaniaFemale.(VisCharacterTemplate).xdb
Characters/Kania_male/KaniaMale.(VisCharacterTemplate).xdb
Characters/Orc_female/OrcFemale.(VisCharacterTemplate).xdb
Characters/Orc_male/OrcMale.(VisCharacterTemplate).xdb
Characters/Undead_female/UndeadFemale.(VisCharacterTemplate).xdb
Characters/Undead_male/UndeadMale.(VisCharacterTemplate).xdb
Mechanics/Mounts/5thGrade/Mounts/ManaBikeStandart.(MountResource).xdb
Ships/HadaganGroup/Hadagan_Ship.(VisualShip).xdb
Ships/KaniaGroupNew/KaniaGroupNew.(VisualShip).xdb
10000
Replacer=DevReplace.txt
Regex=0
RegexFile=DevReplace.txt
Maps/*
Mechanics/Astral/TL
World/Quests/ZoneHadagan1/Guild
World/Quests/ZoneLeague1/Guild
Items/InteractiveObjects/*
ClientVersion=9000
PackBin=ORI/pack.bin
BinMapsFolder=ORI
BugMaps=BugMaps.txt
Replacer=Replace.txt
Ignore=Ignore.txt
Maps_AstralIsle48
Maps_AstralIsle49
Maps_Chaos
Running with the -BuildBinaries 1 parameter, we will get 4 errors (image above) and then it will write something like Map-Repcaker bla bla bla. After that the console closes and we see that the bin folder contains pack.bin and map's weighing 1kb.
unknown.png
I don't think that map's weighing 1kb will work, so we copy the maps from the ORI folder to Bin with replacement.
unknown.png
Let's replace our old bin.pak with the new one.
unknown.png

4. The fourth step is launch and verification.
Now we check whether it works or not by running aogame.exe, but the game hangs (mb it should be).
unknown.png
But having thrown the same bin.pak file into a clean client (without a repacker), the game starts for 5 seconds and closes.

So any ideas???

p.s Should I duplicate in Russian?
 

Top Bottom