Need help to link two machines trough bus system

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

kaoru
Human
Human
Posts: 34
Joined: 20 Jun 2008, 17:47
Noob?: No

Need help to link two machines trough bus system

#1 Post by kaoru »

Hello, fellow ragnarokians!

So I'm brand new to the whole bus system and quite puzzled with all it's advantages. I need help to integrate multiple Openkore instances running in two different machines and different networks.

This is the sys.txt of PC I, which is supposed to be the server:
bus 1
bus_server_host
bus_server_port
PC II:
bus 1
bus_server_host 5.12.213.XX
bus_server_port
Both PCs are linked trough hamachi, and the IP number in purple is PC I's adress. Is there anything missing?
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Need help to link two machines trough bus system

#2 Post by EternalHarvest »

kaoru
Human
Human
Posts: 34
Joined: 20 Jun 2008, 17:47
Noob?: No

Re: Need help to link two machines trough bus system

#3 Post by kaoru »

I figured it out! I looked at that wiki section before asking here, but I still didn't get it. For some reason I tought that it was more complicated then it seemed...

Just make a .bat targetting the src/Bus/bus-server.pl file and add host and port.

Thanks for the attention anyway, EH.

EDIT: EH, do you know if there's any way to print/log messages sent via bus? I'm using busCommands.pl, btw. I did a quick search and I found an example in the early version of the plugin here: http://forums.openkore.com/viewtopic.php?f=34&t=16865

Code: Select all

automacro busTest {
hook bus_received
save message
call {
       log just received $.hookSave0 from busCommands in messenger mode
}
}
It's not working for me. It misses the hook, printing instead:
just received from busCommands in messenger mode
I'm using an updated version, from the plugins folder on SVN.

Sorry to bother you... I can work with automacros just fine, but I'm not acquainted with hooks.