Jump to content
The Dark Mod Forums

Recommended Posts

Posted

The shop doesn't know about the flashmine.

 

I'm adding it.

 

I've created a *.def file with the definition, and made an image to go with it. The image should be displayed next to the description when you hover over a flashmine in the starting or buy lists.

 

But ...

 

All I'm getting is a black box where the image should be. I know the shop gui is picking up my new definition, because the description and cost are correct.

 

Thinking that my image was bad, I copied an existing image (lantern) and made it the flashmine's image (<mymap>/dds/guis/assets/purchase_menu/flashmine_image.dds). Hover over a flashmine in the lists and I should get a picture of the lantern.

 

But I'm still getting the black box.

 

Here's my definition (<mymap>/def/shop_def.def):

 


entityDef ShopItem_playertools_flashmine {
"inherit"			"atdm:shopitem_base"
"editor_usage"		"Flashmine"
"displayName"		"Flashmine"
"displayDesc"		"Found most often on the black market, these defensive devices will temporarily blind anyone looking at them when they go off.  They are useless against creatures without eyes."
"itemClassname"		"atdm:playertools_flashmine"
"image"			"guis/assets/purchase_menu/flashmine"
"price"			"40"
}

 

What am I missing?

 

Thanks.

Posted

Nevermind.

 

The "image" line in the *.def is the materials definition, not the filename of the image.

 

Once I made a materials definition for the image, it worked.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 0 replies
    • datiswous

      Is there a script command to make a screenshot?
      I just though it could be interesting to be able to create a screenshot at a certain point in time. Then use that screenshot possibly in a debrief.
      I guess the second question is: Can you use a (in-game made) screenshot in a (debrief) gui?
      · 1 reply
    • Bikerdude  »  Display Cement

      So what type, and what ratio of portland to sand 😏
      · 1 reply
    • JackFarmer

      Our esteemed professional mapping predecessors from 20 years ago faced the same challenges we do today!
      · 2 replies
    • snatcher

      TDM Modpack 5.1 is out!
      · 0 replies
×
×
  • Create New...