for example, I can just add more
Code: Select all
    effects =
    {
      {
        type = "num-quick-bars",
        modifier = 1
      }
    },
Code: Select all
    effects =
    {
      {
        type = "character-logistic-slots",
        modifier = 5
      }
    },
but I can double the inventory space with the following line:
Code: Select all
data.raw["player"]["player"].inventory_size = 120 -- up from 60
Any ideas?



 You have to manually move the player's inventory from the old to the new, which leads to a problem. There is no method to copy the inventory of one entity to another (that I know of), which means you have to get the names of the items in the original entity's inventory and insert them into the new entity's inventory, not a major problem there but annoying, except that you can not access the inventory of modular armor (basic or power), so you can not move any modular armor from one entity to another and keep the equiment that is inside because there is no way to find out what is inside the modular armor...You'd have to instead check for when that research is done, then prompt the player to remove any modular armor (put it into a chest) and then after the player notifies the code that they have done so (via console remote.call, aka script interface, or gui, or any other method you decide to code) you could perform the swap of the rest of their inventory. annoying, but possible.
 You have to manually move the player's inventory from the old to the new, which leads to a problem. There is no method to copy the inventory of one entity to another (that I know of), which means you have to get the names of the items in the original entity's inventory and insert them into the new entity's inventory, not a major problem there but annoying, except that you can not access the inventory of modular armor (basic or power), so you can not move any modular armor from one entity to another and keep the equiment that is inside because there is no way to find out what is inside the modular armor...You'd have to instead check for when that research is done, then prompt the player to remove any modular armor (put it into a chest) and then after the player notifies the code that they have done so (via console remote.call, aka script interface, or gui, or any other method you decide to code) you could perform the swap of the rest of their inventory. annoying, but possible.