oxwhirl/smac

How to change the inital position of RL agents and enemies?

Duke-Allen opened this issue · 7 comments

Hey, I note that the inital position for RL agents is in the same place. Is it possible to change the RL agents inital position, namely the RL agents inital positions are different? Is the enemies inital position changed?
Hope for your reply, thanks.

The SC2 Editor might be used to spawn the RL agents and enemies for different position as follow:
QQ截图20211117103952

I add another point "Team1_1" for RL agents in 3m map. The Team1 generate two marines, and the Team1_1 spawn one. I test this map by MARL algorithm, it looks well. Is it right?

Another question:
I investigate the Triggers in 3m map for SMAC. In Initialization, I find the ”The battlefield fog“ is disabled. I only enable the first fog, the second is also disabled:
QQ截图20211117223856

But might not view the RL agents units and enemies units after some episodes or at the first episode, like this:
无人

Wonder if I miss something.

Hi! I have the same request for changing the position with the map editor. But the 3m map only owns two teams and how can I find the marines and edit them? Any suggestions?

Hi. @Duke-Allen yes, you are correct regarding the spawning locations. I haven't played with the fog options a lot, so cannot comment on that unfortunately.

@ReinholdM, you can add different points and change the unit spawn locations in the Triggers menu, as @Duke-Allen described. If you open any SMAC map, you'll see that we're spawning units on a fixed Point. Usually everyone is being spawned on the same group Point. However, you can change the triggers and spawn individual units at different locations (you just have to create those points on the map in advance).

Hope this is helpful! Feel free to reopen if there are further questions

@samvelyan Thanks for your reply. If I want to create a new map with another unit like stalkers near to the marines in 3m map, how can I modify the map file?

Here are the instructions on how to create custom maps https://github.com/oxwhirl/smac#creating-new-maps.

@samvelyan Thanks for your reply. If I want to create a new map with another unit like stalkers near to the marines in 3m map, how can I modify the map file?

You can add another Point in 3m map by SC2 Editor.
QQ截图20211130221434
Then add the action for your new point in Spawn Marines by Triggers menu
QQ截图20211130221859

Hope it helpful for you.

Great thanks for your reply! I will check it