Skip to content

FNF specific: Fix characters that have two or more animations using the same animation name but different indices. #28

@MeguminBOT

Description

@MeguminBOT

This problem occurs when using the "Import FNF character data files" option due to an oversight from me.
If there's several animations that uses the same "name" variable but mapped to different "anim" entries with different indices like the default GF_assets it will only export one of them.
Like here:

		{
			"loop": false,
			"offsets": [
				0,
				-9
			],
			"fps": 24,
			"anim": "danceLeft",
			"indices": [
				30,
				0,
				1,
				2,
				3,
				4,
				5,
				6,
				7,
				8,
				9,
				10,
				11,
				12,
				13,
				14
			],
			"name": "GF Dancing Beat"
		},
		{
			"loop": false,
			"offsets": [
				0,
				-9
			],
			"fps": 24,
			"anim": "danceRight",
			"indices": [
				15,
				16,
				17,
				18,
				19,
				20,
				21,
				22,
				23,
				24,
				25,
				26,
				27,
				28,
				29
			],
			"name": "GF Dancing Beat"
		}

Going to make a fix for this sometime next week or the week after if no one else is faster with a PR.

Files for testing if someone else takes up this task:
gf_assets.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions