Topic: Nanoparser detecting data that does't exist

Hi. I've been having trouble with a companion object I wrote:
http://i.imgur.com/DwjrNo2.png

However if we look in the .obj file I wrote and take a look at line 22, there isn't a "{" even there!
http://i.imgur.com/8VWJ0aM.png

So, why is it saying there's a "{" on that line when there isn't?

Re: Nanoparser detecting data that does't exist

Check the objects you have edited before. There is most certainly a } missing somewhere.

Re: Nanoparser detecting data that does't exist

I found the problem and it had to do with the fact that in Notepad, any space using the Tab key means the same thing as pressing enter to get a new line. For example:

Although it looked like this

object ".snc_companion"
{
        requires 0.2.0
        always_active
        state "main"
        {
        
        create_child ".snc_spindash_controller"
        create_child ".snc_peelout_controller" 
        create_child ".snc_speed_check"      
        destroy
        }
}

It was actually being read as this

object ".snc_companion"
{      requires 0.2.0     always_active     state "main"
        {      create_child ".snc_spindash_controller     create_child ".snc_peelout_controller"      create_child ".snc_speed_check"      
        destroy
        }
}

(Or something like that)

Re: Nanoparser detecting data that does't exist

I reccomend you switch over to Vim or Notepad++, as they are more suitable for programming, with automatic bracket completion and line count, for example

https://image.ibb.co/kuSYrm/SD_sml.pnghttps://image.ibb.co/kHq8P6/SeD_sml.pnghttps://image.ibb.co/cJf8P6/LTot_W_sml.png

Re: Nanoparser detecting data that does't exist

I've had that problem before, although i've never seen that with Notepad before...

www.facebook.com/24XFSAL  Hasn't been updated anytime recently, don't bother.
I'm on SoundCloud: https://soundcloud.com/rain-new-holy - I plan to upload one soon.
Name change from 24XFSAL coming soon. Currently studying for Information Technology and Game development. (Also studying game theory in spare time.)