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 
 
NWNX Ruby
Goto page Previous  1, 2
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Hialmar



Joined: 15 Jun 2005
Posts: 32

PostPosted: Sun Mar 06, 2011 22:13    Post subject: Reply with quote

Are you using my version or the one in the trunk ?

My version doesn't work yet.
I have never managed to get it running right.
_________________
Hialmar, A Land Far Away Infrastructure Administrator
Back to top
View user's profile Send private message
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Sun Mar 06, 2011 23:10    Post subject: Reply with quote

Hialmar wrote:
Are you using my version or the one in the trunk ?

My version doesn't work yet.
I have never managed to get it running right.


I am using the one linked in the first thread of this post by Virusman
Back to top
View user's profile Send private message
Hialmar



Joined: 15 Jun 2005
Posts: 32

PostPosted: Sun Mar 06, 2011 23:20    Post subject: Reply with quote

It should be the good one then.

What version of ruby do you use it with ?

Edit: If you don't use a 1.9 ruby (which doesn't work with the current version of xp_ruby) you might need to add this at the beginning of your file:

Code:

$: << 'C:/directory_where_the_lib_is'


And the same for rubygems.
_________________
Hialmar, A Land Far Away Infrastructure Administrator


Last edited by Hialmar on Wed Jun 01, 2011 9:54; edited 1 time in total
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Mon Mar 07, 2011 17:46    Post subject: Reply with quote

You're right, the load path isn't being setup properly by the ruby plugin - appears to be a bug in ruby_init_loadpath(); with the library used to compile the nwnx plugin.

Using something like this (in a file called preload.rb) to set it up manually:

Code:
$:.concat [
  "C:/Ruby/lib/ruby/site_ruby/1.8",
  "C:/Ruby/lib/ruby/site_ruby/1.8/i386-msvcrt",
  "C:/Ruby/lib/ruby/site_ruby",
  "C:/Ruby/lib/ruby/1.8",
  "C:/Ruby/lib/ruby/1.8/i386-mingw32",
  "."
]

begin
  require 'rubygems'
  require 'nwn/all'

rescue Exception => e
  File.open("ruby_errors.txt", "w+") {|file|
    file.puts(e.to_s)
    file.puts(e.backtrace.join("\n"))
    exit(1)
  }
end

evaled on module load
Code:
NWNXRuby_Eval("eval IO.read('preload.rb')");

works.

(The load path is taken from ruby -e 'p $:', you should verify it matches your install).

The problem is actually in loading rubygems. Rubygems (as installed externally via rubyinstaller.org) depends on a native-code library providing the ruby threading model (specifically, thread.so). It fails to find it even though it's on the load path ($:).

Code:
The specified module could not be found - C:/Ruby/lib/ruby/1.8/i386-mingw32/thread.so   
C:/Ruby/lib/ruby/1.8/i386-mingw32/thread.so                                                     
C:/Ruby/lib/ruby/1.8/thread.rb:5                                                                 
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'                                       
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:11                                                   
(eval):13:in `require'                                                                           
(eval):13                                                                                       


I'm suspecting some sort of dll mismatch thing but I have very limited knowledge about win32 so I really have no clue why.
Back to top
View user's profile Send private message
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Mon Mar 07, 2011 17:56    Post subject: Reply with quote

I have been working with elven on this, he has been helping me try to set up xp_ruby with no luck.

Things are as he mentions above with two additional pieces of information.

When things are ran with the above load rb file nwnx server gives the following error:


"Unable to find msvcrt-ruby18.dll"

If I add this dll into the default atari folder, the server then simply crashes. (it found the dll and whatever is supposed to happen after causes the crash).

Precie error is:
Quote:
Program: C:\Program Files\Atari|Neverwinter Nights 2\nwn2server.exe

This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information.


You may have also noticed elven added an error output file, here are its contents:
Code:

no such file to load -- rubygems
(eval):13:in `require'
(eval):13


Last edited by Dethia on Tue Mar 08, 2011 1:28; edited 1 time in total
Back to top
View user's profile Send private message
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Tue Mar 08, 2011 0:33    Post subject: Reply with quote

Through elven I got some information from Virusman on possibly missing some dependency files (?)

I ran dependency walker on the msvcrt-ruby18.dll and am missing 2 dll files

wer.dll
ieshims.dll

i will try to get those two but this stuff is really above my head so if anyone is actually using nwnx_ruby on their server and wouldn't mind writing a set-up guide I'd appreciate it. It'd be a shame if this tool works and no one is using it.

--Well I used dependency walker to find all missing dll's and have now added them, sadly the problem persists. The main issue is I do not know how to point xp_ruby to its main dir from w

--Oh the crash report for nwn2 is as follows:
Code:
Error occurred at 3/7/2011 18:08:42.
C:\Program Files\Atari\Neverwinter Nights 2\nwn2server.exe, run by armen.
C:\Program Files\Atari\Neverwinter Nights 2\nwn2server.exe caused an Access Violation exception in module msvcrt-ruby18.dll at 001b:66bf79af.
Read from location 00000000 caused an access violation.

System Info:
2 processor(s), type 586.
1 % Memory Load.
2047 MBytes physical memory.
983 MBytes available memory.
2048 MBytes total virtual memory.
1875 MBytes available virtual memory
3939 MBytes total page file.
2504 MBytes available page file

Application debug messages:
Version: 1.023 (1765) (Final) Aug 17 2009 - 17:40:34
Application Stage: Application Main Loop Frame 124 Uptime: 3.787635 
Command Line:  -moduledir "AGOT"

Registers:
EAX=00000000 CS=001b EIP=66bf79af EFLGS=00010206
EBX=00000000 SS=0023 ESP=0012d850 EBP=0012d868
ECX=70b440f9 DS=0023 ESI=70b440f9 FS=003b
EDX=00000000 ES=0023 EDI=70b440f9 GS=0000

Bytes at CS:EIP:
8b 02 89 3c 24 ff 50 04 8b 4d 08 31 d2 89 c6 f7 71 04 8b 41 0c 8b 1c 90 85 db 74 65 39 33 74 6b

Stack dump:
0012d850: 7c91005d 7c801bea 00190000 00000000 70b440f9 70b440f9 0012d898 66bd06b6
0012d870: 00000000 70b440f9 0012d888 7ffdfc00 0000bf0b 0012d7f8 001946a0 00000000
0012d890: 70b41200 07368f20 0012d8c8 66b8af96 70b440f9 70b40000 0012d8c8 66b8b2e1
0012d8b0: 00000000 00000001 00000000 70b42390 70b40000 07368f20 0012d8e8 70b423d1
0012d8d0: 00000000 70b440f9 70b41200 00000000 0012dd1c 0012d8f0 0012dd1c 016b56f8
0012d8f0: 74696e49 7268745f 00646165 07368f20 4c0f40f1 016b5661 073d1538 00000000
0012d910: 00000000 07368fd8 522f3a43 2f796275 2f62696c 79627572 382e312f 3833692f
0012d930: 696d2d36 3377676e 68742f32 64616572 006f732e 00000764 00000000 0012d968
0012d950: 0000856a 0012d968 71ab6669 00000244 0012dc70 0012dc6c 0012dc2c 71abb888
0012d970: 71ab484a 05fcccf8 00000001 00000244 00000000 00000000 00000000 01097170
0012d990: 00000000 00000000 00002736 00000000 00000000 00000000 00000000 00000000
0012d9b0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012d9d0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012d9f0: 00000000 00000000 00000000 00000000 00000000 0012da14 00000000 7c9100b8
0012da10: 001a2b38 0012dae0 7c910041 00191378 0012da54 01070000 7c910222 00000007
0012da30: 010707d8 01070000 00000000 0012da70 01070000 7c910222 00000003 01070718
0012da50: 01070000 00000000 0012da48 00000003 0012dc8c 7c90e920 7c910228 ffffffff
0012da70: 00000fa0 7c911086 7c9101db 00000010 00000000 00000010 0012da78 7c9101db
0012da90: 0012dcbc 7c90e920 7c910228 ffffffff 00000fa0 7c911086 7c9101db 0000002d
0012dab0: 00000000 0000002d ffffffff 01070228 0001d0ba 00000045 0012da24 80100080
0012dad0: 0012dc20 7c90e920 010701a8 ffffffff 00000000 7c90ff2d 0012db58 010701f8
0012daf0: 00000000 07368f58 06a00000 01070210 00000018 00000000 01860000 00000042
0012db10: 07368fd8 06a00000 00000000 01860000 00000000 07368f88 06a00000 01860000
0012db30: 7ffdfc00 07368f70 01860000 07368f50 00000000 06a00000 00000000 001a2b40
0012db50: 00000000 00000000 07368fd0 0000000c 00000244 00000002 7c810f63 07368f80
0012db70: 00000000 00000002 00000008 07368f68 00000001 00000020 07368fb8 00000008
0012db90: 0012dc78 78164625 0000005d 0000000e 00000002 01070228 010701c0 0000000c
0012dbb0: 00000000 00000008 00000002 01070210 010701a8 00000001 81000000 01070228
0012dbd0: 00000001 010701f8 010701f8 00000040 0012dc30 01070210 00000002 02c466b4
0012dbf0: 00000006 00000002 00000fa0 7814eca7 00000008 010701c0 00000000 00000002
0012dc10: 781c4828 00000013 01070210 00000007 00000009 20000000 01070228 02c466b4
0012dc30: 7814e90a 010701f8 00000003 0107015c 00000200 00000000 07368f18 00000003
0012dc50: 07368f20 07368fb8 0107015c 00000000 00000000 07368fb8 00000018 07368fc0
0012dc70: 00010000 010701c0 00000018 00000018 01070000 0012da7c 0107015c 0012f990
0012dc90: 7c90e920 7c9101e0 ffffffff 7c9101db 78134d83 01070000 00000000 00000010
0012dcb0: 00000010 01383118 0012dcd4 016b293e 0177f380 01692591 00000005 01383118
0012dcd0: b8095729 0012dcec 016a2246 00000010 0000002c 07368f89 07368f20 0012dd20
0012dcf0: 01692862 01383118 07368f89 07368f88 07368f89 07368f20 0000002c 0000002d
0012dd10: 073d1538 00000000 6f9fe8a5 0012ddc0 01678b8a 07368f20 07368f20 01679850
0012dd30: 013587ec 00000003 0012ddc0 00000003 00000004 00000000 0012dd18 01678aed
0012dd50: 0012f990 0012f9ac 56433230 00000000 00000000 01070178 0012dd78 01734618
0012dd70: 01070178 01070518 0012dedc 0012df0c 00000000 00000004 073d1920 00000000
0012dd90: 0012e578 00000000 073d17a4 000023f1 00000001 00000000 00000004 00000000
0012ddb0: 073d1588 07368f58 073d1538 00000004 0012ddd0 01679862 073d17cc 00000000
0012ddd0: 0012dde8 016692e3 013587ec 073d1740 013587ec 00000000 0012df50 01677758
0012ddf0: 01679850 000023f1 01359ae8 00000002 ffffffff 00000001 05fcccf8 00000000
0012de10: 00001000 0012de2c 00000000 00000740 0012de58 7ffdf000 0012de38 00000000
0012de30: 7c9100b8 072f3f90 0012df04 7c910041 01070748 000081a4 0012dce8 0019c954
0012de50: 0012dea8 71a77228 71a571c0 ffffffff 71a571bd 71a56e16 00000244 00000001
0012de70: 0012deb8 71a56039 00000244 71a561e8 01091ed8 01096640 01097de0 0012de9c
0012de90: 00000000 0177f380 00199fe0 00000000 0012de80 00000020 0012e434 71a77228
0012deb0: 71a561f0 ffffffff 71a561e8 71ab671f 00000244 0000ffff 71ab3ce8 01096648
0012ded0: 71aba319 01091ef0 00000000 013587ec 00000001 00000000 000023f1 01359ae8
0012def0: 0012e5e0 00000000 073d17a4 00000000 00000000 000008f4 78134c39 00000000
0012df10: 0012e60c 78134c58 4c1d9fa1 00000000 00000000 0012df90 00000001 ffffffff
0012df30: 00000000 00000000 0012df18 00000000 00000000 78138ced 00000004 6f9feae9
0012df50: 0012df8c 0167808e 01359ae8 013587ec 000023f1 000023f1 00000001 0012dfb0
0012df70: 0134aed0 00000002 00000001 00000000 00000001 073d17b8 0134aed0 0012e55c
0012df90: 01672a70 013587d8 013587ec 000023f1 00000001 0012dfb0 00000001 013587ec
0012dfb0: 073d1740 073d17a4 0167293e 013587ec 073d177c 00000000 00000000 00000003
0012dfd0: 0012e0d4 00000000 0112e0de 0012e098 4300001e 00000000 00000000 7ffdfc3c
0012dff0: 7c910435 7c91043e 0000bf0b 0012df70 0012e31c 0012e2b0 7c90e920 0012e344
0012e010: 00000008 0012e2c0 7c914222 001a2b48 0012e098 7c910460 7c980600 7c9142e7
0012e030: 7c9142af 00000000 7ffdfc00 00000000 00000002 00000022 0012e364 0012e2f8
0012e050: 00000000 000a0008 7c91407c 0000021a 00000000 001a2b48 0012e0e0 7c910460
0012e070: 0000003c 00000000 7c9142af 00000000 003e003c 7ffdfc00 00000764 00000002
0012e090: 001a2b40 01000000 003a0043 0052005c 00620075 005c0079 0069006c 005c0062
0012e0b0: 00750072 00790062 0031005c 0038002e 0074005c 00720068 00610065 002e0064
0012e0d0: 00620072 00000000 00000000 7ffdf000 0012e140 7c80262a 0012e0fc 7c802600
0012e0f0: 00000000 01091e90 0000ffff 00000014 00000001 00000000 00000000 00000010
0012e110: 00000000 00000000 7ffd6000 7ffdf000 0012e110 00000102 0012e0f0 00000000
0012e130: 0012e434 7c839ad8 7c802608 ffffffff 7c802600 7c802542 00000764 00000000
0012e150: 00000000 0012e164 71ab2623 00000764 00000000 0012e180 0000856a 0012e180
0012e170: 71ab6669 00000244 0012e488 0012e484 0012e444 71abb888 71ab484a 05fcccf8
0012e190: 00000001 00000244 00000000 00000000 00000000 01097170 00000000 00000000
0012e1b0: 00002736 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012e1d0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012e1f0: 00000000 00000000 00000000 00000000 00000000 00000000 0012e218 00000000
0012e210: 0012e244 01070000 7c910222 00000003 01070718 01070000 00000000 0012e21c
0012e230: 00000000 073689e8 01070178 000000c3 0012e470 7c911028 7c911086 7c9101db
0012e250: 00000010 00000000 00000010 0012e24c 00000000 073689d0 01070178 000000c6
0012e270: 0012e4a0 7c911028 7c911086 7c9101db 00000020 00000000 00000020 00000000
0012e290: 00000000 00000000 00000000 00000000 7c912ebb 0000bf0b 0012df88 00000002
0012e2b0: 0012e424 0012df88 0012e474 000000c8 00000080 00000000 00000000 0012e2e6
0012e2d0: 0012e2e4 00000003 7c90e920 0012df8c 00000001 00010000 012b003d 016201d6
0012e2f0: 0197019f 01c901c9 00000000 7c801a28 0012e47c 00000018 00000000 073689d8
0012e310: 00000042 00000000 06a00000 00000000 00000000 00000000 0000000c 073689e8
0012e330: 7c900101 7ffdfc00 0000003c 073689b0 00000001 00000000 001a2b40 073d177c
0012e350: 001a2b40 01070000 072dd680 00000000 0012e60c 01070178 0012e434 7c910981
0012e370: 01070608 7c91005d 00000000 072dd688 00000000 01860000 072dd680 072dd680
0012e390: 01070178 0012e47c 072dd688 072dd688 00000244 00000000 01070178 00000000
0012e3b0: 073689d8 00000000 072dd680 00000002 01070178 000000c3 00000244 07368988
0012e3d0: 01070178 00000000 00000080 00000001 072dd688 0012e434 78164b75 7814ecdf
0012e3f0: 02c466b4 000000c6 0000005d 01070000 4c1da4c5 073689d8 01733a61 00000000
0012e410: 00000fa0 7814eca7 7814ecaf 4c1da4b9 00000000 00000740 781c4828 7c90cffa
0012e430: 00000000 0000005d 781c4828 7814e812 7814ecdf 02c466b4 00000000 00000000
0012e450: 00000000 4c1da475 00000000 05fcccf8 00000000 05fcccf8 00000000 0012e454
0012e470: 0012e4cc 0012e4cc 78138ced 34141151 fffffffe 7814e901 781422d6 0000005d
0012e490: 05fcccf8 05fcccf8 05fcccf8 7813e5b5 05fccd18 78142376 05fcccf8 7814234a
0012e4b0: 4c1da42d 05fcccf8 0000005d 00000244 00000000 0012e4b0 78138ced 0012f990
0012e4d0: 78138ced 341410d1 fffffffe 7814234a 016b4afa 0012dfb0 00000000 00000001
0012e4f0: 00000000 00000000 0012e514 016aa41b 05fcccf8 0000005d 0000005d 07368960
0012e510: 7814234a 0012e52c 016aa528 0000005d 01725031 073d190c 07368908 0012e550
0012e530: 01665fe9 01665ff1 00000001 00000004 073d17a4 00000001 016b9c0c 6f9fd0e9
0012e550: 0012e560 0166601e 6f9fd0e5 0012e64c 01678723 013587ec 073d177c 00000072
0012e570: 00000000 00000000 0012e64c 00000000 00000001 00000000 0012e560 01678633
0012e590: 0012f990 0012f9ac 56433230 00000000 00000000 00000000 07368940 00000018
0012e5b0: 07368948 00000000 0012e5e0 0012e60c 00000000 00000004 073d1920 00000000
0012e5d0: 0012e668 00000000 073d1920 073d1934 013587ec 00000000 00000000 00000000
0012e5f0: 00000000 0012e80c 00000000 01333f50 00000000 00000000 000008f3 00000000
0012e610: 0012e83c 00000001 01359b74 016a21b8 00000010 00000000 00000000 00000000
0012e630: 00000000 013498f0 01333f50 00000000 01334180 013587ec 00000000 0012e6f0
0012e650: 01678bac 073d1934 00000000 01679850 013587ec 00000003 0012e6f0 00000003
0012e670: 00000004 00000000 0012e648 01678aed 0012f990 0012f9ac 56433230 00000000
0012e690: 0012f990 0012f9ac 56433230 00000000 00000001 01070178 0012e80c 0012e83c
0012e6b0: 00000000 00000004 01334180 00000000 0012eeb8 00000000 01333f50 000023f1
0012e6d0: 00000001 00000000 00000004 000023f1 073d1984 07368930 073d1934 00000004
0012e6f0: 0012e700 01679862 01333f78 00000000 0012e718 016692e3 013587ec 073d3c84
0012e710: 013587ec 00000000 0012e880 01677758 01679850 000023f1 01359ae8 00000002
0012e730: 01679850 000023f1 01359ae8 0167778e 01070178 00000001 05fcccf8 00000000
0012e750: 00001000 0012e76c 00000000 01070178 0012e798 7ffdf000 0012e778 00000000
0012e770: 7c9100b8 072f3f90 0012e844 7c910041 01070748 000081a4 0012e628 0019ca74
0012e790: 0012e7e8 71a77228 71a571c0 ffffffff 71a571bd 71a56e16 0000023c 00000001
0012e7b0: 0012e7f8 71a56039 0000023c 71a561e8 01091ed8 01096640 01097de0 01070178
0012e7d0: 00000000 0177f380 00199fe0 00000000 0012e7c0 00000020 0012ed74 71a77228
0012e7f0: 71a561f0 ffffffff 71a561e8 71ab671f 0000023c 0000ffff 71ab3ce8 013587ec
0012e810: 00000001 000023f1 000023f1 01359ae8 0012ef20 00000000 01333f50 00000000
0012e830: 00000000 000008f2 01333ff0 00000000 0012ef4c 000008e7 78134c39 00000000
0012e850: 00000000 78134c58 00000001 ffffffff 00000000 00000000 00000001 ffffffff
0012e870: 00000000 00000000 00000004 6f9fdd39 0012e8bc 0167808e 01359ae8 013587ec
0012e890: 000023f1 000023f1 00000001 0012e8e0 0134aed0 00000002 00000001 00000000
0012e8b0: 00000001 01333f64 0134aed0 0012ee9c 01672a70 013587d8 013587ec 000023f1
0012e8d0: 00000001 0012e8e0 00000001 013587ec 073d3c84 0012e8f0 01333f50 0167293e
0012e8f0: 073d3e64 01333ff0 0167293e 013587ec 01333fc8 00000000 0000f925 073d4b0c
0012e910: 00000000 0000f919 0000f319 0000f401 073d4ecc 00000000 0000f5b9 073d5ebc
0012e930: 0000f8c9 073d5ed0 0000f8d1 00000000 00000000 0000f481 073d5ef8 00000000
0012e950: 073d5f70 073d5fe8 073d5fe8 00000000 0000f8d1 073d5fe8 073d5f98 0000f8d1
0012e970: 7c9142af 00000000 7ffdfc00 00000000 00000002 0000002e 0012eca4 0012ec38
0012e990: 00000000 000a0008 7c91407c 0000021a 00000000 001a2b48 0012ea20 7c910460
0012e9b0: 00000054 00000000 7c9142af 00000000 00560054 7ffdfc00 00000764 00000002
0012e9d0: 001a2b40 01000000 003a0043 0052005c 00620075 005c0079 0069006c 005c0062
0012e9f0: 00750072 00790062 0073005c 00740069 005f0065 00750072 00790062 0031005c
0012ea10: 0038002e 0072005c 00000000 7ffdf000 0012ea80 7c80262a 0012ea3c 7c802600
0012ea30: 00000000 01091e90 0000ffff 00000014 00000001 00000000 00000000 00000010
0012ea50: 00000000 00000000 7ffd6000 7ffdf000 0012ea50 00000102 0012ea30 00000000
0012ea70: 0012ed74 7c839ad8 7c802608 ffffffff 7c802600 7c802542 00000764 00000000
0012ea90: 00000000 0012eaa4 71ab2623 00000764 00000000 0012eac0 0000856a 0012eac0
0012eab0: 71ab6669 0000023c 0012edc8 0012edc4 0012ed84 71abb888 71ab484a 05fcccf8
0012ead0: 00000001 0000023c 00000000 00000000 00000000 01097170 00000000 00000000
0012eaf0: 00002736 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012eb10: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0012eb30: 00000000 00000000 00000000 00000000 00000000 00000000 0012eb7c 01070000
0012eb50: 0012eb84 01070000 7c910222 00000003 01070718 01070000 00000000 0012eb5c
0012eb70: 7c90e920 0012eda0 7c90e920 7c910228 ffffffff 00000fa0 7c911086 7c9101db
0012eb90: 00000010 00000000 00000010 0012eb8c 0000000f 0012edd0 7c90e920 7c910228
0012ebb0: ffffffff 00000fa0 7c911086 7c9101db 0000002c 00000000 0000002c 00000000
0012ebd0: 00000000 00000000 00000000 00000000 7c912ebb 0000bf0b 0012e8c8 00000002
0012ebf0: 01070190 0012e8c8 0012edb4 000000c8 00000080 00000000 00000000 0012ec26
0012ec10: 0012ec24 00000003 00000000 0012e8cc 00000001 00010000 012b003d 015801d6
0012ec30: 029d0210 014d01dd 011f01fc 034401c9 03720361 01a1032f 02de026f 02de02c7
0012ec50: 032202d4 01d6032f 017900ce 02c1023f 03440317 03720361 016201d6 0197019f
0012ec70: 028501c9 032f02e9 00000054 00000000 00000001 00000000 001a2b40 01333fc8
0012ec90: 001a2b40 01070000 072daf98 00000000 0012ef4c 01070178 0012ed74 7c910981
0012ecb0: 01070608 7c91005d 00000000 072dafa0 00000000 01860000 010701e8 072daf98
0012ecd0: 01070178 0012edbc 072dafa0 0000005d 010701e8 00000000 01070178 01070220
0012ecf0: 072dd680 00000000 00000001 00000002 00000000 00000003 00000002 00000020
0012ed10: 072dd688 00000000 00000080 00000001 06d72ed8 0012ed74 06080318 07176170
0012ed30: 02c466b4 0000000e 060bace0 01070000 4c1dad85 00000003 01070220 00000000
0012ed50: 00000fa0 7814eca7 7814ecaf 4c1dad79 00000000 00000740 781c4828 7c90cffa
0012ed70: 00000000 0000005d 781c4828 7814e812 7814ecdf 02c466b4 7814e90a 00000000
0012ed90: 00000000 4c1dad35 00000000 05fcccf8 00000000 05fcccf8 00000000 0012ed94
0012edb0: 0012ee0c 0012ee0c 78138ced 34141151 fffffffe 7814e901 781422d6 0000005d
0012edd0: 05fcccf8 05fcccf8 05fcccf8 7813e5b5 05fccd18 78142376 05fcccf8 7814234a
0012edf0: 4c1daeed 05fcccf8 0000005d 0000023c 00000000 0012edf0 78138ced 0012f990
0012ee10: 78138ced 341410d1 fffffffe 7814234a 016b4afa 0012e8e0 00000000 00000001
0012ee30: 01333e9c 00000000 0012ee54 016aa41b 05fcccf8 0000005d 0000005d 072f3f00
0012ee50: 7814234a 0012ee6c 016aa528 0000005d 01725031 0133416c 07307e98 0012ee90
0012ee70: 01665fe9 01665ff1 00000001 00000002 01333f50 00000001 016b9c0c 6f9fdb29
0012ee90: 0012eea0 0166601e 6f9fdb25 0012ef8c 01678723 013587ec 01333fc8 00000072
0012eeb0: 00000000 00000000 0012ef8c 00000000 00000001 00000000 0012eea0 01678633
0012eed0: 0012f990 0012f9ac 56433230 00000000 00000000 00000000 060d1980 00000018
0012eef0: 060d1988 00000000 0012ef20 0012ef4c 00000000 00000004 01334180 00000000
0012ef10: 0012efa8 00000000 01334180 01334194 013587ec 00000000 00000000 00000000
0012ef30: 00000000 0012f14c 00000000 01334388 00000000 00000000 000008e6 00000000
0012ef50: 0012f17c 00000000 01359b74 016a21b8 00000010 00000000 00000000 00000000
0012ef70: 00000000 013498f0 01334388 00000000 01359b88 013587ec 00000000 0012f030
0012ef90: 01678bac 01334194 00000000 01679850 013587ec 00000003 0012f030 00000003
0012efb0: 00000004 00000000 0012ef88 01678aed 0012f990 0012f9ac 56433230 00000000
0012efd0: 000000b5 00000fa0 00000048 7814ecaf 0000000f 00000000 0012f14c 0012f17c
0012eff0: 00000000 00000004 01359b88 00000000 0012f80c 00000000 01334388 000023f1
0012f010: 00000000 00000000 00000004 7c90e920 013341e4 06ced218 01334194 00000004
0012f030: 0012f040 01679862 013343b0 00000000 0012f058 016692e3 013587ec 01334360
0012f050: 013587ec 00000000 0012f1c0 01677758 01679850 000023f1 01359ae8 00000002
0012f070: 016a2125 0000f2b1 00000002 01365fe8 0135554c 00000001 0012f0a8 0166c63c
0012f090: 0000f2b1 0000f2b1 00000002 0166c650 0135554c 00000004 0012f0bc 07173fa8
0012f0b0: 0135554c 07353340 00000002 0012f0d8 0012f0d0 00000000 7c9100b8 05f91568
0012f0d0: 0012f19c 7c910041 01070748 7c91005d 00000000 05f91570 0012f228 0731ded8
0012f0f0: 00000000 00000000 00000000 0731ded8 00000018 0731dee0 00000020 01070190
0012f110: 00000018 00000198 01070000 0012ef14 01070000 0012f990 7c90e920 7c9101e0
0012f130: ffffffff 7c9101db 78134d83 00000020 00000000 00000009 00000009 013587ec
0012f150: 00000001 000023f1 000023f1 01359ae8 01770ba0 00000000 01334388 00000000
0012f170: 00000000 000008e5 00000072 00000000 01770b90 0012f19c 016a1bf4 000023f1
0012f190: 00000000 01359ae8 00000001 ffffffff 01666f0c 000023f1 000023f1 0012f1b4
0012f1b0: 00000000 0134aebc 00000004 6f9fc479 0012f1fc 0167808e 01359ae8 013587ec
0012f1d0: 000023f1 000023f1 00000001 0012f220 0134aed0 00000002 00000001 00000000
0012f1f0: 00000001 00000002 0134aed0 0012f7c4 01672a70 01359ae8 013587ec 000023f1
0012f210: 00000001 0012f220 00000001 013587ec 01334360 00000000 01334374 013587ec
0012f230: 013343c4 00000000 0133439c 6f9fc7f9 0012f27c 0167808e 01355dbc 0135554c
0012f250: 0000014d 0000014d 00000002 0012f2a0 013557e0 00000000 00000002 00000000
0012f270: 00000002 0133443c 013557e0 0012f850 0167260e 01355dbc 0135554c 0000014d
0012f290: 00000002 0012f2a0 00000000 013587ec 00f2b10e 00000002 01334464 0167247f
0012f2b0: 00000000 01334414 016744a1 0133443c 0000f2b1 01070000 0000306f 0733afe0
0012f2d0: 0012f500 7c911d65 0012f30c 01070000 7c910222 00000010 01070988 01070000
0012f2f0: 05deea30 0012f328 01070000 7c910222 00000010 01070988 01070000 05deea30
0012f310: 0012f300 7c9101db 0012f544 7c90e920 7c910228 ffffffff 7c910222 7c91019b
0012f330: 7c9101db 00000075 00000000 00000075 7c91019b 7c9101db 00000000 0012f88c
0012f350: 0012f864 00190000 001a2b40 7c910435 7c91043e 0012f6d0 00020024 0012f4bc
0012f370: 00000002 7c914388 7ffd6000 7c901000 0012f364 00000000 0012f434 7c90e920
0012f390: 7c910460 7c980600 7c914049 7c91403c 00000208 0012f774 0012f74c 000000c8
0012f3b0: 01070000 05deea30 0012f3a8 073851d8 0012f4c6 7c90e920 00000064 00000002
0012f3d0: 00ca00c8 7ffdfc00 00000000 7c91a2a3 7ffdfc00 00000000 020800c8 00000045
0012f3f0: 4312f424 000000c8 00000000 00000003 0012f590 00000000 01deea30 0012f4c8
0012f410: 43070000 00000000 00000000 7ffdfcc8 7c910435 7c91043e 0000bf0b 0012f3a0
0012f430: 0012f74c 0012f6e0 7c90e920 0012f774 0000b000 06a00000 7c91a4d5 ffffffff
0012f450: 0012f4bc 0012f46c 7c91a45e 073087d0 01070000 06a00000 7c90cf7a 7c91a2a3
0012f470: 01070000 072f1ff0 00000402 0012f4a0 7c9118c0 01070000 072f1ff0 01070000
0012f490: 072f1ff0 01070007 06a00000 0012f4d0 01070000 7c910222 00000049 01071438
0012f4b0: 01070000 05dffdc0 0012f4a8 01070000 0012f6ec 7c90e920 7c910228 ffffffff
0012f4d0: 7c910222 7c91019b 7c9101db 0000023f 00000000 0000023f 00000000 0000170d
0012f4f0: 00690074 0067006e 005c0073 00720061 0065006d 005c006e 0079004d 00440020
0012f510: 0012f544 01070000 7c910222 00000005 01070778 01070000 07308eb0 0012f560
0012f530: 01070000 7c910222 0000001a 01070b68 0012f220 00000002 0012f538 0012f220
0012f550: 0012f70c 000000c8 00000080 00000000 00000000 0012f57e 0012f57c 00000003
0012f570: 01070000 0012f224 00000001 00010000 012b003d 0197019f 7c9101c9 ffffffff
0012f590: 7c910222 7c91019b 7c9101db 00000023 00000000 00000023 7c9101db 0000001f
0012f5b0: 00000000 01334374 01070778 01070000 07308e60 00000000 01770b90 0012f2ac
0012f5d0: 00000002 7c910228 0012f2ac 0012f798 000000c8 00000080 00000000 00000000
0012f5f0: 0012f60a 0012f608 0012f62c 01070000 7c910222 00000004 01070748 00000000
0012f610: 05f91a60 0012f604 00000000 0012f848 7c90e920 7c910228 ffffffff 7c910222
0012f630: 7c91019b 7c9101db 00000013 00000000 00000013 00000001 00000000 00000000
0012f650: 00000000 00000001 01860000 07308e38 06a00000 01860000 00000000 01770b90
0012f670: 7c910222 00000003 01070718 01070000 00000000 0012f6b8 01070000 7c910222
0012f690: 00000006 010707a8 01070000 05f70ed0 0012f690 7c9101db 00000000 7c90e920
0012f6b0: 7c910228 00000000 00000000 7c91019b 7c9101db 00000025 00000000 00000025
0012f6d0: 7c910222 00000005 01070778 01070000 00000000 0012f6d4 00000000 0012f918
0012f6f0: 00000002 7c910228 ffffffff 00000fa0 7c911086 7c9101db 00000020 00000000
0012f710: 00000020 7c91019b 7c9101db 00000020 00000000 00000020 7c90e920 7c910228
0012f730: ffffffff 7c910222 7c91019b 7c9101db 00000020 00000000 00000020 0012f220
0012f750: 00000000 00000001 00000000 016a1bf4 06d98ff9 00000000 00000000 06d98ff9
0012f770: 0012f78c 01692819 44e9a626 06d98ff9 0012f788 00000000 06d98ff8 6f9fc229
0012f790: 0012f7ac 01664e94 00000000 00000000 00000000 00000004 01334388 0012f7bc
0012f7b0: 01664f8e 06d98ff9 00000000 0012f8b0 6f9fc27d 0012f8b0 01674aab 013587ec
0012f7d0: 01334374 00000012 00000000 03455d80 003a22e4 00000000 016a1bf4 06d98ff9
0012f7f0: 0012f2a0 00000004 00000002 0012f818 01692819 44e9a626 06d98ff9 0012f8b0
0012f810: 00000000 06d98ff9 00000004 0012f7c8 016749e2 0012f990 0012f9ac 56433230
0012f830: 00000000 00000020 0000f848 01070000 0012f638 00000000 0012f990 01770ba0

Module list: names, addresses, sizes, time stamps and file times:
C:\Program Files\Atari\Neverwinter Nights 2\NWN2_MemoryMgr_amdxp.dll, loaded at 0x003a0000 - 69632 bytes - 4a89f7ec - file date is 8/17/2009 16:38:04
C:\Program Files\Atari\Neverwinter Nights 2\nwn2server.exe, loaded at 0x00400000 - 4636672 bytes - 4a89f991 - file date is 8/17/2009 16:45:14
C:\WINDOWS\system32\d3dx9_30.dll, loaded at 0x00890000 - 2388176 bytes - 442d83c4 - file date is 3/31/2006 12:40:58
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_chat.dll, loaded at 0x012a0000 - 212992 bytes - 49ecee39 - file date is 4/21/2009 01:50:50
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_mysql.dll, loaded at 0x013e0000 - 1572864 bytes - 491f528b - file date is 11/16/2008 01:51:58
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_pickpocket.dll, loaded at 0x015e0000 - 208896 bytes - 4d600005 - file date is 2/19/2011 12:39:26
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_ruby.dll, loaded at 0x01640000 - 1327104 bytes - 4b3ea452 - file date is 1/2/2010 04:41:40
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_sqlite.dll, loaded at 0x017b0000 - 503808 bytes - 491f52b3 - file date is 11/16/2008 01:52:36
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\xp_time.dll, loaded at 0x01a80000 - 200704 bytes - 48e88998 - file date is 9/28/2009 14:31:32
C:\Program Files\Atari\Neverwinter Nights 2\dbghelp.dll, loaded at 0x03000000 - 1038848 bytes - 42b8d254 - file date is 10/18/2008 00:43:42
C:\Documents and Settings\armen\My Documents\Games\NWN\nwnx4\NWNX4_Hook.dll, loaded at 0x10000000 - 217088 bytes - 4b3ea778 - file date is 1/2/2010 04:55:06
C:\Program Files\Atari\Neverwinter Nights 2\mss32.dll, loaded at 0x21100000 - 374272 bytes - 41ba9530 - file date is 10/18/2008 00:43:10
C:\Program Files\Atari\Neverwinter Nights 2\miles\msseax.m3d, loaded at 0x22300000 - 143872 bytes - 41ba956a - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\msssoft.m3d, loaded at 0x22400000 - 79360 bytes - 41ba9568 - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\mssdx7.m3d, loaded at 0x22600000 - 65536 bytes - 41ba956d - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\mssrsx.m3d, loaded at 0x22700000 - 430592 bytes - 41c8cbd5 - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\mssdsp.flt, loaded at 0x24100000 - 113664 bytes - 41ba9533 - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\mssvoice.asi, loaded at 0x26400000 - 214528 bytes - 41ba95b4 - file date is 10/18/2008 00:43:16
C:\Program Files\Atari\Neverwinter Nights 2\miles\mssmp3.asi, loaded at 0x26f00000 - 149504 bytes - 41ba9567 - file date is 10/18/2008 00:43:16
C:\WINDOWS\system32\d3d9.dll, loaded at 0x4fdd0000 - 1689088 bytes - 4802a0a9 - file date is 4/13/2008 19:11:52
C:\Program Files\Atari\Neverwinter Nights 2\granny2.dll, loaded at 0x50000000 - 441399 bytes - 437d26c3 - file date is 10/18/2008 00:43:08
C:\WINDOWS\system32\uxtheme.dll, loaded at 0x5ad70000 - 218624 bytes - 4802a11e - file date is 4/13/2008 19:12:08
C:\WINDOWS\system32\comctl32.dll, loaded at 0x5d090000 - 617472 bytes - 4802a0c8 - file date is 4/13/2008 19:11:52
C:\WINDOWS\system32\LPK.DLL, loaded at 0x629c0000 - 22016 bytes - 4802a0e5 - file date is 4/13/2008 19:11:56
C:\Program Files\Alwil Software\Avast5\snxhk.dll, loaded at 0x64d00000 - 189728 bytes - 4d2eba99 - file date is 1/13/2011 03:47:36
C:\WINDOWS\system32\hnetcfg.dll, loaded at 0x662b0000 - 344064 bytes - 4802a0ca - file date is 4/13/2008 19:11:54
C:\Program Files\Atari\Neverwinter Nights 2\msvcrt-ruby18.dll, loaded at 0x66b80000 - 841728 bytes - 4c0c37ac - file date is 6/6/2010 20:05:00
C:\WINDOWS\system32\d3d8thk.dll, loaded at 0x6d990000 - 8192 bytes - 4802a0a8 - file date is 4/13/2008 19:11:52
C:\Ruby\lib\ruby\1.8\i386-mingw32\thread.so, loaded at 0x70b40000 - 17920 bytes - 4c0c383e - file date is 6/6/2010 20:07:26
C:\WINDOWS\System32\mswsock.dll, loaded at 0x71a50000 - 245248 bytes - 485bed11 - file date is 6/20/2008 12:46:58
C:\WINDOWS\System32\wshtcpip.dll, loaded at 0x71a90000 - 19456 bytes - 4802a16e - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\WS2HELP.dll, loaded at 0x71aa0000 - 19968 bytes - 4802a164 - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\WS2_32.dll, loaded at 0x71ab0000 - 82432 bytes - 4802a163 - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\WSOCK32.dll, loaded at 0x71ad0000 - 22528 bytes - 4802a170 - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\msacm32.drv, loaded at 0x72d10000 - 20480 bytes - 3b7dfe2a - file date is 8/4/2004 07:00:00
C:\WINDOWS\system32\wdmaud.drv, loaded at 0x72d20000 - 23552 bytes - 4802a12c - file date is 4/13/2008 19:12:46
C:\WINDOWS\system32\rsvpsp.dll, loaded at 0x73080000 - 92672 bytes - 4802a10d - file date is 4/13/2008 19:12:04
C:\WINDOWS\system32\KsUser.dll, loaded at 0x73ee0000 - 4096 bytes - 4802a0d6 - file date is 4/13/2008 19:11:56
C:\WINDOWS\system32\DSOUND.DLL, loaded at 0x73f10000 - 367616 bytes - 4802a0f6 - file date is 4/13/2008 19:11:52
C:\WINDOWS\system32\USP10.dll, loaded at 0x74d90000 - 406016 bytes - 4bc88418 - file date is 4/16/2010 10:36:56
C:\WINDOWS\system32\msctfime.ime, loaded at 0x755c0000 - 177152 bytes - 4802a12d - file date is 4/13/2008 19:10:06
C:\WINDOWS\system32\IMM32.DLL, loaded at 0x76390000 - 110080 bytes - 4802a0e7 - file date is 4/13/2008 19:11:54
C:\WINDOWS\system32\WINMM.dll, loaded at 0x76b40000 - 176128 bytes - 4802a13c - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\WINTRUST.dll, loaded at 0x76c30000 - 177664 bytes - 4b33115c - file date is 12/24/2009 01:59:40
C:\WINDOWS\system32\IMAGEHLP.dll, loaded at 0x76c90000 - 144384 bytes - 4802a0d8 - file date is 4/13/2008 19:11:54
C:\WINDOWS\system32\DNSAPI.dll, loaded at 0x76f20000 - 147968 bytes - 485bed11 - file date is 6/20/2008 12:46:58
C:\WINDOWS\system32\WLDAP32.dll, loaded at 0x76f60000 - 172032 bytes - 4802a12e - file date is 4/13/2008 19:12:10
C:\WINDOWS\System32\winrnr.dll, loaded at 0x76fb0000 - 16896 bytes - 4802a122 - file date is 4/13/2008 19:12:10
C:\WINDOWS\system32\rasadhlp.dll, loaded at 0x76fc0000 - 7680 bytes - 4802a0fe - file date is 4/13/2008 19:12:04
C:\WINDOWS\system32\CLBCATQ.DLL, loaded at 0x76fd0000 - 498688 bytes - 4802a0b9 - file date is 4/13/2008 19:11:50
C:\WINDOWS\system32\COMRes.dll, loaded at 0x77050000 - 792064 bytes - 4802a0ce - file date is 4/13/2008 19:11:52
C:\WINDOWS\system32\OLEAUT32.dll, loaded at 0x77120000 - 551936 bytes - 4802a112 - file date is 4/13/2008 19:12:02
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll, loaded at 0x773d0000 - 1054208 bytes - 4802a094 - file date is 4/13/2008 19:12:52
C:\WINDOWS\system32\ole32.dll, loaded at 0x774e0000 - 1287168 bytes - 4802a111 - file date is 4/13/2008 19:12:02
C:\WINDOWS\system32\CRYPT32.dll, loaded at 0x77a80000 - 599040 bytes - 4802a0d7 - file date is 4/13/2008 19:11:52
C:\WINDOWS\system32\MSASN1.dll, loaded at 0x77b20000 - 58880 bytes - 4aa180a8 - file date is 9/4/2009 16:03:36
C:\WINDOWS\system32\midimap.dll, loaded at 0x77bd0000 - 18944 bytes - 4802a0ec - file date is 4/13/2008 19:11:58
C:\WINDOWS\system32\MSACM32.dll, loaded at 0x77be0000 - 71680 bytes - 4802a117 - file date is 4/13/2008 19:11:58
C:\WINDOWS\system32\VERSION.dll, loaded at 0x77c00000 - 18944 bytes - 4802a11d - file date is 4/13/2008 19:12:08
C:\WINDOWS\system32\msvcrt.dll, loaded at 0x77c10000 - 343040 bytes - 4802a188 - file date is 4/13/2008 19:12:02
C:\WINDOWS\system32\ADVAPI32.dll, loaded at 0x77dd0000 - 617472 bytes - 49901d48 - file date is 2/9/2009 07:10:48
C:\WINDOWS\system32\RPCRT4.dll, loaded at 0x77e70000 - 590848 bytes - 4c48687b - file date is 7/22/2010 10:49:16
C:\WINDOWS\system32\GDI32.dll, loaded at 0x77f10000 - 286720 bytes - 49006fbe - file date is 10/23/2008 07:36:14
C:\WINDOWS\system32\SHLWAPI.dll, loaded at 0x77f60000 - 474112 bytes - 4b1e1b10 - file date is 12/8/2009 04:23:28
C:\WINDOWS\system32\Secur32.dll, loaded at 0x77fe0000 - 56832 bytes - 4a433476 - file date is 6/25/2009 03:25:26
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca\MSVCR80.dll, loaded at 0x78130000 - 635904 bytes - 4889d619 - file date is 7/25/2008 11:17:20
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca\MSVCP80.dll, loaded at 0x7c420000 - 558080 bytes - 4889d66b - file date is 7/25/2008 11:17:20
C:\WINDOWS\system32\kernel32.dll, loaded at 0x7c800000 - 989696 bytes - 49c4f482 - file date is 3/21/2009 09:06:58
C:\WINDOWS\system32\ntdll.dll, loaded at 0x7c900000 - 714752 bytes - 49901d48 - file date is 2/9/2009 07:10:48
C:\WINDOWS\system32\SHELL32.dll, loaded at 0x7c9c0000 - 8462336 bytes - 4c4e7d0a - file date is 7/27/2010 01:30:36
C:\WINDOWS\system32\USER32.dll, loaded at 0x7e410000 - 578560 bytes - 4802a11b - file date is 4/13/2008 19:12:08
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Mar 08, 2011 7:21    Post subject: Reply with quote

msvcrt-ruby18.dll build date is half a year later than xp_ruby.dll build date.
It's probably compiled with a different compiler.
It seems like you're running Ruby 1.8.7. xp_ruby was linked with 1.8.6, and it's not compatible with 1.8.7 since Ruby developers changed the compiler.

Try this version (xp_ruby linked with Ruby 1.8.7):
http://data.virusman.ru/nwn/nwnx4/xp_ruby-0.1.0-dev80+1.8.7.rar
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Tue Mar 08, 2011 15:24    Post subject: Reply with quote

I am running ruby 1.8.6-389 I believe but I will try to get an earlier version.

With the 2 dll's you provided, if I just use the msvcrt-ruby18.dll, i still get the crashing. If I use the xp_ruby.dll you provided NWserver never runs (doesn't start) and neither does nwn2server.exe.

--I installed version 1.8.6 -25. The crashing no longer occurs, but I end up with the same old error as I had originally.

Code:
NWNX4 Ruby Plugin V.0.1.0
(c) 2010 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org

* Module loaded successfully.

(S) Request: "EVAL"

(S) Params:  "$:.concat ['C:/Ruby/lib/ruby/site_ruby/1.8','C:/Ruby/lib/ruby/site_ruby/1.8/i386-msvcrt','C:/Ruby/lib/ruby/site_ruby','C:/Ruby/lib/ruby/1.8','C:/Ruby/lib/ruby/1.8/i386-mingw32','.']"

(S) Request: "EVAL"

(S) Params:  "require 'rubygems'"

Error 6 while evaluating a Ruby expression: require 'rubygems'

(S) Request: "EVAL"

(S) Params:  "require 'nwn/all'"

Error 6 while evaluating a Ruby expression: require 'nwn/all'

* Plugin unloaded.


I also tried instead of the concat line, the following line instead:
Code:
NWNXRuby_Eval("$:.insert(0, 'C:/Ruby/lib/ruby/site_ruby/1.8');");


With the same result ;(

The error in ruby_error.txt is as follows:
Code:
no such file to load -- rbconfig
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:10
(eval):16:in `require'
(eval):16
Back to top
View user's profile Send private message
Hialmar



Joined: 15 Jun 2005
Posts: 32

PostPosted: Thu Mar 10, 2011 12:10    Post subject: Reply with quote

Maybe it would be better linking with the static library instead of the dynamic one.

That's what I did with the 1.9 version. However this never worked so I'm not sure it will help you either.

Personally I'll try to port the ICE plugin and try to use either java or ruby if I can find a way to code a server version for ICE (or use it with the client only provided version). But that's another story.
_________________
Hialmar, A Land Far Away Infrastructure Administrator
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Thu Mar 10, 2011 12:23    Post subject: Reply with quote

Hialmar wrote:
Personally I'll try to port the ICE plugin and try to use either java or ruby if I can find a way to code a server version for ICE (or use it with the client only provided version). But that's another story.


The Ruby, ICE and Java plugin use basically the same function calls to access the NWScript script VM. I would suggest you port the Java plugin, since that offers the most flexibility (and you can still run jruby of course). The ICE approach has some drawbacks that weren't apparent at development time - thread latency with a lot of very expensive nwscripts concurrently and such.
Back to top
View user's profile Send private message
Hialmar



Joined: 15 Jun 2005
Posts: 32

PostPosted: Thu Mar 10, 2011 12:26    Post subject: Reply with quote

*nods* Thanks for the heads-up.

I'm also more familiar with java so this would help me a lot. Smile
_________________
Hialmar, A Land Far Away Infrastructure Administrator
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Thu Mar 10, 2011 12:27    Post subject: Reply with quote

The most recent code is available here. This is already forward-ported to the 2.8 branch of nwnx2 (with inter-plugin messaging system) to use resman for native SCO/RCO im/export inside the JVM.

There's a few ruby scripts that generate the native-libs and sources, and also most of the exported constants.

If you have any questions, don't hesitate to ask.
Back to top
View user's profile Send private message
Hialmar



Joined: 15 Jun 2005
Posts: 32

PostPosted: Wed Jun 01, 2011 10:00    Post subject: Reply with quote

Just a note that I have managed to have ruby working with NWNX4 using the NWNX2 JVM plugin from Elven that I ported to NWNX4 and JRuby (a JVM implementation of Ruby).
JRuby is supposed to be compatible with the 1.9.1 version of Ruby.

Details are here:
http://www.nwnx.org/phpBB2/viewtopic.php?t=1772
_________________
Hialmar, A Land Far Away Infrastructure Administrator
Back to top
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Thu Jun 02, 2011 8:08    Post subject: Reply with quote

FYI, there's a leak in nwnx_ruby as-is in that StackPopString needs to free the contents of the CExoString it gets back from CVirtualMachine::StackPopString. The memory must be freed to the NWN2 heap and can't be released with "free" or "delete". This will cause the plugin to leak memory every time a script function that returns a string is called by Ruby code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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