oxwhirl / smac

SMAC: The StarCraft Multi-Agent Challenge
MIT License
1.12k stars 230 forks source link

Have problem creating new maps #59

Closed hhhusiyi-monash closed 4 years ago

hhhusiyi-monash commented 4 years ago

Hi,

When using starcraft II map editor to load your map (e.g. 3m.SC2MAP), I only get a empty map with TEAM1 and TEAM2 flag on each side. Wonder if i miss something.

Best. C

samvelyan commented 4 years ago

Hi! Everything is correct! For viewing how the units are spawned, ordered to attack, etc, open the Triggers window in the SCII Editor.

hhhusiyi-monash commented 4 years ago

I open the Trigger windows (map name: 10m_vs_11m) and I change the TEAM1 marine from 10 to 5 and save the map as 5m_vs_11m. After adding the map in to smac_maps.py, I running the code and save replay successfully. The only problem is i cannot open the replay of 5m_vs_11m.

Besides, when loading the map into map editor, seems like there is no agent or unit in the map. And in tigger window there are some scripts (where I change the marine number from 10 to 5 in action1) . Is there any visualization of the current map with units on it?

Thanks. C

samvelyan commented 4 years ago

You should be able to open the replays using the Mac or Windows versions of SC2. If you're under Linux, please try using vine. If you're using Linux, there are no visualisations available at this moment. For other two platforms, you should be able to view the episodes via the SC2 window.

hhhusiyi-monash commented 4 years ago

Thanks for your reply. The problem is I successfully visualize the 10m_vs_11m. But failed to visualize the 5m_vs_11m. Only thing I change is 'action1' in Spawn Marines. Besides, my OS is Windows 10.

hhhusiyi-monash commented 4 years ago

I fixed my problem by adding the custom map into Game directory: Starcraft II / Maps / SMAC_Maps on Windows 10. And then just double click the replay located anywhere.