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 SCRIPTS

- Jump to comments -
Name  MP invisibility fix
Author  GilGwath (Dedo)
Submitted / Updated  12-16-2007 / 12-24-2007
Category  Entire Module/PW systems
Type  Type - General
Format  Code Only
ShowCode  

Select All Text | View Code in separate window
Patch  1.11
NWN2Game  All
Description
One of the biggest complaint for PW and multyplayer game, is the failure of invisibility.

In default game invisibility makes you a little bit "transparent" so for the AI and mechanic related you are invisible, but anyone (any other player) can see you anyway.

So this is just a workaround untill OEI provide an hardcoded fix, but it works as intended.

Invisible characters will be exactly that, i.e. invisible. No way to see them or select them untill invisibility expires, or if dispelled via usual spells.

The fix for invisibility regards:
- invisibility
- greater invisibility
- invisibility sphere
- racial invisibility (svirnefblin and duergar)
- Retributive Invisibility (not completely tested)
- I walk Unseen
- Assassin Invisibility

The new invisibility works with the existing detection spells:
- see invisible
- blind sight
- true seeing
- see the unseen
If an invisible character goes in the radius of such a spell, the invisibility for that character becomes the dafualt (trasparent) invisibility. If the PC goes out that area or is not visible by the PC with see invisibility, he get back to complet einvisibility.

New invisibility works also with invisibility purge.

----------------------------------------

Listen and Spot:

i used the SRD 3.5 description of how invisibility works (link: Link )
FLAT DC 30 for SPOT: The observer gains a hunch that �something�s there� but can�t see it or target it accurately with an attack. A creature who is holding still is very hard to notice (DC 30).
VARIABLE DC for LISTEN vs MOVE SILENTLY (adding +1 every 10 feet)

---------------------------------------------

Obviously this is not intended for the SP, only for PW.


How to: Import the scripts provided in your module, and assign dd_inv_hb in the Module OnHeartBeat.
Done. Time to get paranoid for your players...

-----------------
edit 12/24/2007:
added the possibility for people close to invisibile PC to Spot or Listen him.
-----------------
edit 12/18/2007:
added support for warlock invocations and assassin ability (thanks player1)

Files

NameTypeSizeDownloads
invisibility_20071218.erfinvisibility_20071218.erf
Submitted: 12-16-2007 / Last Updated: 12-18-2007
erf25.11Kb168
up to date current erf, 10 script included. Version WITHOUT Spot and Listen checks
invisibility.erfinvisibility.erf
Submitted: 12-16-2007 / Last Updated: 12-16-2007
erf22.86Kb113
// older version, without Warlock and assassin support
invisibility_20071224.erfinvisibility_20071224.erf
Submitted: 12-16-2007 / Last Updated: 12-23-2007
erf25.79Kb247
up to date current erf INCLUDING spot and listen checks for PC close to invisible people. 10 script included.
SCORE OUT OF 10
8.67
5 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

Default invisibility of the game


"Fixed" invisibility. Can you see me?





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

Posted by GilGwath at 2008-06-04 09:09:02    
the workaround i posted here was and is just a workaround, and not a *fix*. When i posted this i thought Obsidian was fixing this in 1.07. And i still have hopes they will fix it (hardcoded) in a near future.
Anyway if you integrated MP invisibility into a PW, there is something you should be aware of.
IF invisible players cast on themselves *other* spells before transitioning, the players most probably (but strangely NOT always) will crash. Transitions can be standard transitions, or dm jumps.
There is a workaround to evitate this annoyance (and make invisibility crash free): basicly before transitions you *turn off* the non-cutsceneinvisibility and mark the pc transitioning so he hasn't it applied on hertbeat, and you turn it on when PC is safely landed past the transition.
Obviously to make this you have to make a custom script for the transitions, (in the onclick event of a trigger) and not to use the standard transition triggers, and custom script on area load (check the entering PC and reapply non-cutsceneinvisibility, and unmark the PC).
I didn't provide the code here because almost every PW has their own custom code for transitions.

Posted by Drakanoiderna at 2008-05-28 05:22:11    
We tested it on My PW as well as we fix so they are not invisible in battle we don't know how to fix the Crash. and its not only transitions if a dm jump he can also crash.

Posted by la_crampe at 2008-05-04 15:17:18    Voted 7.50 on 05/04/08
Updated my vote :

After many test, this fix is not what we seek. The player remain invisible even after an attack. The invisibility create a player crash when a transition is taken.
It may fit for some PW, maybe.

Will wait for the Obisidian fix.

Posted by la_crampe at 2008-05-01 07:18:15    Voted 7.50 on 05/04/08
From the preliminary tests we did. Most Excellent!!!!
Thank you for this fix!

Posted by la_crampe at 2008-04-30 06:50:04    Voted 7.50 on 05/04/08
Thanks for the Reply, we would definitely use this!!

I will try your version with Listen/Spot check and will let you know and of course, will vote.

Posted by GilGwath at 2008-04-29 08:07:23    
@ la_crampe:
yes it works with every version.
By the way i did alter a lot the script for a particular PW, so if someone needs it i can update code with newer checks and frills.
I suppose every PW has a personal idea of how invisibility should work, and how listen and spot checks should, so if you let me know the principle things you'd like to be customizable i can make it quickly.

Posted by la_crampe at 2008-04-28 07:21:21    Voted 7.50 on 05/04/08
Does this set of script work with latest version 1.12 ?

