Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN2 PLUG-INS

- Jump to comments -
Name  Advanced Script Compiler for NWN2
Author  Skywing
Submitted / Updated  05-07-2011 / 09-17-2011
Category  GUI
Forum Thread  Link
SourceIncluded  NA
Patch  1.23
NWN2Game  All
Description
This project includes a NWN2 toolset plugin that adds an improved script compiler (based on Edward T. Smith's nwnsnsscomp) to the NWN2 toolset. The compiler is seamlessly integrated and automatically used when compiling scripts from the toolset. Features include better code generation, better warnings and error messages, and the ability to receive more than one compile error at once.

Additionally, an improved console script compiler (replacing nwnnsscomp) is also included, with various bugfixes and improvements over nwnnsscomp. In particular, NWN1 datafiles aren't required anymore for the console compiler, and nwscript.nss can be loaded from the game zip files. Various fixes are also made to ensure that scripts compiled with the console compiler are also compileable by the stock script compiler.

Files

NameTypeSizeDownloads
AdvancedScriptCompiler.zipAdvancedScriptCompiler.zip
Submitted: 05-07-2011 / Last Updated:
zip--547
Advanced Script Compiler for NWN2 External Website Beyond Our Control
SCORE OUT OF 10
9.94
14 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (30):

1 2 3

Posted by kevL's at on05/19/11
yep (note to others, the default compiler returns 'unsuccessful' on a *cough perfectly good script) i should point out, though, that it doesn't seem confined to the console RunScript - it first popped up fer me in bad code I had been running 'successfully' for half a year (without so much as a peep, then i recompiled with the ACS and bang, so thanks too!) _________________________ All the world's a stage ... but so what.

Posted by Skywing at 2011-05-1810:08:39    
kevL: The fact that this crashes is a bug in the game server. However, it's not something that I would consider an issue with the script compiler (it's luck that this works at all with the toolset script compiler). The root cause of the issue here is that the console RunScript command does not support scripts that take parameters or return values (i.e. it must be a "void main()" script). Any other scripts called via the console RunScript command may corrupt the internal state of the script VM. Thanks for the report!

Posted by Skywing at 2011-05-1719:23:05    
Thanks. We did indeed crash in the script VM. I'll see if I can analyze this; I'll get back to you.

Posted by Skywing at 2011-05-1711:41:00    
Please link me the .nss, .ncs. and .ndb files for the problematic script, including all dependencies, and I'll take a look. (Don't build with -g for this as I will need the .ndb file. This won't impact the .ncs file output at all.) Also, please link me the nwn2_errorlog.txt (or nwn2_servererrorlog.txt) from your game installation directory in Program Files. You may need to click 'ompatibility files' to see the error log in vista/win7.

Posted by kevL's at on05/19/11
( clarifications ) "specified in the code itself" should read "specified in the function itself" iBonusHP = nBonusHP, sry. _________________________ All the world's a stage ... but so what.

Posted by kevL's at on05/19/11
oh, my command line: -glo -v1.69 _________________________ All the world's a stage ... but so what.

Posted by kevL's at on05/19/11
hello Sky, have a look at this chunk of code: [code] /* asc_test */ void main(int iBonusHP) { effect eEffect = EffectBonusHitpoints(iBonusHP); //eEffect = SupernaturalEffect(eEffect); } [/code] note the commented line. If uncommented, the default compiler compiles the script and runs it from the console fine (if iBonusHP != 0, else unsuccessful); the ASC compiles the code (no errors) but *if nBonusHP is zero* (at the console) my game crashes to desktop with a Windows error message. ps. If iBonusHP is specified in the code itself, the ASC script behaves the same as the default compiler script (no crash, only unsuccessful if iBonusHP = 0). Have not tried other Effects, only passing a variable into EffectBonusHitpoints() then turning it into a SupernaturalEffect(). Personally I don't mind the operation as it is, causing me to tighten my code with a check for nBonusHP == 0 but .. have not tried this in the TS, only with the stand-alone ASC. _________________________ All the world's a stage ... but so what.

Posted by Skywing at 2011-05-1611:41:04    
Release 2 posted. This includes the fix for the issue when compiling scripts with the same name as a built-in script in the game zip files. Changelog: Release 2: ---------- - Fixed a stability issue with GUI and conditional script detection in the toolset compiler plugin. This does not impact the standalone compiler. - Fixed a resource prioritization issue with the toolset compiler plugin that might result in resource files from the game data zips taking priority over in-module files (for example, overridden scripts with the same name in the module might not be used as expected in lieu of the in-zip versions). This does not impact the standalone compiler.

Posted by Skywing at 2011-05-1410:48:23    
Lunamaria, Psionic-Entity: I believe that I have a fix for this issue (where sometimes .zip resources might be used instead of resources from the module if both had the same name). Drop me a line on IRC at #nwn2cr/irc.nwn2source.net so that we can verify the fix addresses your issue, and I'll release it after that point. This issue only impacts the toolset plugin and not the standalone compiler as it relates to how the compiler is plugged in to the toolset's resource system.

Posted by Psionic-Entity at 2011-05-1216:50:53    
Ran this on scripts just before a stage, and it completely borked a few scripts that the standard nwn2 compiler runs just fine. (I've since tried adding and removing the plugin, the script compiles correctly during a one-off with the standard compiler, but instead creates a miniscule empty script with the advanced one, that does not fire ingame) The script is a modified nw_c2_default7 that's been customized for our server, which may have something to do with it.

1 2 3

You must be Logged In to post comments in this section.

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Tools


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters