View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:27 pm



Reply to topic  [ 3 posts ] 
 Stealthy INI parser bug? 
Author Message
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Stealthy INI parser bug?
If you make double indentation instead of single while declaring Terrain CC won't report any errors or crash it just silently swallows all what's left after incorrect fragment. Example:
Code:
AddTerrain = SLTerrain
      PresetName = Attack05Terrain
      BitmapFile = ContentFile
         Path = UnmappedLands.rte/Scenes/Attack05Terrain.bmp
      WrapX = 0
      WrapY = 0
      ScrollRatio = Vector
         X = -1.0
         Y = -1.0
      BackgroundTexture = ContentFile
         Path = Base.rte/Scenes/Textures/DirtDark.bmp
      AddTerrainFrosting = TerrainFrosting
         TargetMaterial = Material
            CopyOf = Topsoil
         FrostingMaterial = Material
            CopyOf = Grass
         MinThickness = 5
         MaxThickness = 7
         InAirOnly = 1
      AddTerrainDebris = TerrainDebris
         CopyOf = Gold
      AddTerrainDebris = TerrainDebris
         CopyOf = Plants
      AddTerrainDebris = TerrainDebris
         CopyOf = Boulders

BlaBlaBla


Notice double indentation after AddTerrain = SLTerrain. In this code BlaBlaBla will never trigger any errors, and everything after this chunk will not be parsed. Debugged this for an hour so watch your steps guys! :)


Sat Sep 10, 2011 7:30 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Stealthy INI parser bug?
Except that what you're hiding would have to be at the top for it to work.


Sat Sep 10, 2011 11:15 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Stealthy INI parser bug?
It just moves onto the next module, actually, so you can have it inside a file for it to void the remaining files all the way up to the Index.ini.
Found this error when trying to make compilations; everyone puts indents by the first layer of IncludeFiles their Index.ini, which causes the error. It otherwise would never show up, so it's common practice anyway.


Sun Sep 11, 2011 10:02 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.084s | 15 Queries | GZIP : Off ]