Aller au contenu

Photo

Script editing AD 2015?


  • Veuillez vous connecter pour répondre
15 réponses à ce sujet

#1
Valgav

Valgav
  • Members
  • 64 messages

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.



#2
Shadooow

Shadooow
  • Members
  • 4 465 messages

NWN Toolset? Best script editor ever...


  • kalbaern aime ceci

#3
leo_x

leo_x
  • Members
  • 223 messages

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.



#4
Valgav

Valgav
  • Members
  • 64 messages

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.



#5
Shadooow

Shadooow
  • Members
  • 4 465 messages

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


  • Tarot Redhand, Thayan, leo_x et 8 autres aiment ceci

#6
Valgav

Valgav
  • Members
  • 64 messages

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.



#7
Shadooow

Shadooow
  • Members
  • 4 465 messages

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



#8
MagicalMaster

MagicalMaster
  • Members
  • 2 000 messages

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



#9
Grani

Grani
  • Members
  • 554 messages

I need to admit, I didn't know about Aurora's auto-complete, either. :o
 

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


  • kalbaern aime ceci

#10
leo_x

leo_x
  • Members
  • 223 messages

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.



#11
meaglyn

meaglyn
  • Members
  • 802 messages

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



#12
leo_x

leo_x
  • Members
  • 223 messages

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?



#13
meaglyn

meaglyn
  • Members
  • 802 messages

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.



#14
leo_x

leo_x
  • Members
  • 223 messages

Fair dooz...

 

SublimeAStyleFormatter is also a nice addition to a NWScript workflow.



#15
Elmarino

Elmarino
  • Members
  • 1 messages

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



#16
Baaleos

Baaleos
  • Members
  • 1 315 messages

LMAO - Just read the request for Agar.io exploit.

Not NWN related at all.

Play on my Agar.io server: you will only have the 20 or so bots to contend with

agar.io/?ip=54.208.113.91:443