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

Editor defaults multiple instances of custom unit names to UNIT_XXXX #17

Open
UnsilentMarLo opened this issue Feb 14, 2024 · 0 comments

Comments

@UnsilentMarLo
Copy link

Campaign missions use named units for specific script actions, opening a map with unit names that have multiple instances ie 4x "Commander" in each players group, will default all but 1 instance of this custom name to UNIT_XXXX

This will result in mappers being unable to edit missions that have multiple unit name instances without breaking the maps save.lua

it also hinders an efficient workflow as mappers wont be able to copy paste units with names.

['Player1'] =  
{
	['Units'] = GROUP {
		Units = {
			['Commander'] = {
				type = 'uel0001',
			},
		},
	},
},
['Player2'] =  
{
	['Units'] = GROUP {
		Units = {
			['Commander'] = {
				type = 'uel0001',
			},
		},
	},
},

After saving with the FAF Editor:

['Player1'] =  
{
	['Units'] = GROUP {
		Units = {
			['Commander'] = {
				type = 'uel0001',
			},
		},
	},
},
['Player2'] =  
{
	['Units'] = GROUP {
		Units = {
			['UNIT_2393'] = {
				type = 'uel0001',
			},
		},
	},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant