Skip to content

Posts from How do I add a hero to the map editor?

No ratings yet — be the first to rate!
User Avatar
#1
Auto-translated
I have a new hero. As a separate mod, it works, meaning you can select it at the beginning of a mission and it doesn't replace anyone. I want to add it to the map editor so I can place it on the map. How do I do that?
User Avatar
#2
Auto-translated
If you have created a new hero, then it will definitely have AdvMapHeroShared. Therefore, in the HideInEditor parameter of the shared object, enter "false". Now you can place the hero on the map, press the spacebar, and select your hero from the list.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#3
Auto-translated
It says so, but the hero is still not in the editor.
User Avatar
#4
Auto-translated
Place a hero from Heroes (Generic) of the same faction on the map. Select it until it is highlighted in red. Press Space. A window will appear. By default, the Main tab is open in the window, and directly below the hero icon, there is a line with a list of heroes. Click, select the name of your new hero, and click OK. Look at the map.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#5
Auto-translated
I only have the standard heroes there. In the configs, the new hero was defined as generic, and then I tried to add him as a scenario hero, but it doesn't work.
User Avatar
#6
Auto-translated
Just a second, I'll go to the editor and check.

Added 1 minute ago
What don't you like about displaying your hero through the character properties?

Added 11 minutes ago
Everything works correctly (for me).


Here are screenshots, check if you have configured everything correctly in Shared.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#7
Auto-translated
For some reason, the full-size screenshots don't open here, making it difficult to see everything. Also, I don't like the way you configure things through the map editor itself because you can't add a new model or icon.
User Avatar
#8
Auto-translated
a) You can open the screenshots by right-clicking => Open image
b) In the advanced editor, you can also create an icon.

Added 30 seconds later
And you can also create a model. You must be mistaken about something...
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#9
Auto-translated
Only a small copy opens for me, and that's the problem.

At first, I thought it wasn't about the extended editor; I thought it was just about the properties. But yes, you can do it through the editor, but I entered it manually and put everything in a .pak file.

Added 2 minutes later
In principle, I can put all the files from my .pak into data.pak, but I want people to be able to download the mod and play it without replacing the game's files (which will happen if I put everything in the main archive).
User Avatar
#10
Auto-translated
I'll write a detailed explanation of how to do everything you want in about 5 minutes.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#11
Auto-translated
Okay, thank you!
In reply to Elu
User Avatar
#12
Auto-translated
1. Open the advanced map editor, select View => Game Database => New Window, then Resource => Select Tables => Select All, then Resource => New MOD => Enter the name and description. You can now start making changes.
2. Go to the advanced map editor, place any hero on the map. Select him, choose the parameter AdvMapHeroShared, create a new one using New, for example, TESTHero.(AdvMapHeroShared).
3. Click the three dots.
4. A window with the hero's parameters will appear; configure the following:

Model,
AnimSet,
Active tiles => Add => x=0, y=0,
ObjectType (any),
Icon128,
InternalName,
Class,
Specialization (Name, Desc, Icon),
Face Texture and Face Texture Small,
HeroCharacterArena and HeroCharacterAdventure,
CombatVisual,
Town Type,
Editable => + => Configure as desired,
Selection,
Trace,
Hide in editor => false.


To add your own icon, where a new one is needed, create a new texture Icon.(Texture), select the icon file in Scrfile, set the parameters Type - TEXTURE_2D, Conversion type - CONVERT_TRANSPARENT, Format - TF_8888, Instant load - true. You can also choose icons from others.

You can do the same with the model and .(Character): either choose from existing ones or create everything yourself.
5. Resource => Pack MOD.
6. Go to the game folder; there will be a "map" NAMEOFMODFROMPOINT1.h5m; manually rename it to MYMODENAME.h5u and send it to User MODs.
7. Done.
P.S. I have already attached screenshots; everything is clearly visible in them, and this confirms the functionality of this method.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
#13
Auto-translated
What kind of hero is it, can you give a description?
In reply to serovoy
User Avatar
#14
Auto-translated
serovoy
What kind of hero is it, can you describe him?
By the way, I'm also curious to know what the new hero is.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#15
Auto-translated
I managed to add my own hero completely separately from the others. I can't say exactly how I did it, to be honest, but I can say the following:

1. I moved the .pak file with my hero separately from the game so that I could work on the mod without worrying about file names. I couldn't use the same names because the .pak file was in the data folder, and it already contained all the configured files.
2. First, I tried the "Hotabych method." I did the first three steps and started the fourth.
3. I got lazy and didn't want to re-connect and re-configure everything. I closed the map editor and put the .pak file back in its place.
4. I went back into the map editor. I thought about it and set Resource =: Close MOD.
5. I opened the table and looked at AdvMapHeroShared, and there was a file for my hero. I started to get excited, but it wasn't in the editor yet.
6. Before all this, I was looking at how to add it to the game. I opened the MapFilters.xml file in the Editor folder in the root game folder. Heroes are taken from the AdvMapObjectLink folder.
7. I went into AdvMapObjectLink in the editor => MapObjects => _(AdvMapObjectLink) => Heroes => Inferno
8. I created the Andromalius.(AdvMapObjectLink) file in the Inferno folder and linked it to Andromalius.(AdvMapHeroShared)
9. Voila, the hero is now in the map editor under .Heroes(Scenario), which is exactly where I wanted it.

I think that Close MOD is what helped me. After that, I did exactly the same thing that I was trying to do before, but it didn't work before. But now... it works.

Added 3 minutes ago
Also, a new index.bin file was generated in the data folder. I deleted this file yesterday, and it wasn't generated yesterday.

Added 28 minutes ago
A small problem appeared - the icon stopped displaying. But I'll figure it out somehow.

Added 15 minutes ago
The icon is back now, everything should be fine.

Added 8 minutes ago
...now it's disappeared from the editor. What the heck? Why is everything so messed up? I'll have to deal with this until everything works properly.

Statistics

Welcome our newest member: Emil

Users Online 2 users 1407 guests