phew! i finally got it to work to start multiple bots with only one openkore folder.
instead of copying the folder, i edited the src/Network/Xkore.pm to try different ports by doing this: (i know, it's not the best style, but it works)
First, edit the sub new (at the beginning of the document)
Code: Select all
sub new {
my $class = shift;
my $port = 2350;
my $self = bless {}, $class;
our $usedPort;
undef $@;
do {
$self->{server} = new IO::Socket::INET->new(
Listen => 5,
LocalAddr => 'localhost',
LocalPort => $port,
Proto => 'tcp');
} while (!$self ->{server} && $port++ <= 2354);
$usedPort = $port;
if (!$self->{server}) { ...
the global variable usedport was introduced here, which saves the used port for later uses
i only intended to use 4 exes, therefore there is a condition $port++ <= 2354. if you intend to use more, you have to increase the 2354 to a higher number.
then edit the position where the netredirect.dll (just search for netredirect in the document) is used and replace the foreach loop by this:
Code: Select all
foreach my $file ("$cwd\\src\\auto\\XSTools\\NetRedirect$Network::XKore::usedPort.dll", "$cwd\\src\\auto\\XSTools\\win32\\NetRedirect$Network::XKore::usedPort.dll",
"$cwd\\NetRedirect$Network::XKore::usedPort.dll", "$cwd\\Inject.dll") {
if (-f $file) {
$dll = $file;
last;
}
}
so it will look up for netredirect.dlls with a number inside, looking like this: NetRedirect235
x.dll for each port (x = 0 for 2350, 1 for 2351, ...)
i only had the netredirect file directly in my openkore folder, so i edited them there the way kmlo described it in the beginning by exchanging the hex codes for the ports.
then i also created multiple ragexes and changed the ragexe name for each bot in the config.txt.
finally, the question was asked
how to start the ragexe on fro without the launcher. wang 1337 gave me the hint: you have to start the ragexe with the 1rag1 argument
wang1337 wrote:And finally make a shortcut with the target that links to the right xml file:
Code: Select all
"C:\Program Files (x86)\Ragnarok Online\Ragexe.exe" 1rag1 [/quote]
i hope it also works for you and i didnt forget any changes i did. good luck :)