Skip to content

[MDS]Parsing brackets in .mds mesh entries stops processing #121

@JaXt0r

Description

@JaXt0r

Happy New Year, Luis! Let's rock and roll right from day 1. ;-)

Current behavior

If a registerMesh entry inside a .mds file contains round brackets/parenthesis, the parsing stops with this warning:
level=Warning, name=ModelScript, message=detected invalid use of KEYWORD ".ASC" in "Model" block. Ignoring rest of script.
Causing the whole file to stop being processed further and won't register animations (which are normally stored below).

Example: registerMesh ("Some_File Name(WithBrackets).ASC")

Reproduction

  1. Use ZenKit version = 1.0.3.0
  2. Create .mds file with this value
Model ("HuS")
{
	meshAndTree ("Hum_Body_Naked0.ASC" DONT_USE_MESH)
	registerMesh ("Some_File Name(WithBrackets).ASC")

	aniEnum
	{
		modelTag	("DEF_HIT_LIMB"		"zs_RightHand")
        ani			("s_Run"				1	"s_Run"			0.1	0.1	MI	"Hum_RunAmbient_M01.asc"	F	1	50)
    }
}

Expected behavior

Parsing should accept brackets >()< as they're put in double quotes and are valid file names on linux and windows.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmoddedIssues or features related to modifications of Gothic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions