First time WML'er (debug)
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.
First time WML'er (debug)
I was wondering if someone could help me debug a really simple WML MP level. This is my first level ever and has little practical purpose besides for training me. The next one I will work on however, will be pretty cool. (More info later.)
I keep on getting the error that I am:
Missing closing tag for multiplayer at ~add-ons/Mountains\ and\ Sea\multi.cfg:1, value " at ~add-ons/Mountains\ and\ Sea\multi.cfg:31
Any help would be appreciated.
I keep on getting the error that I am:
Missing closing tag for multiplayer at ~add-ons/Mountains\ and\ Sea\multi.cfg:1, value " at ~add-ons/Mountains\ and\ Sea\multi.cfg:31
Any help would be appreciated.
Multiplayer Username: JV
- krotop
- 2009 Map Contest Winner
- Posts: 433
- Joined: June 8th, 2006, 3:05 pm
- Location: Bordeaux, France
Re: First time WML'er (debug)
You put a " at the beginning of the map_data key, but not at the end (after the terrain text).
Don't trust me, I'm just average player.
***
Game feedback for the Nightmares of Meloen
Art feedback by mystic x the unknown
***
Game feedback for the Nightmares of Meloen
Art feedback by mystic x the unknown
Re: First time WML'er (debug)
I can tell i am getting closer but I still can't find a way to indent my map in text edit. (It goes all the way to the edge of the map instead of being slightly indented) Does anyone use text edit and know how to fix this problem?
Thanks krotop for you help.
Thanks krotop for you help.
Multiplayer Username: JV
-
- Posts: 1549
- Joined: June 18th, 2009, 1:45 am
Re: First time WML'er (debug)
I'd definitely say move the map onto a different file and just call it in the scenario file. It's easier to manage especially if you decide to make a map change suddenly. A couple things to try:
EDIT: Mistake. map-file-name.map, rather than .cfg.
step 1:
step 2:
step 3:
step 4:
step 5:
step 6:
Yeah::::
Last edited by monochromatic on July 29th, 2010, 1:52 pm, edited 1 time in total.
Re: First time WML'er (debug)
Alright now that I put the cfg. file and the map. file together in the same folder, the map file shows but not the other one.
I have some screen shots that show what I have done with the file
I have some screen shots that show what I have done with the file
Multiplayer Username: JV
Re: First time WML'er (debug)
Don't use spaces in the directory names or the .cfg filenames.
Also the game doesn't automatically look for any .cfg files inside add-on directories except for _main.cfg, which you don't have. Rename the file to _main.cfg and add #ifdef MULTIPLAYER at the top of the file and #endif at the bottom.
Also the game doesn't automatically look for any .cfg files inside add-on directories except for _main.cfg, which you don't have. Rename the file to _main.cfg and add #ifdef MULTIPLAYER at the top of the file and #endif at the bottom.
Re: First time WML'er (debug)
Thanks for the help.
Good news. It is showing up in the map list again.
Bad news. It still says error.
I will try troubleshooting but if anyone has further advice that would be appreciated.
Good news. It is showing up in the map list again.
Bad news. It still says error.
I will try troubleshooting but if anyone has further advice that would be appreciated.
- Attachments
-
- _main.cfg
- (858 Bytes) Downloaded 136 times
Multiplayer Username: JV
Re: First time WML'er (debug)
Well, this is definitely one of the most messed-up things I've ever seen:
Just look at other add-ons to see how map includes are supposed to be written and where the map file is supposed to be.
Code: Select all
map_data="{~add-ons/Mountains_and_Sea.map/_Main.cfg}"
- DEATH_is_undead
- Posts: 960
- Joined: March 4th, 2007, 3:00 pm
- Location: Northern United States
Re: First time WML'er (debug)
The map file also has to be renamed, add a '.map' at the end.zookeeper wrote:Well, this is definitely one of the most messed-up things I've ever seen:Just look at other add-ons to see how map includes are supposed to be written and where the map file is supposed to be.Code: Select all
map_data="{~add-ons/Mountains_and_Sea.map/_Main.cfg}"
For map_data, zookeeper is talking about the map file, not the CFG file. The file with .map at the end.
3P MP Scenario - Great Dwarves Escape
The best way to learn is to follow. In order to learn WML, you have to follow other's work, and check their codes.
The best way to learn is to follow. In order to learn WML, you have to follow other's work, and check their codes.