Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2015, 03:45 PM
emuzual
Fire Beetle
 
Join Date: Feb 2008
Posts: 28
Default easy manage multiple client

Hello,

Why copy some client file that already exist in an other client ?

as i play hold style game i have an old school vision of space and i hate spending disk space for nothing.
so i decide to make some script to manage multiple client for the less volume needed.

easy description is : i have an original client (repository) and i make link to all file in an other folder, then i add specific file (spell db etc ) and i have a new light weight client .

Here is the script and the way to use it :

Code:
@echo off

rem =================================
rem setting some variable
rem =================================

rem name of source repository 
set reponame=ROF2_client


rem =================================
rem 	do no touch below 
rem =================================


rem change or no source repository
set /p reponame=[ Change source repository ? : %reponame% ]


rem  ask name of the dublicate reposotory
set /p repodub=[ Name of the duplicated repository : ]
if %repodub%=="" then goto eof


rem getting current path
set curent=%CD%


rem creating folder tree
echo R | xcopy /T %reponame% %repodub%


rem looping and creating soft symbolink link of source repository to dublicaded repository
setlocal EnableDelayedExpansion
set varlink=

FOR /R %curent%\%reponame% %%G in (*.*) DO (
	SET varlink=%%G
	SET varlink=!varlink:%reponame%=%repodub%!
	mklink "!varlink!" "%%G"
	)



rem ========================================================
rem now including the specifics file to duplicated folder
rem ========================================================

rem looping and replacing file from "add" folder to dublicated repository
set fileadd=
set ffileadd=

FOR /R %curent%\add %%F in (*.*) do (
	set fileadd=%%~nxF
	set ffileadd=%%F
	for /R %curent%\%repodub% %%H in (!fileadd!?) do (
		del %%H
		copy !ffileadd! %%H
		)
	del !ffileadd!
	)
My folder are organise like this :

C:\ Everquest \ ROF2_client \
....................\ CopyEQClient.cmd
....................\ ADD \

....................\ ClientP99 \
....................\ ClientDragonSoul \


ROF2_client is the repository all link will be made from there. So never touch it
CopyEQClient.cmd is the scrip above
ADD folder is the place where specific client file are picked up and include inside new client.


Exemple i want a new client for PEQ server.
1/ i put specifics file inside ADD folder (eqhost.txt,
Spellus.txt some zone file and all other file needed to connect to this server)
2/ i launch script .
Is my repository ok ..yes
what name i want give to this new client ? ClientPEQ (Name of the duplicated repository)

Lets go ..
it will create folder tree copy
then create soft symbolik link of all file
then delete file existing to replace them by the one in add folder
and add the file resting in add folder (new file)

my new client is made.

For best usage i recomend to prepare the ROF2_Client before with the classic EQHost.txt and a short cut "eqgame.exe patchme" as the script also manage shortcut link.

If you @crosoft Windows Explorer does not follow Symbolic Link
You can correct this bug uninstalling KB3039066 (work for me also)


Have fun and see you online
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:32 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3