Friday, May 24, 2019

Make discord launcher without installing it on diskless client

This tutorial goal is to make discord works in diskless environment without have to install it on client :

1. Install discord first normally on server, then you copy discord folder located on "%USERPROFILE%\AppData\Local" directory. Then paste it on other drive.
2. Cut folder "%USERPROFILE%\AppData\Roaming\Discord", then place it inside discord folder that we moved in the step 1 (one).
3. Then make a batch file inside the discord folder and rename it as you desired.
4. Copy paste these commands into the batch file :

@echo off
set batdir=%~dp0
mklink /J "%USERPROFILE%\AppData\Local\Discord" "%batdir%"

mklink /J "%USERPROFILE%\AppData\Roaming\Discord" "Discord"
start "" "%USERPROFILE%\AppData\Local\Discord\update.exe" --processStart discord.exe
exit


Note : 
- %~dp0 is used to get the folder path where the file/script is located (e.g. D:\Discord\ ).
- %~f0 is used to get the full path of the script/file (e.g. D:\Discord\discordlauncher.bat ).
- %USERPROFILE% is used to get the current account path (e.g. C:\Users\Admin ).
- For other information about environment variable type set in command line.

Thursday, May 23, 2019

Custom Shorcut For Steam Game

If you want to make custom shorcut for Steam Game, follow these steps :
1. Make new text document and write these codes :

@echo off
start "" "D:\Manual Games\Steam\Steam.exe" -applaunch 570 -noverifyfiles
exit

Note :
"D:\Manual Games\Steam\Steam.exe" is where your steam installed or located.
"570" is Steam app ID. You can search the ID here.

2. Save the file as batch file, for example : "dota2launcher.bat"

Some famous Steam Games ID :
Dota 2  = 570
CS GO = 730
PUBG = 578080
Freestyle = 339610
Paladins = 444090
Rainbow Six Siege = 359550

Lost Connection to Steam
If you experience lost connection to Steam when playing Dota 2, here's the solution :
- Right Click on Dota 2, then select properties.
- Then set launch options, then type in "-clientport 27015".
- Or you can make new custom shorcut like above example and add -clientport parameter to the shorcut :

@echo off
start "" "D:\Manual Games\Steam\Steam.exe" -applaunch 570 -clientport 27015 -noverifyfiles
exit

Tuesday, May 21, 2019

Creating Virtual drive for Folder using Subst Command in Windows

Using subst command, you can make virtual drive for any your desired folder. This can be usefull if you need to make a game work in diskless environment where drive in server and client were mapped differently.

And this how it works :
  1. Open Command Prompt. Don't run it as administrator because it has to run on current account or you will not see it in explorer.
      2. Type and provide the following command : subst drive_letter: folder_path  
    For example : subst R: "E:\Program Files"
Or you can subst the folder without have to specifie physical drive and path of the folder. But you have to change the current directory to where the folder located.
For example :
You want to subst "Program Files" folder with path "E:\New Folder\Program Files",
you can make batch file and write in this command : Subst R: "Program Files" and place the batch file inside the "New Folder" .

Saturday, May 18, 2019

Creating Symbolic Links (SymLinks) on Windows

Example :
You want to symlinks folder "D:\Blizzard\ProgramData\Battle.net" to "C:\Programdata" then type this :

mklink /J "C:\Programdata\Battle.net" "D:\Blizzard\ProgramData\Battle.net"

Note:
- /J parameter creates a Directory Junction .If you want to symlinks one file only, remove /J.
- You can use this to replace xcopy command. It is more efficient than xcopy.
- For more information about mklink, type : mklink /? in command line
- /J parameter doesn't need administrator privilege than /D parameter.

Tuesday, May 14, 2019

Blank Screen when log in to Origin

Solution :
1. Please make sure that the QtWebEngineProcess.exe is not disabled or blocked by your anti-virus - this is an integral part of the Origin client and this process not being able to run will result in a blank screen. Programs that could effect this could be an anti-virus, anti-malware, add-blocker etc. 
2.  Clear Origin cache, this is how you do it :
- If Origin is running, close it by clicking Origin in the menu bar then Exit.
  • Double-check that Origin is fully closed. If it isn’t, you won’t be able to complete all the steps.
  • To double-check, open Task Manager and go to Processes. Make sure that Origin.exe and OriginWebHelperService.exe aren’t there. If they are, end the tasks to close them.