playing with all characters

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
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

playing with all characters

Post by anl93 »

I didnt know where toopen this topic.
I know debug function and I love adding units but I want to add downloadable mods contents units from the menu.i can add only default units which default campaign units.for example I want to add summoner unit to the heir to the throne campaign.How can i make this possible?sorry for bad english.
User avatar
Celtic_Minstrel
Developer
Posts: 2214
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: playing with all characters

Post by Celtic_Minstrel »

In the _main.cfg for the campaign in question, add the following line:

Code: Select all

extra_defines=MULTIPLAYER
Note that this could cause problems in some cases, though I think it should be usually safe.

If there's already a line beginning with "extra_defines", you would just add ",MULTIPLAYER" on the end (if there are quotes it needs to stay inside the quotes).

I haven't tested this myself, but I think it will work.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

Re: playing with all characters

Post by anl93 »

where is the _main.cfg and add where ?
Last edited by anl93 on August 27th, 2012, 9:37 pm, edited 1 time in total.
User avatar
Celtic_Minstrel
Developer
Posts: 2214
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: playing with all characters

Post by Celtic_Minstrel »

Depends on your platform. For Windows, look in the core folder inside the data folder. For Mac, you right-click, show package contents, and go into Contents and the Resources, and from there on it's the same as Windows.

Make sure to add the line between "[campaign]" and "[/campaign]", otherwise it'll have no effect.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

Re: playing with all characters

Post by anl93 »

can you write the wholo file im using windows and wesnoth 1.10.3 latest thanks i found the file but dont know where to add

#textdomain wesnoth
# Main purpose of this file is to ensure that macros get read in first.

# wmlscope: set export=yes

#ifndef NO_TERRAIN_GFX
{core/terrain-graphics/}
#endif

{core/macros/}
{core/about.cfg}
{core/help.cfg}
{core/hotkeys.cfg}
{core/terrain.cfg}
{core/units.cfg}
{core/editor/}

[lua]
code=<<
wesnoth.dofile 'lua/compatibility-1.8.lua'
wesnoth.dofile 'lua/wml-tags.lua'
>>
[/lua]
User avatar
Celtic_Minstrel
Developer
Posts: 2214
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: playing with all characters

Post by Celtic_Minstrel »

Um, sorry, that's the wrong _main.cfg. I gave you slightly wrong information. Go back into data (not core), then go into campaigns and the subfolder for the campaign you want to change. There'll be another _main.cfg in there.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

Re: playing with all characters

Post by anl93 »

#textdomain wesnoth-httt
[textdomain]
name="wesnoth-httt"
[/textdomain]

# wmlscope: set export=no
[campaign]
id=Heir_To_The_Throne
rank=5
icon="data/campaigns/Heir_To_The_Throne/images/units/konrad-lord-leading.png"
name= _ "Heir to the Throne"
abbrev= _ "HttT"
define=CAMPAIGN_HEIR_TO_THE_THRONE
first_scenario=01_The_Elves_Besieged
difficulties=EASY,NORMAL,HARD
difficulty_descriptions={MENU_IMG_TXT2 "units/elves-wood/fighter.png~RC(magenta>red)" _"Fighter" _"(Beginner)"} +
";*" + {MENU_IMG_TXT2 "units/elves-wood/hero.png~RC(magenta>red)" _"Hero" _"(Normal)"} +
";" + {MENU_IMG_TXT2 "units/elves-wood/champion.png~RC(magenta>red)" _"Champion" _"(Challenging)"}
description= _ "Fight to regain the throne of Wesnoth, of which you are the legitimate heir.

" + _"(Novice level, 23 scenarios.)"
image="data/campaigns/Heir_To_The_Throne/images/campaign_image.png"

[about]
images = maps/wesnoth.png,story/httt_story1.jpg,story/httt_story2.jpg,story/httt_story3.jpg,story/httt_story4.jpg,story/httt_story5.jpg,story/httt_story6.jpg,story/httt_story7.jpg,story/httt_story8.jpg
[/about]

[about]
title = _ "Campaign Design"
[entry]
name = "David White (Sirp)"
[/entry]
[/about]
[about]
title = _ "Campaign Maintenance"
[entry]
name = "Dimitar Ilccov (Mythological)"
[/entry]
[entry]
name = "Lari Nieminen (zookeeper)"
comment = "current maintainer"
[/entry]
[entry]
name = "Scott Klempner"
[/entry]
[/about]
[about]
title = _ "Artwork and Graphics Design"
[entry]
name = "Francisco Muñoz (fmunoz)"
[/entry]
[entry]
name = "Neoriceisgood"
[/entry]
[entry]
name = "Richard Kettering (Jetryl)"
[/entry]
[/about]
[about]
title = _ "Miscellaneous"
[entry]
name = "Patrick Parker (Sapient)"
comment = "WML assistance"
[/entry]
[/about]
[/campaign]

#ifdef CAMPAIGN_HEIR_TO_THE_THRONE
[binary_path]
path=data/campaigns/Heir_To_The_Throne
[/binary_path]
[+units]
{campaigns/Heir_To_The_Throne/units}
[/units]

{campaigns/Heir_To_The_Throne/utils}
{campaigns/Heir_To_The_Throne/scenarios}
#endif
User avatar
Celtic_Minstrel
Developer
Posts: 2214
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: playing with all characters

Post by Celtic_Minstrel »

A good place to put it would be after the define= line.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

Re: playing with all characters

Post by anl93 »

thanks its working now i can play like a rpg strategy.can you suggest some good downloadable campaign with less units.more rpg than classic strategy.
User avatar
Kanzil
Posts: 288
Joined: June 14th, 2012, 4:09 pm

Re: playing with all characters

Post by Kanzil »

NX-RPG, Legend of the Invincibles, Aeranor Book 1, Ooze awakening(very good!), Elvish dynasty RPG.(You might want to put this in the user's forum).
High over valleys in the red levelling rays -
In din of crowded streets, going among the years, the faces,
May I still meet my memory in so lonely a place
Between the streams and the red clouds, hearing the curlews, Hearing the horizons endure.
Dwarven_Void
Posts: 64
Joined: August 27th, 2012, 10:26 am

Re: playing with all characters

Post by Dwarven_Void »

Grnk the mighty is a good, but bizarre rpg. Elvish dynasty is very good, and is the sequel to Ooze awakening (also an RPG, also very good)
anl93
Posts: 22
Joined: August 27th, 2012, 5:18 pm

Re: playing with all characters

Post by anl93 »

thanks.konu kilit.
Post Reply