playing with all characters
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.
playing with all characters
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.
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.
- Celtic_Minstrel
- Developer
- Posts: 2214
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: playing with all characters
In the _main.cfg for the campaign in question, add the following line:
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.
Code: Select all
extra_defines=MULTIPLAYER
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.
Re: playing with all characters
where is the _main.cfg and add where ?
Last edited by anl93 on August 27th, 2012, 9:37 pm, edited 1 time in total.
- Celtic_Minstrel
- Developer
- Posts: 2214
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: playing with all characters
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.
Make sure to add the line between "[campaign]" and "[/campaign]", otherwise it'll have no effect.
Re: playing with all characters
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]
#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]
- Celtic_Minstrel
- Developer
- Posts: 2214
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: playing with all characters
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.
Re: playing with all characters
#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
[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
- Celtic_Minstrel
- Developer
- Posts: 2214
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: playing with all characters
A good place to put it would be after the define= line.
Re: playing with all characters
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.
Re: playing with all characters
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.
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.
-
- Posts: 64
- Joined: August 27th, 2012, 10:26 am
Re: playing with all characters
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)
Re: playing with all characters
thanks.konu kilit.