Resolved: missing campaign image

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
opensourcejunkie
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Resolved: missing campaign image

Post by opensourcejunkie »

A friend of mine who tested my campaign (Sceptre of Life) on his Mac told me that SoL's campaign image won't show up. It works fine on my linux box, and I haven't received any complaints from windows users. Has anyone run into this sort of thing before? Below is the content of my _main.cfg file:

Code: Select all

##|| For Translations ||##
[textdomain]
    name="wesnoth-Sceptre_of_Life"
    path="data/campaigns/Sceptre_Of_Life/translations"
[/textdomain]



##|| Public Binary Path ||##
##   allows campaign to use custom images for the icon, image, and difficulties
[binary_path]
    path=data/campaigns/Sceptre_of_Life/public
[/binary_path]



##|| Campaign Information ||##
[campaign]
    ##:: Associate With Previously Defined Text Domain
    #textdomain wesnoth-Sceptre_of_Life
    
    ##:: Identify Campaign To Program
    name= _ "Sceptre Of Life"
    id=Sceptre_Of_Life
    abbrev= _ "SOL"
    define=CAMPAIGN_SCEPTRE_OF_LIFE
    
    ##:: Identify Campaign To User
    icon=units/human-magi/great-mage-attack-staff-2.png~RC(magenta>white)
    image=portraits/Other/brown-lich.png
    description= _ "As orcs invade northern Wesnoth, Aeryn, a small town's doctor, is caught in the conflict. Through a series of chance meetings, Aeryn stumbles upon an artifact that could solve the orcish problem forever, or provide the horde with unbridled power.

version 0.11.1, 11/18 scenarios playable
forum topic: http://www.wesnoth.org/forum/viewtopic.php?f=8&t=21640"
    
    ##:: Difficulties
    difficulties=EASY,NORMAL,HARD
    difficulty_descriptions= _ "&units/medic.png=Easy;*&units/doctor.png=Medium;&units/rune_healer.png=Hard"
    
    ##:: First Scenario
    #first_scenario=null
    #first_scenario="01_Outflanked"
    #first_scenario="02_Politicians_Blunder"
    #first_scenario="03_Overprotective"
    #first_scenario="04_Alone_Time"
    #first_scenario="05_Satisfactory_Victory"
    #first_scenario="06a_Prophecy"
    #first_scenario="06b_Prophecy"
    #first_scenario="07_The_Promise_Of_Thieves"
    #first_scenario="08_For_Love_Of_A_Sister"
    #first_scenario="09_Run"
    #first_scenario="10_Character_Assassination"
    #first_scenario="11_Paybacks_Are_Tough"
    first_scenario="12_Forest_Reborn"
    
    ##:: Credits
    [about]
        title= _ "Author"
        [entry]
            name="Nathanael D Schmolze (Opensourcejunkie)"
            comment="storyline design, scenario design, scenario coding - basically, he wrote the campaign."
            email="opensourcejunkie@gmail.com"
            wikiuser="Opensourcejunkie"
        [/entry]
    [/about]
    [about]
        title= _ "Maps"
        [entry]
            name="Nathanael D Schmolze (Opensourcejunkie)"
            comment="designed the initial maps for each scenario."
            email="opensourcejunkie@gmail.com"
            wikiuser="Opensourcejunkie"
        [/entry]
        [entry]
            name="(anonymous)"
            comment="revised and refined a number of maps."
        [/entry]
    [/about]
[/campaign]



##|| Campaign ifdef ||##
#ifdef CAMPAIGN_SCEPTRE_OF_LIFE
    ##:: Private Binary Path
    [binary_path]
        path=data/campaigns/Sceptre_of_Life/
    [/binary_path]
    
    ##:: Various Includes
    {@campaigns/Sceptre_of_Life/terrain.cfg}
    {@campaigns/Sceptre_of_Life/utils}
    [+units]
        {@campaigns/Sceptre_of_Life/units}
    [/units]
    {@campaigns/Sceptre_of_Life/scenarios}
#endif
Thanks for any help on this,
--OSJ
Last edited by opensourcejunkie on April 8th, 2009, 11:44 am, edited 1 time in total.
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: missing campaign image

Post by zookeeper »

That's because there is no portraits/Other/brown-lich.png. You want portraits/undead/brown-lich.png.
opensourcejunkie
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Re: missing campaign image

Post by opensourcejunkie »

gotcha, tx. What bugs me is that I don't know why it still worked on my machine...ah, well.
--OSJ
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
Post Reply