This project has moved. For the latest updates, please go here.

Floating point

Jun 13, 2010 at 1:38 PM

When shapes files are in text format, exponential notation may be used with floating point numbers.

1.078606E-03

This is currently causing an error.

Coordinator
Jun 13, 2010 at 1:57 PM

That number format appears to work fine for me. Do you have an example file that fails to parse such a number? If you've reported the problem through Simis Editor, just let me know the filename and I can check the reports.

Jun 13, 2010 at 2:05 PM
Edited Jun 13, 2010 at 3:01 PM


Hi James,

If I reported the file the name is AmfleetIICoach4.S

This file can be found at http://www.benzstation.com/mstsstuff.html

I have been working with this file as it also has problems with OpenRails, http://www.openrails.org/

Regards,
Jeff

Coordinator
Jun 13, 2010 at 2:43 PM

Ah, the problem isn't the floating point numbers but the use of slerp_rot inside tcb_rot (the error details might not have been entirely clear; it is whatever is labeled "data at failure" that it has a problem with) - the BNFs I've written simply didn't allow that (not seen it used before, probably).

I've commited a new version of shape.bnf which (if copied in to Resources) allows this file to be loaded.

Thanks!