View previous topic :: View next topic |
Author |
Message |
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Oct 19, 2011 14:02 Post subject: |
|
|
That's interesting on the CalculateFavoredEnemyBonus.
I did once try just replacing it with a flat integer value and it kept giving me segmentation faults when I tried it with someone with the bane of enemies feat.
Which 2da controls the combat modes? combatmodes.2da is rather unhelpful and I don't seem to be able to find a mode.2da...am I missing something here?
I mostly want to avoid using actual ncs/nss files for combat features because it tends to create a bottleneck in the script execution VM. Maybe if someone ports the .net JIT plugin to NWNX2 it might be more feasible, but as it is our script execution is heavy enough without offloading otherwise standard engine functions into scripts. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Oct 19, 2011 15:54 Post subject: |
|
|
Nope. Not possible to add combat-modes. Suppose you could add pseudo-modes with use-feat and a local-int. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Oct 19, 2011 15:58 Post subject: |
|
|
That's a pity.
Yeah sounds like that might be the way to go.
What calls resolveattackroll? |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Oct 19, 2011 16:05 Post subject: |
|
|
Thanks...you just ruined my productivity for my entire day.
...any chance you could decompile the linux server while you're at it? *Cough* |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Oct 19, 2011 16:16 Post subject: |
|
|
Nope, I sadly know close to nothing about linux. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Oct 19, 2011 16:19 Post subject: |
|
|
Ah well.
Question on reading this.
Is there an easy way to determine what these offsets/bytes do?
Or is it mostly just guess work? |
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Fri Oct 21, 2011 17:41 Post subject: |
|
|
Hijacking slightly.
Managed to hook favored enemy entirely.
I'd guess it'd be pretty easy to hook it so you can use local vars to determine if something is supposed to be a favored enemy or not. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Fri Oct 21, 2011 18:14 Post subject: |
|
|
Yep. Havent attempted it myself but I assume passing 1/0 should do. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Mon Oct 24, 2011 12:48 Post subject: |
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=1511
Added the SetPVPPlayerLikesMe event. I havent tested it though.
Added event to pause.
Fixed crashes with dev-crit and use-feat.
Added script functions to set/get first and last name on a creature.
Weapon of Choice fixed to read a localint woc_### of a creature instead. ### is the base-item-type and the int is the feat the game will check for. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
|
Back to top |
|
|
Nob
Joined: 16 Apr 2005 Posts: 21
|
Posted: Wed Oct 26, 2011 17:37 Post subject: |
|
|
Very impressive.
Question.
I've been trying to recode the ResolveAttackRoll function (got it hooked, been trying to engineer backwards from the source) but the server continually seems to segfault whenever calling a CNWSCreature or a CNWSObject call.
Also I noticed that in your internals the definitions for CNWSCreature and CNWSObject are substantially different than what's floating around in terms of source. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Oct 26, 2011 18:45 Post subject: |
|
|
TBH I havent really made any changes from what I borrowed from MaxRocks work in regards to the nwn internals. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Thu Oct 27, 2011 11:41 Post subject: |
|
|
With regards to the
Quote: |
Set/GetFirst/LastName and stuff.
|
Does this include players?
If often wondered if an in-game Deed-Poll system would work - allowing you to rename your character.
(Obviously a PW would need to script it to update the pwdata table and all other tables that used the old name) |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Thu Oct 27, 2011 11:43 Post subject: |
|
|
It does work for players. Floaty name won't update until they relog but everything else will. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
|