--- malaire02_1.xml 2007-05-21 20:01:55.000000000 +0300 +++ malaire02_1-new.xml 2007-05-28 10:17:17.000000000 +0300 @@ -345,7 +345,7 @@ -- It will be removed once all oxyds are visible set_stone("st-oxyd", x, y, {flavor = OXYD_FLAVOR, color="0", name="extra-oxyd"}); else - print("ERROR: Unknown char in world-map", char) + print("ERROR: Unknown char in world-map. Please report this to the author.", char) end if explosions_forbidden_nearby == 1 then @@ -579,7 +579,7 @@ g_vanished_dynamites[name] = nil if x < SHIP_X + 2 or x > SHIP_X + 8 or y < SHIP_Y + 1 or y > SHIP_Y + 6 then - print("IMPOSSIBLE ERROR: No hollow has appeared - Please investigate") + print("IMPOSSIBLE ERROR: No hollow has appeared. Please report this to the author.") end end @@ -1022,24 +1022,24 @@ if not failed and d2 < d5 and (d22 == d5 or (d21 == d5 and d3 == d5) or (d23 == d5 and d1 == d5)) then failed = not handle_explosion(x, y + 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE A: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE A. Please report this to the author.") end end if not failed and d8 < d5 and (d88 == d5 or (d87 == d5 and d9 == d5) or (d89 == d5 and d7 == d5)) then failed = not handle_explosion(x, y - 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE B: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE B. Please report this to the author.") end end if not failed and d4 < d5 and (d44 == d5 or (d47 == d5 and d1 == d5) or (d41 == d5 and d7 == d5)) then failed = not handle_explosion(x - 1, y, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE C: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE C. Please report this to the author.") end end if not failed and d6 < d5 and (d66 == d5 or (d69 == d5 and d3 == d5) or (d63 == d5 and d9 == d5)) then failed = not handle_explosion(x + 1, y, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE D: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE D. Please report this to the author.") end end if not failed and d1 < d5 and d21 == d5 and d41 == d5 then failed = not handle_explosion(x - 1, y + 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE E: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE E. Please report this to the author.") end elseif not failed and d1 < d5 and d11 == d5 and d2 < d5 and d4 < d5 and d21 < d5 and d41 < d5 then if type == 1 then failed = true ; failure_return_value = nil else failed = not handle_explosion(x - 1, y + 1, prohibited, type, visited) end @@ -1047,7 +1047,7 @@ if not failed and d9 < d5 and d69 == d5 and d89 == d5 then failed = not handle_explosion(x + 1, y - 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE F: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE F. Please report this to the author.") end elseif not failed and d9 < d5 and d99 == d5 and d6 < d5 and d8 < d5 and d69 < d5 and d89 < d5 then if type == 1 then failed = true ; failure_return_value = nil else failed = not handle_explosion(x + 1, y - 1, prohibited, type, visited) end @@ -1055,7 +1055,7 @@ if not failed and d3 < d5 and d23 == d5 and d63 == d5 then failed = not handle_explosion(x + 1, y + 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE G: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE G. Please report this to the author.") end elseif not failed and d3 < d5 and d33 == d5 and d2 < d5 and d6 < d5 and d23 < d5 and d63 < d5 then if type == 1 then failed = true ; failure_return_value = nil else failed = not handle_explosion(x + 1, y + 1, prohibited, type, visited) end @@ -1063,7 +1063,7 @@ if not failed and d7 < d5 and d47 == d5 and d87 == d5 then failed = not handle_explosion(x - 1, y - 1, prohibited, type, visited) - if failed then print("UNEXPECTED FAILURE, CASE H: Please investigate") end + if failed then print("UNEXPECTED FAILURE, CASE H. Please report this to the author.") end elseif not failed and d7 < d5 and d77 == d5 and d4 < d5 and d8 < d5 and d47 < d5 and d87 < d5 then if type == 1 then failed = true ; failure_return_value = nil else failed = not handle_explosion(x - 1, y - 1, prohibited, type, visited) end @@ -1336,7 +1336,7 @@ until accepted == 1 or loops == 3000 if loops == 3000 then - print("ERROR: No space was found for the house") + print("ERROR: No space was found for the house. Please report this to the author.") return end @@ -1410,7 +1410,7 @@ local loops = 0 repeat if route[xy(x1, y1)] ~= nil then - print("IMPOSSIBLE ROAD ERROR - Please investigate", x1, y1) + print("IMPOSSIBLE ROAD ERROR A. Please report this to the author.", x1, y1) set_item("it-cross", x1, y1, NULL) end @@ -1439,7 +1439,7 @@ -- Impossible if pdx == 0 and pdy == 0 then - print("IMPOSSIBLE ROAD ERROR - Please investigate") + print("IMPOSSIBLE ROAD ERROR B. Please report this to the author.") end -- If only one preference is possible, select it @@ -1467,7 +1467,7 @@ set_target(x2, y2, 1, nil, "fl-bumps") if loops == 1000 then - print("ERROR while building the road", x1, y1, x2, y2) + print("ERROR while building the road. Please report this to the author.", x1, y1, x2, y2) set_item("it-cross", x1, y1) set_item("it-cross", x2, y2) end @@ -1476,7 +1476,7 @@ -- Build a road between two houses function connect_houses(first, second) if g_houses[first].group_id == g_houses[second].group_id then - print("ERROR: connect_houses: These houses are already connected", first, second) + print("ERROR: connect_houses: These houses are already connected. Please report this to the author.", first, second) return end @@ -1686,7 +1686,7 @@ end if g_max_depth[xy] < 3 then - print("IMPOSSIBLE ERROR: g_max_depth[xy] < 3"); + print("IMPOSSIBLE ERROR: g_max_depth[xy] < 3. Please report this to the author."); end -- ===== Neighbouring targets ===== @@ -1839,7 +1839,7 @@ end if g_depth_1_house_count + g_depth_2_house_count + g_depth_3_house_count ~= HOUSE_COUNT then - print("IMPOSSIBLE ERROR: House counts don't match. Please investigate") + print("IMPOSSIBLE ERROR: House counts don't match. Please report this to the author.") end -- ===== Apply best_depths =====