Jump to content
LaunchBox Community Forums

PCSX2 LAN Play Online! XLink Kai Modified for BigBox use! (Windows 10) Tutorial


Recommended Posts

WARNING: This tutorial could be borderline difficult, and is specific to my own personal use. Feel free to experiment, change or customize to your own use. If there are other emulators that work through the lan, you may be able to play other console games this way as well.

My knowledge of programming is extremely limited so if you feel you know a better way to accomplish this same goal, please share!

You will need to set up your PCSX2 for lan play I used this tutorial for SOCOM II. I think this same tutorial can be used for other games as well-  https://1upsdevelopment.com/pcsx2-socom-2-xlink/

Programs you will need for the XLink kai UI overhead for BigBox:
Autohotkey - https://autohotkey.com/download/

XLink Kai - https://www.teamxlink.co.uk/

Nircmd (download link is at the bottom of the page)- http://www.nirsoft.net/utils/nircmd.html

Internet Explorer that came with windows

A controller hotkey program capable of launching other programs. I am using controller companion, it costs some money, but in my opinion is well worth the price. This tutorial I will be using controller companion, feel free to use whatever you want http://controllercompanion.com/
 

My main account is a non administrator account, the rest of the tutorial will assume the same.

 

For those of you that don't know pcsx2 is capable of Lan play through the XLink Kai community (or at the very least Socom II US Navy Seals works I haven't tried other games yet). Xlink Kai is normally used to connect old consoles through LAN, so using this program you could potentially be playing other players that are actually playing on their consoles. That being said, for us bigbox users it can be kind of cumbersome because you have to open up the program separately and then choose your server; if you're using a non-admin account like me, you have to enter your password, log in, etc etc. If you're only using one monitor and would like to check the Xlink kai chat room you're pretty much SOL.

Using this combination of programs and batch files I simply hold the SELECT button and press up on either a PS3 controller or an Xbox one controller to launch a semi-transparent Xlink Kai UI. Holding SELECT and Down closes the Xlink kai UI.

 

Loading UI in bigbox:

5af6827c17fcb_BigboxOverhead.thumb.png.fae9625fbab461166961928ce9e3f5cb.png

Socommenu.thumb.png.5854e8aff9e7fa848c97615df9edbc04.png

Launching Chat in the middle of game:

SocomOverhead.thumb.png.fa0c17b9b62eda5b8c8887eaea9eb155.png

STEP ONE

Prepare X-link Kai for auto login

You should have downloaded Xlink kai by now following the PCSX2 tutorial, if for whatever reason you haven't please download and install it, the rest of this tutorial I will assume you have gone through the SOCOM 2/PCSX2 Xlink tutorial, and that your PCSX2 is ready for Lan play through X link Kai.
Start up the Kai engine. On the task bar right click the engine -> Configuration5af686c7167c8_xlinkconfig.thumb.png.cdfc99d27e0ec275dbfd47e4578a8400.pngIn Engine settings use your username + Password Check mark on the "auto Login" and then save. Close the program and reopen the engine to see if everything loads OK. Right click on the engine in the task bar and click on "Launch UI to make sure it logs you in properly.

 

5af690b43f40a_signin.thumb.png.e0739e4d9c327c01a3feef15f451a0c0.pngSTEP 2

Writing your scripts

Download nircmd and unzip the folder to your Launchbox folder. eg: C:/program Files/Launchbox/nircmd-x64

nircmd.thumb.png.e547a8efc065fe7c7a5ea8e65583a9ef.png

Within that folder create another folder called "Commands" and within that folder make another inside of that one called "XLink Kai"

 

5af68f65e681c_xlinkkai.thumb.png.1ee889c3034cfb0d72139db9cd5c416c.png

We will start by making four scripts inside of this folder.

Right click an empty space in that folder select -> New -> Text Document

5af69347b67a3_saveas.thumb.png.15d7dd1919c671e21551aad9806c710d.pngMake four text documents one called "UI Launch.txt", one called "UI Close.txt" one called "UI open.txt" and one called "Refocus Window.txt"

 

scripts.thumb.png.4e40bea49c2cf94faaf07af165dd4ea1.png

