Skip to content

Posts from Не работает HoMM5 Map Scripts Editor

No ratings yet — be the first to rate!
User Avatar
#1
Auto-translated
Of course, a similar post already exists, but there's still a problem. I created a Lua file in the maps folder, saved it, and launched the map in the editor, but the script tab is empty! There's simply nothing there. Maybe I'm using the program incorrectly, or maybe that's how it's supposed to be, but it seems like the scripts didn't appear.
User Avatar
#2
Auto-translated
it’s better to do it this way: open the script in the editor, write something there, save it, and close the editor. A file called MapScript.lua will appear in the map folder, and you will be able to edit it using the Script Editor.
Нет войне.
User Avatar
#3
Auto-translated
The thing is, simply having a Lua file isn't enough. You also need a MapScript.xdb file with a reference to that Lua file. And in the map.xdb file, you need a reference to the MapScript.xdb file.
The advice given above works in this regard and is relatively straightforward.
 

К А
Стикеры GBF в Telegram
In reply to Gerter
User Avatar
#4
Auto-translated
Gerter
it would be better if you did this: open the script in the editor, write something there, save it, and close the editor. A MapScript.lua file will appear in the map folder, and you will be able to edit it using the Script Editor.
You see, when I open the script editor, the entire editor crashes.
Ment, I found some link to mapScript in map.xdb, what should I do with it?
Во имя Эльрата!
:smile16:
In reply to Хомячок 3000
#5
Auto-translated
Hamster 3000
You see, when I open the script editor, the entire editor crashes.
Ment, I found some link to mapScript in map.xdb, what should I do with it?

There is a way to open scripts in the editor. For this, you need an extended editor. So: open any official map in the editor and quickly go to the scripts. Then, go to the created map and write something, and quickly exit. This works for me personally.
Карты: Экспедиция ГрувераНаследие ШантириВременной парадоксПоиски рунной сферыПуть возвращения
User Avatar
#6
Auto-translated
Theoretically, if you do it manually, you need to add the following line to map.xdb:
There should be no backslashes before the quotes; this is just a quirk of how it's displayed here. And copy MapScript.xdb from any working map. I'm not providing the content because it will be automatically blocked as malicious code.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо
User Avatar
#7
Auto-translated
You see, when I open the script editor, the entire editor crashes.
The procedure described above is simply done very quickly. I open the map, open the script, close the script, close the map. I managed to do it before the crash.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#8
Auto-translated
Personally, before I understood why I couldn't see the map files in the script editor, I used a regular editor. I would go to the map properties, find the "mapscript" section, and work there before clicking OK. Then, I would copy the entire script. If it didn't crash (most of the time it worked fine), I would close the editor to save, and if it did crash, I would use Ctrl+V.
In reply to Ment
User Avatar
#9
Auto-translated
Ment
The procedure described above is simply done very quickly. Open the map, open the script, close the script, close the map. I managed to do it before the crash.

Hello! I have the same problem. It crashes immediately after clicking on Scripts Edit. I don't know what to do. Is there a way to implement scripts through an external script editor?

Added 2 hours 14 minutes ago
I think I found a solution, but it's questionable.

On a copy of the map, the editor opened somehow, just once. Now I have a MapScript file, and I managed to transfer it to the main map. However, I'm not sure if it will be possible to implement the same script in a map with a different name? Or in a map with a different size? (I successfully implemented it in the original map, from which the copy was made – thanks to Remix for the idea, his video inspired it).

Statistics

Welcome our newest member: dodoD0D0

Users Online 1 users 1359 guests