#HTML 5 Export is showing textures as empty.

9 messages · Page 1 of 1 (latest)

lusty cradle
#

I am building my game using the CLI via a github action and I have noticed the textures are not showing up in the web build. I am not sure if I just have a setting wrong or what

You can see it here
https://damientehdemon.github.io/godot_grid_inventory/

You can see the repository here
https://github.com/damientehdemon/godot_grid_inventory

GitHub

A grid inventory system written in gdscript. Contribute to DamienTehDemon/godot_grid_inventory development by creating an account on GitHub.

lusty cradle
#

whats wierd is that one of the ones that doesnt show up there shows up here

#

using the same everything lol

lusty cradle
#

So I noticed these errors are happening, I tried setting convert_text_resources_to_binary to false

#

Ok

#

So the problem was that it was trying to load the wrong type of file and it would break the script

extends Node

# Dictionary to store loaded items with their item_id as the key
var ITEMS = {}

func _ready():
    # Load items from the "items" directory and populate the ITEMS dictionary
    for i in DirAccess.get_files_at("res://grid_inventory_system/items"):
        if(i.ends_with(".tres")):
            var item = load("res://grid_inventory_system/items/" + i)
            ITEMS[item.item_id] = item

# Function to retrieve an item based on its item_id
func get_item(item_id):
    # Check if the item_id exists in the ITEMS dictionary
    if ITEMS.has(item_id):
        return ITEMS[item_id]
    else:
        return null