Jump to content

[MOD][Any side] Transfer Cargo Tweaks - Transfer Tab QoL


Rinart73

Recommended Posts

Starting from game version 0.23 mod is moved to the Steam Workshop.

 

Client-side features work perfectly even if mod is not installed on a server side and vice versa.

 

Versions:

  • 1.4.0 is for 0.21.x+
  • 1.3.0 is for 0.17.1-0.18.3
  • 1.0.0 is for 0.15.x+

 

GitHub

 

Playing with friend who likes to destroy NPC stations and bring all their goods to ours, I've noticed really fast that I don't find current Transfer Cargo tab practical enough.

All goods are in random (from user point of view) order, you either need to remember their icons or scroll and watch for blinking tooltips e.t.c

Of course, many modders and devs improved transfer cargo tab from it's original state so I decided to participate.

 

Client Features

  • Goods are sorted in alphabetical order now (in all supported languages)
  • Each good (and crew 1.2.0+) row has overlay name that is displayed on top of their statistics bar
  • You can search cargo by name
  • Fixed vanilla bug that resets numbers in textboxes if you have the same good in different states (like usual and stolen)
  • Added option that allows to increase the amount of rows in cargo transfer tab in case you have a lot of different cargo in your station/ship (can be set in 'mods/TransferCargoTweaks/config/config.lua')
  • You can transfer 5/10/50 goods/crew simultaneously by holding Ctrl/Shift/Alt while clicking transfer button (1.2.0+)
  • You can mark goods as favorites or trash. Favorites will be sorted to the start of the list, trash in the bottom (1.2.0+)
  • When transfering the crew you now see how much crew workforce your and other ship/station has and needs (1.2.0+)

 

Server Features

  • Crew, cargo and fighters transfer distance can be changed in the config (1.3.0+)
  • You now need to be docked to a station instead of being really close to it to transfer stuff (1.3.0+). You can toggle the default behaviour back on in the config

 

Installation

[*]Make a copy of 'data/scripts/entity/transfercrewgoods.lua'

[*]Unpack mod archive into Avorion folder

[*]Optionally install i18n - Internationalization mod, if you want to use this mod in your language

 

Uninstallation

 

 

 

Configuration

 

Config file is located in "mods\TransferCargoTweaks\config" directory. There you have following settings:

 

Client settings:

  • CargoRowsAmount - maxumum amount of cargo rows. Increase if you have more than 100 unique goods in your ship/station
  • EnableFavorites - enables/disables cargo favorites system
  • ToggleFavoritesByDefault - if favorites system is enables, should it be toggled on by default?
  • EnableCrewWorkforcePreview - show current and minimal crew workforce in Crew Transfer Tab

Server settings:

  • FightersMaxTransferDistance - allows to change fighters max transfer distance
  • CargoMaxTransferDistance - allows to change cargo max transfer distance
  • CrewMaxTransferDistance - allows to change crew max transfer distance
  • CheckIfDocked - if enabled, when a ship transfers goods from/to a station, server will check if the ship is docked instead of checking the distance (usually this will allow to transfer from a greater distance)

 

 

Compatibility

 

Mod replaces 'data/scripts/entity/transfercrewgoods.lua'. The following functions were changed:

  • TransferCrewGoods.initUI
  • TransferCrewGoods.updateData
  • TransferCrewGoods.onPlayerTransferCargoTextEntered
  • TransferCrewGoods.onSelfTransferCargoTextEntered
  • TransferCrewGoods.onPlayerTransferCargoPressed
  • TransferCrewGoods.onSelfTransferCargoPressed
  • TransferCrewGoods.onPlayerTransferCrewPressed - from version 1.2.0
  • TransferCrewGoods.onSelfTransferCrewPressed - from version 1.2.0
  • TransferCrewGoods.onPlayerTransferCargoPressed - from version 1.2.0
  • TransferCrewGoods.onSelfTransferCargoPressed - from version 1.2.0
  • TransferCrewGoods.renderUI - from version 1.2.0
  • TransferCrewGoods.onShowWindow - from version 1.2.0
  • TransferCrewGoods.onCloseWindow - from version 1.2.0

 

 

Planned features

  • Implement either favorites/trash system (like the one that we have now for upgrades) or multiple customizable groups like "Turret Goods", "Pizza ingredients" e.t.c. Restore these settings after revisiting the sector (save them on client side) - done in 1.2.0

 

Notes

  • Mod also changes some lines in accordance with Lua performance recommendations

 

Changelog

 

 

1.4.0

  • Fixed: Lowercase caching didn't work.
  • Fixed: When user favorited some good, removed it from ship and then closed a window, it caused a script error.
  • Fixed: 'Favorites system' was sometimes assigned to wrong goods or incorrectly displayed.
  • Fixed: Some other small bugs.
  • Improved: Updated to Avorion 0.21.x.

1.3.0

  • Added: A way to change max transfer distance for crew, cargo and fighters via config (if mod is installed server-side)
  • Added: If you're transfer goods to/from station you should now be docked instead of being really close. You can toggle default behaviour on in config (if mod is installed server-side)
  • Added: Partial Deutsch and French translation
  • Fixed: Minor fixes

1.2.0

  • Added: Localization support. You'll need to install 'i18n' mod for it to work (optional)
  • Added: An option to transfer 5/10/50 goods at once by clicking transfer button while you hold Ctrl/Shift/Alt
  • Added: Favorites/trash system. Hover on row and you'll see two small icons (star and trasbin). Right-click them and you'll mark that good as favorites/trash.
    Self/Other ship favorites are independent from each other. You can also turn on/off favorites sorting by clicking big button with a star.
    All your preferences are saved on your(client) side in AppData(or other folder on Linux)
  • Added: Overlay crew names with their profession levels
  • Added: A way to show how much crew workforce you currently have and need
  • Improved: A bit more utf8 performance
  • Fixed: Minor errors in utf8 library

1.1.0

  • Fixed: Cargo sorting order for languages that have non-latin characters (no more "Ö" after "Z" in German)
  • Improved: Mod updated to Avorion  0.17.1+
  • Improved: utf8 library was rewritten to make mod more performance friendly
  • Improved: Localized 'Search' label
  • Improved: Search toogle button now has different icon when search query is not empty. This should be helpful in case you searched something and then toggled search bar off

1.0.0

  • Initial release

 

 

Help to Translate

Currently supported languages: English, Russian, German. You can help to translate this mod:

 

 

  • "Level %u" - example: "1 General (Level 2)"
  • "Untrained" - example: "1 General (Untrained)"
  • "Untrained /* plural */" - example: "3 Generals (Untrained)"

 

 

 

Screenshots

 

 

transfercargotweaks_1_2_0_favorites.jpg

 

transfercargotweaks_1_2_0_crew.jpg

 

TransferCargoTweaks-1.0.0.zip

TransferCargoTweaks-1.3.0_0.17.1-0.18.2.zip

TransferCargoTweaks-1.4.0_0.21.x.zip

[*]Remove 'TransferCargoTweaks' folder from 'mods'

[*]Restore  'data/scripts/entity/transfercrewgoods.lua' from backup

Link to comment
Share on other sites

  • 7 months later...

Updated mod to 0.17.1+, made significant performance improvements, fixed few things.

  • Fixed: Cargo sorting order for languages that have non-latin characters (no more "Ö" after "Z" in German)
  • Improved: Mod updated to Avorion  0.17.1+
  • Improved: utf8 library was rewritten  to make mod more performance friendly
  • Improved: Localized 'Search' label
  • Improved: Search toogle button now has different icon when search query is not empty. This should be helpful in case you searched something and then toggled search bar off

Link to comment
Share on other sites

  • 2 weeks later...

1.2.0

  • Added: Localization support. You'll need to install 'i18n' mod for it to work (optional)
  • Added: An option to transfer 5/10/50 goods at once by clicking transfer button while you hold Ctrl/Shift/Alt
  • Added: Favorites/trash system. Hover on row and you'll see two small icons (star and trasbin). Right-click them and you'll mark that good as favorites/trash.
    Self/Other ship favorites are independent from each other. You can also turn on/off favorites sorting by clicking big button with a star.
    All your preferences are saved on your(client) side in AppData(or other folder on Linux)
  • Added: Overlay crew names with their profession levels
  • Added: A way to show how much crew workforce you currently have and need
  • Improved: A bit more utf8 performance
  • Fixed: Minor errors in utf8 library

 

transfercargotweaks_1_2_0_favorites.jpg

 

transfercargotweaks_1_2_0_crew.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Decided to add some server-side features as well, since it's all in the same file :) You still can install this mod on client-side only if you want.

 

1.3.0

  • Added: A way to change max transfer distance for crew, cargo and fighters via config (if mod is installed server-side)
  • Added: If you transfer goods to/from station you should now be docked instead of being really close. You can toggle default behaviour on in config (if mod is installed server-side)
  • Added: Partial Deutsch and French translation
  • Fixed: Minor fixes

Link to comment
Share on other sites

Thank you again, very helpful!

 

I have a small request if that's ok. It's not really an issue once you have a big enough ship to carry around extra crew for other ships, but at the beginning of the game I was flying each individual ship to a station to hire crew. Would it be possible to add the crew indicators to the 'Hire Crew' screen. I've included a poorly done photoshop of what I mean :) Thanks again!

Link to comment
Share on other sites

  • 8 months later...

1.4.0 is out!

  • Fixed: Lowercase caching didn't work.
  • Fixed: When user favorited some good, removed it from ship and then closed a window, it caused a script error.
  • Fixed: 'Favorites system' was sometimes assigned to wrong goods or incorrectly displayed.
  • Fixed: Some other small bugs.
  • Improved: Updated to Avorion 0.21.x.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...