logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Yeah!!! NwnX2 with .NET
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Mon Dec 31, 2007 1:09    Post subject: Yeah!!! NwnX2 with .NET Reply with quote

Yea, it is not a joke!
I have created a plugin that calls a .NET Assembly (dll) and it works like a charm!

I made a package where you can test it quickly, if you have NwnX2 already set and working.

ftp://lod.redirectme.net:22/DotNetPlugin.zip

The package contains ERF, MOD and source of the plugin and the .NET Assembly, plus documentation (readme.txt contains more details).

I'll wait your observations about the plugin. ^^

Cesar
Back to top
View user's profile Send private message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Mon Dec 31, 2007 2:11    Post subject: Reply with quote

Found some fix and improvements to do:

* 30.12.2007: v1.1
- Bugfix: fixed the command string in the dotnetplugin_inc include
- Bugfix: was raising an error on calling methods with one parameter or more
- New: Added GetDate(Format) function to the Assembly
- New: Added a treatment for overloaded functions (different parameter counts are reccomended)


ftp://lod.redirectme.net:22/DotNetPlugin-v1.1.zip
Back to top
View user's profile Send private message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Tue Jan 01, 2008 21:31    Post subject: Update 1.3 Reply with quote

New update v1.3:

For who were not able to run the plugin, that's because your system has not Visual Studio C++ dependencies installed.

Then, I made a setup that will install all dependencies (but .Net Framework) and put all the files in the C:\NeverwinterNights\NWN\NWNX folder (if you choose default path). Also, a copy of ERF and MOD are saved in their respective folders, to easy starting.

download it here:
ftp://lod.redirectme.net:22/NWNXDotNetPluginSetup.zip


* 30.12.2007: v1.3
- New: TESTED! YOU CAN DEBUG the .DLL Assembly by attaching to the NwServer.exe.
To do this, you should use Visual Studio, go to Debug menu, Attach to Process.
Then select nwserver.exe and click Attach button
- New: added support to INI file, under session [DOTNET]
- added ServerVaultPath configuration
- New: added pre-built function to remove characters from servervault
- New: added prototypes for pre-built functions in the dotnetfunc_inc include file
- New: packed the files into a setup file
Back to top
View user's profile Send private message
kungfoowiz



Joined: 12 Oct 2006
Posts: 61

PostPosted: Wed Jan 02, 2008 8:52    Post subject: Reply with quote

Nice job bro - this could come in handy at some point, perhaps in NWNX4.
Where are source files installed? I can't seem to find them.
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Wed Jan 02, 2008 8:59    Post subject: Reply with quote

kungfoowiz wrote:
Nice job bro - this could come in handy at some point, perhaps in NWNX4.
Where are source files installed? I can't seem to find them.


Especially with NWNX4...
Instant access to the NWN2 toolset assemblies/classes.

Just waiting for the detours version of NWNX4 (to be the main dev branch)

Cheers
Gryphyn
Back to top
View user's profile Send private message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Tue Jan 08, 2008 4:23    Post subject: Reply with quote

^^ Thanks.

The source files are in the NWNX folder the setup creates. If you dont change the default install folder, the path is C:\NeverwinterNights\Nwn\NWNX.

Tell me if you still not found the files. There is source for the NwnX plugin, plus the .NET project.

ftp://lod.redirectme.net:22/NWNXDotNetPluginSetup.zip

[]s
Cesar
Back to top
View user's profile Send private message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Wed Apr 30, 2008 7:37    Post subject: Updated link Reply with quote

New link for the files:

http://lod.redirectme.net/NWNXDotNetPluginSetup.zip
Back to top
View user's profile Send private message
Enigmatic



Joined: 19 Jul 2008
Posts: 3
Location: Adelaide, South Australia

PostPosted: Sat Jul 19, 2008 15:31    Post subject: Reply with quote

Is there a version available for NWNX4 that works on NWN2?
Back to top
View user's profile Send private message Visit poster's website
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Tue Aug 19, 2008 19:57    Post subject: Reply with quote

Any news on getting this functionality ported to NWNX4? I could really use it!
Back to top
View user's profile Send private message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Thu Aug 21, 2008 1:23    Post subject: Reply with quote

http://nwnx.org/phpBB2/viewtopic.php?t=1191
Back to top
View user's profile Send private message
RamaDeveloper



Joined: 19 Mar 2009
Posts: 13
Location: UK

PostPosted: Thu Mar 19, 2009 4:06    Post subject: Why thank you ! - works a treat Reply with quote

Very nice work, I've just joined here to congratulate you on a fine idea nicely implemented !

(Hello to all, newbie developer here - looks around timidly at hooded figures in dark corners... ;^) - well, newbie here, been a professional coder of C for 20 years, started NWN just over a year ago.

I've added a 'Class' parameter to my DotNetExecute so the Execute.bas can switch on it and employ a range of c# classes in other dlls and it's working a treat ! - thanks a million Smile

I've been using NWNX2 for a while to get at my SQLServer and was always hankering for something like this.

I had been planning to use SQL/CLR integration to call DLLs within stored procedures but this is much better.

It's most opportune for me right now, I've pretty much completed the world and physics stuff for a PW I'm building (called Rama) and have 3700 or so commoner NPCs to write some AI for - now I can write it in c# !
_________________
Chris
Back to top
View user's profile Send private message Visit poster's website
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Sat Sep 15, 2012 12:13    Post subject: Woah Reply with quote

Been out for so long. Glad to see it is being useful to people. ^^
Back to top
View user's profile Send private message
Lea_Andersteen



Joined: 15 Sep 2012
Posts: 5

PostPosted: Sat Sep 15, 2012 23:57    Post subject: Reply with quote

Do u have the code somewhere? the downloadlink isnt ok Sad
Back to top
View user's profile Send private message
ronchese



Joined: 30 Dec 2007
Posts: 30

PostPosted: Sun Sep 16, 2012 0:53    Post subject: Reply with quote

Hello. Here is:

https://skydrive.live.com/redir?resid=DA0992CEC3A785CF!364&authkey=!ACNgJeVsyjRrN3o
Back to top
View user's profile Send private message
Lea_Andersteen



Joined: 15 Sep 2012
Posts: 5

PostPosted: Sun Sep 16, 2012 13:27    Post subject: Reply with quote

Thanks a lot Smile



Uploaded with ImageShack.us
I presume there is a problem and plugin misfunction?
In the log its loaded. I installed on an XP virtual machine dot net 2.0 sp2, visual c++ redistribuables and nwnx, using nwnx 2.0 launcher.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group