WML for beginners issue I had
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.
WML for beginners issue I had
When I did the WML for beginners there was something wrong, not with the website or anything. If I do everything it says up until chapter 5 and then launch Battle for Wesnoth 1.13.8 it just starts to load and then crashes. I don't know if it is with my computer or with the WML stuff I just did. Please help me out with this.
Gold is great!
Swat them bugs!
Swat them bugs!
Re: WML for beginners issue I had
Last two lines of console output usually have crash message.
Re: WML for beginners issue I had
In your userdata folder there should be a logs folder. Right after making the game crash, open the most recent file in there, and hopefully its last few lines will have helpful information.
The last few months have been nothing but one big, painful reminder that TIMTLTW.
Creator of Armory Mod, The Rising Underworld, and Voyage of a Drake: an RPG
Creator of Armory Mod, The Rising Underworld, and Voyage of a Drake: an RPG
- beetlenaut
- Developer
- Posts: 2827
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: WML for beginners issue I had
You most likely have an error in your WML, but WML errors are not supposed to crash Wesnoth, so you might have found a bug. However, a lot of bugs have been fixed since version 1.13.8, so you should try using 1.13.10 first. If it still crashes, then use the console.
"Running from the console" means typing wesnoth at a text-only command prompt. Wesnoth will run normally, but the text window will display messages about what it is doing and any errors it encounters. On Windows, you can look ford "Command Prompt" in the menus or enter "cmd.exe" in the run window. On MacOS, there is "Terminal" in the Applications/Utilities folder. On Linux, the terminal program you get by default depends on your distribution, but it's guaranteed to be in the menu. If you want more help with this, you'll have to tell us what system you are using.
"Running from the console" means typing wesnoth at a text-only command prompt. Wesnoth will run normally, but the text window will display messages about what it is doing and any errors it encounters. On Windows, you can look ford "Command Prompt" in the menus or enter "cmd.exe" in the run window. On MacOS, there is "Terminal" in the Applications/Utilities folder. On Linux, the terminal program you get by default depends on your distribution, but it's guaranteed to be in the menu. If you want more help with this, you'll have to tell us what system you are using.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: WML for beginners issue I had
Also, How to locate the game logs.
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: WML for beginners issue I had
Okay I found the crash log, it came up with...
I was trying to make a campaign and if I put the campaign files into the add-ons file and open Wesnoth, it loads for about 3 seconds and when it comes to "loading units" it just crashes.
Spoiler:
Gold is great!
Swat them bugs!
Swat them bugs!
- beetlenaut
- Developer
- Posts: 2827
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: WML for beginners issue I had
That's not a very helpful error message.
Does the same thing happen in 1.13.10? Before trying to track the problem down more, let's make sure it isn't already fixed.
Does the same thing happen in 1.13.10? Before trying to track the problem down more, let's make sure it isn't already fixed.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: WML for beginners issue I had
1.13.10 crashes at the same moment as when it crashes on 1.13.8, so I don't think it's fixed yet. Here is the file of the campaign that I've made so far just in case it's in the file and I've done something wrong.
- Attachments
-
- hunted_outlaws.zip
- (3.09 KiB) Downloaded 155 times
Gold is great!
Swat them bugs!
Swat them bugs!
- beetlenaut
- Developer
- Posts: 2827
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: WML for beginners issue I had
You are using fancy quotes which are not the same thing as regular ones. That's what is causing the crash. You need to turn off that feature in your editor or use a different program. If you don't know what to use, a lot of programmers recommend notepad++ for Windows.
You have some other errors too. For example, in _main.cfg you are missing an ending quote on the name and you have unfinished lines for icon= and image=.
Also, if you want anyone else to read your code, you will have to indent it. (It also helps you avoid mistakes.) If you're not sure what that means, here's a random chunk of code to show you what it should look like:
You have some other errors too. For example, in _main.cfg you are missing an ending quote on the name and you have unfinished lines for icon= and image=.
Also, if you want anyone else to read your code, you will have to indent it. (It also helps you avoid mistakes.) If you're not sure what that means, here's a random chunk of code to show you what it should look like:
code:
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: WML for beginners issue I had
*Face palm* can you tell that I'm new to the making a campaign? Yeah I think I may have to double check next time... Thanks for clearing it up for me beetlenaut.
Gold is great!
Swat them bugs!
Swat them bugs!