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

Unhandled exception for numerical entity names #27

Open
RevCosmosis opened this issue May 24, 2016 · 3 comments
Open

Unhandled exception for numerical entity names #27

RevCosmosis opened this issue May 24, 2016 · 3 comments

Comments

@RevCosmosis
Copy link

Hammer will occasionally decide to notate rotation angles with e, with rotations such as
"-0 1.00179e-005 0." This causes vmfii to throw an error, since it thinks this is a string and not an integer.

Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'VMFInstanceInserter.VMFNumberValue' to type 'VMFInstanceInserter.VMFStringValue'. at VMFInstanceInserter.VMFStructure..ctor(VMFStructure clone, Int32 idOffset, Int32 nodeOffset, TargetNameFixupStyle fixupStyle, String targetName, List1 replacements, List1 matReplacements) at VMFInstanceInserter.VMFFile.ResolveInstances() at VMFInstanceInserter.Program.Main(String[] args)

@RevCosmosis RevCosmosis changed the title Unhandled exception for rotations in scientific notation Unhandled exception for numerical entity names May 24, 2016
@RevCosmosis
Copy link
Author

Turns out I was totally wrong! I think the issue actually occurs when you name an entity inside of an instance to something that is just an integer, like "1".

@Metapyziks
Copy link
Owner

Ah that would make sense, I'll try to fix this tonight. Thanks for reporting!

@Metapyziks
Copy link
Owner

Just remembered about this, having a go at fixing now.

Metapyziks added a commit that referenced this issue May 26, 2016
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

2 participants