-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added DLC items from TGA tables #49
Conversation
Could you compile this into an executable? |
Functional on my side. I'm now digging into bosses event id's. er-save-editor.zip here is the executable @oospack |
fwiw I've gotten all the other event flags on a local branch (bosses/cookbooks/maps/graces), but I haven't figured out how to map event ids to offsets into the EventFlags array in the save file to get them working |
nice! If you still didn't figure it out, share it and I'll also take a look at it. btw, I submitted a PR #52 which includes this one and adds the ability to modify dlc related stats. We can continue on it and we will just have to figure this mapping out and the project will almost be complete for the DLC |
@0xRyN Am I just stupid or why does the executable crash when I try to open it? |
Idk, works for me have no idea why |
@0xRyN Happened to me as well. I don't have any knowledge of rust whatsoever. But I feel it's erroring out while fetching the icon.png file.
|
Yeah it's a problem with the icon, this line of code to be precise. I'm not a rust developer, so I don't know how to fix it. Running the .exe straight from the zip file works for me though #[derive(RustEmbed)]
#[folder = "icon/"]
struct Asset;
let image = Asset::get("icon.png").expect("Failed to get image data").data; // Exception here |
If there's no good way to figure out whether the user has the DLC active just from the save alone, you could always just ask the user whether to show DLC related stats and items in the editor. |
@0xRyN It should work otherwise. |
@nozwock I just ran cargo build iirc, im not familiar with Rust / Cargo. What would be the solution ? |
This will build it in release mode, the binary then should have the icon embedded within itself. Or, you could make this change in the - rust-embed = "8.3.0"
+ rust-embed = { version = "8.3.0", features = [ "debug-embed" ] } |
@twp2000 You may try this, https://github.com/klarkyson/ER-Save-Editor/releases/ |
@twp2000 You're not on the latest version of ER, are you? Because they're not supported yet (1.12.3/1.12.4). |
I presume this has been closed due to #43, #43 (comment) adding support for the DLC in the lib repo. |
Hey, I converted the TGA tables for the DLC items so they can be modified here
I know you mentioned here that you'll need to think about how to gate DLC content to avoid people getting banned, but I figured somebody might find this useful in the meantime.