Jump to content

  •  

christianz30

Member Since 06 Jul 2013
Offline Last Active Oct 10 2013 11:25 PM
-----

Topics I've Started

[Guide] Setting-Up 2013 Clients

21 July 2013 - 03:44 PM

kRO 2013 Client Set-Up

 

 

Prepared by: Tian

Date Created: July 09, 2013
Version: 1.0
 
 
Table of Contents
  • Pre-Requisite Items   

  • Client Set-Up Instructions   

  • Additional Info 

  • Known Issues 

  • Credits & References

 

 
I. Pre-Requisite Items:
- clean kRO folder (make sure it’s fully patched!)
Posted Image
- Updated Data Folder/System Folder (Download the latest Data Folder)
Posted Image
-    Download luatolub.bat from: http://www.mediafire...4v/luatolub.bat
 
II. Client Set-Up Instructions
1. Copy your Clean KRO Folder (to back-up your kRO)
2. Extract and Copy the Contents of Data Folder v4(or latest rev) to the clean kRO Folder 
3. Open kRO/data/clientinfo.xml update the code
Search <servertype></servertype> Set it to primary  Search <langtype></langtype> Set it to 0 

Sample:

Posted Image

4. Edit the trunk >Hercules/src/common/mmo.h then build the solutions

Search     	#define PACKETVER YYYYMMDD And match it with the date version you choosed for your client ex:	#define PACKETVER 20130522  Clean and re-build the solution of your emulator after it !!!

5. Place luatolub.bat inside the kRO/data/luafiles514 and run it to convert the luas to lub

Posted Image

6. Copy and paste the launcher to the kRO folder (loki.exe, loki.ini, loki skin folder) from the Demo Package
Posted Image
7. Copy and paste the Client.exe to the kRO folder (LocalRO.exe) from the Demo Package
 
 
8. Open the file kRO/savedata/OptionInfo.lua and change the code to: (If no file exists, create one)
CmdOnOffList = {  ["/battlemode"] = 0,  ["/notrade"] = 0,  ["/noshift"] = 0,  ["/noctrl"] = 1,  ["/skillfail"] = 1,  ["/notalkmsg"] = 0,  ["/notalkmsg2"] = 0,  ["/showname"] = 1,  ["/fog"] = 1,  ["/aura"] = 1,  ["/window"] = 0,  ["/miss"] = 1,  ["/q1"] = 0,  ["/q2"] = 0,  ["/effect"] = 1,  ["/bgm"] = 1,  ["/sound"] = 1,  ["/loginout"] = 1,  ["/shopping"] = 1,  ["/stateinfo"] = 1,  ["/snap"] = 0,  ["/itemsnap"] = 0,  ["/skillsnap"] = 1,  ["/hoai"] = 0,  ["/merai"] = 0,  ["/camera"] = 0,  ["/btg"] = 1,  ["/lightmap"] = 1}OptionInfoList = {  Window_XPos = -1,  Window_YPos = -1,  Trilinear = 0,  Bgm_Volume = 100,  Effect_Volume = 100,  AutoOpen1to1Window = 1,  AutoOpen1to1Window_Friend = 1,  PlaySound_Open1to1Window = 1,  Simplicity_SkillList = 0,  Show_SkillDescript = 0,  ChangeChatMode = 1,  LockMouse = 0,  ChannelCopID = 0,  Outdoor_ViewLatitude = -45,  Outdoor_ViewDistance = 400,  Indoor_ViewLatitude = -45,  Indoor_ViewDistance = 300,  SkinName = "<Basic Skin>",  MouseExclusive = 1,  WIDTH=800,  HEIGHT=600,  BITPERPIXEL=16}

9. Right-Click the OptionInfo.lua and click on Properties, tick the Read-Only option

Posted Image
10. Run the server and open loki.exe(the launcher) and log-in
Posted Image
 
Posted Image
Posted Image
Posted Image
 
CREDITS & REFERENCES:
 
1. Credits to Shakto for the Guide:
2. Credits to Alexandria for the Data Folder:
3. Credits to mleo1 for the Loki Launcher:
4. Credits to zackdreaver for the Client SetUp revert issue fix:
 
Notes:
Suggestions are welcome in order to make the guide more easier to follow and to make it more accurate. Thanks  :D
 
Not Included in the Guide but options:
1. Client-Diffing 
2. ROCred (alternative to loki)
 
 
 
 

 


Client Set-Up Not Saving

07 July 2013 - 03:30 AM

Hello Guys,

I'm kinda new here...

Uhmm I was just wondering if there is a fix to this issue that I'm facing...

The scenario is that when I save the client set-up using SetUp or opensetup... The client resets every time it closes or opens...

 

Upon investigation here are a list of facts:

1. I'm using 20130522 client

2. Every time I use the launcher, a warning pops up that says "[string "buf"]:1 attemp to index global 'CmdOnOffList' (a nil value)"

3. After that warning, the client works perfectly but it resets itself to the default setting

4. I got the latest files System files from https://subversion.a...slation/System/ (Rev. 37)

5. I overwritten the files in my System folder

6. I copied the code inside the optioninfo.lua of the System folder

7. I pasted the code inside the optioninfo.lua in the savedata folder

8. I edited the code to set the Width = 800 Height = 600 Bitperpixel= 16

9. I used the launcher and the client didn't show the warning message

