I. Added supprt of Other Multiplayer->TCP/IP in the function
login(Profile)
Calling login() with a profile set to Other Multiplayer TCP_IP will create a hosted game or join a hosted game based on the given profile.
Three choices of Other Multiplayer:
Other Multilayer OPEN
Other Multiplayer TCP_IP Host
Other Multiplayer TCP_IP Join
II. New global function,
hostTcpipGame(charName, difficulty)
Will create a hosted TCP/IP game using the with the given name, at the given difficulty. Different difficulties: Normal, Nightmare, Hell and chose the highest available difficulty.
III. New global function,
joinTcpipGame(charName, Address)
Will join a hosted TCP/IP game using a char with the given name connecting to the given IP-address.
Reason and motivation:
Be able to create or join a hosted TCP/IP game will greatly increase the efficiency of testing leader-leecher scripts and team-botting scripts. It will not only increase the efficiency but also in the end can result in scripts of higher quality.
Edit: Added support for Cannot Connect to Server
I. Patch against
branches/patch-113 for login() support:
http://pastebin.com/dMG0LHwT.
Example of profiles in a
d2bs.ini file:
http://pastebin.com/t54rqX9j
Known issues:
I.1. Joining a hosted game triggers
Invalid character name at
select character screen, though, this happens for all non-bnet logins, so not unique. But, it is more frequent than for other login methods.
However, since this is intended for test purpose the issues is not critical but should be fixed. Will have a look at it when times permit.