Change of code to suit BfW 1.9.5
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.
Change of code to suit BfW 1.9.5
I was using Wesnoth 1.8.4 for a long period,and have also prepared a campaign "Rebellion in the North" using the particular version of Wesnoth.I have recently upgraded to the current version of Wesnoth (1.9.5).When I try to play the campaign certain error messages come up.It seems that some codes are not supported in this version.They are the following:
The portions which are marked as errors are the ones involving "show title" and "change terrain".Can anyone provide me the right modifications?
Code: Select all
#textdomain wesnoth-Rebellion_in_the_North
[scenario]
id=xyz
name=_ "xyz"
map_data="{~add-ons/Rebellion_in_the_North/maps/xyz.map}"
{TURNS 40 35 30}
next_scenario=abc
{DEFAULT_SCHEDULE}
{DEFAULT_MUSIC_PLAYLIST}
[story]
[part]
show_title=yes
{TO_XYZ}
background=maps/wesnoth.png
[/part]
[/story]
Code: Select all
{CHG_TERRAIN Ms (25-28) (37-40)}
Current projects:
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
Re: Change of code to suit BfW 1.9.5
i know too that many campaigns first scenario dont start. 1.9.5 isnt still rdy for campaigns i guess...
"This game cured me of my real life addiction."
-Flameslash
-Flameslash
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Change of code to suit BfW 1.9.5
Sorry dudes, it's ready...
Hard to guess what's wrong without you providing the exact error message however.
Hard to guess what's wrong without you providing the exact error message however.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Change of code to suit BfW 1.9.5
The error messages are of the same type,and read "Missing macro/file '{CHG_TERRAIN Ms (25-27) (30-35)} at add-ons/Rebellion_in_the_North/scenarios/scenario_name:cfg 18 at dd-ons/Rebellion_in_the_North/main.cfg" (not the exact message but similar to them)Anonymissimus wrote:Sorry dudes, it's ready...
Hard to guess what's wrong without you providing the exact error message however.
Current projects:
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Change of code to suit BfW 1.9.5
Did {CHG_TERRAIN Ms (25-28) (37-40)} ever do what it's supposed to ? I doubt it since that error message likely means that your macro inclusion (order) is somehow broken, causing that macro call to be unknown by the preprocessor at the time it encounters it.
A quick dumb "fix" is to comment out that line with the macro call.
A quick dumb "fix" is to comment out that line with the macro call.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Change of code to suit BfW 1.9.5
Post _main.cfg pls.
Re: Change of code to suit BfW 1.9.5
This code has been used in the scenario "Glory" of the mainline campaign "Liberty" (to dismantle the castle of Helicrom if he does not come to help).Anyway,I can't follow the last line of your message.Anonymissimus wrote:Did {CHG_TERRAIN Ms (25-28) (37-40)} ever do what it's supposed to ? I doubt it since that error message likely means that your macro inclusion (order) is somehow broken, causing that macro call to be unknown by the preprocessor at the time it encounters it.
A quick dumb "fix" is to comment out that line with the macro call.
If posting the file "-main.cfg" helps then here it is.I need the code for the title portion very much,the change of terrain can be addressed by an alternative code too.
- Attachments
-
- _main.cfg
- (1.49 KiB) Downloaded 163 times
Current projects:
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Change of code to suit BfW 1.9.5
Whenever you get the "macro/file xy is missing at" - error you can "solve" it by removing that call to that macro/file:chak_abhi wrote:Anyway,I can't follow the last line of your message.Anonymissimus wrote:Did {CHG_TERRAIN Ms (25-28) (37-40)} ever do what it's supposed to ? I doubt it since that error message likely means that your macro inclusion (order) is somehow broken, causing that macro call to be unknown by the preprocessor at the time it encounters it.
A quick dumb "fix" is to comment out that line with the macro call.
{CHG_TERRAIN Ms (25-28) (37-40)} #{CHG_TERRAIN Ms (25-28) (37-40)}
Or just leave it away.
(So you see whether the addon at least loads and you can deal with the lacking functionality because of this later, or resolve the macro call.)
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Change of code to suit BfW 1.9.5
Removing the portions which are designated as errors makes the campaign functional.I have already uploaded it in the 1.9x server.
But the problem remains--the purpose of those codes remain unfulfilled.I want to show the scenario titles at the beginning of each scenario for which I need the modifications.
But the problem remains--the purpose of those codes remain unfulfilled.I want to show the scenario titles at the beginning of each scenario for which I need the modifications.
Current projects:
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
Rebellion in the North,Legend of Far North,Birth of a Lich,
Doreldos: Fight to Liberty
- Alarantalara
- Art Contributor
- Posts: 786
- Joined: April 23rd, 2010, 8:17 pm
- Location: Canada
Re: Change of code to suit BfW 1.9.5
CHG_TERRAIN is a macro defined within the Liberty campaign. Therefore it's not available outside that campaign. You could either copy the macro to an appropriate spot within your campaign (it's in utils/utils.cfg) or replace your use of it with the appropriate WML.
Code: Select all
[terrain]
terrain=Ms
x=25-28
y=37-40
[/terrain]
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: Change of code to suit BfW 1.9.5
Which is stupid because there is already a MODIFY_TERRAIN macro in mainline with exactly the same functionality. http://www.wesnoth.org/macro-reference. ... -utils.cfgAlarantalara wrote:CHG_TERRAIN is a macro defined within the Liberty campaign. Therefore it's not available outside that campaign. You could either copy the macro to an appropriate spot within your campaign (it's in utils/utils.cfg) or replace your use of it with the appropriate WML.
Code: Select all
[terrain] terrain=Ms x=25-28 y=37-40 [/terrain]