What's new

Wine on linux

Arsdy

Squid Slayer
Joined
Jul 10, 2016
Messages
72
Reaction score
19
Points
8
Age
33
anyone here figure out how to run pko inside linux/mac using wine? does it work properly?
 
PlayOnLinux works good
but problem is "Loading" screen
So I decided to run inside VM
ah nice to see linux user :3 . well i do run virtual machine but its windows are eat too much ram.
 
maybe i should try xp.. i install windows 8.1 hahahahhaa...
 
Could you find a solution using Wine? Thanks in advance guys
 
PlayOnLinux/PlayOnMac also Wine
 
What I found in other thread is that they run this line wine system/Game.exe xz startgame tom:142.4.219.226,1973.
I can open the game window but It fails automatically when it tries to connect to the server, sp I changed the tom parameter removing the port of the server and I reach the log in screen. Now every login request response me as Time Out, what I think is, because I removed the port the game doesn't know where to hit. So every login gives me time out. My problem is that I don't know what TOM parameter is and how may I maniputale it, I trie IP:PORT like WebSocket nomenclature, but it still don't working. Do u know what's the correct tom parameter value? Its freaking me out.
 
What I found in other thread is that they run this line wine system/Game.exe xz startgame tom:142.4.219.226,1973.
I can open the game window but It fails automatically when it tries to connect to the server, sp I changed the tom parameter removing the port of the server and I reach the log in screen. Now every login request response me as Time Out, what I think is, because I removed the port the game doesn't know where to hit. So every login gives me time out. My problem is that I don't know what TOM parameter is and how may I maniputale it, I trie IP:pORT like WebSocket nomenclature, but it still don't working. Do u know what's the correct tom parameter value? Its freaking me out.
Pick the best IP (good ping) from https://code.piratekings.online/run_dest/servers.xml
Same does our Launcher.
If you add .NET 3.5 to Wine. You will be able to run Launcher too.
 
Yep I chose it. But now I think that is not recognizing the port
Code:
 wine system/Game.exe xz startgame tom:142.4.219.226,1973
that comma in between the server and the port is screwing everything, I tried in another ways, but I cannot hit the right way. So if you know how to use tom: parameter It would be great. Because I think that is the last step in order to have the game running.

I leave a screenshot of my screen

YeiaEh3.png
 
You use SH?
in that case, I would suggest you to use character escape sequence
 
So, I are saying that the comma between the server ip and the port is a character that point that those words are two different parameters?
 
So, I are saying that the comma between the server ip and the port is a character that point that those words are two different parameters?
No. it's just have special meaning for SH
 
Given the discussion in this thread, I was able to run the game using wine on Ubuntu 20.04:

Pirate King Online Installation (Ubuntu 20.04)
1. Install wine

2. Setup wine
Bash:
# Install needed binaries as requested
winecfg

3. Download Pirate King Online

4. Install with wine
Bash:
wine PKOSetup_1.3.5.exe

As mentioned in other comments/threads, .NET 4.5 may be needed for the setup to work. I am not able to verify as it is already installed from previous steps before I checked.

5. Navigate to installation location
Bash:
cd ~/.wine/drive_c/Program\ Files\ \(x86\)/Pirate\ King\ Online

6. Obtain server IP address and port from servers.xml
Bash:
 # Print server markup, take note of address and ports
cat servers.xml
<?xml version="1.0" encoding="utf-8" ?>
<PirateKingOnlineLauncher>
  <ServerCollection Name="Tortuga" Key="1">
    <Server Region="CF" Address="gate.piratekings.online" Port="43" Priority="10"/>
  </ServerCollection>
</PirateKingOnlineLauncher>

# Ping URL, take note of IP address
ping gate.piratekings.online
PING gate.piratekings.online (172.65.0.23) 56(84) bytes of data.
64 bytes from 172.65.0.23 (172.65.0.23): icmp_seq=1 ttl=39 time=282 ms
64 bytes from 172.65.0.23 (172.65.0.23): icmp_seq=2 ttl=39 time=304 ms

7. Test client connection to chosen server
Bash:
# If connection is blocked, try another server
# cd <game-directory> && wine system/Game.exe xz startgame tom:<server-ip-address>,<server-port>
$ cd ~/.wine/drive_c/Program\ Files\ \(x86\)/Pirate\ King\ Online && wine system/Game.exe xz startgame tom:172.65.0.23,43

If you are able to login, you are set!

8. Create desktop shortcut
  • Create desktop entry
Bash:
 # Name as desired
gedit ~/.local/share/applications/pirate-king-online.desktop
  • Configure
Code:
[Desktop Entry]
Type=Application
Icon=00BC_PirateKingOnlineLauncher.0
# Rename as desired
Name=(Wine) Pirate King Online
# Set to false if running program with terminal window is not needed
Terminal=true
# Replace placeholder user
Path=/home/<user>/.wine/drive_c/Program Files (x86)/Pirate King Online
# Replace placeholder server IP address and port
Exec=wine system/Game.exe xz startgame tom:<server-ip-address>,<server-port>

 
Back
Top