Author Topic: Inventory rejigging  (Read 2625 times)

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 107
    • View Profile
    • supercaffeinedude
Inventory rejigging
« on: November 24, 2019, 04:24:09 pm »
I'm adjusting the space weapons take up, and the like.

I've created a 4x1 weapon, a mosin-rifle resting horizontally (3*width is too small imo).

When an item is picked up by the cursor for placement the image crops to a different size, is there a way to stop or redefine the cropping?
Also the weapon seems tricky to get into the inventory (need to test more)

Lastly is there a way to delete inventory space without causing errors?
For example, when I delete the left hand an error occurs when the battle is started (I guess because of the aliens trying to access it)
Code: [Select]
invs:
  - delete: STR_LEFT_HAND


I essentially am trying to make a new inventory that has only...

Wielded Item 3x4 *1 (type: anything)
Slung Item 3x4 *1 (type: gun/corpse)
Quickdraw Item 1x2 *2 (type: gun/melee)
Utility Storage 1x1 *4 (type: ammo/grenades etc)

Interested in knowing if this is feasible with basic adjustments.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Inventory rejigging
« Reply #1 on: November 24, 2019, 04:53:23 pm »
left hand, right hand, belt, backpack and ground are hardcoded (i.e. must exist)

hand dimensions are hardcoded

hands and ground cannot have slots

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 107
    • View Profile
    • supercaffeinedude
Re: Inventory rejigging
« Reply #2 on: November 24, 2019, 09:45:15 pm »
Ah, well that seems to be that  :P thanks Meridian

Am I right in thinking some mods just block slots (like the backpack or left-hand) with a static item (like a shield)?

I guess I'll adjust the hardcoded items to look more like what I have in mind.

Cheers!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Inventory rejigging
« Reply #3 on: November 24, 2019, 09:58:34 pm »
yes

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 107
    • View Profile
    • supercaffeinedude
Re: Inventory rejigging
« Reply #4 on: November 27, 2019, 09:55:10 am »
Just some notes,

Code: [Select]
  - id: STR_RIGHT_HAND
    x: -99999
    y: -99999

Will hide the right hand from view

Code: [Select]
  - id: STR_RIGHT_HAND
    x: -999999
    y: -999999

Will cause visual errors (too large a number?)

Idea: Right hand (in example) would still be visible in battle, but could be used to host armor attacks/abilities

WIP: Rename using "extraStrings:"

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Inventory rejigging
« Reply #5 on: November 27, 2019, 01:19:41 pm »
I don't see how that makes any difference?
The hand is still there for all intents and purposes.

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 107
    • View Profile
    • supercaffeinedude
Re: Inventory rejigging
« Reply #6 on: November 28, 2019, 01:32:08 pm »
I just thought I'd mention the visual-error, I'm mucking around atm, I was going to put a static item in the left-hand and put it off screen, but it seems I may be able to just use a black box to hide that inventory space.

I have ideas for using the left-hand now for universal soldier abilities now.