OpenXcom Forum

Modding => Work In Progress => Topic started by: Cooper on November 10, 2015, 11:22:00 pm

Title: Inventory section modding problem
Post by: Cooper on November 10, 2015, 11:22:00 pm
After modding the inventory section, the game crashes when Ctrl-clicking on items on the ground, at least when doing it in items that would normally be put in the belt, witch is removed. Is there any way around this problem? Can the Ctrl-clicking destination be changed somehow?
Title: Re: Inventory section modding problem
Post by: Cooper on November 11, 2015, 01:24:33 am
Using "STR_BELT" as a string for one of the "pockets" stops the game from crashing by the way, but there is still a "not enough space" message appearing when I'm trying to pick up something from the ground with a Ctrl-click even if there is some space in the back pack.
Title: Re: Inventory section modding problem
Post by: Dioxine on November 11, 2015, 04:05:50 pm
Ctrl+click prioritizes the belt. It's hard-coded. It's also expected the belt will have at least 2x1 space. Otherwise, ctrl+click will be useless and you'll have to drag'n'drop.