Silver's Simple Site - Projects - Open Rails - Log

Earlier entries >>

429

strings

2010-10-26 02:58:42

The end of STFReader changes... (fingers crossed)

Normalized the warnings and errors.

Should only throws an exception if something is unrecoverable (premature EOFs, totally missing data blocks without defaults).

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@429 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

428

strings

2010-10-26 01:18:19

STFReader.UNITS.Any changed to more specialised units.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@428 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

427

twpol

2010-10-25 20:29:16

http://www.elvastower.com/forums/index.php?/topic/13181-lighting-on-trees/

Stop vegetation (cruciform) scenery from getting normal-based ambient light.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@427 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

426

strings

2010-10-25 18:29:38

http://www.elvastower.com/forums/index.php?/topic/13177-cannot-parse-the-constant-number/

Changed TryParse() to explicitly use NumberFormatInfo.InvariantInfo

http://www.elvastower.com/forums/index.php?/topic/13178-stfreader-comment-tolerance

Handle skip's and comment's which are not followed by a block

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@426 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

425

strings

2010-10-25 07:51:50

More STFreader changes.

Now handles the situation where the last item in a block is an ignored item (skip comment # or _), which was tripping up the more simplistic test in EndOfBlock().

If EndOfBlock() returns false it should guarantee that your next call to ReadItem() will not return a ")" - now that "contract" is always honoured

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@425 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

424

strings

2010-10-25 04:29:13

TSectionDat.cs that should have been included in the last commit.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@424 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

423

strings

2010-10-25 03:21:07

More STFReader changes - the end is now in sight.

This just brings the block functions in line with the item functions.

And moves some units out of the locomotive classes into STFReader.

I have also moved the non-standard (see imperial) Steam units, into the SteamLocomtive class taking them out of the more general Wagons which should use metric.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@423 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

422

twpol

2010-10-24 20:56:13

Avoid calling GetCurrentProcess().WorkingSet64 as it's very bad for the memory allocations.

Same for reading the "allocated bytes/sec" data - use 'typeperf' to monitor this data.

Memory allocation optimisation for materials - avoid creating enumerators for EffectPasses on every call and cache them instead.

Memory allocation optimisation for RenderItems - use a static list with custom resizing and enumeration. Caution: this is pretty experimental.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@422 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

421

strings

2010-10-24 04:08:21

More STFReader changes.

Unified UNITS parsing adding the ability to limit the units according to context.

UNITS.None works faster than UNITS.Any, but is less tolerant, so as a first step, this is the most tolerant code, so we can find bugs.  Then we can progressively speed up the code by changing to only accept the appropriate units in their context.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@421 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

420

strings

2010-10-23 22:13:24

More STFReader changes.

This time the comment, skip, # and _ processing has been moved into the ReadItem functions, so that comment processing is unified for all STF file parsing.

I have little doubt that this will reveal additional parsing bugs in STFReader usage, but hopefully the additional messages added to the OpenRailsLog.txt will help those faults be properly tracked and fixed.

git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@420 a9f3cfff-6c41-7446-b0ca-052bd761e6eb

Earlier entries >>

Powered by the Content Parser System, copyright 2002 - 2026 James G. Ross.