New Campaign: Warmaster

Discussion and development of scenarios and campaigns for the game.

Moderators: Forum Moderators, Developers

User avatar
trewe
Translator
Posts: 122
Joined: December 24th, 2012, 5:37 pm
Location: Portugal
Contact:

Re: New Campaign: Warmaster

Post by trewe »

Beon wrote: Whenever i have a sighting on any of the enemy chieftains (Mergh, Werrand-Log,...).
This results in an invalid xml for the saved games.
Nice spot, looks like a leftover from a previous version, will fix this when I have the files at hand.
This error is minor and can be ignored (the enemies just dont receive any gold)
Beon wrote: I can open any *.cfg file in order to help myself, if someone could locate the error.
Fiddling around with main.cfg and warmaster10.cfg didn't work out, since I'm deleting random gold and on_sighting stuff without knowing what im actually doing. :whistle:
localize something like *gold* probaly in warmaster10.cfg and add a line «amount=100» between their tags, but do not delete anything, there is a reason for it
Beon wrote: Thanks in advance for any clues!

Beon
Thanks for playing the campaign.

trewe
Beon
Posts: 2
Joined: December 29th, 2012, 3:15 pm

Re: New Campaign: Warmaster

Post by Beon »

Hi trewe,

thank you so much for your fast reply! i tried to put the suggested snippet in the on_sighting tag, but to no avail.

ill put in some code here, so you might have a better chance to point me to the right direction.

Original code from Warmaster10.cfg (relevant snippets in my understanding for Werrand-Log only, can adapt this for all sides i guess) :
Code for the side-snippet:

Code: Select all

 [side]
        side=3
        controller=ai
        type=Orcish Warlord
        id=Werrand-Log
        name= _ "Werrand-Log"
        canrecruit=yes
        recruit=Orcish Grunt,Orcish Warrior,Orcish Archer,Orcish Crossbowman,Orcish Assassin,Orcish Slayer,Wolf Rider,Goblin Pillager,Goblin Knight
        team_name=enemy
        user_team_name=_"Orcs"
        village_gold=4
        #¡village_support=0
        {GOLD 90 120 150}
        {INCOME 8 12 16}
        {FLAG_VARIANT undead}
        [ai]
            recruitment_pattern=scout,fighter,archer,mixed fighter,fighter,archer,mixed fighter
            {ATTACK_DEPTH 3 4 5}
            {NO_SCOUTS}
        [/ai]
    [/side]
Code for on_sighting:

Code: Select all

    {ON_SIGHTING Werrand-Log 1 (id=Werrand-Log) (
        [gold]
            side=3
#ifdef EASY
            amount=45
#endif
#ifdef NORMAL
            amount=65
#endif
#ifdef HARD
            amount=80
#endif
        [/gold]
    )}
In the ON_SIGHTING snippet i put 'amount=100', since the tag indicates its about 'gold' already and corresponds, to what you suggested. May be something is messed up with the ifdefs, like syntax has changed to previous versions. Really only a guess, since i never touched any wesnoth.cfg before.

I will put the complete .cfg in a spoiler, in an attempt not to mess up the posting/space.

Thanks again very much for your support. Kind of great, to see this forum active even for old threads and campaigns! !!
Spoiler:
Post Reply