Skip to content

[MDS]Invalid keywords inside a .mds file causes ZenKit to stop parsing, G2 ignores it #123

@JaXt0r

Description

@JaXt0r

Current Behavior

The mod I'm working with has keywords which doesn't exist in a normal .mds file in G2. e.g., Alias (...). Which seems to be a WIP issue of the mod in development, but Gothic2's ZenGine parser isn't complaining about it.

Error: level=Error, name=<Native>, message=ZkModelScript_load() failed: failed parsing resource of type ModelScript (source) [context: MDS syntax error at line ... column ...: invalid KEYWORD in "aniEnum" block: Alias]

Reproduction

  1. Use ZenKit version = 1.0.3.0
  2. Add these example lines in your .mds file
  3. load the file in ZenKit
Model ("HuS")
{
	aniEnum
	{
		Alias  ("..."       1          ""        0.0 0.2    M.    "....ASC"   R	1	1)
		SomethingElse ()
	}
}

Expected Behavior

Invalid keywords should be silently ignored like in G2 or should raise a warning in logs.

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