Author Topic: Script editing AD 2015?  (Read 2256 times)

Legacy_Valgav

  • Full Member
  • ***
  • Posts: 118
  • Karma: +0/-0
Script editing AD 2015?
« on: February 20, 2015, 03:10:17 pm »


               

I'm trying tu use Sublime Text with https://github.com/C...verwinterScript but I found few problems. First it doesn't contain things from 1.69 like SetColor() so I have to remember all this functions. Second thing is about includes. I'm using a lot of nwnx functions so without auto complete it's like switching tabs all the time.


 


So what's the best solution to write and compile scripts today? I'm using Windows 8.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Script editing AD 2015?
« Reply #1 on: February 21, 2015, 12:11:24 am »


               

NWN Toolset? Best script editor ever...



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
Script editing AD 2015?
« Reply #2 on: February 21, 2015, 05:35:22 am »


               

I use Emacs to edit and make to compile... You can use ctags for auto-completion, etc which should be easy to use with Sublime.  I stole this from Elven/niv:



ctags --language-force=c --totals --c-kinds=cdefgmnpstuvx --fields=fksmnSzt [files] .tags

and it works really well on Windows 8 after a bit of pain setting it all up.



               
               

               
            

Legacy_Valgav

  • Full Member
  • ***
  • Posts: 118
  • Karma: +0/-0
Script editing AD 2015?
« Reply #3 on: February 21, 2015, 12:51:21 pm »


               

I really have no idea how to configure it, any hints?


 


Shadooow toolset editor is rubish. It has no auto complete so you have to keep scrolling through the right panel to find functions.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Script editing AD 2015?
« Reply #4 on: February 21, 2015, 11:41:31 pm »


               


I really have no idea how to configure it, any hints?


 


Shadooow toolset editor is rubish. It has no auto complete so you have to keep scrolling through the right panel to find functions.




press F2


 


and yes the inclusion of the autocomplete and exclusion of this feature in other editors is why I love NWScript and NWN Toolset Script editor



               
               

               
            

Legacy_Valgav

  • Full Member
  • ***
  • Posts: 118
  • Karma: +0/-0
Script editing AD 2015?
« Reply #5 on: February 22, 2015, 01:26:00 am »


               

Ok so my jaw went stright to the floor after ten years with Aurora. Any other great keyboard shortcuts? And one more thing my native language is polish but nwscript in aurora doesn't encode polish signs. Any idea how to deal with it? Of course I can write without polish signs but it's quite annoying and it's become pain when it comes to write custom tokens or strings for messages.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Script editing AD 2015?
« Reply #6 on: February 22, 2015, 01:55:16 am »


               


Ok so my jaw went stright to the floor after ten years with Aurora. Any other great keyboard shortcuts? And one more thing my native language is polish but nwscript in aurora doesn't encode polish signs. Any idea how to deal with it? Of course I can write without polish signs but it's quite annoying and it's become pain when it comes to write custom tokens or strings for messages.




Im usually writing custom messages in notepad and then copypaste it, writing texts in scripts is not so common afterall and im writing comments in english anyway, but I think that virusman made some toolset modification for russian, maybe it will work for polish too?


 


F7 is compile, though you have a button for there in the menu



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Script editing AD 2015?
« Reply #7 on: February 22, 2015, 06:40:37 am »


               

I barely bother to "like" anything because I'm not thrilled with the feature but that F2 key...damn...



               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Script editing AD 2015?
« Reply #8 on: March 04, 2015, 11:03:36 am »


               

I need to admit, I didn't know about Aurora's auto-complete, either. '<img'>

 


That's great, though I won't find it that useful myself, since it's faster for me to type a whole function rather than auto-completing it. '<img'>



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
Script editing AD 2015?
« Reply #9 on: April 01, 2015, 11:13:50 am »


               


I'm trying tu use Sublime Text with https://github.com/C...verwinterScript but I found few problems. First it doesn't contain things from 1.69 like SetColor() so I have to remember all this functions. Second thing is about includes. I'm using a lot of nwnx functions so without auto complete it's like switching tabs all the time.


 


So what's the best solution to write and compile scripts today? I'm using Windows 8.




 


I don't know if you're satisfied with F2, but I tried out Sublime with STNeverwinterScript and was pretty blown away by how nice it was...  so I created a little Python script that can create CTAGS files and generate sublime completions from those.  You would need to install the STNeverwinterScript package manually because it has some completions that you might not want and a few that are wrong.


 


Here is the source and it bundled in a 7z here (this includes ctags.exe) only requirement is Python3.4 (it probably works with 2.7, but I didn't test it).  I'll add this to my stuff on neverwintervault eventually in exe format for anyone interested.



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Script editing AD 2015?
« Reply #10 on: April 01, 2015, 07:51:00 pm »


               

Interesting... I've been using sublime for a while now with the sublemacs pro plugin to get emacs key strokes. There are some issues with the indentation algorithm but it's really nice to work with. I may check out the auto complete stuff.  Thanks for sharing that. I don't really miss it now though, so it might not be worth it.


 


Edit: fixed name of plugin



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
Script editing AD 2015?
« Reply #11 on: April 01, 2015, 10:51:05 pm »


               

Yea indentation is one of the places I'd say Emacs is way better.  Otherwise it's just so nice, I wish I'd tried it years ago.


 


I agree completions aren't a big thing.  Tho... I do find having the snippet function parameters injected on completion quite nice.  I could see it being super helpful to a novice scripter.


 


Are there any plugins you'd suggest or find particularly useful?



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Script editing AD 2015?
« Reply #12 on: April 02, 2015, 02:02:46 am »


               

The only one I use is the sublemacs pro (google it - you should get a nice forum page) one I sort of mentioned. All that emacs muscle memory (ctrl-k to kill to end of line, ctrl-x-f to open a file etc). It's not perfect. For example the ctrl-k buffer doesn't handle multiple lines well if you want to then paste them back. But it works pretty well.  I think there were one or two things I tweaked manually.



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
Script editing AD 2015?
« Reply #13 on: April 02, 2015, 12:20:55 pm »


               

Fair dooz...


 


SublimeAStyleFormatter is also a nice addition to a NWScript workflow.



               
               

               
            

Legacy_Elmarino

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Script editing AD 2015?
« Reply #14 on: January 13, 2016, 04:44:12 pm »


               

Is there someone who is good with scripts?


 


Because im wondering if someone can eddit agario script to make feeding bots.


 


Would be nice if someone would reply