Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FB to JASS.
#1
I know some of you can create parsers and translaters easily... so I was wondering whether anyone had thought of this: convert a subset of FB code into JASS. It would make FB more popular... 8)

JASS: it is an event oriented scripting language created for the Warcraft 3 engine. I've been working on stuff in it the past week, and I can tell you:

1) It has many stupid quirks.
2) It's hard to program in because of its strict style.
3) Warcraft 3 is VERY popular.


JASS has the following elements:
1) native functions
2) functions derived from native functions
3) a type hierarchy
4) uses interpreted code during the game :barf:
5) A system for event-driven functions.
6) Local and global variables.
7) Many limits.. back to the ol' QB days, but worse!:
a) Max array length, regardless of type is (0 to 8191). Arrays are dynamic so their length is never defined and can grow when needed. (up to the limit)
b) There is a maximum thread/execution limit, where the code simply stops working or doesn't run altogether if the interpreter runs more than this limit in one function.
b2) A way to go around this limit: use "call ExecuteFunc([function name])" to jump to another function, resetting the limit. (but also forgetting your local variables.) Also use TriggerSleepAction(0) to reset the limit, but this will allow other functions to jump ahead of the current functions, for instance parent functions processing before the "child" function is completed if it has "TriggerSleepAction(0)"!
c) "call ExecuteFunc([function name])" will not work if the function in question is some X amount of code spaces away from the calling function.

Here is a link to a site with a JASS manual:
http://jass.sourceforge.net/doc/


The editor supplied by Blizzard Entertainment itself has many problems with error checking with JASS code. Sometimes it even crashes..

So, any takers? Thoughts? Comments? Opinions? (or are they really all the same?)
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#2
hehe, no one....

Oh well...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)