Game Development Community

iT2D 1.4 Beta - Does not read Behaviors folder - RESOLVED

by Henry Shilling · in iTorque 2D · 05/12/2010 (1:47 pm) · 9 replies

Platform: OSX 10.6.3, Windows 7

Issues: Added folder of behaviors in normal path (game/behaviors). Open in 1.4 beta editor and no behaviors are listed in the dropdown.

Steps to Repeat:
1: Create behaviors folder.
2: Create some behaviors.
3: ta da!


#1
05/12/2010 (1:53 pm)
Did you add the script code that was present in previous versions that did a search through the folder to exec all? ( I guess that one might have been cut / disabled)

Generally I don't think that this was a good idea for the iphone actually. You would optimally exec the behaviors you need and do so when you need them (for example before you load the actual gameplay levels requiring them for the first time in a session)

That allows you to save memory and time especially when you have different modes and have different behaviors in there
#2
05/12/2010 (2:06 pm)
@Mark, I would do that after I had got everything working, in an optimization phase. I do not even know what code this is that execs all.

Should that matter in the editor?

Just added that it also doesn't work in windows.
#3
05/12/2010 (3:13 pm)
Ha problem found :)

The behaviors directory is at game/scripts/behaviors, not game/behaviors

Welcome change actually as it didn't make any sense to be where it was :)


Confirmed that against an older project with correct folders :)
#4
05/12/2010 (4:00 pm)
Correct. In our announcement post, this was listed:

Notes:
  • Behaviour directory changed: game/behaviors to game/scripts/behaviors
Be wary when porting old projects. Check the directory structure of a new example to the one you want to use. A few directories have shifted.
#5
05/12/2010 (4:14 pm)
will have to read through it.

Expected it to be in the pdf (quick start or user guide) somewhere as it affects TGB -> iTGB porting but couldn't find it there so I do what I normally do anyway: ask the only authority for information - the code. 2 torsion project searches and it was "eaten"
#6
05/12/2010 (5:03 pm)
@Marc - Yeah. We got a bit of work to do on the docs before final release.
#7
05/12/2010 (6:52 pm)
Fully aware that not all might be in place yet.

Also I think pointing out even such "obvious" kind of things is surely helpful to not forget about them if you are within the materia often and forget about it due to "thats clear isn't it" knowledge
#8
05/12/2010 (7:43 pm)
That post was not there when I posted this. Then again there are like 3 posts about 1.4 beta being released and two posts on how to submit bugs.

#9
05/13/2010 (1:48 am)
Thats true, but anything in the release threads is important so read all 3 twice! :>

And as noted, porting over into an early beta things will be new and different.