Open up UI Launch.txt and enter this script:

-----------------------------------------------------------

Timeout /nobreak 15

"<LOCATION OF nircmd.exe>" exec min "<LOCATION OF iexplore.exe (INTERNET EXPLORER)>" -k http://127.0.0.1:34522/
Timeout /nobreak 10

"<LOCATION OF nircmd.exe>" win hide ititle "http://127.0.0.1:34522/"

"<LOCATION OF nircmd.exe>" win trans ititle "http://127.0.0.1:34522/" 215

-------------------------------------------------------------

Mine looks like this:

uilaunch.thumb.png.025da1d175dbfd839d59d2a37c1166eb.pngIf the port you are using for XLink Kai is different please change it from 34522
This script is the launcher for the XLink Kai UI that you will be using to start up with the computer.
What it does is open up the Xlink UI minimized in internet explorer after 15 seconds from start up. The -k argument makes it a full screen page so you don't get all the browser toolbars and such. 10 seconds after loaded it hides the browser into a background process, and the last line of code gives it a semi-transparent look.

Save this file and close notepad. Rename UI Launch.txt to UI Launch.bat

 

Open up UI Open.txt

Enter this script:

---------------------------

"<LOCATION OF nircmd.exe>" win activate ititle "http://127.0.0.1:34522/"

---------------------------

Save this as UI Open.bat this is the batch file that your hotkey program will use to display or "activate" the Xlink UI.
Mine looks like:

5af69e07e2fea_UIOpen.thumb.png.261b79d116505d2d08a06a94d109e271.png

Open up Refocus Window.txt and enter this script:

---------------------------

#Persistent
SetTimer, ActivateWinUM, 100
return

ActivateWinUM:
MouseGetPos,,, WinUMID
WinActivate, ahk_id %WinUMID%
exitapp
return

---------------------------

Save this as Refocus Window.ahk this autohotkey script auto "refocuses" or "activates" PCSX2/Bigbox to wherever your mouse is positioned once the UI is closed. If you do not have this bigbox tends to hang and wait for you to manually click it with the mouse to bring it back into focus.

Last but not least open up UI Close.txt and enter this script

---------------------------

"<LOCATION OF nircmd.exe>" win hide ititle "http://127.0.0.1:34522/"
"<LOCATION OF Refocus Window.ahk>"

---------------------------

This script "closes" or hides the UI back into the background and then launches the refocus script to refocus bigbox/PCSX2 (whatever the previous windows was before).
 

Mine looks like this:

5af6a3c9ebb87_UIclose.thumb.png.38a0c7366e3d3c53f0273ab5a48fc934.png

You should now have four scripts that look like this:

four.thumb.png.a8565412f29659367779d6bbe1510b14.png

STEP 3

Hiding the command prompt windows from displaying

This scripts in their current form will do the job, but they will have irritating command prompt popups every time they are executed. Using nircmd we will create shortcuts to launch these scripts which will hide them.

Navigate to your LaunchBox\NirCmd-x64 folder. Right click nircmd.exe -> Create shortcut

shortcut.thumb.png.ba222b674215917e10980bdc9c9d8054.png
Right click the newly created shortcut and go to properties: In the target location you'll see the "<location of nircmd.exe>" at the end of that location press space and enter :

exec hide "<Location of UI Close.bat>"

 

The target field should now look like

 

"<location of nircmd.exe>" exec hide "<Location of UI Close.bat>"

Mine looks like:

---------------------------

"D:\LaunchBox\NirCmd-x64\nircmd.exe" exec hide "D:\LaunchBox\NirCmd-x64\Commands\XLink Kai\UI Close.bat"

---------------------------

target.thumb.png.2c2598cc4d0409fdd90a2e34b7aa818f.pngRename this shortcut to XLink UI Close
Move this shortcut into the Commands\XLink Kai\ Folder.

Make two more shortcuts in this same folder in the same manner:

"<location of nircmd.exe>" exec hide "<Location of UI Open.bat>" -> Renamed as XLink UI Open

"<location of nircmd.exe>" exec hide "<Location of UI Launch.bat>" -> Renamed as XLink UI Launch

Your commands folder should now look like this:

commands.thumb.png.a276f7b9d26bc3c880ac4a1d977d46e4.png

STEP 4

Launching the Xlink Engine and UI at Windows startup

As I said before my computer auto logs me in as a regular user, I use this to give my computer that little extra protection. The xlink kai server engine however requires you to log in as an administrator with an anoying UAC pop up. My solution to this is to have the program run with administrator privileges using task scheduler.

On the bottom left of your toolbar click the search function and type task scheduler and click on it.

schedule.thumb.png.a6241f71cdaf6fb11b47b5d3fc754997.pngOn the right pane select "create a task"

 

createtask.thumb.png.b9a780161580ec25419b14a9b080834f.png

Name the Task XLink Kai Engine

name.thumb.png.48f643fd3b266108ec857dbb503bf193.png

Under security options

where it says use the following user account press the "Change User" button and start typing admin (or whatever your admin name is, click "Check names" and select your admin user account, click "OK".

changeuser.thumb.png.80f6dac09c40d33bf6de2a620a8af7e2.pngSelect "Run whether user is logged in or not"

generaltab.thumb.png.7908bdebdaad86d5c0f877e330a91277.pngGo to the Triggers tab, select new on the drop down menu where it says "Begin the task" select "at Log on" and click "OK".

trigger.thumb.png.02abe83a432fc07a98f85319c502c859.pngOn the actions tab select new, the action you choose will be "Start a program" and in the program/script field you will browse to your kaiEngine.exe (wherever Xlink Kai was installed into) Mine looks like this:

kaieng.thumb.png.80cdf4f5665ba6cdc5373088c08288e8.pngyour conditions and settings tab should look like these:
 

conditions.thumb.png.d8b898e83f9fbac01b2687bae419c218.pngsettings.thumb.png.5f5f24228d2565b23ad68e6e7acc2bcb.png

Click OK, you will be prompted with a login box, enter your admin password.

 

Now we need to create a startup task for the UI Launcher

 

Click on create task. Name this task "XLink Kai UI Launcher" the rest in the general tab can remain the same.

gerner2.thumb.png.7daeb10f8da09b3dd17489d582eaa82d.png

Trigger will be "at log on of user"

 

trigger.thumb.png.02abe83a432fc07a98f85319c502c859.pngThe action tab you will choose "Start a program" browse to nircmd.exe and in arguments type:

exec hide "<LOCATION OF UI Launch.bat">

Mine looks like: exec hide "D:\LaunchBox\NirCmd-x64\Commands\XLink Kai\UI Launch.bat"

arguments.thumb.png.a06da9c49f252aade925bcf0a5f5ee3f.png

Use these same condition and settings below:

 

5af6c018da9b9_uicond.thumb.png.43e94f1af9a8f07f382fa38256db8e21.png 5af6c081e726a_uisett.thumb.png.a01ec419adbd7f33d12070f6aea4ea27.pngClick on OK, and you're ready for the next step!

 

STEP 5

Use your hotkey program to open and close your UI

All you have to do now is have a hotkey set to open your XLink UI Open.lnk (Shorcut file) to launch the UI in game and have another hotkey to close the UI by launching XLink UI Close.lnk Both these files should be located in your LaunchBox\NirCmd-x64\Commands\XLink Kai\ folder. As I said before I am using controller companion. I have the secondary select and up button configured to open the UI under PSCX2 and Bigbox, and under internet explorer program I have secondary select+ Down to close the UI.

 

controlopen.thumb.png.feca56f91dbbe2ad1678144503540e1d.pngcontrolclose.thumb.png.c35e02cacffd864bb8a25639ccf2ffcf.png

STEP 6

Restart your computer

Restart the computer. The XLink Kai engine should start with the computer hidden in the background. About 15 seconds later an internet explorer window should pop up minimized into the taskbar (this is the XLink UI), and then after another 10 seconds should disappear into the background. When you launch bigbox or PCSX2 you should be able to hit your hotkey to open up the UI and the other hotkey you have assigned should close the UI.

 

5af6827c17fcb_BigboxOverhead.thumb.png.fae9625fbab461166961928ce9e3f5cb.png

Edited by Chadmando
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...