castledb-godot icon indicating copy to clipboard operation
castledb-godot copied to clipboard

The identifier "index" isn't declared in the current scope.

Open anonymalek opened this issue 2 years ago • 4 comments

After importing my database.cdb, I opened it to see inside if everything was doing ok. Then, I saw this error over here.

a

I searched the code and I discovered that the index variable indeed wasn't defined. I gave the source code a look and I saw this:

image

Maybe keys.size() is returning 0 but there is keys... Someone knows how to solve it?

anonymalek avatar Apr 11 '22 13:04 anonymalek

If you could attach a slimmed down sample of your database file it would be helpful in determining what went awry here.

thejustinwalsh avatar Apr 11 '22 19:04 thejustinwalsh

Looks like the same issue as here: https://github.com/thejustinwalsh/castledb-godot/issues/6

You need 1 Unique Identifier column per sheet.

thejustinwalsh avatar Apr 12 '22 22:04 thejustinwalsh

I'm also unsure if my plugin will parse your snake_case column names as you would expect. I think I just capitalize the first character and assume you would be using camelCase column names. I hacked this together for a game I was porting so your mileage may vary.

thejustinwalsh avatar Apr 12 '22 22:04 thejustinwalsh