Invisible Unit Bugs

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Diskman
Posts: 1
Joined: May 18th, 2019, 3:40 pm

Invisible Unit Bugs

Post by Diskman »

I can't make my unit pictures appear. I need someone to tell me what is wrong with my script so I can fix it:

Code: Select all

#textdomain wesnoth-units
[unit_type]
    id=Sailor
    name= _ "Sailor"
    race=human
    alignment=lawful
    usage=scout
    description= _ "Just a standard sailor."

    image="images/Sailor.png"
    profile=
    {MAGENTA_IS_THE_TEAM_COLOR}

    hitpoints=30
    movement=7
    movement_type=swimmer
    cost=15
    level=1
    experience=40
    advances_to="Pirate, First_Mate"


    [attack]
        name= _ "Knife"
        icon=attacks/sword-human.png
        type=pierce
        range=melee
        damage=3
        number=3
    [/attack]
[/unit_type]
The Unit pictures are stored in a folder called images, within the units folder of my addon.
please help.
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Invisible Unit Bugs

Post by josteph »

Did you set [binary_path] in _main.cfg?

Welcome to the forums!
User avatar
Ravana
Forum Moderator
Posts: 2950
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Invisible Unit Bugs

Post by Ravana »

Make sure you have it in binarypath/images/images/Sailor.png.
Post Reply