Search found 5528 matches

by Pentarctagon
Yesterday, 3:33 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions

That's correct. You can also test it out for example with:

Code: Select all

[event]
name=start
[message]
#ifdef THING
message="123"
#else
message="456"
#endif
[/message]
[/event]
by Pentarctagon
July 11th, 2026, 4:52 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions

kurt751 wrote: July 11th, 2026, 4:23 pm What's a "symbol A"?
The name of the macro.
by Pentarctagon
July 11th, 2026, 4:01 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions

If you have

#define A
#enddef

then you have defined the symbol A.

Maybe important to mention as well is that the preprocessor is an entirely separate system - essentially it's a fancy find-and-replace that runs before Wesnoth tries to read the WML of your add-on. So say you have this:
#define ...
by Pentarctagon
July 10th, 2026, 6:51 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions

Apparently it was somehow missing from https://wiki.wesnoth.org/CampaignWML, but you'd want to use the define attribute of [campaign]. For example: https://github.com/wesnoth/wesnoth/blob ... in.cfg#L16
by Pentarctagon
July 9th, 2026, 3:02 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions



You can do that, you'd just need to reference each of the campaign-specific _main.cfg files from the root one.

Interesting. Any example where I can check how actually this works? I'm meaning, the exact syntax?


In the root _main.cfg, use file inclusion (https://wiki.wesnoth.org ...
by Pentarctagon
July 8th, 2026, 7:13 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.19.25
Replies: 2
Views: 1401

Re: Wesnoth 1.19.25

Yes.
by Pentarctagon
July 8th, 2026, 5:28 pm
Forum: Users’ Forum
Topic: 1.18 "Add-on ID" structure questions
Replies: 23
Views: 245

Re: 1.18 "Add-on ID" structure questions


What would be nice is to be able to put several campaigns in the same /scenario folder, and have different _main.cfg files for each (guess they would need to have personalized names, like "_main_MyFirstCampaign.cfg", "_main_MySecondCampaign.cfg"). Oh well.


You can do that, you'd just need to ...
by Pentarctagon
July 6th, 2026, 3:43 am
Forum: Multiplayer Development
Topic: Multiplayer Activity Report - 2026
Replies: 5
Views: 379

Re: Multiplayer Activity Report - 2026

June has been added.
by Pentarctagon
June 28th, 2026, 2:05 pm
Forum: News
Topic: Wesnoth 1.19.25
Replies: 0
Views: 362

Wesnoth 1.19.25

The newest release of the new development series, Wesnoth 1.19.25 , is now available. Check the forum thread for a list of the most notable changes in this version, as well as the more technical full changelog for enthusiasts and content creators.

The source code and Windows and macOS packages are ...
by Pentarctagon
June 28th, 2026, 2:04 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.19.25
Replies: 2
Views: 1401

Wesnoth 1.19.25

Wesnoth 1.19.25 is out!




This new release in the 1.19.x development series sees various changes and improvements in various areas.

As this is a development version, we would like to remind everyone how the testing and feedback process works for these:

If you download Wesnoth stand-alone ...
by Pentarctagon
June 22nd, 2026, 2:38 pm
Forum: Technical Support
Topic: wesnothd doesn't read custom config file
Replies: 6
Views: 94

Re: wesnothd doesn't read custom config file

It looks like you started with https://github.com/wesnoth/wesnoth/blob/1.18/data/game_config.cfg as a base for some reason? Since those are specific to that file, not the wesnothd config file, so the reason it seems like it doesn't find anything is because it's looking for attributes at the the root ...
by Pentarctagon
June 3rd, 2026, 6:38 pm
Forum: Multiplayer Development
Topic: Multiplayer Activity Report - 2026
Replies: 5
Views: 379

Re: Multiplayer Activity Report - 2026

May has been added.
by Pentarctagon
May 24th, 2026, 2:41 pm
Forum: News
Topic: Wesnoth 1.19.24
Replies: 0
Views: 720

Wesnoth 1.19.24

The newest release of the new development series, Wesnoth 1.19.24 , is now available. Check the forum thread for a list of the most notable changes in this version, as well as the more technical full changelog for enthusiasts and content creators.

The source code and Windows and macOS packages are ...
by Pentarctagon
May 24th, 2026, 2:36 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.19.24
Replies: 0
Views: 1700

Wesnoth 1.19.24

Wesnoth 1.19.24 is out!




This new release in the 1.19.x development series sees various changes and improvements in various areas.

As this is a development version, we would like to remind everyone how the testing and feedback process works for these:

If you download Wesnoth stand-alone ...
by Pentarctagon
May 19th, 2026, 5:07 am
Forum: Users’ Forum
Topic: Trouble launching the game
Replies: 1
Views: 55

Re: Trouble launching the game

What OS and Wesnoth version are you running?