Very nice indeed, very intuitive editor too!
Well anyway, I noticed the command that waits for input... would it be possible to have a similar one that syncs output with the other components (I'm guessing it would be to stop until next Think())? As it is now the other components cannot read fast enough and they have no output that tell when they are done either (or perhaps they will do either in the future?). A wait function would be nice too, although I'm guessing it could be problematic to implement.
A branch instruction and everything that goes with it would be a welcome addition too, should be fairly simple to do.
Btw, I also noticed that it doesn't like negative values "-1.0" becomes invalid label or something like that. (ENT:ValidNumber)
Very nice addition and very good work!
(Btw, you probably already know this, but you could speed up the execution pretty much by trying to remove all those consequtive IFs, either by having a "divide and conquer" strategy for them or doing some smart stuff with meta-tables (switch does not exist in Lua i believe), this would effectively change them from O(n) to O(logn) or even O(1) which is a very good difference as there is so little logic in each... perhaps it would be possible to turn all opcodes into functions instead, making extensions very easy, and everything O(1)... well just my five cents)
(EDIT: ah damn, this was meant to be in the original thread and not the documentation)[/b]
Bookmarks