Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenRA.Utility: --import-[MOD]-map: ignores map predefined Playereferences. #21325

Open
LipkeGu opened this issue Feb 3, 2024 · 1 comment
Open

Comments

@LipkeGu
Copy link
Member

LipkeGu commented Feb 3, 2024

When trying to convert a TS-map (ex: nod1a.map) which has predefined [Houses]. the converted imported oramap ends up with default defined Playerreferences. Some custom Maps can have predefinesd sites/Faction/Houses.

TS-MAP: (nod1a.map)

[Houses]
0=GDI
1=Nod
2=Neutral
3=Special
4=Hassan
5=Neutral2
6=Neutral3
7=Neutral4
8=Neutral5

oramap: (nod1a.oramap)

Players:
PlayerReference@Neutral:
Name: Neutral
OwnsWorld: True
NonCombatant: True
Faction: Random
PlayerReference@Creeps:
Name: Creeps
NonCombatant: True
Faction: Random
Enemies: Multi0, Multi1, Multi2, Multi3, Multi4, Multi5, Multi6, Multi7
PlayerReference@Multi0:
Name: Multi0
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi1:
Name: Multi1
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi2:
Name: Multi2
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi3:
Name: Multi3
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi4:
Name: Multi4
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi5:
Name: Multi5
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi6:
Name: Multi6
Playable: True
Faction: Random
Enemies: Creeps
PlayerReference@Multi7:
Name: Multi7
Playable: True
Faction: Random
Enemies: Creeps

@LipkeGu LipkeGu added the Bug label Feb 3, 2024
@LipkeGu LipkeGu changed the title OpenRA.Utility: --import-[MOD]-map: ignores map predefined Playereferences. (Hassan has left the map) OpenRA.Utility: --import-[MOD]-map: ignores map predefined Playereferences. Feb 3, 2024
@LipkeGu
Copy link
Member Author

LipkeGu commented Feb 3, 2024

I wrote a few lines of code and parsed the Houses of nod1.map:
output_parsed.txt

Some thins are missing and yes color is bad :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants