Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#5340
Auto-translated

Good afternoon, I've encountered a problem, and I'm not sure if it's even possible to solve it.

When choosing lighting for a map in the editor, we can see if that lighting has a "picture" (or background, if that's easier to understand). In my case [specifically: /Lights/_(AmbientLight)/Town/Day_light_Haven01(VicTest).xdb#xpointer(/AmbientLight)], there is no "picture" – only blackness in the corners of the map. And that would be fine, but I would really like to use this same lighting for a battle arena, as well as for dialogue scenes. Here's the problem... in battle, when the "flying camera" mode is enabled, the sky will be visible – that is, in this case, instead of a sky picture, blackness will appear, which, to put it mildly, is not very cool... the same happens in dialogues. It's very difficult to rotate the camera without hitting the sky, and it just doesn't look good.

Question: is it possible to add a background to the lighting myself? Preferably by duplicating it, so as not to touch the original file.

User Avatar
#5341
Auto-translated
If I understand correctly, in the ambient light parameters, select the SkyDome with the desired "background".
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#5342
Auto-translated
}{0TT@6bI4
If I understood correctly, in the ambient light parameters, you select the SkyDome with the desired "background."

Thank you, this helped. However, the edges of the background became visible on the "adventure map." Is there a way to hide them? For example, in the standard Grass lighting, a background image is used, but the edges don't stick out in the game.

UPD: I solved the problem by copying the SkyDome line from the default Grass lighting. Thanks again for your help!

User Avatar
#5343
Auto-translated
Good evening. I've encountered a problem where, after working with the map editor, buildings or creatures disappear randomly, even though I haven't deleted anything. What should I do about it?
User Avatar
#5344
Auto-translated
Do objects on the map disappear completely? Or do they reappear after a reload?
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to Скаут
User Avatar
#5345
Auto-translated
Scout
Good evening. I encountered a problem where, after working with the map editor, buildings or creatures randomly disappear, even though I didn't delete anything. What should I do?
I once encountered this problem. In fact, the objects are not deleted, but for some reason, they are simply not displayed in the editor. You can verify this by opening the map file with an archiver and opening the map.xdb file; all the objects are present there. But I recommend that if you see this problem, don't work on the map and don't save it. In my case, I had to solve this problem by reverting the map to an earlier version. Strangely enough, it helped.
User Avatar
#5346
Auto-translated
DevoRevo
Thank you for your response.

Added 2 minutes later

}{0TT@6bI4

They disappear forever. Moreover, their disappearance is strange: the items that were placed earlier remain, but the ones that were recently placed disappear. I placed a Fortress with an Elf and resources - neither the Fortress, nor the Elf, nor the resources are there.

User Avatar
#5347
Auto-translated
Perhaps there should be a checkbox for read-only mode (but it's unlikely, as it doesn't affect the editor much) on the map. Is the editor installed in a neutral folder, not in Program Files?
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#5348
Auto-translated
Is it possible to prevent the player's main hero from interacting with a second hero? Specifically, I'm interested in preventing the transfer of troops. (For example, if a player tries to take troops from an allied player, a notification pops up stating that this is not possible).
User Avatar
#5350
Auto-translated
Hello! Does anyone know how to increase or decrease the number of movement points a Hero has? For example, to make a hero move more squares in a single day than usual.
User Avatar
#5351
Auto-translated
Look for it in DefaultStats.xdb within data.pak, or in the advanced editor, in the RPGStats table => Open folders => DefaultStats.

I'll be able to tell you more precisely later, but look for something similar to HeroMovePoints.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#5352
Auto-translated
Help a newbie with a script to add animation to a creature on the map. I followed a guide...
PlayObjectAnimation (Men, happy, IDLE);
SetObjectEnabled (Gad, nil);
PlayObjectAnimation (Gad, death, ONESHOT_STEEL);

This script is for joy and death animations for two creatures. The console gives an error; do I need triggers and "end" here? Or something else? Please provide a correct example.
User Avatar
#5353
Auto-translated
You simply forgot the quotation marks. Without quotes, these are undefined variables, but they should be strings. Also, the last identifier is written incorrectly. It's not steel, but still
PlayObjectAnimation("Men", "happy", IDLE)
SetObjectEnabled("Gad", nil)
PlayObjectAnimation("Gad", "death", ONESHOT_STILL)
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#5354
Auto-translated
Thank you! I'll give it a try. Do you need triggers for this kind of animation? Should one such script be separated from another with the "end" command?
User Avatar
#5355
Auto-translated
Triggers are not needed, nor is the "end" keyword. "End" is used to close: functions, if-then blocks, for and while loops.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________