Search found 4 matches

by Deadexow
Sat Jun 22, 2024 9:48 am
Forum: Modding help
Topic: [1.1.107]The API function get_script_inventories() is not returning any value.
Replies: 6
Views: 499

Re: [1.1.107]The API function get_script_inventories() is not returning any value.

Thank you very much,now I know what the function return:

Code: Select all

{
	["mod_name"] = {inv,inv,……},
	["mod_name"] = {inv,inv,……},
}
by Deadexow
Thu Jun 20, 2024 10:20 am
Forum: Modding help
Topic: [1.1.107]The API function get_script_inventories() is not returning any value.
Replies: 6
Views: 499

Re: [1.1.107]The API function get_script_inventories() is not returning any value.

Regardless of whether I use the command console or a module to call this function, the return value of this function is always an empty table. Furthermore, when I use the command console command game.get_script_inventories("core"), this function results in an error, as previously demonstra...
by Deadexow
Thu Jun 20, 2024 8:31 am
Forum: Not a bug
Topic: [1.1.107]The GuiElementType "entity-preview" is useless.
Replies: 1
Views: 267

[1.1.107]The GuiElementType "entity-preview" is useless.

What did you do? I simply entered the command /c local t = game.player.gui.screen.add{type = "entity-preview", entity = game.player.character} t.style.height = 180 t.style.width = 180 in the command box. What happened? It just no thing happen. What did you expect to happen instead? I wish...
by Deadexow
Thu Jun 20, 2024 8:11 am
Forum: Modding help
Topic: [1.1.107]The API function get_script_inventories() is not returning any value.
Replies: 6
Views: 499

[1.1.107]The API function get_script_inventories() is not returning any value.

What did you do? I simply entered the command /c local inv = game.create_inventory(16) local invs = game.get_script_inventories() game.print(invs[1]) in the command box. What happened? It only returns nil , which does not align with the return value described in your API documentation. What did you...

Go to advanced search