Game Development Community

Generic Tool API notes

by Brandon Maness · in Artist Corner · 07/19/2006 (9:52 pm) · 1 replies

While making a Generic tool plugin I reached the point where I wanted to pass in some information to the tool from other areas. I noticed my information was not being passed into the tool during the Execute function, and after echoing my way through the whole process soon discovered that the parameter list was missing the %version. So as a note to myself, and any others creating generic tools for Constructor, you may want your Plugin::Execute function declaration to look like this:

function Plugin::Execute(%this, %version, %inst)

instead of this:

function Plugin::Execute(%this, %inst)

It's always the simple things that get ya! haha

B--

#1
08/02/2006 (8:41 pm)
Greetings!

Thanks Brandon. I've made a change to the Tool Manager to correctly not include the version parameter. It is already passed in the Activate() method so is redundant here. The next beta will include this change.

- LightWave Dave