Centauri Soldier
06-29-2009, 12:27 PM
I have noticed that many plugins and scripts make use of a table that references all of the AMS objects. The problem with this is that the objects of AMS change over time and they change if other object plugins are added to a user's project by use of an object plugin. e.g. Worm's framework code becomes outdated when IR adds an object to AMS because his objects table does not contain the new objects. Now, since the code is offered openly on the forum, it is a simple matter of adding the new object(s) to your script file on your PC and the code works again. But what if Worm had created a plugin for the framework...it sure would be nice to have a standard in that case.
I thought it might be wise to suggest a standard for that table name so all plugins that use that table could reference the same table. That table could then be placed either in a plugin itself (that has its own thread and can be updated) or simply a script file and that, as well, could be updated easily without having to update every single plugin that makes use of it.
We could also create an optional script that will determine the active objects in a user's project and add any unlisted objects (added from that user's object plugins for instance) into the objects table that is already in memory (during runtime of course).
If we all use the same universal code standard for this I think our plugins and scripts would work better with one another.
I propose we use a name like
tAMSUniversalObjectTypes
for the universal table name.
What do you guys think? Will this work or have I overlooked a problem that is impassible?
I thought it might be wise to suggest a standard for that table name so all plugins that use that table could reference the same table. That table could then be placed either in a plugin itself (that has its own thread and can be updated) or simply a script file and that, as well, could be updated easily without having to update every single plugin that makes use of it.
We could also create an optional script that will determine the active objects in a user's project and add any unlisted objects (added from that user's object plugins for instance) into the objects table that is already in memory (during runtime of course).
If we all use the same universal code standard for this I think our plugins and scripts would work better with one another.
I propose we use a name like
tAMSUniversalObjectTypes
for the universal table name.
What do you guys think? Will this work or have I overlooked a problem that is impassible?