My thread for WML questions. Help please.

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
GreatLord
Posts: 6
Joined: October 13th, 2017, 11:47 pm

My thread for WML questions. Help please.

Post by GreatLord »

Hello to all wesnoth content creators. This is my thread to ask questions about WML regarding my first campaign attempt.

Of course i shall put your name in credits after my campaign is finished.

1- I have tried out some macros and the arguments thing is pissing me off because i am not able to understand it.

I will attach my cfg files and the error code.

Error code: El siguiente complemento contiene errores y no se ha podido cargar:
C:/Users/asd/Documents/My Games/Wesnoth1.12/data/add-ons/The_Forbidden_Tale_of_Ardonna/_main.cfg

Por favor, informe sobre esto al autor o mantenedor de este complemento.

Detalles:

Preprocessor symbol 'SIDE_1_ADRYN-NA' expects 20 arguments, but has 0 arguments
at ~add-ons\\The_Forbidden_Tale_of_Ardonna\\scenarios\\01_Opposed_Ways.cfg:7
included from ~add-ons\\The_Forbidden_Tale_of_Ardonna\\_main.cfg:35
Attachments
chacacters.cfg
(710 Bytes) Downloaded 157 times
01_Opposed_Ways.cfg
the scenario is not completed, just wanted to test it before complete it
(4.36 KiB) Downloaded 149 times
User avatar
Zap-Zarap
Posts: 159
Joined: March 16th, 2015, 2:18 pm

Re: My thread for WML questions. Help please.

Post by Zap-Zarap »

Hello.
Not sure, how to explain.
You seem to use a macro, where you don't need one (referring to charakters.cfg).
A macro is something you want to use, when you have a certain piece of code, that appears many times in your program, and you don't want to type the same lines again and again.
But for creating one special hero-unit, you don't need that, because, as i suppose, you're not giong to create that unit 100 times in your game, but only once.

I recommend, you read the WIKI entries about units.
Maybe here is a good starting point: http://wiki.wesnoth.org/SingleUnitWML
Or even here: https://wiki.wesnoth.org/WML_for_Comple ... _Chapter_6
I like beavers.
User avatar
Pentarctagon
Project Manager
Posts: 5531
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: My thread for WML questions. Help please.

Post by Pentarctagon »

Also, it might just be my editor, but this it what it looks like for me:
Screenshot from 2017-10-22 10-54-02.png
The file with the macro definitions looks similar though, so I'm guessing it is actually a problem since you can't put so many things on one line like that.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
GreatLord
Posts: 6
Joined: October 13th, 2017, 11:47 pm

Re: My thread for WML questions. Help please.

Post by GreatLord »

Pentarctagon wrote:Also, it might just be my editor, but this it what it looks like for me:
Screenshot from 2017-10-22 10-54-02.png
The file with the macro definitions looks similar though, so I'm guessing it is actually a problem since you can't put so many things on one line like that.
Hi. What text editor are you using? i like it
User avatar
Pentarctagon
Project Manager
Posts: 5531
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: My thread for WML questions. Help please.

Post by Pentarctagon »

The editor is Xed(the default text editor for Mint 18) with the Gedit syntax highlighting from here.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply