Fractal Softworks Forum

Starsector => Mods => Topic started by: Nociam on November 11, 2019, 03:02:21 AM

Title: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Nociam on November 11, 2019, 03:02:21 AM
Transfer All Items
Download version 1.2 (https://github.com/MaiconMichel/StarsectorTransferAllItemsMod/raw/master/download/Transfer_All_Items_v1.2.zip)
Git Repository (https://github.com/MaiconMichel/StarsectorTransferAllItemsMod)
Requires LazyLib (https://fractalsoftworks.com/forum/index.php?topic=5444.0)
Supports Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181)

What is this?
Transfer All Items is a mod for quickly transfer multiple items between your fleet and the market or storage.

Demonstration:
Spoiler
(https://github.com/MaiconMichel/StarsectorTransferAllItemsMod/raw/master/download/transferalldemo.gif)
[close]

Compatibility:
It should work with any other mod and does not require a new game. It only transfers items between the fleet and the market or storage.

How to use:
1. Download and install this mod
2. Make sure this mod is enabled
3. On the market or storage screen:
    - Push the button (Upwards Arrow): Transfers all items from the selected Fleet tab to the market or storage.
    - Push the button (Downwards Arrow): Transfers all items from the selected market or storage tab to the fleet.

Changelog:
Spoiler
Quote
Version 1.2 (March 27, 2021)
===============================
Bug fix that happens when the speed up option is active.
===============================
 Version 1.1 (January 10, 2020)
===============================
Bug fix that does not work correctly on some non fullscreen resolutions.
After you transfer the last item, you force the rating to leave the screen organized.
===============================
 Version 1.0 (November 11, 2019)
===============================
Initial release
[close]

Credits:
For the developers of the game Starsector
LazyWizard
Unofficial Starsector Discord
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: tomatopaste on November 11, 2019, 04:01:26 AM
This is a pretty sweet utility mod! I'll definitely use this in my own playthroughs, I've long wanted to skip dumping weapons into storage individually. Thanks for posting! I'll let you know if I have any issues  :)
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: tantananan on November 11, 2019, 06:58:40 AM
Yow! This is super convenient! Thank you!
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Cyan Leader on November 13, 2019, 06:00:06 PM
Thanks a lot, this should really be an official feature.
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Kulverstukass on December 22, 2019, 12:03:33 PM
Quote
...between your fleet and the market or storage
Yep, can't transfer into throwaway hatch aka "the f**k outta here", would like to be able to.
Crashed a game with blind attempt to get rid of "allweapons & allwings" results -
Spoiler
3804747 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:130)
   at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:54)
   at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
   at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
   at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
   at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
[close]
Had to sell for 150mil and throw away usb-wallet into airlock instead. ;D

PS - thanks for the mod, it's invaluable at exploration & stockpiling stage
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: OldManHenderson on December 23, 2019, 01:30:55 AM
Unknown if its a bug but it moves two items then leaves one selected and refuses to move the rest, is this a bug? i hit the up arrow on my keyboard
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Fantastic Chimni on December 23, 2019, 01:50:59 AM
Unknown if its a bug but it moves two items then leaves one selected and refuses to move the rest, is this a bug? i hit the up arrow on my keyboard

I'm getting the exact same issue on this one
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: pozix on January 09, 2020, 07:42:21 AM
Thanks for the mod!

Unknown if its a bug but it moves two items then leaves one selected and refuses to move the rest, is this a bug? i hit the up arrow on my keyboard

I'm getting the exact same issue on this one

I was getting the same error too.
There are 2 issues in MarketSizeInfo.java

1. The first is the HEIGHT_MIN_BORDER = 20 (MarketSizeInfo.java - l.18) which is affecting this function: (MarketSizeInfo.java - l.127)

Code
private static float calcRowsVisible() {
        float rowsVisible = (float)Math.floor((getScreenHeight() - HEIGHT_MIN_BORDER * 2 - HEIGHT_TAB * 2 -
                              HEIGHT_INFO_TOP - HEIGHT_BUTTONS_MID - HEIGHT_BAR_BOTTOM) / 2F) / 100;
        return Math.min(rowsVisible, MAX_VISIBLE_ROWS);
    }

For 1080p the total height border is 101 and for 960p is 41. I hard-coded the HEIGHT_MIN_BORDER to 101 for me.

2. The second issue is: (MarketSizeInfo.java - l.91)

Code
private static int getWindowsPosY() {
        if (!Display.isFullscreen()) {
            return Display.getY() + getWinTitleBarHeight();
        }

        return 0;
    }

It doesn't take into account borderless fullscreen, so it still adds getWinTitleBarHeight().

I don't work with Java or these APIs usually so I hard-coded my fixes for 1080p borderless.
If you want the same fix replace TransferAllItems.jar in /jars with the attached file while we get an update.

[attachment deleted by admin]
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Nociam on January 10, 2020, 04:47:01 AM
Quote
...between your fleet and the market or storage
Yep, can't transfer into throwaway hatch aka "the f**k outta here", would like to be able to.
Crashed a game with blind attempt to get rid of "allweapons & allwings" results -
Spoiler
3804747 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:130)
   at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:54)
   at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
   at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
   at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
   at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
[close]
Had to sell for 150mil and throw away usb-wallet into airlock instead. ;D

PS - thanks for the mod, it's invaluable at exploration & stockpiling stage

Is this error constantly happening? Maybe it's incompatible with some other mod.
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Nociam on January 10, 2020, 04:49:06 AM
Thank you for the informations. They were helpful in solving the problem. But my solution is totally different from yours. Anyway when you can test my new version and see if it is working correctly at its resolution. I await a return. Thanks.

Thanks for the mod!

Unknown if its a bug but it moves two items then leaves one selected and refuses to move the rest, is this a bug? i hit the up arrow on my keyboard

I'm getting the exact same issue on this one

I was getting the same error too.
There are 2 issues in MarketSizeInfo.java

1. The first is the HEIGHT_MIN_BORDER = 20 (MarketSizeInfo.java - l.18) which is affecting this function: (MarketSizeInfo.java - l.127)

Code
private static float calcRowsVisible() {
        float rowsVisible = (float)Math.floor((getScreenHeight() - HEIGHT_MIN_BORDER * 2 - HEIGHT_TAB * 2 -
                              HEIGHT_INFO_TOP - HEIGHT_BUTTONS_MID - HEIGHT_BAR_BOTTOM) / 2F) / 100;
        return Math.min(rowsVisible, MAX_VISIBLE_ROWS);
    }

For 1080p the total height border is 101 and for 960p is 41. I hard-coded the HEIGHT_MIN_BORDER to 101 for me.

2. The second issue is: (MarketSizeInfo.java - l.91)

Code
private static int getWindowsPosY() {
        if (!Display.isFullscreen()) {
            return Display.getY() + getWinTitleBarHeight();
        }

        return 0;
    }

It doesn't take into account borderless fullscreen, so it still adds getWinTitleBarHeight().

I don't work with Java or these APIs usually so I hard-coded my fixes for 1080p borderless.
If you want the same fix replace TransferAllItems.jar in /jars with the attached file while we get an update.
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: pozix on January 10, 2020, 07:51:28 AM
Thank you for the informations. They were helpful in solving the problem. But my solution is totally different from yours. Anyway when you can test my new version and see if it is working correctly at its resolution. I await a return. Thanks.

Thanks for the quick update! It seems to work perfectly now  ;D

There was another issue in the previous version where after some time, the game gets sluggish and starts dropping frames and the script used to do every command in less than 1 second.
I'm going to test the update more, later this evening.
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Kulverstukass on January 11, 2020, 01:47:29 PM
Is this error constantly happening? Maybe it's incompatible with some other mod.
This made with previous version, and I've manually ejected everything at once or separately to check if there is really could be an issue with anything specifically, there wasn't.
I've made few tries with different tabs, but they all gave same error.
Spoiler
Code
149025 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:130)
at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:54)
at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]

***
This one with 1.1
Spoiler
Code
112435 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:127)
at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:55)
at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]

There isn't much details - in an open space, open inventory and press Down on keyboard, inventory tabs doesn't matter, amount of items in a tab doesn't matter either.
Title: Re: [0.9.1a] Transfer All Items v1.0 (2019/11/11)
Post by: Nociam on January 11, 2020, 10:52:55 PM
You can save the store side game you use the mod and send the attachment of your save. It will be easier for me to test and find out what is going on.
Is this error constantly happening? Maybe it's incompatible with some other mod.
This made with previous version, and I've manually ejected everything at once or separately to check if there is really could be an issue with anything specifically, there wasn't.
I've made few tries with different tabs, but they all gave same error.
Spoiler
Code
149025 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:130)
at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:54)
at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]

***
This one with 1.1
Spoiler
Code
112435 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at data.scripts.MarketMouseClick.getMarket(MarketMouseClick.java:127)
at data.scripts.MarketMouseClick.clickAllMarket(MarketMouseClick.java:55)
at data.scripts.TransferAllItems.transferCargoMarketToFleet(TransferAllItems.java:62)
at data.scripts.TransferAllItems.checkInput(TransferAllItems.java:49)
at data.scripts.TransferAllItems.advance(TransferAllItems.java:26)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]

There isn't much details - in an open space, open inventory and press Down on keyboard, inventory tabs doesn't matter, amount of items in a tab doesn't matter either.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: BoraYeou on January 25, 2020, 05:29:42 AM
I have error with this mod, but can't received error massage. the error is, I can not transfer all stuff but only one stuff.
and more importantly, it's working after start game. but over time, the mod no longer function, and transfer only one stuff.
I want to report every information. Just tell me what you need. Thank you!
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Soñjer on March 07, 2020, 12:27:29 PM
Hi! Fantastic mod, however just a heads up for people also getting the same issue: if you have the "pan view up/down/right/left" option binded to up/down, items will only move one at a time instead of all at once. Can hardly be considered a bug tho, but still something to consider.

Edit: Nevermind, still have it. Worked for one test for some reason, but it's now back to one at a time. Bug it probably is, then.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: tindrli on March 08, 2020, 10:55:53 AM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: deaxsa on March 08, 2020, 12:39:16 PM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong

I have this as well. However, I have also found that if I press up/down while in the vast void of space while trying to dump cargo, I CTD.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Kyam on March 16, 2020, 04:32:37 AM
I don't know if this method works on you guys because it works on mine.


1. Go to setting & reset/return to defaults.
2. After defaults, test it, the first row item moves up but not all.
3. Re-launch the game after testing it.
4. Press up & it works.

Note: In step 2 I was on windows mode, have to re-launch because of an fps issue. I then changed full-screen after reading some changelogs on the notes, and etc.

Thanks to "Soñjer" it gave me an idea, when I tested by changing the keybinding of my pan-view up and still didn't work, I thought maybe reset/defaults will work, and it work for me. Hope so it work on you guys.


[EDITED]
5. Oh, its the "Campaign 'speed up time' toggle" is messing up this mod, or the mod messing up the game. OFF = All item move, ON = One item at the time(Not the press UP and G kind, but just pressing UP repeatedly).
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: EpicLancer on August 25, 2020, 01:47:42 PM
i tried using the command to dump items into space and it crashed.

(http://puu.sh/GlIqx.png)
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Szasz on December 13, 2020, 03:03:41 AM
Only moves 129 stacks tops, sometimes even less.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: SirStargateur on February 24, 2021, 07:51:09 AM
This feature should be in base game. Have a hack way using pixel to do this is not nice.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Tale on March 27, 2021, 04:47:03 AM
Not working ... to work while and after few months and few updates (no any new mod) it just stop working and have very strange behaving

UPDATE : I try disable eveary other mod and still not working properly. ma resolution is 1920x1080 if it helps
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Nociam on March 27, 2021, 03:22:50 PM
I don't know if this method works on you guys because it works on mine.


1. Go to setting & reset/return to defaults.
2. After defaults, test it, the first row item moves up but not all.
3. Re-launch the game after testing it.
4. Press up & it works.

Note: In step 2 I was on windows mode, have to re-launch because of an fps issue. I then changed full-screen after reading some changelogs on the notes, and etc.

Thanks to "Soñjer" it gave me an idea, when I tested by changing the keybinding of my pan-view up and still didn't work, I thought maybe reset/defaults will work, and it work for me. Hope so it work on you guys.


[EDITED]
5. Oh, its the "Campaign 'speed up time' toggle" is messing up this mod, or the mod messing up the game. OFF = All item move, ON = One item at the time(Not the press UP and G kind, but just pressing UP repeatedly).

It was solved in version 1.2. Test please and comment. Thanks.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Nociam on March 27, 2021, 03:24:19 PM
Only moves 129 stacks tops, sometimes even less.
I made an adjustment that probably will not happen again now. If you can test and leave your report it would be of great help. Thanks.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Tale on March 27, 2021, 04:01:04 PM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong


same problem regardless update to 1.2 any solutions or do you need more informations ?
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Nociam on March 27, 2021, 04:09:24 PM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong


same problem regardless update to 1.2 any solutions or do you need more informations ?
Yes, I need to know the operating system, resolution and whether it is full screen or not. And make sure that speed up is active before you enter the screen.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: pipai on March 28, 2021, 12:26:58 AM
So this mod never worked for me. I only decided to take a brief look at the code now more closely and now understand how it works. This mod works by running a script to hold down the CTRL button and moving the mouse to click on everything.

I'm running on Arch Linux using XFCE. The Java Robot doesn't seem to actually be able to press the CTRL button for whatever reason on my setup, so you need to hold it down yourself before pressing up/down. Additionally, the internal state of the MarketMouseClick doesn't seem to be entirely stable (didn't investigate why, too lazy), and sometimes will click sort a bunch of times even though there is nothing in inventory. So while using this mod, you need to be a little careful about what you do immediately after hitting up/down.

Although this works, I'm somewhat leery of the fact that it basically hijacks my keyboard and mouse. It would be great if it could call starsector internal code to transfer items directly instead of doing this sort of keyboard/mouse automation.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Tale on March 28, 2021, 02:45:49 AM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong


same problem regardless update to 1.2 any solutions or do you need more informations ?
Yes, I need to know the operating system, resolution and whether it is full screen or not. And make sure that speed up is active before you enter the screen.




 When my laptop was in repair service I used old desk pc and it worked there fine. When I copyed game from desk pc to laptop and update all mods (new ship and basic staff nothing like UI or HUD change) the mod stop working for me ... he is working but mouse jump everywhere and clicking to anything randomly

i use microsoft windows 10 my resolutions is 1920x1080 and it is full screen. I start with admin rights and i try turn off and turn on that "spped up" thing and it do nothing to me.



EDIT: i use 1.9.1a
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Nociam on March 28, 2021, 08:56:22 AM
So this mod never worked for me. I only decided to take a brief look at the code now more closely and now understand how it works. This mod works by running a script to hold down the CTRL button and moving the mouse to click on everything.

I'm running on Arch Linux using XFCE. The Java Robot doesn't seem to actually be able to press the CTRL button for whatever reason on my setup, so you need to hold it down yourself before pressing up/down. Additionally, the internal state of the MarketMouseClick doesn't seem to be entirely stable (didn't investigate why, too lazy), and sometimes will click sort a bunch of times even though there is nothing in inventory. So while using this mod, you need to be a little careful about what you do immediately after hitting up/down.

Although this works, I'm somewhat leery of the fact that it basically hijacks my keyboard and mouse. It would be great if it could call starsector internal code to transfer items directly instead of doing this sort of keyboard/mouse automation.
I made this type of code due to lack of API resources. The only resource I found to move the items, it moves behind the visual interface not displaying the buy and sell items on the screen. So when it comes to selling items or buying it it wouldn't work. So unfortunately I chose to use the keyboard and mouse that are my best tools.

If you look at the code I had to create devices to get the position of the screen when it is not fullscreen, to know the quantity of items in the stock yet and I even had to create a code to define the mouse click positions. It gave me a lot of work. Really if someone knew somehow that I am unaware of moving the items that are on the screen, I would definitely make that change.

In fact I think that this functionality should be native to the game and would not need someone to create a mod for it. I'm sad to know that it doesn't work with all players, but I hope it works well for most, since I don't know how to improve or what is causing some computers to fail. If anyone can help me with knowledge or ideas on how to improve the process I would be very grateful.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Nociam on March 28, 2021, 08:57:48 AM
STRANGE,  it does not work for me. when i press UP arrow or DOWN arrow the mouse just get crazy and it doesnt transfer anything. if i pres it several times well, sometimes it pick some items but.. its just dont working or im doing something wrong


same problem regardless update to 1.2 any solutions or do you need more informations ?
Yes, I need to know the operating system, resolution and whether it is full screen or not. And make sure that speed up is active before you enter the screen.




 When my laptop was in repair service I used old desk pc and it worked there fine. When I copyed game from desk pc to laptop and update all mods (new ship and basic staff nothing like UI or HUD change) the mod stop working for me ... he is working but mouse jump everywhere and clicking to anything randomly

i use microsoft windows 10 my resolutions is 1920x1080 and it is full screen. I start with admin rights and i try turn off and turn on that "spped up" thing and it do nothing to me.



EDIT: i use 1.9.1a

Try to disable other mods and check if it is working.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Albreo on April 13, 2021, 02:47:28 AM
Not working properly. It's possible that UI scaling messed with it or screen resolution (mine is 2k 2560*1440).
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: cynoid on April 16, 2021, 11:24:04 AM
Not working for me either. 1920x1080.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: The_White_Falcon on April 27, 2021, 04:38:46 PM
I play on a 4k monitor and would also report this mod not working.  When I push UP or DOWN arrow keys my cursor goes to the corner of the screen and kinda bounces in place until I escape the action.  No items are transferred during this.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Pata-tata on May 01, 2021, 11:43:32 AM
Seconded on not working with a 2K monitor
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: zsunsun on May 13, 2021, 10:17:03 PM
This mod has been a life saver for me and always been #1 installed mod whenever I reinstall/update the Starsector.

I have an RSI on my finger limiting mouse usage which makes transferring loot of war a real challenge.  I hope this mod can come back alive soon.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Jugband_Dude on May 14, 2021, 07:49:22 AM
I registered to comment here. This mod has also saved my life, so hoping it gets fixed soon.

On a different note, I saw Nemo using a different method: I think he held a key and sold everything he hovered the mouse over. Does anyone know what mod he was using?
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Codyrex123 on May 14, 2021, 09:27:14 AM
I registered to comment here. This mod has also saved my life, so hoping it gets fixed soon.

On a different note, I saw Nemo using a different method: I think he held a key and sold everything he hovered the mouse over. Does anyone know what mod he was using?

I believe control + click does that, base game function I'm pretty sure. This mod didn't work stable for me either but I presume it was because I play in a windowed mode rather then fullscreen plus needing the right resolution, when it did work, it was great but I've by now gotten used to the quick move in the game already even if its by a massive margin slower.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Jugband_Dude on May 14, 2021, 11:10:49 AM
I believe control + click does that, base game function I'm pretty sure. This mod didn't work stable for me either but I presume it was because I play in a windowed mode rather then fullscreen plus needing the right resolution, when it did work, it was great but I've by now gotten used to the quick move in the game already even if its by a massive margin slower.

Yeah, but I have to ctrl-click every stack individually. He seemed to do it much faster, so I'm wondering if I'm doing something wrong.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: robepriority on May 14, 2021, 11:35:28 AM
In the starsector config file, there's a toggle for autostorage wtih alt.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: aikixd on May 16, 2021, 07:02:34 AM
In the starsector config file, there's a toggle for autostorage wtih alt.

Thank you! This should be enabled by default.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Jugband_Dude on May 18, 2021, 09:20:50 AM
In the starsector config file, there's a toggle for autostorage wtih alt.

Thank you!

For reference, it's called "altMouseMoveToMassTransfer"
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Fippel on September 07, 2021, 07:08:44 AM
I can confirm this mod is not functioning as intended right now. My mouse cursor just stutters a bit and nothing happens after that. Running the game in 1440p and using 135% UI scaling.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Yunru on September 07, 2021, 07:41:12 AM
Well I for one can confirm this mod (version 1.2) is working, at least for me personally.
Title: Re: [0.9.1a] Transfer All Items v1.1 (2020/01/10)
Post by: Szasz on September 07, 2021, 09:24:02 AM
Only moves 129 stacks tops, sometimes even less.
I made an adjustment that probably will not happen again now. If you can test and leave your report it would be of great help. Thanks.

It seems to me that you upped the number of hardcoded iterations. This means that even if the player has just a few stuff to move around, they need to wait for your script to finish running in order to regain control over the UI.
In my opinion a mod like this should be more flexible either by being adaptive or configurable.
Right now I find the vanilla alt+mouse method a better option.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: starmarco on October 11, 2021, 05:25:08 PM
Hello,
i had your mod enabled in a playthrough over the past week and i have noted 3 issues:
0) if you are in the market tab and press the wrong button (up instead of down), all items from that tab vanish and the ui bugs (doesn't show all objects anymore). workaround: pressing esc to return to the prev menu and opening the market again resets it as if nothing happened.
1) if you press "arrow-down" on accident while flying around space (inside a system), the game crashes and throws a null exception.
2) while it's known that starsector has a memory leak issue (which requires a complete game restart), the severity of this issue is notably increased by your mod: the memory issue occured after each 10-20 big battles and while your mod was enabled, it occured after every single battle. *solution suggestion: if possible, let your script only be active when a player pressed the "trade with station" button after which the market opens) and if a player is using any of the "go back" options (like pressing esc), your script should be disabled again until time the market is opened.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: ofasia on December 25, 2021, 07:37:22 AM
Hiya.

Just a little heads up to mention some general naughtiness somewhat related to the last post above.

Happens with both Fullscreen turned on and off (Windows 10, disabled other mods, 1920x1080) while on the management menu of one of your colony.

Pressing Up, makes the menu goes a bit hayware as it process a useless move command. (Also happen on an AI colony menu)
Pressing Down, crash the game. (Does not happen on an AI colony menu)

Can't really speak to the memory issues, that would take take to actually confirm. I suspect... yes, maybe? Take with a grain of salt.

A small price to pay for such a useful mod as not even the secret setting option come close to it :)
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Vundaex on March 17, 2022, 03:29:07 PM
This mod is extremely useful, and it would be even better if it could also work for storage.
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Corwin on October 12, 2022, 04:15:02 AM
For some reason this mod doesn't seem to work. (no items transferring) I'm on mac. Anybody have a solution?
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: NasaBrindle on November 03, 2022, 05:49:33 AM
For some reason this mod doesn't seem to work. (no items transferring) I'm on mac. Anybody have a solution?

I do not have a solution. I may have some new information.

There's a file in settings you can edit so that holding "alt" transfers everything your mouse hovers over- in theory to enable exactly this kind of rapid sorting. This mod appears to simply enable that, and when you press the up arrow, it just holds ALT and whirls the mouse across the screen real fast for you. It's automating the user input for rapid transfer rather than directly ordering a mass transfer... if you're on a mac, I imagine the keybinds may be different, so it wouldn't work. (Do macs have the alt button? Don't you guys have function?)

That said, I bet someone could edit the mod to accommodate mac rather easily... 

Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Raif Redacted on November 21, 2022, 02:49:08 PM
Doesn't seem to work anymore, or at least, not for me. On windows 10, 64-bit, if that matters. If the above comment is true, though, it would explain why the mouse seems to just rapidly move across the screen but do nothing to the items. It might be a screen resolution problem??
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: SpaceBlender on May 12, 2023, 01:01:00 PM
As of the time of writing the mod still works, even on 0.96R8.
Just edit the game version in the mod_info.json file to make it compatible.

Burn bright fellow spacers!
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: EmperorLuuk on September 27, 2023, 06:41:28 AM
This mod doesn't work for me anymore 0.96a-RC10. Changed name in modinfo but it doesn't work. Love this mod for long campaigns!
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: xSevenG7x on September 28, 2023, 05:18:14 AM
A mod that I always used, it should be a vanilla mechanic, a simple mod, but is for sure one of the best mods out there, great job man!
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Coil on October 12, 2023, 08:50:50 PM
This mod doesn't work for me anymore 0.96a-RC10. Changed name in modinfo but it doesn't work. Love this mod for long campaigns!

Same. I think it's from jre8 azul
Title: Re: [0.95a] Transfer All Items v1.2 (2021/03/27)
Post by: Kibawan on February 27, 2024, 03:23:57 PM
This mod is cool