Space Engineers

Space Engineers

Not enough ratings
Inventory Manager V0.2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
12.322 KB
21 Feb, 2015 @ 10:17am
5 Mar, 2015 @ 8:23am
4 Change Notes ( view )

Subscribe to download
Inventory Manager V0.2

Description
This will display a menu with 4 options:
View containers - Shows a list of all your containers and the items for the selected one.
Add item type - Select a items for the transfer function.
Change Selected - Modify your selections.
Transfer items - Do the transfer.

When selecting you choose a container then you get a list of available categories then the items and
the amount you want to transfer. Once you select transfer, the script will go over all your containers
and try to fill the selections with the requested amount.
The transfer will work on one containe each time script is executed so It should work fine as long as
the storage donst get to its limit.
I am planning to implemet a system that will allow you to add more storage windows if you need it.

I will also publish the whole menu system infrastructure separately(with documentation of the functions
and how to use them) for developers once it is complete.

Setup:
1 - TIMER - There are two ways to set up the timer:
a. Run the program block the triggger now, this is now the default mode.
b. Run the program block then Start with a 1 second delay, to change to this mode you need to set
the constant USE_ACTIVATE_NOW to false.
Option b is probably safer but you get quite a big lag in the reactions of the menu.

2 - LCDs - 3 needed one optional:
IM_LCD_AUX1 - Auxiliary display.
IM_LCD_MAIN - Main display.
IM_LocalStorage - Used as a temp storage, because I found the the built-in Storage is buggy(when loading a game).
This should be setup to display a texture, If you want to use the built-in storage,
change the constant USE_STORAGE to true but it will cause problems when loading a game.
IM_Debug - This one is Optional it will display errors and is used for debuging.
I have noticed that some times when you load a game the LCDs are stuck displaying Offline,
Usually if I alt-tab out of the game and back in i fixes this.

3 - CONTROL: There are 7 control blocks, thay can be any block that can be tured on/off(I used Lights)
IM_MainMenu_UP - Move up in the menu.
IM_MainMenu_DOWN - Move down in the menu.
IM_AUX1_UP - Scroll up in the auxiliary screen.
IM_AUX1_DOWN - Scroll down in the auxiliary screen.
IM_Select - Select a menu item.
IM_Back - OPTIONAL, The same as selecting back from the menu.
IM_RESET - OPTIONAL, Resets the script.


You can set up buttons to turn on the control block or have a flight seat in front of the screen and
setup actions to turn the lights on.
I use the second method and setup:
1&2 for menu up/down, 3 select, 4 back, 5&6 Aux up/down and 7 reset.
If you use buttons I highly recommend useing the mod TVSI-Tech Buttons, it has buttons with arrows
that are very good for the menu and scrolling.
Popular Discussions View All (1)
0
5 Mar, 2015 @ 8:34am
PINNED: Ideas for useful stuff to add to the menu.
String