Map Database  •  FAQ  •  RSS  •  Register  •  Login

Weird Problem with Lewin's Mission Editor?

<<

Danjb

User avatar

Sword Fighter

Posts: 285

Joined: 14 May 2007, 22:00

Post 26 Feb 2013, 10:11

Weird Problem with Lewin's Mission Editor?

Every time I load a mission in Lewin's Mission Editor 0.9, lots of the commands get duplicated for some reason.

Say I have the line:

  Code:
// Reveal Maps
!CLEAR_UP 62 65 15 //


The next time I load the mission, it will look like this:

  Code:
// Reveal Maps
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //
!CLEAR_UP 62 65 15 //


If I save the map and load it again, the commands will be duplicated again, resulting in the file becoming exponentially larger.

Has anyone else had this problem?

Thanks,

Danjb


EDIT: Here is the data of the mission file I'm editing - I'm trying to make TSK 01 into a co-op map:

  Code:
!SET_MAP "data\mission\sMaps\save01.map"
!SET_MAX_PLAYER 5

!SET_CURR_PLAYER 0 //
!SET_HUMAN_PLAYER 0
!ENABLE_PLAYER 0

!CENTER_SCREEN 55 65

// Reveal Maps
!CLEAR_UP 62 65 15 //

// Goals

// Lost Goals

// Messages
!ADD_GOAL 2 0 530 1200 //

// Animals
!SET_UNIT 28 17 58 //
!SET_UNIT 28 24 56 //
!SET_UNIT 28 22 64 //
!SET_UNIT 28 17 51 //
!SET_UNIT 28 17 44 //
!SET_UNIT 28 20 37 //
!SET_UNIT 28 13 34 //
!SET_UNIT 28 18 17 //
!SET_UNIT 28 18 9 //
!SET_UNIT 28 15 10 //
!SET_UNIT 25 72 52 //
!SET_UNIT 25 81 58 //
!SET_UNIT 25 87 57 //
!SET_UNIT 31 73 52 //
!SET_UNIT 31 78 56 //
!SET_UNIT 31 83 56 //
!SET_UNIT 25 38 57 //
!SET_UNIT 25 35 62 //
!SET_UNIT 25 31 67 //
!SET_UNIT 25 27 73 //
!SET_UNIT 25 23 78 //
!SET_UNIT 25 29 83 //
!SET_UNIT 25 20 87 //
!SET_UNIT 25 36 89 //
!SET_UNIT 25 41 89 //
!SET_UNIT 25 45 92 //
!SET_UNIT 25 50 91 //
!SET_UNIT 25 56 92 //
!SET_UNIT 25 61 92 //
!SET_UNIT 25 92 88 //
!SET_UNIT 25 92 87 //
!SET_UNIT 25 5 19 //
!SET_UNIT 25 11 24 //
!SET_UNIT 25 15 24 //
!SET_UNIT 25 7 31 //
!SET_UNIT 25 6 37 //
!SET_UNIT 25 10 41 //
!SET_UNIT 25 5 47 //
!SET_UNIT 25 10 53 //
!SET_UNIT 25 5 59 //
!SET_UNIT 25 8 64 //
!SET_UNIT 25 5 71 //
!SET_UNIT 25 11 77 //

// Blocked Buildings
!BLOCK_HOUSE 1 // Iron Smithy
!BLOCK_HOUSE 2 // Weapon Smithy
!BLOCK_HOUSE 3 // Coal Mine
!BLOCK_HOUSE 4 // Iron Mine
!BLOCK_HOUSE 5 // Gold Mine
!BLOCK_HOUSE 6 // Fisherman's Hut
!BLOCK_HOUSE 10 // Armor Smithy
!BLOCK_HOUSE 12 // Stables
!BLOCK_HOUSE 15 // Metallurgist's
!BLOCK_HOUSE 16 // Swine farm
!BLOCK_HOUSE 17 // Watchtower
!BLOCK_HOUSE 18 // Town Hall
!BLOCK_HOUSE 20 // Armory Workshop
!BLOCK_HOUSE 21 // Barracks
!BLOCK_HOUSE 23 // Vehicles Workshop
!BLOCK_HOUSE 24 // Butcher's
!BLOCK_HOUSE 25 // Tannery


// Pre-allowed Buildings
!RELEASE_HOUSE 9 // Woodcutter's


// Colour
!SET_NEW_REMAP 24 25 26 27 28 29 30 31 // Red
!SET_MAP_COLOR 229 // Red


// Alliances


// Buildings
!SET_HOUSE 21 67 67 //
!SET_HOUSE 17 67 57 //
!SET_HOUSE_DAMAGE 200
!SET_HOUSE 17 59 56 //
!SET_HOUSE_DAMAGE 70
!SET_HOUSE 11 63 70 //
!SET_HOUSE_DAMAGE 60
!SET_HOUSE 9 55 62 //
!SET_HOUSE_DAMAGE 170
!SET_HOUSE 19 55 69 //
!SET_HOUSE_DAMAGE 200
!SET_HOUSE 0 50 64 //
!SET_HOUSE_DAMAGE 272
!SET_HOUSE 22 66 60 //
!SET_HOUSE_DAMAGE 350
!SET_HOUSE 17 70 58 //
!SET_HOUSE_DAMAGE 250
!SET_HOUSE 27 56 73 //
!SET_HOUSE_DAMAGE 170
!SET_HOUSE 13 62 75 //
!SET_HOUSE_DAMAGE 150
!SET_HOUSE 8 50 71 //
!SET_HOUSE_DAMAGE 345
!SET_HOUSE 17 51 67 //
!SET_HOUSE_DAMAGE 250
!SET_HOUSE 7 51 75 //
!SET_HOUSE_DAMAGE 350
!SET_HOUSE 22 57 66 //
!SET_HOUSE_DAMAGE 270


// Roads
!SET_STREET 66 68 !SET_STREET 67 69 !SET_STREET 67 68 !SET_STREET 66 69
!SET_STREET 66 70 !SET_STREET 67 70 !SET_STREET 52 70 !SET_STREET 57 67
!SET_STREET 66 58 !SET_STREET 67 58 !SET_STREET 62 71 !SET_STREET 64 71
!SET_STREET 65 71 !SET_STREET 63 71 !SET_STREET 66 71 !SET_STREET 59 57
!SET_STREET 59 58 !SET_STREET 59 62 !SET_STREET 59 60 !SET_STREET 59 61
!SET_STREET 59 59 !SET_STREET 59 63 !SET_STREET 59 64 !SET_STREET 59 65
!SET_STREET 59 66 !SET_STREET 59 67 !SET_STREET 59 68 !SET_STREET 60 69
!SET_STREET 60 70 !SET_STREET 60 71 !SET_STREET 61 71 !SET_STREET 63 59
!SET_STREET 61 59 !SET_STREET 62 59 !SET_STREET 60 60 !SET_STREET 61 60
!SET_STREET 63 58 !SET_STREET 60 68 !SET_STREET 54 63 !SET_STREET 55 63
!SET_STREET 56 63 !SET_STREET 56 64 !SET_STREET 57 64 !SET_STREET 58 64
!SET_STREET 54 70 !SET_STREET 55 70 !SET_STREET 56 70 !SET_STREET 57 70
!SET_STREET 58 70 !SET_STREET 59 69 !SET_STREET 59 70 !SET_STREET 49 65
!SET_STREET 50 65 !SET_STREET 51 65 !SET_STREET 52 65 !SET_STREET 52 64
!SET_STREET 53 64 !SET_STREET 53 63 !SET_STREET 53 70 !SET_STREET 57 74
!SET_STREET 58 74 !SET_STREET 59 74 !SET_STREET 59 73 !SET_STREET 59 72
!SET_STREET 59 71 !SET_STREET 56 74 !SET_STREET 59 75 !SET_STREET 59 76
!SET_STREET 61 76 !SET_STREET 60 76 !SET_STREET 49 72 !SET_STREET 51 72
!SET_STREET 52 72 !SET_STREET 50 72 !SET_STREET 52 71 !SET_STREET 58 67
!SET_STREET 52 76 !SET_STREET 53 76 !SET_STREET 53 75 !SET_STREET 54 75
!SET_STREET 54 74 !SET_STREET 55 74 !SET_STREET 64 58 !SET_STREET 65 58
!SET_STREET 62 76 !SET_STREET 63 76 !SET_STREET 63 75 !SET_STREET 63 74
!SET_STREET 63 73 !SET_STREET 63 72 !SET_STREET 64 59

// Fields


// Wine Fields


// Units
!SET_UNIT 5 54 70 //setze einheit


// Units at storehouse
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf


// Wares
!ADD_WARE 1 400 // Stone
!ADD_WARE 2 50 // Timber
!ADD_WARE 7 700 // Gold
!ADD_WARE 8 70 // Wine
!ADD_WARE 9 20 // Corn
!ADD_WARE 10 50 // Loaves


// Wares to Second


// Weapons
!ADD_WEAPON 18 20 // Leather Armor
!ADD_WEAPON 24 9 // Longbow


// Troops
!SET_GROUP 15 63 54 0 3 10 //axtkämpfer
!SEND_GROUP 63 47 0
!SET_GROUP 14 76 66 7 5 15 //Mililz


!SET_CURR_PLAYER 1 //
!SET_HUMAN_PLAYER 1
!ENABLE_PLAYER 1

!CENTER_SCREEN 55 65

// Reveal Maps
!CLEAR_UP 62 65 15 //

// Goals

// Lost Goals

// Messages
!ADD_GOAL 2 0 530 1200 //

// Blocked Buildings
!BLOCK_HOUSE 1 // Iron Smithy
!BLOCK_HOUSE 2 // Weapon Smithy
!BLOCK_HOUSE 3 // Coal Mine
!BLOCK_HOUSE 4 // Iron Mine
!BLOCK_HOUSE 5 // Gold Mine
!BLOCK_HOUSE 6 // Fisherman's Hut
!BLOCK_HOUSE 10 // Armor Smithy
!BLOCK_HOUSE 12 // Stables
!BLOCK_HOUSE 15 // Metallurgist's
!BLOCK_HOUSE 16 // Swine farm
!BLOCK_HOUSE 17 // Watchtower
!BLOCK_HOUSE 18 // Town Hall
!BLOCK_HOUSE 20 // Armory Workshop
!BLOCK_HOUSE 21 // Barracks
!BLOCK_HOUSE 23 // Vehicles Workshop
!BLOCK_HOUSE 24 // Butcher's
!BLOCK_HOUSE 25 // Tannery

// Pre-allowed Buildings
!RELEASE_HOUSE 9 // Woodcutter's

// Colour
!SET_NEW_REMAP 64 65 66 67 68 69 70 71 // Light Green
!SET_MAP_COLOR 68 // Light Green


// Alliances


// Buildings


// Roads


// Fields


// Wine Fields


// Units


// Units at storehouse
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 9 // Labourer
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf


// Wares
!ADD_WARE 1 400 // Stone
!ADD_WARE 2 50 // Timber
!ADD_WARE 7 700 // Gold
!ADD_WARE 8 70 // Wine
!ADD_WARE 9 20 // Corn
!ADD_WARE 10 50 // Loaves


// Wares to Second


// Weapons


// Troops
!SET_GROUP 14 55 82 7 5 20 //Mililz
!SEND_GROUP 45 67 7
!SET_GROUP 14 57 81 0 5 15 //Mililz
!SEND_GROUP 61 63 0


!SET_CURR_PLAYER 2 //
!ENABLE_PLAYER 2
!SET_AI_PLAYER

!SET_AI_START_POSITION 20 5
!SET_AI_CHARACTER RECRUT_COUNT 0
// AI Defence Formations

// AI Defence Positions
!SET_AI_DEFENSE 28 33 4 0 10 0 //
!SET_AI_DEFENSE 34 4 2 0 10 0 //
!SET_AI_DEFENSE 12 3 2 0 10 0 //
!SET_AI_DEFENSE 10 10 2 0 10 0 //

// AI Attacks
!SET_AI_ATTACK TYPE 0 //Repeating
!SET_AI_ATTACK TOTAL_AMOUNT 1
!SET_AI_ATTACK TROUP_AMOUNT 0 1 //Melee
!SET_AI_ATTACK TROUP_AMOUNT 1 0 //Anti-horse
!SET_AI_ATTACK TROUP_AMOUNT 2 0 //Ranged
!SET_AI_ATTACK TROUP_AMOUNT 3 0 //Mounted
!SET_AI_ATTACK TARGET 2 //Closest Building From Start Position
!COPY_AI_ATTACK 0 //

!SET_AI_CHARACTER TOWN_DEFENSE 0
!SET_AI_NO_BUILD

// Colour
!SET_NEW_REMAP 32 33 34 35 36 37 38 39 // Light Blue
!SET_MAP_COLOR 36 // Light Blue


// Alliances
!SET_ALLIANCE 3 1


// Buildings
!SET_HOUSE 11 20 5 //
!SET_HOUSE 27 23 9 //


// Roads
!SET_STREET 22 10 !SET_STREET 21 10 !SET_STREET 20 8 !SET_STREET 20 7
!SET_STREET 19 7 !SET_STREET 19 6 !SET_STREET 20 9 !SET_STREET 20 10


// Fields


// Wine Fields


// Units


// Units at storehouse
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf


// Wares
!ADD_WARE 8 9000 // Wine
!ADD_WARE 10 9000 // Loaves


// Wares to Second


// Weapons


// Troops
!SET_GROUP 15 28 33 4 5 10 //axtkämpfer
!SET_GROUP 15 34 4 2 4 8 //axtkämpfer
!SET_GROUP 15 12 3 2 3 6 //axtkämpfer
!SET_GROUP 15 10 10 2 4 4 //axtkämpfer
!SET_GROUP 15 63 50 4 4 4 //axtkämpfer
!ATTACK_POSITION 65 54
!SET_GROUP 15 63 44 4 3 6 //axtkämpfer
!ATTACK_POSITION 59 56


!SET_CURR_PLAYER 3 //
!ENABLE_PLAYER 3
!SET_AI_PLAYER

!SET_AI_START_POSITION 83 21
!SET_AI_CHARACTER WORKER_FACTOR 2
!SET_AI_CHARACTER CONSTRUCTORS 0
!SET_AI_CHARACTER RECRUT_COUNT 3000
!SET_AI_CHARACTER RECRUTS 1
// AI Defence Formations
!SET_AI_CHARACTER TROUP_PARAM 0 9 3 // Melee
!SET_AI_CHARACTER TROUP_PARAM 1 12 4 // Anti-horse
!SET_AI_CHARACTER TROUP_PARAM 2 8 4 // Ranged

// AI Defence Positions
!SET_AI_DEFENSE 55 24 3 1 15 0 //
!SET_AI_DEFENSE 73 12 7 1 20 0 //
!SET_AI_DEFENSE 51 19 3 2 10 0 //
!SET_AI_DEFENSE 76 5 6 2 10 0 //
!SET_AI_DEFENSE 76 16 7 2 10 0 //
!SET_AI_DEFENSE 71 5 6 0 25 1 //
!SET_AI_DEFENSE 81 11 6 0 25 1 //
!SET_AI_DEFENSE 89 6 6 2 10 1 //
!SET_AI_DEFENSE 87 16 7 2 10 1 //
!SET_AI_DEFENSE 90 13 6 1 25 1 //

// AI Attacks
!SET_AI_ATTACK TYPE 0 //Repeating
!SET_AI_ATTACK TOTAL_AMOUNT 18
!SET_AI_ATTACK TROUP_AMOUNT 0 0 //Melee
!SET_AI_ATTACK TROUP_AMOUNT 1 1 //Anti-horse
!SET_AI_ATTACK TROUP_AMOUNT 2 1 //Ranged
!SET_AI_ATTACK TROUP_AMOUNT 3 0 //Mounted
!SET_AI_ATTACK TARGET 1 //Closest Building From Army
!COPY_AI_ATTACK 0 //

!SET_AI_ATTACK TYPE 0 //Repeating
!SET_AI_ATTACK TOTAL_AMOUNT 18
!SET_AI_ATTACK TROUP_AMOUNT 0 2 //Melee
!SET_AI_ATTACK TROUP_AMOUNT 1 0 //Anti-horse
!SET_AI_ATTACK TROUP_AMOUNT 2 0 //Ranged
!SET_AI_ATTACK TROUP_AMOUNT 3 0 //Mounted
!SET_AI_ATTACK TARGET 1 //Closest Building From Army
!COPY_AI_ATTACK 1 //

!SET_AI_CHARACTER TOWN_DEFENSE 0
!SET_AI_NO_BUILD

// Colour
!SET_NEW_REMAP 96 97 98 99 100 101 102 103 // Yellow
!SET_MAP_COLOR 233 // Yellow


// Alliances
!SET_ALLIANCE 1 1


// Buildings
!SET_HOUSE 11 83 21 //
!SET_HOUSE 27 80 25 //
!SET_HOUSE 21 89 27 //
!SET_HOUSE 13 78 21 //
!SET_HOUSE 19 87 21 //
!SET_HOUSE 20 91 20 //


// Roads
!SET_STREET 79 26 !SET_STREET 81 26 !SET_STREET 82 26 !SET_STREET 80 26
!SET_STREET 82 25 !SET_STREET 82 24 !SET_STREET 83 23 !SET_STREET 82 23
!SET_STREET 83 22 !SET_STREET 88 28 !SET_STREET 87 28 !SET_STREET 86 28
!SET_STREET 85 27 !SET_STREET 83 27 !SET_STREET 83 26 !SET_STREET 84 27
!SET_STREET 86 27 !SET_STREET 77 22 !SET_STREET 78 22 !SET_STREET 79 22
!SET_STREET 82 22 !SET_STREET 81 22 !SET_STREET 80 22 !SET_STREET 84 22
!SET_STREET 85 22 !SET_STREET 86 22 !SET_STREET 89 28 !SET_STREET 90 28
!SET_STREET 91 28 !SET_STREET 91 26 !SET_STREET 87 22 !SET_STREET 88 22
!SET_STREET 89 22 !SET_STREET 90 22 !SET_STREET 90 21 !SET_STREET 91 21
!SET_STREET 91 27 !SET_STREET 92 25 !SET_STREET 92 24 !SET_STREET 92 23
!SET_STREET 92 22 !SET_STREET 91 22 !SET_STREET 92 26

// Fields


// Wine Fields


// Units


// Units at storehouse
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf
!SET_UNIT_BY_STOCK 0 // Serf


// Wares
!ADD_WARE 8 9000 // Wine
!ADD_WARE 10 9000 // Loaves
!ADD_WARE 7 150 // Gold
!ADD_WARE 2 600 // Timber
!ADD_WARE 12 200 // Leather


// Wares to Second


// Weapons


// Troops
!SET_GROUP 19 55 24 3 4 8 //lanzenträger
!SET_GROUP 19 73 12 3 4 4 //lanzenträger
!SET_GROUP 17 50 20 3 4 8 //bogenschütze
!SET_GROUP 17 76 5 6 3 6 //bogenschütze
!SET_GROUP 17 87 17 7 3 6 //bogenschütze
!SET_GROUP 15 71 5 6 3 2 //axtkämpfer
!SET_GROUP 15 81 11 6 3 2 //axtkämpfer
!SET_GROUP 19 90 13 6 4 4 //lanzenträger
!SET_GROUP 19 53 70 0 3 5 //lanzenträger
!ATTACK_POSITION 54 69
!SET_GROUP 19 45 72 4 3 7 //lanzenträger
!ATTACK_POSITION 50 70
!SET_GROUP 19 57 63 4 3 5 //lanzenträger
!ATTACK_POSITION 57 66
!SET_GROUP 15 50 61 4 4 4 //axtkämpfer
!ATTACK_POSITION 50 63
!SET_GROUP 19 61 24 4 3 6 //lanzenträger
!SEND_GROUP 57 68 4


!SET_CURR_PLAYER 4 //
!ENABLE_PLAYER 4
!SET_AI_PLAYER

!SET_AI_START_POSITION 57 40
!SET_AI_CHARACTER RECRUT_COUNT 0
// AI Defence Formations

// AI Defence Positions

// AI Attacks
!SET_AI_ATTACK TYPE 0 //Repeating
!SET_AI_ATTACK TOTAL_AMOUNT 1
!SET_AI_ATTACK TROUP_AMOUNT 0 1 //Melee
!SET_AI_ATTACK TROUP_AMOUNT 1 0 //Anti-horse
!SET_AI_ATTACK TROUP_AMOUNT 2 0 //Ranged
!SET_AI_ATTACK TROUP_AMOUNT 3 0 //Mounted
!SET_AI_ATTACK TARGET 1 //Closest Building From Army
!COPY_AI_ATTACK 0 //

!SET_AI_CHARACTER TOWN_DEFENSE 100
!SET_AI_NO_BUILD

// Colour
!SET_NEW_REMAP 96 97 98 99 100 101 102 103 // Yellow
!SET_MAP_COLOR 233 // Yellow


// Alliances
!SET_ALLIANCE 1 1
!SET_ALLIANCE 2 1


// Buildings


// Roads


// Fields


// Wine Fields


// Units


// Units at storehouse


// Wares


// Wares to Second


// Weapons


// Troops
!SET_GROUP 15 56 59 4 3 3 //axtkämpfer
!ATTACK_POSITION 59 56



// Wares to All





// This Mission Was Created with Lewin's Knights and Merchants Mission Editor Version 0.9 at 10:09 on 2/26/2013
// For More Information Go To http://lewin.namsys.com.au/kam/ or email lewinjh@gmail.com
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3820

Joined: 16 Sep 2007, 22:00

Location: Australia

KaM Skill Level: Skilled

Post 26 Feb 2013, 12:09

Re: Weird Problem with Lewin's Mission Editor?

That mission has two human players, which my mission editor doesn't handle properly. It was designed for KaM where there is only ever ONE human player, so if you have two human players they'll each get map revealers for the "one" human player (that's why there's two CLEAR_UP commands in the mission), then when you load it in, both CLEAR_UP commands are loaded for the "one" human player, meaning now the human has two clear ups. When you save it writes out those two clear ups for both humans, and thus you get 4, and so on.

Basically if you want to use my editor you must have 1 human and the rest AIs. But generally my editor is insufficient for making KaM Remake missions without some tweaking of the script by hand. You'll either have to work around it or wait until the next KaM Remake release is out where the built in map editor is much more useful.
<<

Danjb

User avatar

Sword Fighter

Posts: 285

Joined: 14 May 2007, 22:00

Post 26 Feb 2013, 15:19

Re: Weird Problem with Lewin's Mission Editor?

Thanks for the quick reply Lewin. I thought it might be to do with there being 2 human players... I guess for now I'll make the 2nd human player AI, and I can do the final editing by hand as you say. Presumably a different script editor will work for this, since I still need to decode / encode the file?

I'm very excited for the next release of the remake :)
<<

Ben

User avatar

Prince Lothar

Posts: 3773

Joined: 08 Jan 2009, 23:00

Location: United States of America GMT-5 (Standard Time)

KaM Skill Level: Beginner

Post 26 Feb 2013, 15:26

Re: Weird Problem with Lewin's Mission Editor?

Perhaps I'm not fully understanding what you need, but I think that Lewin's .3 editor will work just fine for scripting. With what version were you having trouble (assuming that you were using Lewin's in the first place)?
#thunderposting #greentornado
<<

Danjb

User avatar

Sword Fighter

Posts: 285

Joined: 14 May 2007, 22:00

Post 26 Feb 2013, 15:46

Re: Weird Problem with Lewin's Mission Editor?

I've been using Lewin's 0.9 - I'll give 0.3 a try, thanks!

EDIT: I can now confirm that this does work.
Last edited by Danjb on 26 Feb 2013, 16:38, edited 1 time in total.
<<

dicsoupcan

Moorbach's Guard

Posts: 1314

Joined: 12 Feb 2012, 21:36

KaM Skill Level: Fair

Post 26 Feb 2013, 15:50

Re: Weird Problem with Lewin's Mission Editor?

Ben wrote:Perhaps I'm not fully understanding what you need, but I think that Lewin's .3 editor will work just fine for scripting. With what version were you having trouble (assuming that you were using Lewin's in the first place)?


waaaaait a second, so this is why my multiplayer map did not work? (i used latest version).
You have enemies? Good. That means you've stood up for something, sometime in your life. ~ Winston Churchill
<<

Ben

User avatar

Prince Lothar

Posts: 3773

Joined: 08 Jan 2009, 23:00

Location: United States of America GMT-5 (Standard Time)

KaM Skill Level: Beginner

Post 27 Feb 2013, 02:03

Re: Weird Problem with Lewin's Mission Editor?

Danjb wrote:I've been using Lewin's 0.9 - I'll give 0.3 a try, thanks!

EDIT: I can now confirm that this does work.

dicsoupcan wrote:
Ben wrote:Perhaps I'm not fully understanding what you need, but I think that Lewin's .3 editor will work just fine for scripting. With what version were you having trouble (assuming that you were using Lewin's in the first place)?


waaaaait a second, so this is why my multiplayer map did not work? (i used latest version).


Yeah, .9 (the latest) version of Lewin's editor will totall kill your Remake scripts. It's not his fault; though, because the editor is just doing on of its jobs: to eliminate faulty code. Since KaM doesn't allow for multiple human players, .4 and later versions will eliminate certain code that pertains to human players.

Therefore, for the Remake, use .3 of Lewin's editor :)
#thunderposting #greentornado
<<

FeyBart

User avatar

Knight

Posts: 402

Joined: 28 Dec 2011, 16:35

Location: Nutville, NL

KaM Skill Level: Beginner

Post 27 Feb 2013, 11:23

Re: Weird Problem with Lewin's Mission Editor?

Ben wrote:(...)
Yeah, .9 (the latest) version of Lewin's editor will totall kill your Remake scripts. It's not his fault; though, because the editor is just doing on of its jobs: to eliminate faulty code. Since KaM doesn't allow for multiple human players, .4 and later versions will eliminate certain code that pertains to human players.

Therefore, for the Remake, use .3 of Lewin's editor :)

Hehe. I like how Lewin makes programs that simply work too good. ;)
Nice coffee is always nice.

Return to Other Creations

Who is online

Users browsing this forum: No registered users and 3 guests