Error!
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.
Error!
I wrote some real quick WML, just another faction with one character, and on startup I got a message that said:
"Game configuration files could not be loaded. Multiplayer tag has no ending tag in factions/drakes-default.cfg:2" + included from etc. etc. etc.
So I went to drakes-default.cfg, and the multiplayer tag is closed. What is my problem?
I copied-pasted other character's WML to make mine, so it is all standard and should work fine.
Please help!
"Game configuration files could not be loaded. Multiplayer tag has no ending tag in factions/drakes-default.cfg:2" + included from etc. etc. etc.
So I went to drakes-default.cfg, and the multiplayer tag is closed. What is my problem?
I copied-pasted other character's WML to make mine, so it is all standard and should work fine.
Please help!
--floodbud
Re: Error!
An error that says some tag is unclosed (while it is closed) in 99% of cases means that you either 1) gave a macro the wrong number of arguments or 2) forgot the closing quote from a quoted string. That causes the preprocessor to eat some of the following tags as being part of the string or part of the macro arguments and makes it much confused, which then produces confusing error messages.floodbud wrote:So I went to drakes-default.cfg, and the multiplayer tag is closed. What is my problem?
Re: Error!
If you posted the culprit WML (yours), we could be more helpful too, this and future help requests.floodbud wrote:I wrote some real quick WML, just another faction with one character, and on startup I got a message that said:
"Game configuration files could not be loaded. Multiplayer tag has no ending tag in factions/drakes-default.cfg:2" + included from etc. etc. etc.
So I went to drakes-default.cfg, and the multiplayer tag is closed. What is my problem?
I copied-pasted other character's WML to make mine, so it is all standard and should work fine.
Please help!
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Error!
I'll check on it, thanks. Any other suggestions?zookeeper wrote:An error that says some tag is unclosed (while it is closed) in 99% of cases means that you either 1) gave a macro the wrong number of arguments or 2) forgot the closing quote from a quoted string. That causes the preprocessor to eat some of the following tags as being part of the string or part of the macro arguments and makes it much confused, which then produces confusing error messages.floodbud wrote:So I went to drakes-default.cfg, and the multiplayer tag is closed. What is my problem?
Uh, call me stupid, but what is a macro?
--floodbud
If you wrote this kind of code:
... the single fact of you using code enclosed in { } curly braces, indicates you were using a macro being unaware of that.
Reference here: http://www.wesnoth.org/wiki/PreprocessorRef
Code: Select all
{UNIT (Elvish Fighter) (Elon) ( _ "Elon") 3 3}
Reference here: http://www.wesnoth.org/wiki/PreprocessorRef
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.