Skip to content

Posts from Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
User Avatar
#4056
Auto-translated
Question regarding dungeon crystals. What is the purpose of the Pos tab (obviously after creating point lights), and what are the coordinates for in the Color setting?
Когда ты задумываешься о том, что ты задумался, ты перестаёшь задумываться ;)
Хаос во всём тоже порядок...
Кампания Седьмое затмение. Грань Империи.
В стадии разработки 10%
User Avatar
#4058
Auto-translated
Where can I change the experience multiplier on the map? Or is it done with scripts?
SetHeroesExpCoef(EXPERIENCE_MULTIPLIER)
It has some limits, like from 0.1 to some value, I don't remember exactly.
User Avatar
#4060
Auto-translated
Question about dungeon crystals. What is the purpose of the Pos tab (obviously after creating point lights), and what are the coordinates for in Color?
The position of the light source relative to the position of the crystal.
The coordinates in Color are not coordinates; they are the RGB color palette.
 

К А
Стикеры GBF в Telegram
User Avatar
#4061
Auto-translated
God bless you. Even this isn't working for me. It's just a simple line where the coefficient is indicated in parentheses, right? So, if I set it to 0.3, I'll receive almost a third of the experience instead of a full unit? Here's how I wrote it:
SetHeroesExpCoef(0.3);
Автор карт:
Долина расхитителей
Выбор мира
User Avatar
#4062
Auto-translated
If there is a syntax error in your script, nothing will work.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#4063
Auto-translated
RedHeavenHero
If there is a syntax error in your script, nothing will work.
Well, that's understandable and logical. But I don't understand where the error might be. Maybe I wrote something incorrectly in the parentheses, although I did it as described above.
Автор карт:
Долина расхитителей
Выбор мира
User Avatar
#4064
Auto-translated
This line appears to be correct at first glance. Look for the error elsewhere. And, of course, familiarize yourself with the console; it's an essential tool.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#4065
Auto-translated
I managed to configure the console. It throws the following error: (Script) ERROR: 'end' expected (to close 'function' at line 9); last token read: "at line 19 in string "DoString script"
Автор карт:
Долина расхитителей
Выбор мира
User Avatar
#4066
Auto-translated
Missing `end` to close the function, the header of which is in line 9.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#4067
Auto-translated
Ha. Now he’s not swearing, but still, nothing works.

Added 2 minutes ago
By the way, another question. After editing the line, the map file went from 300KB to 3461KB. What caused such a jump?
Oh, and while I was spending half an hour inserting this "end," it crashed 25 times, and the map copy became 1 kilobyte. What?

Added 2 minutes ago
Oh, now it doesn’t open anything. To say I’m frustrated is an understatement.

Added 2 minutes ago
And the editor… it’s like it reset. On the map, it shows the grid, even though I turned it off, and every time I open it, it displays a message about creating a new map.
Автор карт:
Долина расхитителей
Выбор мира
User Avatar
#4068
Auto-translated
OrnsteinDragonslayer, welcome to the community of users of the HMM5 map editor. Now you have experienced firsthand how important it is to back up your map daily. Crashes while editing scripts are common, so I recommend using something external (HoMM5 MapScriptsEditor or just Notepad to open MapScript.lua). If something happens, when you open the map, it will be unzipped into Editor/H5MMods, from where you can try to recover something in the worst case. You can also check there what weighs how much – this relates to the size issue.