Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
OrnsteinDragonslayer, maps are often saved incorrectly because the path to the game folder is too long or contains Cyrillic characters. You can try moving/renaming it to a higher-level directory for testing, say to D:/Heroes 5. If that doesn't help, you can try reinstalling the game.
Regarding scripts, I recently wrote a few tips that might be relevant to you:
There are several directions you can take:
Write scripts in editors with syntax checking, such as HoMM5 MapScriptsEditor. At a minimum, it will immediately issue warnings for minor typos, plus it offers autocompletion of function names and parameter hints (although this works somewhat glitchy).
Comment out the entire script code, then uncomment it in small chunks, a few lines at a time, and check if it works, or fix it until it works, and only then move on to the next part. You can mark what already works in some way so that you don't have to check it again next time.
Place test debug messages in the code, such as print('this function has been executed'). This makes it easy to see which section of code has been executed and which has not.
A particularly useful feature is debugging code without leaving the game. Create a .lua file in Unicode encoding in the "path_to_heroes/data" folder, write the code you are unsure about in it, and you can add, for example, print('script OK') at the end of the file. Load the map, open the console, and type @doFile('filename.lua'). If you see the green message 'script OK' in the console, the code is working; if not, close Heroes, work on the file, don't forget to save, return to Heroes, and enter the same command in the console (you can just press the up arrow button). Repeat until the code works.