Posted by PoisonTheMonkey at 2008-02-15 18:59:35    
Huzzah! Withholding a vote until we impliment it and test it in our PWC, but yay for no metagaming!
_________________________
Obsidian Shore, a HoF 9.8 heavy roleplaying PW. Dark and gritty fairytale world with the opportunity to do and change the world as you wish. Link

Greycliff, a brand new NWN1 heavy roleplaying PW. A broken kingdom is all that remains from a bloody civil war. Link

Posted by WarrLoxx at 2008-01-23 14:07:35    Voted 9.75 on 01/23/08
Thanks! This does exactly what I wanted. A method to turn my character completely invisible in order to take screen shots of areas.

Only a small issue so far. I attacked a creature while using Greater Invisiblity & my guy was still completely invisible - not partially transparent.

Posted by maero at 2007-12-30 01:01:05    Voted 9.00 on 12/30/07
Raising my vote.

I'm currently testing it in my PW, no issues so far.

Thanks.

Posted by VelkynE at 2007-12-29 09:27:21    Voted 8.00 on 12/29/07
Good looking system, nice that someone made an attempt to correct the oversight of the True Seeing glitch. I do have one question though - if this is for a PW, and when one Player "sees" an invisible one, does everyone see the spotted Player because they were reverted back to the semi-transparent state? If so, it's not a complete fix, but does offer greater flexibility for Rogues and others trying to utilize their abilities or skills, innate or otherwise.

Kudos!

-Velkyn

Posted by GilGwath at 2007-12-23 17:27:02    
Thanks for suggestions and votes, people.
Due to requests I addedd the Spot and listen vs Move silently checks for people near invisible PC. The Listen and Spot don't make the PC visible, but gives an hint that someone is invisible near you (message in the log).
In the next days i'll add Etherelaness, you are defintiely right that do qualify.
The first test in a PW is promising, not showing lag whatsoever, let me know if you test it.

Posted by Lafaellar at 2007-12-23 12:24:48    Voted 9.00 on 12/23/07
Etherealness not only makes you invisible, you also can't be heard by anyone since you are shifted into another plane of existance. This also means, you cannot be detected by spells except True Seeing.

I would really like to have this in aswell, great work nevertheless :)

Posted by Link6746 at 2007-12-22 21:26:36    
I think this might have progressed far enough for usage in the PW I play in. I'll suggest it as soon as possible.
_________________________
__________________________________________________
Megadeth has a very intelligent way of talking about governments and religions: Either they bullshit you or try to kill you for not being one of them. I wholeheartedly agree.
(Note: Just because Mustaine is christian doesn't mean he believes EVERYTHING the bible tells him.)
__________________________________________________

Posted by Qes at 2007-12-20 08:28:49    
Should etherealness not also qualify? Depending on how you view the spell?
-Qes

Posted by maero at 2007-12-19 06:29:36    Voted 9.00 on 12/30/07
Very good initiative, however spell effects still make you visible to others :(
I suppose going through the effects on every PC to enable/disable them would bring any server to its knees...

Except for what was already written by Link6746, good job!

Posted by Link6746 at 2007-12-18 16:11:40    
When you finish implementing the last of the detection spells, how about...

1: Listen Checks- vs move silently check made by invisible creature. normally, this causes the message "You feel like you are being watched" to come up. if you beat the opponent's check by five, you know it's location and it appears to them.

Spot check- an extremely high result for the spot check vs the invisible creature's track skill or hide skill will make the spotter notice the footprints appearing under the invisible creature. this check's DC is lessened when the invisible creature is running.
_________________________
__________________________________________________
Megadeth has a very intelligent way of talking about governments and religions: Either they bullshit you or try to kill you for not being one of them. I wholeheartedly agree.
(Note: Just because Mustaine is christian doesn't mean he believes EVERYTHING the bible tells him.)
__________________________________________________

Posted by player1 at 2007-12-18 08:11:08    
Things not covered:
SPELLABILITY_AS_INVISIBILITY (Assassin Invisibility, uses old Improved Invisibility script)
SPELL_I_SEE_THE_UNSEEN (Warlock version of See Invisibility)
SPELL_I_WALK_UNSEEN (Warlock version of Invisibility)

Posted by GilGwath at 2007-12-18 02:25:36    
Well, indeed it's wise not to abuse about the module OnHeartBeat. Anyway sometimes this is the only solution left (or at least the only i saw).
The module OnHeartBeat was used in the past by other things (i think to remember a "song" feat by Kaedrin in some of his packages, and somethign else) with no problems.
The important thing is to try to optimize the code on the OnHeartBeat script, making it stop as soon as possible if the condition are not met.
I tried that script on a very simple testing server, with 6 or 7 PG, and i saw no lag, but i suppose other people's testing can only help to make it better. I suppose in the next days we'll test it on a bigger and real PW (not only for testing, with many other systems implemented), and surely we'll have more info about it.
If someone has any suggestion i'd b eglad to hear it.

Posted by jaz at 2007-12-18 01:43:47    
I'm by no means a expert on scripting but I recall hearing that "Module OnHeartBeat" is pretty intense to run consistently. Is that true?

And if it is, is there somewhere else it could go?


Posted by serafim at 2007-12-18 00:49:22    
A so long waited fix!
I test it that can sorto out to become a musthave!!

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 Prefab Blueprints


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