Melkior_King wrote...
tzaeru wrote...
Melkior_King wrote...
The simplest solution (from the player/server point of view) is for someone to make a server which does the same thing as GameSpy (except only for nwn) and give us the IP address. We can then enter that IP address along with the name of the GameSpy nwn server into our local "hosts" file to redirect the nwn GameSpy calls to the new site.
The adding of the IP address and server name to the local "hosts" file could easily be automated. Distributors such as gog.com could add the code to the installer for nwn Diamond Edition.
Is the GameSpy IP in a data file? If it's directly in the executable, then the closest to a legal way to achieve that is to intercept the connection attempt to GameSpy's server and modify the IP on the fly.. But even that might fall under reverse engineering and be promptly illict, except if you happen to live in a country where reverse engineering for the purpose of maintaining compatibility and functionality is legal.
The GameSpy server base address is saved as a hard-coded string (master.gamespy.com) inside the exe files (nwmain.exe and nwserver.exe). Changing that string will change the site which the game tries to access.
The game adds the nwn prefix to the base address before doing the dns enquiry so it ends up as nwn.master.gamespy.com
You can either edit the string inside each exe file so that the DNS servers resove to a different site, or you can enter the IP address along with the above site address into your local hosts file in order to redirect the game to a different site.
In short, this makes it fairly easy to redirect the GameSpy requests to a different site.
Ah, yeah, changing the domain resolvement would be handy. I was mostly worried of how directly modifying the executables works with the EULA - however, I'd figure it falls under the interoperability clause in any case.





Retour en haut







