Non-Integer for loops can now be compiled in the toolset with the new toolset extender (many thanks to virusman and SkywingvL for it), but I was curious what else it opened up options wise compared to the default compiler.
Are there any tips/tricks/options any of the folks that have been using the PrC compiler before might have for things that can now be done in toolset with scripts?
Scripting with the new toolset extender
Débuté par
Failed.Bard
, juin 18 2011 06:08
#1
Posté 18 juin 2011 - 06:08
#2
Posté 18 juin 2011 - 06:26
Circular file dependencies are possible with it. Not that I recommend them. 
Mainly, you should recompile all your scripts, since it will catch errors the bioware compiler won't, as well as compiling them more efficiently.
Funky
Mainly, you should recompile all your scripts, since it will catch errors the bioware compiler won't, as well as compiling them more efficiently.
Funky
#3
Posté 18 juin 2011 - 06:51
Hmm... You're right about the compiler being more efficient, that's for certain. The script I'd tested before that I could remember the debug time for was 1 loop of 500 executions = 15 ms.
Recompiling, staying as a while loop: 10 loops of 500, 77 ms (half, essentially)
Remaking the exact same script as a for loop: 10 loops of 500, 62 ms.
That last one I hadn't expected. I thought they were just easier to read, but it seems for loops compile better as well.
Recompiling, staying as a while loop: 10 loops of 500, 77 ms (half, essentially)
Remaking the exact same script as a for loop: 10 loops of 500, 62 ms.
That last one I hadn't expected. I thought they were just easier to read, but it seems for loops compile better as well.
#4
Posté 19 juin 2011 - 12:51
Questions:
-- Are bitfields allowed?
-- Can I nest UDTs without making it go nuts?
-- Is there support for macros (even a very limited one would be great)?
[/edit]
-- Arrays?
(they would be syntactic sugar, I know -- but they are handy and help to better conceptualize)
(It is not that I am lazy -- It is that I can not try it from here -- thanks)
-fox
-- Are bitfields allowed?
struct sFOO { int Lo : 16; int Hi : 16; };-- Can I nest UDTs without making it go nuts?
-- Is there support for macros (even a very limited one would be great)?
[/edit]
-- Arrays?
(they would be syntactic sugar, I know -- but they are handy and help to better conceptualize)
(It is not that I am lazy -- It is that I can not try it from here -- thanks)
-fox
Modifié par the.gray.fox, 19 juin 2011 - 12:54 .
#5
Posté 19 juin 2011 - 08:10
Aside from what's been mentioned, it doesn't allow anything more, that I'm aware. Certainly not arrays. C, this ain't.
Funky
Funky





Retour en haut






