irrEdit....extend the SceneNode propertylist

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

irrEdit....extend the SceneNode propertylist

Post by sudi »

Is there a way to extend the scenenode properties in irrEdit? to like set life points?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

I think you'd have to change some Irrlicht sources to achieve this as long as there isn't any common "tag" or "userdata" attribute. At least I haven't heard of any yet.

You should store your game data in your own format/class. You could create a class containing everything you need including a pointer to an ISceneNode. And then manage everything inside a vector, list or map (stl).

Then in IrrEdit you don't place any monsters - you just place boxes (for example) and use one (or more) of their attributes to define their "monster id" (or something compareable - maybe the color values?) and after loading you just parse those information and then drop/delete those boxes again. Another solution would be to save monster data etc. in a custom file and load it yourself.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Yeah but there is an option to add userdata in irredit but isn't working....
ohh and i can't get the type of mesh with

irrGetSceneNodeProperty([node], "Type")

it says the property "Type" does not exist.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Sry to pump....but isn't there anyone who could help me?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

With what? Calling the above function? It might help if you showed us a definition, or at least told us where we could find it.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Sudi wrote:irrGetSceneNodeProperty([node], "Type")

Not possible currently, sorry. But going to add something like this in the next release.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

@vitek
it's one of the script functions in irredit
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply