Skip to content
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

expanded stash/inventory/cube size #15

Open
stefaz opened this issue Oct 14, 2021 · 5 comments
Open

expanded stash/inventory/cube size #15

stefaz opened this issue Oct 14, 2021 · 5 comments

Comments

@stefaz
Copy link

stefaz commented Oct 14, 2021

Hi,

are there any plans to support non-standard stash/inv/cube sizes?
some mods (e.g. https://github.com/cyhyraethz/d2r-basic-qol) are offering expanded sizes and I was wondering if gomule-d2r could support these.
someone did this for an older gomule version here (https://d2mods.info/forum/viewtopic.php?t=62872), so it seems to be possible.

thanks!

@pairofdocs
Copy link
Owner

@stefaz That's possible, I dont want to support various sizes since that would need a different background image for each modded size

The code to support modded sizes of the cube or inventory is here

private static final int STASH_X = 7; // 327 - 320 --> 7
private static final int STASH_Y = 9;
private static final int INV_X = 18 + 308; // 18 + 308 --> 326
private static final int INV_Y = 255;
private static final int HEAD_X = 135 + 308;
private static final int HEAD_Y = 3;
private static final int NECK_X = 205 + 308;
private static final int NECK_Y = 30;
private static final int BODY_X = 135 + 308;
private static final int BODY_Y = 75;
private static final int L_ARM_X = 250 + 308;
private static final int L_ARM_Y = 50;
private static final int R_ARM_X = 20 + 308;
private static final int R_ARM_Y = 50;
private static final int GLOVES_X = 18 + 308;
private static final int GLOVES_Y = 175;
private static final int BELT_X = 135 + 308;
private static final int BELT_Y = 175;
private static final int BOOTS_X = 250 + 308;
private static final int BOOTS_Y = 175;
private static final int L_RING_X = 91 + 308;
private static final int L_RING_Y = 175;
private static final int R_RING_X = 205 + 308;
private static final int R_RING_Y = 175;
private static final int BELT_GRID_X = 106; // 426 - 320 --> 106
private static final int BELT_GRID_Y = 309; //250;
private static final int CUBE_X = 8; // 328 - 320 --> 8
private static final int CUBE_Y = 310; //251;

@Kongolan
Copy link

Kongolan commented Dec 4, 2021

When using a mod like Expanded Storage (https://www.nexusmods.com/diablo2resurrected/mods/13?tab=description) it works well for the Character Inventories, since it doesn't overwrite what is there in the extra space. But when using the shared stash, it doesn't even load/open in GoMule once you put items out of "bounds".

Can you support that it still loads, while it just leaves those items there like for the normal Inventory.

@Miao4382
Copy link

Miao4382 commented Dec 4, 2021

@pairofdocs Hi! I'm trying to figure out how to add support for expanded inventory and stash size. When I compile and run GoMule.main(), the version is "R0.43 Donkey", which is different from the current release (R0.44). Could you tell me where can I find the latest repo?

@pairofdocs
Copy link
Owner

Can you support that it still loads, while it just leaves those items there like for the normal Inventory.

Hey, no, I dont think I can support that feature here. I don't have the time that I had a few months ago.

@pairofdocs
Copy link
Owner

pairofdocs commented Dec 23, 2021

@pairofdocs Hi! I'm trying to figure out how to add support for expanded inventory and stash size. When I compile and run GoMule.main(), the version is "R0.43 Donkey", which is different from the current release (R0.44). Could you tell me where can I find the latest repo?

@Miao4382
I think R0.43 Donkey is okay for this repo (github/pairofdocs/gomule-d2r)

Silos has the official repo for golume on sourceforge (https://sourceforge.net/projects/gomule/files/). I forked gomule-d2r from the older code from source forge, that's why pairofdocs/gomule-d2r still has R0.43

both pairofdocs/gomule-d2r and Silos D2R Gomule work for D2R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants