Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)
init python:
  item_pen = Item(
    name=__("Pen"),
    cost=100,
    descr=__("Basic pen"),
    shop="tenten",
    icon="my_mod_folder/pen.webp",
    ),
  )
  class Pen(Module):
    subscribe_on_events = ["game_loaded"]
    def on_event(self, event):
      if not inv_shop.has_item(item_pen):
        inv_shop.add(item_pen)

got that problem, whats wrong?(switched render, renamed mod doesnt help, no ignore button)
Thank you for your help, understanding and patience
And sorry for the large number of questions
Folder name is correct in icon

(4 edits)
init python:
  item_pen = Item(
    name=__("Pen"),
    cost=100,
    descr=__("Basic pen"),
    shop="tenten",
    icon="my_mod_folder/pen.webp",
    ), <--- REMOVE THIS LINE
  )

Like so:

init python:
  item_pen = Item(
    name=__("Pen"),
    cost=100,
    descr=__("Basic pen"),
    shop="tenten",
    icon="my_mod_folder/pen.webp",
  )