10. I closed the client

11. I opened the client again and a warning pops up that says "[string "buf"]:1 attemp to index global 'CmdOnOffList' (a nil value)" again

12. I checked the code in the optioninfo.lua of the savedata folder and compared it from the System folder

 

[savedata]

 

CmdOnOffList["/notrade"] = 0
CmdOnOffList["/noshift"] = 0
CmdOnOffList["/noctrl"] = 1
CmdOnOffList["/skillfail"] = 1
CmdOnOffList["/notalkmsg"] = 0
CmdOnOffList["/notalkmsg2"] = 0
CmdOnOffList["/showname"] = 1
CmdOnOffList["/fog"] = 1
CmdOnOffList["/aura"] = 1
CmdOnOffList["/window"] = 0
CmdOnOffList["/miss"] = 1
CmdOnOffList["/q1"] = 0
CmdOnOffList["/q2"] = 0
CmdOnOffList["/effect"] = 1
CmdOnOffList["/bgm"] = 1
CmdOnOffList["/sound"] = 1
CmdOnOffList["/loginout"] = 1
CmdOnOffList["/shopping"] = 1
CmdOnOffList["/stateinfo"] = 1
CmdOnOffList["/snap"] = 0
CmdOnOffList["/itemsnap"] = 0
CmdOnOffList["/skillsnap"] = 1
CmdOnOffList["/hoai"] = 0
CmdOnOffList["/merai"] = 0
CmdOnOffList["/camera"] = 0
CmdOnOffList["/lightmap"] = 1
CmdOnOffList["/monsterhp"] = 1
 
OptionInfoList["Trilinear"] = 0
OptionInfoList["Bgm_Volume"] = 100
OptionInfoList["Effect_Volume"] = 100
OptionInfoList["AutoOpen1to1Window"] = 1
OptionInfoList["AutoOpen1to1Window_Friend"] = 1
OptionInfoList["PlaySound_Open1to1Window"] = 1
OptionInfoList["Outdoor_ViewLatitude"] = -62.000000
OptionInfoList["Outdoor_ViewDistance"] = 383.000000
OptionInfoList["Indoor_ViewLatitude"] = -45.000000
OptionInfoList["Indoor_ViewDistance"] = 300.000000
OptionInfoList["SkinName"] = "<Basic Skin>"
OptionInfoList["ChannelCopID"] = 0
OptionInfoList["Window_XPos"] = 240
OptionInfoList["Window_YPos"] = 100
OptionInfoList["Simplicity_SkillList"] = 0
OptionInfoList["Show_SkillDescript"] = 0
OptionInfoList["ChangeChatMode"] = 1
OptionInfoList["LockMouse"] = 0
OptionInfoList["ShowBattleFieldIcon"] = 1
OptionInfoList["MouseExclusive"] = 1
OptionInfoList["ISFULLSCREENMODE"] = 0
OptionInfoList["WIDTH"] = 800
OptionInfoList["HEIGHT"] = 600
OptionInfoList["BITPERPIXEL"] = 16
OptionInfoList["DEVICECNT"] = 0
OptionInfoList["MODECNT"] = 0
OptionInfoList["SPRITEMODE"] = 2
OptionInfoList["TEXTUREMODE"] = 2
OptionInfoList["bLockItemDropFromItemWnd"] = 0
 

 

[System]

 

CmdOnOffList = {
  ["/battlemode"] = 0,
  ["/notrade"] = 0,
  ["/noshift"] = 0,
  ["/noctrl"] = 1,
  ["/skillfail"] = 1,
  ["/notalkmsg"] = 0,
  ["/notalkmsg2"] = 0,
  ["/showname"] = 1,
  ["/fog"] = 1,
  ["/aura"] = 1,
  ["/window"] = 0,
  ["/miss"] = 1,
  ["/q1"] = 0,
  ["/q2"] = 0,
  ["/effect"] = 1,
  ["/bgm"] = 1,
  ["/sound"] = 1,
  ["/loginout"] = 1,
  ["/shopping"] = 1,
  ["/stateinfo"] = 1,
  ["/snap"] = 0,
  ["/itemsnap"] = 0,
  ["/skillsnap"] = 1,
  ["/hoai"] = 0,
  ["/merai"] = 0,
  ["/camera"] = 0,
  ["/btg"] = 1,
  ["/lightmap"] = 1
}
OptionInfoList = {
  Window_XPos = -1,
  Window_YPos = -1,
  Trilinear = 0,
  Bgm_Volume = 100,
  Effect_Volume = 100,
  AutoOpen1to1Window = 1,
  AutoOpen1to1Window_Friend = 1,
  PlaySound_Open1to1Window = 1,
  Simplicity_SkillList = 0,
  Show_SkillDescript = 0,
  ChangeChatMode = 1,
  LockMouse = 0,
  ChannelCopID = 0,
  Outdoor_ViewLatitude = -45,
  Outdoor_ViewDistance = 400,
  Indoor_ViewLatitude = -45,
  Indoor_ViewDistance = 300,
  SkinName = "<Basic Skin>",
  MouseExclusive = 1,
  WIDTH=800,
  HEIGHT=600,
  BITPERPIXEL=16
}
 
Now... I want to find a way that whenever I exit the client, it saves properly and does not revert the settings in the savedata...
 
Thank you in advance for your reply :)