Aller au contenu

Photo

Resources for scripting


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

#1
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Introductions to Scripting

First of all, read this Scripting Overview First which has many of the following links in a order which builds upon each other. This is part of the Citadel School of Persistent World Building which aims to collect information about developing for nwn2 in one place, and has a lot of helpful scripting information by Knightmare.

Tutorial Scripting For Noobs Vault Page
This guide is meant for the total scripting noob. Someone who does not know a single thing about creating a script, hell, it’s for the person who doesn’t even know where the Script Editor is in the toolset.

Tutorial NWN2 Scripting Vault Page

Introduction to NWN2 Scripting Web Page
Overview of the scripting language.

NWN Scripting University Web Page For NWN1 but everything basically works in NWN2 as well.

Scripting References

the NWN2 Lexicon Website ( Need to find Vault page, their CHM is much easier to use )

the NWN1 Lexicon Website Basics are the same but the function names and some details are different. Basically about 90% of the NWN1 things work in NWN2, and that 10% is just the functions names are a little different or the engines have different features. ( Like a mount script function won't work in NWN2 because unlike NWN1 NWN2 does not have horses ).

Refering to Objects in Scripts Web Page Which covers how to refer to various objects, what OBJECT_SELF is in various scripts.

Sample Scripts

Nwn2Wiki Script Directory Web Page

NWN1 Script Directory Web Page

New script functions added in 1.23 Forum Thread


Alternative Compilers Allow you to work on scripts with IDE's and Text editors of your choice instead of the toolset.

Advanced Script Compiler Vault Page
This is both a toolset plugin which replaces the in game compiler, and a standalone command line compiler ( which you can integrate with eclipse, visual studio or the like ). It is highly recommended that all code be generated and tested with this because:.
  • Fixes actually in game bugs caused by improperly compiled code using default compiler
  • Generated code is more efficient and optimized better
  • Shows many syntax errors the default compiler does not, more than one error at once, and better warnings and error messages.
  • Errors are clickable making them easier to fix
  • Much less likely to crash the toolset and can deal with much larger scripts
  • Seamless toolset integration and 100% compatibility with default game
  • Reported issues are quickly fixed

nssclc - NSS Command-Line Compiler Vault Page
nssclc (standing for NSS Command-Line Compiler) is a stand alone compiler for NWScript source files (.nss files), available in the form of a command-line program. Basically, it takes one or more .nss files as input, generates the corresponding compiled files (.ncs files) and displays any compilation error on the command-line interface.

Batch Compiler for NSSCLC Vault Page
Have you ever needed to compile 10, 50, 200, or 1000 scripts? This utility automates this process as easily as possible. Essentially it is a GUI interface that allows you to select multiple scripts at once and compiles them one at a time using the NSS Command-Line Compiler.

PRC Compiler Vault Page ( For NWN1 but scripts work the same in NWN2, you just need for it to have nwscript.nss in it's includes it sees ) Grinning fool has a fixed version of this that does not require it finding NWN1 files. Please see the Advanced script compiler which is the currently maintained version of this project.

Script Generators

Flip, a tool which lets you create scripts for NWN2 modules using a graphical interface. It was designed to allow non programmers, ( specifically 11-14 year olds ) develop computational skills using interlocking blocks that represent the code of the language.

Lilac Soul's NWN Script Generator V2.3 Vault Page
This is a tool for creating scripts for use in NWN. It covers many of the basic functions that are used frequently in modules, as well as some, perhaps, less frequent ones.

Neverwinter Nights Easy Script Web Page Very basic script compiler.

********************************************************
Tutorial Charlie's Scripter Starter Kit Vault Page
Sample starter scripts for new scripters and module builders. This module was built in response to frequent requests for simple scripts to provide functionality needed for most modules and persistent worlds. These scripts and the demo module should help new module builders and scripters get started with Neverwinter Nights 2 scripting.

UI Scripting Links and information Forum Thread


Paste Bin
This is a tool which makes it easy to post small scripts using pastebin.org which gives the nwn2 community their own private pastebin. Go ahead and use it to help discuss scripts. Remember that using it is temporary, and it's better to post code here in the forum so others can benefit from it years later, but it's a good way to get help on issues when you are on IRC.
nwn2 pastebin

Community Script Library
This is my personal project which is a very large library of functions which i have personally vetted and reviewed and optimized for maximum peformance ( including monitoring usage with xp_profiler). This includes many new functions, as well as many from other projects which are good for general use. The current place this is hosted but i am looking at moving it eventually to the citadel. It is searchable, and you are free to use the given functions in whole or in part as you deem fit.
Community Script Library

It also has documented the functions in nwscript.nss and a bug list.

I periodically release these scripts as well as i develop them but they are a work in progress.

Modifié par painofdungeoneternal, 26 janvier 2013 - 04:05 .


#2
Morbane

Morbane
  • Members
  • 1 883 messages
Ahem - this should be Stickyed...

#3
LeeMer47

LeeMer47
  • Members
  • 111 messages
Yep, it should be stickied.

#4
erikbreau

erikbreau
  • Members
  • 30 messages
Agreed... so, why isn't it????



Erik.

#5
motu99

motu99
  • Members
  • 1 messages
Should be stickied, yes really..

#6
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
What? You want this stickied? Do ya? Huh? I'll show ya sticky. Take THAT! [splat]



STUCK!

#7
Morbane

Morbane
  • Members
  • 1 883 messages
Thank you - those links can be difficult to find in any discernible order as posted. I have ref'd many of them since.



Yay!!

#8
Olblach

Olblach
  • Members
  • 175 messages
Don't forget the NWN1 Scripting Forums

There are differences between NWN1 and NWN2 scripting but there is a chance your question has been covered there though.

Modifié par Olblach, 10 novembre 2010 - 03:59 .


#9
KatyHowland

KatyHowland
  • Members
  • 2 messages
We've just released Flip, a tool which lets you create scripts for NWN2 modules using a graphical interface.

It should be of interest to anyone looking for a quick and easy way to add scripts to their modules.

There is a user manual and some how-to videos on the site!

Katy

#10
Morbane

Morbane
  • Members
  • 1 883 messages

KatyHowland wrote...

We've just released Flip, a tool which lets you create scripts for NWN2 modules using a graphical interface.

It should be of interest to anyone looking for a quick and easy way to add scripts to their modules.

There is a user manual and some how-to videos on the site!

Katy


It should be noted that Flip runs as a Plug-In within the toolset and is dependent on what is open there at the time of use - such as an Area: only the objects etc of that area are visible in the Flip interface.

Flip is designed to be REALLY SIMPLE for the beginner - and not having explored it further I am not sure how complex the scripts generated with Flip can be.

But it should help the true novice grow into a more independent scripter by reverse engineering the scripts generated with it.
:blink:

#11
KatyHowland

KatyHowland
  • Members
  • 2 messages
Yes, Flip was primarily designed for 11-15 year olds with no programming experience so it's pretty simple, but we hope it might be of wider use in the builders community too.

Also, I should have mentioned that our website links to an installer which adds the required dlls etc. automatically, and packaged with Flip is a tool to support young people in the creative process of game design - Adventure Author.

If you just want Flip (and are happy adding the dlls and some script files yourself) you'll want to get the files from the Vault entry I added yesterday.

#12
Morbane

Morbane
  • Members
  • 1 883 messages

KatyHowland wrote...

Yes, Flip was primarily designed for 11-15 year olds with no programming experience so it's pretty simple, but we hope it might be of wider use in the builders community too.

Also, I should have mentioned that our website links to an installer which adds the required dlls etc. automatically, and packaged with Flip is a tool to support young people in the creative process of game design - Adventure Author.

If you just want Flip (and are happy adding the dlls and some script files yourself) you'll want to get the files from the Vault entry I added yesterday.


You should post this here: http://social.biowar...egory/159/index it is directly suited for such a tool and better exposure more directly to its use(s)

Modifié par Morbane, 01 mars 2011 - 08:25 .


#13
Dann-J

Dann-J
  • Members
  • 3 161 messages
The NWN2 Lexicon website seems to have died, but it's ghost lives on courtesy of the Wayback Machine:

http://web.archive.o...nwn2lexicon.com

Modifié par DannJ, 26 septembre 2011 - 10:55 .


#14
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages

DannJ wrote...

The NWN2 Lexicon website seems to have died, but it's ghost lives on courtesy of the Wayback Machine:

http://web.archive.o...nwn2lexicon.com


I used google cached values to retrieve a lot of that and have edited, reviewed and integrated it with the Community Script Library

It's not holding all of the original, but it's also actually specific to NWN2 as quite a bit on the lexicon was actually leftover from NWN1.

Remember that IP changes, i will probably just update the first post when i notice it has changed.

Modifié par painofdungeoneternal, 26 janvier 2013 - 04:06 .


#15
Carcerian

Carcerian
  • Members
  • 1 108 messages

All IGN Vault Scripts IDs #1 - #409: nwn2scripts.7z (925 MB)

 

http://neverwinterva...cripts7z-925-mb