Author Topic: Scripting with the new toolset extender  (Read 398 times)

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Scripting with the new toolset extender
« on: June 18, 2011, 07:08:31 pm »


                 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?
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Scripting with the new toolset extender
« Reply #1 on: June 18, 2011, 07:26:48 pm »


               Circular file dependencies are possible with it. Not that I recommend them. '<img'>

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
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Scripting with the new toolset extender
« Reply #2 on: June 18, 2011, 07:51:22 pm »


               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.
               
               

               
            

Legacy_the.gray.fox

  • Full Member
  • ***
  • Posts: 214
  • Karma: +0/-0
Scripting with the new toolset extender
« Reply #3 on: June 19, 2011, 01:51:08 pm »


               Questions:

-- 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 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Scripting with the new toolset extender
« Reply #4 on: June 19, 2011, 09:10:30 pm »


               Aside from what's been mentioned, it doesn't allow anything more, that I'm aware. Certainly not arrays. C, this ain't.

Funky