I do not know if this is a bug or a change, not reported, in the API.
Today I downloaded the latest version(0.4.11dev) from git and compiled as usual on ubuntu.All work fine.
There is a problem in the view of the inventory, and this was not in version 0.4.10dev.
This is my inventory modified:
Code: Select all
local inv= ObjectRef:get_inventory()
inv:set_size('main',50)
inv:set_size('craft',25)
ObjectRef:set_inventory_formspec(
'bgcolor[#5a2f1b;false]'..
'size[14,12,true]'..
'label[2,0;NAME: '..ObjectRef:get_player_name()..']'..
'label[2,0.5;RACE: '..players[name].race..']'..
'label[2,1;LEVEL: level]'..
'label[2,1.5;EXPERIENCE: '..players[name].experience..']'..
'image[0.5,0.5;1,2;player.png]'..
'list[current_player;main;0,8;10,5;]'..
'list[current_player;craft;0,3;5,5;]'
--'image[2,3.5;1,1;arrow.png]'..
--'list[current_player;craftpreview;3,3.5;1,1;]'
)
Code: Select all
18:30:17: ERROR[main]: WARNING: invalid use of label without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of label without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of label without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of label without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of image without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of list without a size[] element
18:30:17: ERROR[main]: WARNING: invalid use of list without a size[] element