Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2016-03-27 23:08:13

S32X
Member
From: Rochester, New York
Registered: 2012-03-18
Posts: 880
Website

Nanoparser detecting data that does't exist

Hi. I've been having trouble with a companion object I wrote:
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!
8VWJ0aM.png

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

Offline

#2 2016-03-28 00:26:27

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,300
Website

Re: Nanoparser detecting data that does't exist

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

Offline

#3 2016-03-28 02:42:47

S32X
Member
From: Rochester, New York
Registered: 2012-03-18
Posts: 880
Website

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)

Offline

#4 2016-03-28 07:03:55

KZR
Member
Registered: 2010-07-14
Posts: 1,447
Website

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


SD_sml.pngSeD_sml.pngLTot_W_sml.png
https://discord.gg/w8JqM7m ---> Open Surge's Discord server

Offline

#5 2016-04-19 21:04:53

aronthehedgehog
Member
From: Lincoln, NE
Registered: 2013-04-05
Posts: 390

Re: Nanoparser detecting data that does't exist

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


Not active much anymore.
The only things I do now is just let inspiration come to me when it's needed.
Also bad profile pic because I don't have anything else in mind.

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org