Purpose of +"" for options and messages

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
User avatar
LordAwsomeness
Posts: 198
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Purpose of +"" for options and messages

Post by LordAwsomeness »

Hi so I was just wondering what the purpose for having a +"" on a label or message for [message] and [option] tags is for. Example:

Code: Select all

[option]
	label="<span weight='bold' size='small'>Hi</span>" + "Purpose of this?"
	image=""
	[show_if]
	[/show_if]
	[command]
	[/command]
[/option]
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Purpose of +"" for options and messages

Post by Ravana »

Grouping text, especially across multiple lines.
User avatar
LordAwsomeness
Posts: 198
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Purpose of +"" for options and messages

Post by LordAwsomeness »

Ravana wrote: March 14th, 2020, 6:01 pm Grouping text, especially across multiple lines.
how does that work? I use text over multiple lines however using the +"" doesn't start a new line. because of this I dont even see the point because I can just do:
"name
description"

instead of:
"name" + "
description"
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Purpose of +"" for options and messages

Post by Ravana »

Code: Select all

description="a"+
"b"
to generate

Code: Select all

description="ab"
User avatar
LordAwsomeness
Posts: 198
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Purpose of +"" for options and messages

Post by LordAwsomeness »

Ravana wrote: March 14th, 2020, 7:42 pm

Code: Select all

description="a"+
"b"
to generate

Code: Select all

description="ab"
with using the

Code: Select all

description="a"+
"b"
you can use enter to create a new line and then insert the quotations?
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Purpose of +"" for options and messages

Post by Ravana »

This way you can enter new line, without having it show up in game.

Code: Select all

ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ cat _main.cfg 
description="a"+
"b"
ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ wesnoth14 -p _main.cfg out
using ~/wesnoth/wesnoth-lobby/wesnoth
Battle for Wesnoth v1.14.5+dev (0122a265c42-Modified)
Started on Sat Mar 14 22:33:44 2020

Automatically found a possible data directory at /home/USER/wesnoth/wesnoth-lobby
added 1 defines.
preprocessing common macros from 'data/core' ...
acquired 1664 'data/core' defines.
preprocessing specified resource: _main.cfg ...
acquired 1664 total defines.
preprocessing finished. Took 37 ticks.
ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ cat out/_main.cfg
description="ab"
I made sure it is valid syntax.
User avatar
LordAwsomeness
Posts: 198
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Purpose of +"" for options and messages

Post by LordAwsomeness »

Ravana wrote: March 14th, 2020, 8:32 pm This way you can enter new line, without having it show up in game.

Code: Select all

ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ cat _main.cfg 
description="a"+
"b"
ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ wesnoth14 -p _main.cfg out
using ~/wesnoth/wesnoth-lobby/wesnoth
Battle for Wesnoth v1.14.5+dev (0122a265c42-Modified)
Started on Sat Mar 14 22:33:44 2020

Automatically found a possible data directory at /home/USER/wesnoth/wesnoth-lobby
added 1 defines.
preprocessing common macros from 'data/core' ...
acquired 1664 'data/core' defines.
preprocessing specified resource: _main.cfg ...
acquired 1664 total defines.
preprocessing finished. Took 37 ticks.
ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack/test $ cat out/_main.cfg
description="ab"
I made sure it is valid syntax.
made sure the "a" + "b" is a valid syntax? slightly confused lol. Also is the 37 ticks telling you how many seconds it took to load my addon?
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Purpose of +"" for options and messages

Post by Ravana »

Not your addon, I preprocessed /data/add-ons/LA_MP_Pack/test/_main.cfg not /data/add-ons/LA_MP_Pack/_main.cfg. Ticks are not seconds, but not sure how long it actually is.

For your addon it would be

Code: Select all

ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack $ wesnoth14 --preprocess-defines=MULTIPLAYER -p _main.cfg out
using ~/wesnoth/wesnoth-lobby/wesnoth
Battle for Wesnoth v1.14.5+dev (0122a265c42-Modified)
Started on Sun Mar 15 11:47:32 2020

Automatically found a possible data directory at /home/USER/wesnoth/wesnoth-lobby
added 2 defines.
preprocessing common macros from 'data/core' ...
acquired 1665 'data/core' defines.
preprocessing specified resource: _main.cfg ...
20200315 11:47:32 warning preprocessor: Redefining macro UNIT_SPAWN_GUARD without explicit #undef at ~add-ons/LA_MP_Pack/macros/misc.cfg:57
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/misc.cfg:18
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro UNIT_SPAWN without explicit #undef at ~add-ons/LA_MP_Pack/macros/misc.cfg:69
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/variables.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:1
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:48
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/misc.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro STAND_FILTER without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:2
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:2
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro LOC_FILTER without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:8
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:8
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SIGHTED_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:17
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:17
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SIGHTED_BY_MOVETO_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:69
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:33
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:84
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:48
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro VARIABLE_MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:111
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:75
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro VARIABLE_MOVETO_MESSAGE_NO_IMAGE_PLACEMENT without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:151
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:115
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_ONCE_ONLY without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:184
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:148
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:244
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:177
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:274
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:207
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE_2_ACTIONS without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:318
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:251
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE_ALWAYS_ACTION_ONCE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:363
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:296
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro LA_HERO_OPTION_MESSAGE_CANT_USE without explicit #undef at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:9
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SET_ATTACK_ANIM3 without explicit #undef at ~add-ons/LA_MP_Pack/utils/pillaged/creation-utils.cfg:2721
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:34
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/utils/pillaged/creation-utils.cfg:2685
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:34
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 warning preprocessor: Redefining macro LA_REQUIREMENT_EVENT without explicit #undef at ~add-ons/LA_MP_Pack/scenarios/survival.cfg:317
    included from _main.cfg:24
previously defined at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:407
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
acquired 2327 total defines.
preprocessing finished. Took 14559 ticks.
User avatar
LordAwsomeness
Posts: 198
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Purpose of +"" for options and messages

Post by LordAwsomeness »

Ravana wrote: March 15th, 2020, 9:48 am Not your addon, I preprocessed /data/add-ons/LA_MP_Pack/test/_main.cfg not /data/add-ons/LA_MP_Pack/_main.cfg. Ticks are not seconds, but not sure how long it actually is.

For your addon it would be

Code: Select all

ravana@ravana-think ~/wesnoth/userdata_1_14/data/add-ons/LA_MP_Pack $ wesnoth14 --preprocess-defines=MULTIPLAYER -p _main.cfg out
using ~/wesnoth/wesnoth-lobby/wesnoth
Battle for Wesnoth v1.14.5+dev (0122a265c42-Modified)
Started on Sun Mar 15 11:47:32 2020

Automatically found a possible data directory at /home/USER/wesnoth/wesnoth-lobby
added 2 defines.
preprocessing common macros from 'data/core' ...
acquired 1665 'data/core' defines.
preprocessing specified resource: _main.cfg ...
20200315 11:47:32 warning preprocessor: Redefining macro UNIT_SPAWN_GUARD without explicit #undef at ~add-ons/LA_MP_Pack/macros/misc.cfg:57
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/misc.cfg:18
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro UNIT_SPAWN without explicit #undef at ~add-ons/LA_MP_Pack/macros/misc.cfg:69
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/variables.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:1
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:48
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/misc.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:2
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro STAND_FILTER without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:2
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:2
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro LOC_FILTER without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:8
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:8
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SIGHTED_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:17
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:17
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SIGHTED_BY_MOVETO_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:69
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:33
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:84
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:48
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro VARIABLE_MOVETO_MESSAGE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:111
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:75
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro VARIABLE_MOVETO_MESSAGE_NO_IMAGE_PLACEMENT without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:151
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:115
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_ONCE_ONLY without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:184
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:148
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:244
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:177
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:274
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:207
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE_2_ACTIONS without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:318
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:251
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro MOVETO_ACTION_WML_VARIABLE_ALWAYS_ACTION_ONCE without explicit #undef at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:363
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/macros/action_wml.cfg:296
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:3
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro LA_HERO_OPTION_MESSAGE_CANT_USE without explicit #undef at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:9
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:1
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:32 warning preprocessor: Redefining macro SET_ATTACK_ANIM3 without explicit #undef at ~add-ons/LA_MP_Pack/utils/pillaged/creation-utils.cfg:2721
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:34
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
previously defined at ~add-ons/LA_MP_Pack/utils/pillaged/creation-utils.cfg:2685
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:34
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 error preprocessor: Macro/file 'LIST' is missing
at ~add-ons/LA_MP_Pack/utils/inventory/equip_macros.cfg:2921
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:12
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
20200315 11:47:40 warning preprocessor: Redefining macro LA_REQUIREMENT_EVENT without explicit #undef at ~add-ons/LA_MP_Pack/scenarios/survival.cfg:317
    included from _main.cfg:24
previously defined at ~add-ons/LA_MP_Pack/macros/event_macros.cfg:407
    included from ~add-ons/LA_MP_Pack/utils/paths.cfg:4
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:81
    included from _main.cfg:22
    included from ~add-ons/LA_MP_Pack/LA_RPG_Era.cfg:82
    included from _main.cfg:22
acquired 2327 total defines.
preprocessing finished. Took 14559 ticks.
okay gotcha. 37 seconds woulda have sounded about right though now with the new optimizations its closer to 15-20 on my pc. before all of the recent optimizations it was between 45 seconds and 2 minutes. So its definitely a nice set of changes.
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Purpose of +"" for options and messages

Post by Ravana »

I have reason to believe tick is millisecond.
Post Reply