Community Portal/User Defined Functions

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

OBSE v18, which is now in beta, adds user defined functions. The Wiki would be a perfect place to host a function library, similar to the Useful Code section. I haven't had much thought about this yet, so I'll leave this page open, but I thought we'd need a place to discuss.
--Qazaaq 06:49, 31 July 2009 (EDT)

The first question that comes to my mind is: how to manage/organize the potentially many implementations of the same function, considering that article titles must be unique? All in the same page under a common, descriptive function name? Or in different pages and different names?
Atm, it seems to me that the best alternative is to add new implementations to the same function page.
I created the Min / Max page mostly to materialize an initial page so we can discuss it and use it as a test page for possible solutions/suggestions/formats. It turned out as a good example as, although quite straightforward, this function may have multiple implementations.
Another aspect is that this may be fine for obvious, simple function names (where a single description covers all implementations), but I guess pretty soon modders will get creative and devise function names that may be quite ambiguous. Should we just wait and see how things evolve? QQuix 11:30, 31 July 2009 (EDT)
I say we simply restrict things to the implementation that seems the best (performance, easiness to read, etc) - use Discussion pages to deliberate on that, if necessary. If two functions actually work two separate ways (for example, a Floor function that always rounds down versus one that always rounds towards zero), we could have both with their own headers, or give them separate pages - it doesn't really strike me as a big deal either way. I'm tempted to agree, though, that it'd be a better to have them on the same page, but again, not a huge deal.
The Min page looks good. The User Functions page needs work (Wiki'fication, mostly), but that's fine. I'm also fine with the wait-and-see plan on this.
Remember, name conflicts in actual mods isn't a problem. You're still dealing with FormIDs.
Dragoon Wraith TALK 12:37, 31 July 2009 (EDT)