Ravenloft: Prisoners of the Mist

Public (OOC) => Tech discussion => Topic started by: JipK on October 26, 2008, 09:19:16 PM

Title: The real direct connect
Post by: JipK on October 26, 2008, 09:19:16 PM
Just found this trick on another forum. It'll allow you instantly connect to PotM just by using a shortcut on your desktop or start bar.

1. Create a new shortcut anywhere it suits you (right click > new > shortcut)

2. Direct it to nwmain.exe

3. Once the shortcut is created, right click on it and open the properties.

4. Add " +connect 104.155.20.124:5121" where it says "target" (note the space in front of the "+")
Example: C:\NeverwinterNights\NWN\nwmain.exe +connect 104.155.20.124:5121

Voila, you'll be able to instantly connect to PotM using a shortcut.

DM's will be able to use it as well, though they'll have to add a little bit extra to the target they should add " +password [password]" and " -dmc" (this one makes you log in on the DM client)
Example: C:\NeverwinterNights\NWN\nwmain.exe -dmc +connect 84.238.20.74:5121 +password [password]

Hope any one will find this useful.
Title: Re: The real direct connect
Post by: Knas on October 26, 2008, 11:24:11 PM
This also serves as a walk around for those who have the missing menu graphic bug
Title: Re: The real direct connect
Post by: Bato on February 05, 2009, 06:48:06 PM
Direct connecting like this reduces lag by alot because you bypass gamespy.
I use batchfiles to do this for me.
Lets me select from multiple servers.


If anyone dosn't know how to do this:
You open notepad, type in:

Code: [Select]
@echo off
cd C:\NeverwinterNights\NWN\
:redo
cls
echo Select a Server
echo 1. Server
echo 2. Another Server
echo 3. DM on this one server
set /p server= Server Number:
if %server% == 1 start nwmain.exe +connect ##.##.##.##:####
if %server% == 2 start nwmain.exe +connect ##.##.##.##:####
if %server% == 3 start nwmain.exe -dmc +connect ##.##.##.##:#### +password [password]
          if else goto :redo
exit

And save it as  WhateverYouWant.bat


An example of mine:
Code: [Select]
@echo off
cd C:\NeverwinterNights\NWN\
:redo
cls
echo Select a Server
echo 1. Arelith
echo 2. Badlands
echo 3. Ravenloft
set /p server= Server Number:
if %server% == 1 goto :arelith
if %server% == 2 start nwmain.exe +connect 24.17.33.154:5121
if %server% == 3  start nwmain.exe +connect 192.38.55.36:5123
if %server% == 11 start nwmain.exe +connect arelith.servegame.org:5124
if %server% == 12 start nwmain.exe +connect arelith.servegame.org:5125
          if else goto :redo
exit

:arelith
echo 1. Surface
echo 2. Underdark
set /p arelith= Server Number:
if %arelith% == 1 start nwmain.exe +connect arelith.servegame.org:5124
if %arelith% == 2 start nwmain.exe +connect arelith.servegame.org:5125
          if else goto :redo
exit

This ONLY works on Windows. Not sure how to do this on Linux or Mac. But I might look up how to do it on Linux sometime.
Title: Re: The real direct connect
Post by: tzaeru on May 10, 2009, 09:26:54 PM
Interestingly the Linux binary of the nwmain executable seems to ignore all command line options, therefore making it a bit tricky to directly connect at start-up.  :roll:

*Eagerly waits for the day when software houses start to properly support Linux*
Title: Re: The real direct connect
Post by: LeslieMS on September 02, 2009, 02:07:10 AM
Just found this trick on another forum. It'll allow you instantly connect to PotM just by using a shortcut on your desktop or start bar.

1. Create a new shortcut anywhere it suits you (right click > new > shortcut)

2. Direct it to nwmain.exe

3. Once the shortcut is created, right click on it and open the properties.

4. Add " +connect 192.38.55.36:5123" where it says "target" (note the space in front of the "+")
Example: C:\NeverwinterNights\NWN\nwmain.exe +connect 192.38.55.36:5123

Voila, you'll be able to instantly connect to PotM using a shortcut.

DM's will be able to use it as well, though they'll have to add a little bit extra to the target they should add " +password [password]" and " -dmc" (this one makes you log in on the DM client)
Example: C:\NeverwinterNights\NWN\nwmain.exe -dmc +connect 192.38.55.36:5123 +password [password]

Hope any one will find this useful.

The New IP address is as follows:
192.38.55.132:5123

Just for anyone that doesn't already know =)
Title: Re: The real direct connect
Post by: Amon-Si on September 03, 2009, 10:07:37 PM
I'm having trouble with this, it keeps telling me my password is incorrect, but we're not using a password for direct connect, are we?
Title: Re: The real direct connect
Post by: Budly on September 04, 2009, 11:48:14 AM
Password?  :shock: Weird. The server isn't even passworded.
Title: Re: The real direct connect
Post by: Kendric98 on September 04, 2009, 11:53:35 PM
I'm having trouble with this, it keeps telling me my password is incorrect, but we're not using a password for direct connect, are we?
Its glitchy is it still doing it? I had trouble to but i was ok yesterday.
Title: Re: The real direct connect
Post by: Amon-Si on September 05, 2009, 02:25:09 AM
Still telling me "Incorrect password" but I can direct connect through gamespy without issue. *shrugs*
Title: Re: The real direct connect
Post by: Alundaio on November 17, 2009, 01:28:46 AM
I've created a Neverwinter Nights Launcher. http://nwvault.ign.com/View.php?view=Other.Detail&id=1431 (http://nwvault.ign.com/View.php?view=Other.Detail&id=1431) It allows up to 5 Servers to be direct Connected to. Which has an
easy checkbox to enable DM mode. There are a few other features, like Log renaming and On-click URL banners.  Just read the description of the file for more information.

I've also included a Banner for Prisoners of the mist. Just type "Ravenloft.jpg" in the banner field to have it displayed. Pop in the URL for this site in the URL links in the Options tab
and you are ready to Rock N' Roll your way to PotM.

Have any problems or suggestions just give me a message.


Oh there is also a Direct Connect Batch file generator I have made recently too. But I've decided to make the Launcher instead.
Title: Re: The real direct connect
Post by: benyc on October 18, 2011, 06:05:35 AM
Found this elsewhere, useful for making your login shortcut even snappyer so you dont have to wait for the master server authentication to fail since the master server did one

This will make the master server authentication fail straight away without the wait

Quote
Open Notepad as Administrator.

Open the file C:\Windows\System32\drivers\etc\hosts (To see it you may need to show all files).

Add the following entries:

0.0.0.0    nwn.master.gamespy.com
0.0.0.0    nwmaster.bioware.com

Save the file.

You should get an instant failure on login so you don't have to wait.

just did this myself now and all seems good, its a bit fiddly thanks to how windows administrator access works in win 7 - i found it easiest to copy the contents of the file into a new hosts.txt file then delete the .txt extension and replace the original hosts file.

if the master server ever comes back up again and you need to authenticate for whatever reason, id imagine you could revert by removing the two lines
Title: Re: The real direct connect
Post by: APorg on October 18, 2011, 06:38:24 AM
Interestingly the Linux binary of the nwmain executable seems to ignore all command line options, therefore making it a bit tricky to directly connect at start-up.  :roll:

*Eagerly waits for the day when software houses start to properly support Linux*

Anyone knows if this is still true for Linux boxes? I guess I'll find out when I get home tonight...
Title: Re: The real direct connect
Post by: benyc on October 18, 2011, 07:15:53 AM
couldnt get it to work when i ran nwn on my old pc
Title: Re: The real direct connect
Post by: Wingfree on December 18, 2012, 11:04:10 AM
why not just  multi-player/join lan/direct connect .
Title: Re: The real direct connect
Post by: dark_majico on December 19, 2012, 06:19:24 AM
Just to clarify what is the correct direct connect address? I was using the original as posted by JipK , then changed it too the alternative posted by LeslieMS but it would not connect.
Title: Re: The real direct connect
Post by: Korvenus on April 30, 2015, 12:13:28 AM
Hey guys,

I've just tried setting this up and at first couldn't get it working, but I found out why.

There are two Exe files that start the game, make sure that the target is using the nwmain.exe and not nwn.exe.

nwn.exe is just a wrapper for the nwmain, as in... it starts with a launch menu where you can select a few options, before you hit "Play game" and actually start nwmain.exe

so your target should be:
C:\NeverwinterNights\NWN\nwmain.exe +connect 84.238.20.74:5121
Not:
C:\NeverwinterNights\NWN\nwn.exe +connect 84.238.20.74:5121

Title: Re: The real direct connect
Post by: Strigoi on July 01, 2018, 01:52:53 AM
anyone get this to work on the EE? really miss my direct connect shortcut!
Title: Re: The real direct connect
Post by: Arawn on July 01, 2018, 04:19:58 AM
Quote from: niv, June 5
Hello,

this is a DNS resolver race condition in the client. We're tracking it internally (37551) and while I can't promise a fix date, I know this is not good for people using shortcuts or being quick-fingered in direct connect, so it won't be forgotten.

This is what a Beamdog/NWN dev had to say on their forums about this specific problem.