Skip to content

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

5.0 (12 ratings)
#5773
Auto-translated
Good day to everyone.
I have a rather difficult-to-describe question – I’ll try to formulate it, and if it doesn’t come across very clearly, please excuse me.

I’m creating my own model based on the original dwarven lava road (channel), Lava_Road.
Since it adheres to the ground, it can be placed on even slopes.
However, if I apply an effect to this model, the effect doesn’t adhere but remains parallel to the even ground – that is, in this case, the effect is not suitable, and I have to create the model itself.
(Of course, I could go to the trouble of creating an effect at an angle, but I really don’t want to – a model at an angle would only be useful for this slope, and I would have to create another one for a flat surface).

A river flows along this road. To make it flow, I specified the M_CLOUDS_H5 effect in my material, just like in the standard river.
But the problem is that this effect flows perpendicular to the dwarven channel, that is, not from top to bottom, but sideways.

My question is: how can I rotate either the M_CLOUDS_H5 effect or the model itself by 90 degrees? Or how can I create my own effect so that it adheres to the ground? Is this even possible?
I’ll say right away that ProjectOnTerrain doesn’t work when creating a custom effect – I’ve checked.
User Avatar
#5774
Auto-translated
Hmm, unfortunately, it seems the answer to all your questions is negative: you can't change the effect of M_CLOUDS_H5, the effect doesn't "stick" (it's not projected onto the terrain), and you can't simply rotate the model.

You need to extract the model and rotate it in a 3D editor, then put it back.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
#5775
Auto-translated
Well, darn it. I can’t do what I can’t do – I tried to mess around with some 3D programs, but it was unsuccessful. Okay, I’ll see what I can do with the map and textures; maybe I’ll abandon the idea of the river altogether. Thanks.

Added after 5 hours 21 minutes
P.S. As it turns out, I made a mistake – a regular M_GENERIC on such a narrow river works no worse than M_CLOUDS_H5. Now the river flows downwards, so the issue is resolved.
User Avatar
#5776
Auto-translated
well, a river flowing upwards is much more interesting and magical...)))
User Avatar
#5777
Auto-translated
I’m sure this question has been asked a thousand times, but I’ll ask anyway, as I couldn’t find the answer. Is it possible to find out the height of a specific cell in the editor, and if so, how can I do it?
In reply to DevoRevo
User Avatar
#5778
Auto-translated
Guys, remind me why the editor crashes?

Added 2 hours 30 minutes later
How do I sign or mark a portal?
In reply to DevoRevo
User Avatar
#5779
Auto-translated
DevoRevo
I'm sure this question has been asked a thousand times, but I'll ask anyway, as I couldn't find the answer. Is it possible to find out the height of a specific cell in the editor, and if so, how can I do it?
The height of a cell in the editor is always 0. Even if it's an elevation.

Мои карты:
Падший рыцарь
Сердце Хаоса

Мои моды:
Визуальные:
Изменение внешнего вида героев-некромантов
Существа-жители и кое-что по мелочи в городах Ордена Порядка, Некрополиса и Инферно

NCF-существа:
Странствующие рыцари
Наемники

In reply to DevoRevo
User Avatar
#5780
Auto-translated
DevoRevo
I'm sure this question has been asked a thousand times, but I'll ask anyway, as I couldn't find the answer. Is it possible to find out the height of a specific tile in the editor, and if so, how do I do it?

I found this on one forum:

floor(n) - round towards 0: floor(1.75)=1, floor(-3.7)=-3

Maybe this is the answer to your question)



Added after 29 minutes
sifon23
Guys, remind me why the editor crashes?

Added after 2 hours 30 minutes
How do I label or mark a portal?

1. If you mean "How to avoid crashes," here's how:

a) Don't use the editor's script editor; it's broken, and it often causes the map editor to crash;
b) Be careful when working with objects in the editor. I sometimes experience crashes when I perform a certain number of actions while an object is selected.

I don't remember any other crashes, but I know that something else is related to either models or animations... In general, use everything at your own risk and save frequently.

2. In terms of labeling or marking? Well, each game object has a "Name" field in the Property list on the left. Enter the name you want there. Just remember that you cannot have two objects with the same name on the map, otherwise the scripts will not work correctly (of course, if this object is used in them).

Всякое/карты:

Добавление недостающей музыки гномам

In reply to Азгалор
User Avatar
#5781
Auto-translated
If you change the name of the portal, it will remain a two-way portal. (

Added after 48 seconds
) How do you create a mob on the map that always joins for money and in no other way, neither for free nor by fighting? (

Added after 3 hours and 41 minutes
)

How do you change the amount of gold that a mine gives per turn?

And how do you change the size of an already created map?

In reply to BlueHeavenHero
User Avatar
#5782
Auto-translated
BlueHeavenHero
The height of a cell in the editor is always 0. Even if it's an elevation.
Well, that's interesting. I need to reconstruct a mountain; I have a sample on another map. The mountain is made using a Bulk effect or something similar. And how am I supposed to figure out how high to raise it if there are no coordinates?
In reply to DevoRevo
User Avatar
#5783
Auto-translated
DevoRevo
Well, that's fun. I need to reconstruct a mountain; I have a sample from another map. The mountain is made using a Bulk effect or something similar. And how do I figure out how high to raise it if there are no coordinates?
There's no way.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to sifon23
User Avatar
#5784
Auto-translated
sifon23
If you change the name of the portal, it will remain a two-way portal.

Added after 48 seconds
How do you create a monster on the map that always joins your side for gold and no other way, neither for free nor by fighting?

Added after 3 hours 41 minutes

How do you change the amount of gold a mine gives per turn?

And how do you change the size of an already created map?

Study the basic scripting manuals, and then the answers to your questions will come to you on their own: Ogo-I's scripting manual for beginners, the Heroes 5: Scripts (3.1, 3.2, 3.3) video on the Heroes for fan channel, JackOfShadows' FAQ.

I will only answer the last question: it is not possible to change the size of a created map.

Azgalor, floor and ceil are mathematical functions for rounding down and up for fractional numbers
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
#5786
Auto-translated
Could you please tell me if there is a way to get a trigger (perhaps indirect or another method) that indicates a creature in battle has taken damage? I couldn't find any information on this in the documentation, and searching for the word "damage" didn't yield much either (perhaps I didn't use it correctly).
In reply to MaiorPain
User Avatar
#5787
Auto-translated
MaiorPain
Could you please tell me if there is a way to get a trigger (possibly indirect or another method) that indicates a creature in battle has taken damage? I couldn't find any information on this in the documentation, and searching for the word "damage" didn't yield much either (perhaps I didn't use it correctly).

You can get the initial number of creatures in a stack and use a loop to check if the initial number matches the current number. If the number of creatures has decreased, trigger the event.

Also, this question is not related to the map editor. You should ask it in the "Scripts" section.
Мои карты: Белый Храм, Поменяться местами, Судьба королевства, Стихийные острова.
#5788
Auto-translated

Hello everyone, could you please tell me why the map appears twice in the list of scenarios when opened in single-player mode after being saved in the editor, if the map file is the only one in the maps folder?

Before this, the editor was opened in MOD mode for this map, but I clicked "close mod" and restarted the editor in normal mode (I was going through a tutorial on creating a hero), and then I noticed that the map, after being saved in normal mode, appears twice in the game. At the same time, if the map is removed from the folder, both maps stop appearing.

Thank you for taking the time to read my question; I would be grateful for any information.

P.S.

I would also like to thank уважаемый Долгий for his answer to my previous question. I was indeed in the wrong topic.