Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting heRO to work on linux...
Kulluminatii Offline
Arman
****

Posts: 602
Threads: 31
Joined: Dec 2008
#1
Getting heRO to work on linux...
Well I've been working on getting RO to work on Linux via WINE for a few days now. I know their are other threads on these forums about this same subject, but they don't contain anything I don't already know from reading guides.

This is a guide I found from another p server's forums created by a person named ipridian:
Quote:1. Get wireshark (formely ethereal) and run it from root (IMPORTANT must be run from root)
2. Open a terminal and run wine on the .exe
3. Put wireshark on capture mode on eth0 or whatever your net interface is. Best is to also close down every other application which uses the net line (run netstat to see).
4. Enter username and password, click connect and wait till it gives the Failed to connect to server message.
5. Close wine
6. Switch to wireshark, and stop the capture.
Now please pay attention..
7. Scroll down the packets recorded, and look for a DNS request to <put your game server info here>. Also note that, if there is no DNS request made, then the .xml file in the .grf patched by your private server (the one who identifies the server) uses an IP address. Please resolve it to a Hostname and edit it with grftool, then repacks the file.
8. After looking at the DNS request, write down the IP address returned.
9. Then scroll down and look for any grayed out packet which contains a weird IP address "to" value. Something like 160.0.0.0 or 101.122.133.165 could be it. You can also look at the ASCII value of the IP address for a hint (for example, the one for *pserver name* was "line" which resolved to a weird 123...something IP address). Note it down.
Now this following process needs you to google and do it on your own if you don't have iptables.
10. Supposedly you have iptables installed and the extension DNAT, you then su to root and enter :
# iptables -t nat -A OUTPUT -d $WRONG_ADDRESS -j DNAT --to $REAL_ADDRESS
Please do not type out "#" (lol), and replace wrong address with the weird IP, real address with the IP resolved returned by your DNS server.
11. iptables-save, and you're good to go !
- Also note that Ragnarok requires mfc42.dll, but the 2000 version one, not the 1998/1999 one offered on dllfiles.com. Please google and download the one which is not on dllfiles.com, or use your own from an up-to-date Windows system.

- Please do not choose fullscreen. Always do windowed, and use winecfg to make it run in a double-buffered virtual desktop which matches your game's resolution chosen. Also, put the hardware 3d on emulation, and disable sound if it gets buggy. Lastly, please disable fog inside Setup.exe, and disable weather by @weather off if the private server suddenly presents you with some weird weather effect.

Now before trying this guide I was getting the "Failed to connect to server" message, however after messing around with different IP addresses, I instead get the "Disconnected from server" message...which isn't a good thing...but at least its progressSweat.

Here are the various commands I have tried so far:
Quote:iptables -t nat -A OUTPUT -d 111.117.110.99 -j DNAT --to 192.168.1.254

iptables -t nat -A OUTPUT -d 111.117.110.99 -j DNAT --to 76.232.179.27

iptables -t nat -A OUTPUT -d 111.117.110.99 -j DNAT --to 70.38.64.91

The part in bold I am fairly positive is the "Wrong Address", and it should vary from person to person. The part I am having trouble figuring out is the "Real Address" I suppose.

So, is there anyone out there who is running RO on Linux atm, and if so, what IP did you use for "Real Address"? Also, if someone on these forums happens to have Linux, any chance you could try to install RO and use the above guide to see if RO works for you or not?

If all else fails, I guess I'll resort to using the alternate method in step 7. Now that I think about it, thats probably the way to get it to work...but at least one person on these forums(from an earlier thread) has gotten it to work using the "iptables" method (and yes, i've tried his IPs...and they didnt work Thinking ).

(This post was last modified: 08-07-2009, 03:42 PM by Kulluminatii.)
08-07-2009, 03:41 PM
Find Reply


Messages In This Thread
Getting heRO to work on linux... - by Kulluminatii - 08-07-2009, 03:41 PM
RE: Getting heRO to work on linux... - by Neuneck - 08-08-2009, 10:10 AM

Forum Jump: