My thread for WML questions. Help please.
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.
My thread for WML questions. Help please.
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
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
Re: My thread for WML questions. Help please.
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
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.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: My thread for WML questions. Help please.
Also, it might just be my editor, but this it what it looks like for me:
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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: My thread for WML questions. Help please.
Hi. What text editor are you using? i like itPentarctagon wrote:Also, it might just be my editor, but this it what it looks like for me: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.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: My thread for WML questions. Help please.
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
take one down, patch it around
-2,147,483,648 little bugs in the code