Code Monkey home page Code Monkey logo

mcdsaveedit's Introduction

 icon Minecraft: Dungeons Save File Editor

GitHub GitHub release (latest by date) GitHub Release Date GitHub all releases Patreon pledgers

Windows application for modifying Minecraft: Dungeons save files.

DISCLAIMER: Please keep backups of your save files! This app does not guarantee your save file to be playable after editing!


Installing and Running

For full features and functionality you need Minecraft: Dungeons installed and preferably in the default install location.

  1. Download and extract the latest release (MCDSaveEdit_*.zip) from the releases section

Troubleshooting

Fix Missing Images

If you see this popup, that means it couldn't find the game content in the default location. You need to provide the path to these .pak files:

Default location of pak files

Minecraft Launcher:

%localappdata%\Mojang\products\dungeons\dungeons\Dungeons\Content\Paks

Steam:

%programfiles(x86)%\Steam\steamapps\common\MinecraftDungeons\Dungeons\Content\Paks

Microsoft Store:

C:\XboxGames\Minecraft Dungeons\Content\Dungeons\Content\Paks

If you're not sure which version you have, additional information may be found on Dokustash - stash.dokucraft.co.uk

Application Stopped Working

If during launch you get a popup saying that MCDSaveEdit has stopped working, this means an internal error ocurred and could mean various issues. MCDSaveEdit has a dependency on .NET Framework 4.8 so you could try installing that.


How to Use

  1. Go to File > Open in the menu bar.
  2. Open the folder %HOMEPATH%\Saved Games\Mojang Studios\Dungeons. Be sure to backup this folder before editing your save files.
  3. You will see a folder with a 16-digit number (E.g. 2612325419657064). Open this folder, then open the "Characters" folder.
    1. NOTE: If multiple Mojang or Microsoft accounts were used in-game you might see more than one folder.
  4. Select one of the files ending in .dat. There will be one for each character.
  5. Click Open and edit your save. When ready go to File > Save or File > Save As... to save your edits.

Adding Items

Adding/Changing Enchantments


Compiling

This application was developed entirely in Visual Studio 2022.

When cloning be sure to recurse through submodules because there are 2:

Provide the AES key to decrypt the game files:

MCDSaveEdit\Data\Secrets.cs

namespace MCDSaveEdit.Data
{
    public static class Secrets
    {
        // Fill in the value for this one
        public static AesKey[] PAKS_AES_KEYS = new AesKey[] {
            new AesKey("<AES key for unlocking the MCD .pak files>", ""),
        };

        // You can leave these empty, they just need to exist
        public const string GAME_ANALYTICS_GAME_KEY = "";
        public const string GAME_ANALYTICS_SECRET_KEY = "";
    }
}

Another bit of trouble you might run into is the error: "The referenced component 'Windows' could not be found" in MCDSaveEdit/Data/Constants.cs line 3: using Windows.Management.Deployment;

  • Try the accepted answer here.
  • This bit of code is only required for the Microsoft Store version, so if you have the launcher version you can just comment out lines 3 and 54 through 61.

Legal Disclaimer

This project is not affiliated with Mojang Studios, Microsoft, XBox Game Studios, Double Eleven or the Minecraft brand.

"Minecraft" is a trademark of Mojang Synergies AB.

Other trademarks referenced herein are property of their respective owners.

External Credits and Licenses

Images from the game are subject to copyright by Mojang. They are extracted at runtime from the .pak files that are installed as part of the Minecraft: Dungeons game files.

DungeonTools © Diego Russi (AGPL 3.0)

Microsoft.Bcl.AsyncInterfaces © Microsoft (MIT)

Fody © Simon Cropp (MIT)

Costura.Fody © Simon Cropp and contributors (MIT)

FModel © Free Software Foundation, Inc. (GPL 3.0)

PakReader © Aleks Margarian (MIT)

Game-icons.net © Lorc, Delapouite and contributors (CC BY 3.0)

mcdsaveedit's People

Contributors

altinctrl avatar cutflame avatar dependabot[bot] avatar maksim789456 avatar tchia04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcdsaveedit's Issues

Crashes Whenever I Load My Save File Into It

Hi, Whenever i load my save file into the editor it crashes, i believe I am doing everything right however this may very well be a user error, if you can fix this please let me know

please allowing us modify the raw power level float

as the title suggested, the actual raw value of "power" are floats with a whole lot of decimal places in decrypted JSON format but the latest 1.3.2 version of editor can only accept "translated" power level and only integers.

afaik, the highest power level in current 1.8.6.0 version of MC:D is 251, level 251 in editor is actually 26.000009536743161 in JSON. in my personal experience, even a random drop can go higher (26.05456161499023) than this, upgrade at blacksmith can go as high as 26.09998893737793 so far and its still at level 251 but the damage or health is MUCH MUCH higher than editor's default.

this is also the reason why gears at same level have different damage or health and this is what upgrade at blacksmith actually does.

please consider improving this crucial function in editor, or adding a "advanced mode" allowing us modify in JSON or simply import/export JSON file directly

thanks in advanced

EDIT: clarify

Editing item's damages instead of level

Hi ! Excellent work at first 💯
This is not an issue, it's an idea of feature.

Here is the context : In-game items like FireworkArrow can deal a certain amount of damage based on his level and power, for example FireworkArrow at level 105 with a power of 11.42291355133057 will deal 4044 damages.

See my sample of values extracted from my character save for the FireworkArrow

POWER        LEVEL   DAMAGES
11.42291355133057 => 105   => 4044
11.48235321044922 => 105   => 4143
11.48703765869141 => 105   => 4151
11.48834228515625 => 105   => 4153
11.49747276306152 => 105   => 4169
11.5050516128540 => 106   => 4182
11.79001903533936 => 108   => 4695
12.14500808715820 => 112   => 5423

For the same level, you can have different power resulting in different damages number

Is it possible to implement a way to directly edit the damages of an item instead of his level ?
Then the level will be a readonly value ?

Thanks for reading this :)

Suggestion: Add a copy-paste function for items

When experimenting with objects, runes and combinations, it would be very useful to have a copy-paste function of the object, especially when you want to change only a couple of runes of the same object or when you want to use an existing one as a template multiple times.
It would save a lot of time! :)

crash on startup with v 1.2.7 and previous versions

When I run MCDSaveEdit.exe I almost instantly get an error that "MCDSaveEdit has stopped working" and an option to either close the program or debug the program.
This is on Windows 7.
It happens with version 1.2.7 and also with previous versions. I tried them from 1.2.7 to 1.2.3 and they all behave like this.

Show enchantments as list

Since the game did not limited the count... you could literally enable as many as you want number of the enchanments (e.g. more than 9 enchantments with level 3)

Bug pak files

The program doesn't seem to work properly. There are grey icons instead of item pictures.

image

Microsoft Store Version Issue

Sorry if this is obvious but for the life of me can't find out what the "default installation location" is. So in general I can't get it to work to its fullest. Can someone please help me?

Add undo capability (Ctrl+Z)

Issue

When editing gear it is not possible to undo changes.

Solution

Add change history and/or option to undo changes.

Certain Items/Enchantments Unidentified/Unlisted

Some enchantments, gear, and artifacts load in with default icons, unparsed names, and no descriptions. I also can't find them in any add item/enchantment lists. I'm using the Minecraft Launcher version instead of the Microsoft Store one (so I didn't need the extra set-up), and I made sure the editor is directed to my MC:D's Paks folder correctly. Other than that, I'm not sure what the problem is. All of the new ones from the Nether don't appear (latest), and stuff from Winter doesnt (3rd latest), but stuff from Jungle does (4th latest)

PS4 save edit?

I would assume the save file's structure is the same. Is it possible to deal and drop the save data, rather than designating the game path?

not loading properly

whenever i load the editor everything is white, i can only see outlines of boxes
Capture

Beehive and Wither Armor: Special Abilities missing

HI I encounter an issue with certain armors: Beehive and Wither Armor.

Problem: The Special Abilities do not apply/overwrite when being replaced from the previous armor. (The previous armor abilities are still active)

I have attached a few images.
I'm not sure what's causing the issue since I can overwrite other unique armors; like the Halloween items with no issues.

I am doing something wrong or is this a bug?

Thanks

Screenshot 2021-01-02 012050
Screenshot 2021-01-02 012149

Your fork of PakReader is not public

I tried to download your source code and it seems that you have a forked version of PakReader. Do you have customization in that fork? Could you make it public?

Build Issue

Issue:
Attempting to build release 1.3.0 will produce error CS0246 along with the the following warning
The referenced component 'Windows' could not be found

Location:
Constants.cs, Line 3
using Windows.Management.Deployment;

Request:
Information on any packages or setup that would resolve this issue.

No images

The images do not show for some reason.

Can't change armor type?

I can change weapons, etc by clicking on the picture on the far right of the editor, but this doesn't seem to work with armor? Is this intentional or a bug?

Thanks.

could not decrypt pak file

run into this issue on latest 1.3.0, full screenshot attached. game is launcher version running on Windows 10.

any idea how to solve this? thanks in advance

error

Crash when opening a save file

MCD version: 1.8.6
MCDSaveEdit Version: 1.3.2

Symptoms: Crashes when loading a save file. No error displayed. Seems to load some of the details from the save file then window closes.

App crashes after load a save file

I downloaded the latest version of the file, did everything on the tutorial, used method 2 (dump), and yet, whenever I try to load my save, the editor closes by itself.

Minecraft Dungeons: 1.8.6 (Windows Store)
MCDSaveEdit Version : 1.3.2
Used UWPDumper to get the files

Resets progress on each vendor unlock

When I tested this earlier, saving an edit I made to increase an artifact's power level caused all of my vendor's slot progress (EG: mystery merchant's /2500 6th slot) to reset. I wondered if you knew why, is this intentional or fixable or known? Thank you!

unique armors default enchantment overwritten?

Hi, great work on this editor. Just an issue though...

Weapons have their unique enchantments locked. Any way to select unique armors with their default enchantments? How come with unique armors the enchantments are fixed to 2? Is it because of mysterious armor?

thanks

missing items

After opening the character file using MCD save editor no items are shown
Zrzut ekranu (656)
Zrzut ekranu (654)
Zrzut ekranu (655)

I can't choose an enchantment

You cannot select an enchantment.
When I try to select an enchantment, the box is empty.
No icon image.
Is there a way to fix it?

Need Help

Hi Mike, I sorry to bother you and it seems like a very dumb question. But I don't know how to set everything up. I don't know the process in order for me to use your editor. I don't know what to do with all the PakReader and DungeonTools stuff. Are there any instructions I can find online? I already tried searching it up in my browser and YouTube. It would be nice to know how. If you don't want/can't help, it's fine. Thank you in advance :) Have a good day.

Add option to delete items

Issue

There's currently no way to delete items from a save that I know of. If there is, it's not clear on the interface.

Add option to use decryption key other than the default

Issue

With the latest update to Minecraft Dungeons a new AES key is required to decrypt the pak files.

Solution

By giving the user the option to provide their own key we remove the need to wait for a new release to use the tool and enable it to be used with older versions of the game.

To do

  • Add option to provide new decryption key if default fails #23 #37
  • Add option to relaunch with different pak files and decryption key

Crash on file open

Hello,

whenever I open the savefile.dat the save editor crashes after hanging for a moment, how can i fix this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.