Page 1 of 2

Mission Editor(new mission crash)

PostPosted: 04 Nov 2012, 14:44
by Arisspartiatis
hello i have been playing this game for years but now i try to make new missions with lewis mission editor!i start a new mission i put goals and lost goals but always when i try to start the mission it crashes?any help?thnk you!

Re: Mission Editor(new mission crash)

PostPosted: 04 Nov 2012, 16:06
by Ben
Obviously, Lewin is the most qualified to help you with that, but I've spent (Literally) days with the mission editor, I'll try my best.
When you say it "crashes" what kind of crash is it? Do you get an error message?
My best guess (at the moment) is that you gave your map the wrong name. I'm not sure what characters are allowed when giving your maps names, but just use letters to be safe. Also, there can't be any spaces. Therefore, "My First Map" should be: "myFirstMap" See?
That is with the MAP though. Not the mission. I am also under the assumption that you are using your own map.

Re: Mission Editor(new mission crash)

PostPosted: 04 Nov 2012, 16:43
by Arisspartiatis
cant i replace the original mission(dat)with mine putting the same name?yes i am using my own map!what i mean is that when i start the map the "game"crashes and i am back on windows desktop?do you understand!btw thnx!

Re: Mission Editor(new mission crash)

PostPosted: 05 Nov 2012, 17:00
by Ben
What is your map's name?

Re: Mission Editor(new mission crash)

PostPosted: 05 Nov 2012, 17:51
by Arisspartiatis
its (minemap.dat or .map!

Re: Mission Editor(new mission crash)

PostPosted: 05 Nov 2012, 19:59
by Ben
Alright, just to be clear I'll give some more guidelines:

When you store your mission and map in the KaM folders, they must follow certain rules (Make you you make backups of the original game files, because some need to be replaced).
The mission file (made with Lewin's mission editor) must be stored as one of the original mission files that came with KaM. Thus, the name must be the exact same. Therefore, if you wanted to replace TSK mission one, you need to name your mission file as mission1.dat and place it in the mission folder. The map doesn't need to be the same. The mission file just needs to know which map to load. The names for your map don't matter as long as it doesn't have funky characters or spaces (yours is good right now). As a beginner, I always stored my maps in the smaps folder, which is found inside the mission folder.
If you have placed all these files like this, there shouldn't be any crashes due to file placement.
Have you followed these rules?

Re: Mission Editor(new mission crash)

PostPosted: 06 Nov 2012, 16:17
by Arisspartiatis
yes thats why i am curious to see the problem!i create a map and i replace the mission1.dat with mine named also mission1.dat and the maps for example mission1.map with mine named mission1.map i just replace them with the same name as the original!i add goals everything so it shouldnt crash i dont kno why it does that!

Re: Mission Editor(new mission crash)

PostPosted: 06 Nov 2012, 18:46
by Ben
Can you send me the files?

Re: Mission Editor(new mission crash)

PostPosted: 06 Nov 2012, 21:04
by Arisspartiatis
i will make one map the mission one replaced and send it to you tomorrow ok?

Re: Mission Editor(new mission crash)

PostPosted: 06 Nov 2012, 21:32
by Ben
That's fine :)

Re: Mission Editor(new mission crash)

PostPosted: 07 Nov 2012, 12:29
by Arisspartiatis

Re: Mission Editor(new mission crash)

PostPosted: 07 Nov 2012, 17:31
by Ben
There are a few problems with your map. I recommend that you don't use the code view for making missions. It's much more complex if you don't know what you are doing, and Lewin didn't spend all those hours making the treeview for nothing :D
Anyway, these problems need to be fixed:

1) Your goals are messed up. You have set it so you need to destroy player three's buildings and troops. Player three doesn't exist. Also, you have the lost condition to losing all of player two's important buildings. Obviously, you meant to set that to player 1.

2) When you place human-owned buildings on the map, you must set map revelers next to them so you can see them. It's hard to explain, but basically, you need to have the area around your village "pre-explored" at the start of the game, otherwise the village won't appear. This is only true for human players.

I fixed these issues and your mission worked for me. Good luck!

Re: Mission Editor(new mission crash)

PostPosted: 07 Nov 2012, 19:17
by Arisspartiatis
well i fixed the goals and i fixed the view problem but the game keeps crashing did you notice any other problem?i use this program for 1-2 so the code view is easier to me but i have never made a completely mine map!

Re: Mission Editor(new mission crash)

PostPosted: 07 Nov 2012, 19:18
by Arisspartiatis
also the most important thnx for your time!i really appreciate that! :D

Re: Mission Editor(new mission crash)

PostPosted: 07 Nov 2012, 19:28
by Ben
One other thing I changed was the line of code that specifies where the map is located. That actually might be the problem:
this is what I changed it to: (this is the very first line of code in the script)
  Code:
!SET_MAP "data\mission\smaps\save01.map"
Obviously, if you set it to that path, the map name has to be save01.map and must be in the smaps folder.


And no problem! I enjoy helping. I still remember the night Lewin was sending me emails on how to get the missions to work. What a great day that was.