[Tutorial] Shaiya Updater

01/17/2011 22:09 SrShaden#1
Ok Friends, for all the help I got around here, its time for me to make my Shaiya Updater Tutorial... I will be very specific and give a lot of example. Bottom line this will be a long tutorial Good Luck.

Lets begin with what you need to successfully make your updater work.

1. You will need a working Website, I used webs.com to do this
2. You will need 3 software to make your Update Files
|- [Only registered and activated users can see links. Click Here To Register...]
|- and Google SHAIYA_MAKE_v0-1.zip cause I don't think its available here
anyways its a combiner.
|- And last you need a File Manager I use 7-Zip to do this.

Alright that's it for the software, now we need to create 2 .ini files.

First one we will make is the UpdateVersion.ini...
Start by opening notepad and write this in it.

Quote:
[Version]
CheckVersion=3
UpdaterVersion=18
PatchFileVersion=33
Ok so read this carefully now...

CheckVersion & UpdaterVersion STAYS THE SAME
As for PatchFileVersion=33 <- To know what to put here follow these steps. Open Shaiya Game Folder for example mine is C:\AeriaGames\Shaiya\
Alright now Open Version.ini Now mine says CurrentVersion=32... therefor my PatchFileVersion=33
So its CurrentVersion + 1... Example: if yours is CurrentVersion=1 then PatchFileVersion=2... Got it? Good.

Save it as UpdateVersion.ini

Now for the CONFIG.ini, Open Notepad and copy this:
Code:
[VIDEO]
SIZE_X=1024
SIZE_Y=768
COLOR=32
TEXTURE=HIGH
RANGE=HIGH
FULLSCREEN=FALSE
WATER=FALSE
GLOW_LEVEL=2
GAMMA=2
SHADOW=FALSE
CLOAK=FALSE
HELMET=FALSE
WEAPONEFF=FALSE

[LOGIN]
ID=
NOLTOSITE=FALSE
[INTERFACE]
SHOW_MESSAGE_NOTICE=TRUE
SHEET_TYPE=0
SHEET_TYPE_SKILL=3
SHEET_BACKPACK=1
CHAT_BOX_VIEW=FALSE
MAPBOARD_SIZE=1
SHOW_MESSAGE_REPAIR=FALSE
LOGIN_ID_SAVE=TRUE
SHOW_MESSAGE_STORE=FALSE

[SOUND]
VOL_BGM=0
VOL_EFFECT=0
VOL_WORLD=0
VOICE_CHAR=FALSE
VOICE_NPC=FALSE
DANGER_DETECT=FALSE

[USER]
USE_MOUSE=TRUE
INV_MOUSE=FALSE
INV_MOUSE_UPDOWN=FALSE
MOUSE_SENSITIVITY=3
MY_NAME=TRUE
USER_NAME=TRUE
MONSTER_NAME=TRUE
USE_FILTER=FALSE
SHOW_INTERFACE=TRUE
REJECT_FIGHT=FALSE
REJECT_PARTY=FALSE
WARNING_MSG=TRUE
REJECT_TRADE=FALSE
UI_REOPEN=TRUE
SCREEN_SWING=TRUE
TALK_BALLOON=TRUE
HIDE_DAMAGE=FALSE

[INTERFACE_800X600]
MINIMAP_POS_X=630
MINIMAP_POS_Y=57
STATUSINFOBAR_POS_X=0
STATUSINFOBAR_POS_Y=120
STATUSMINIBAR_POS_X=0
STATUSMINIBAR_POS_Y=0
QUICKSLOT_POS_X=354
QUICKSLOT_CHANGE=FALSE
QUICKSLOT_POS_Y=0
MAPBOARD_POS_X=0
MAPBOARD_POS_Y=26
CHAT_POS_X=0
CHAT_SIZE0=5
CHAT_SIZE1=3
CHAT_POS_Y=269
COMPASS_POS_X=649
COMPASS_POS_Y=429
SHEET_POS_X=544
SHEET_POS_Y=2
SHEET_GUILD_POS_X=619
SHEET_GUILD_POS_Y=153
SHEET_QUEST_POS_X=498
SHEET_QUEST_POS_Y=165
SHEET_SUB_POS_X=692
SHEET_SUB_POS_Y=153
SHEET_SKILL_POS_X=574
SHEET_SKILL_POS_Y=125
SHEET_ITEM_POS_X=675
SHEET_ITEM_POS_Y=156
SHEET_STATUS_POS_X=406
SHEET_STATUS_POS_Y=153
SHEET_OPTION_POS_X=380
SHEET_OPTION_POS_Y=89

[INTERFACE_1024X768]
SHEET_POS_X=683
SHEET_POS_Y=162
STATUSINFOBAR_POS_X=7
STATUSINFOBAR_POS_Y=108
STATUSMINIBAR_POS_X=0
STATUSMINIBAR_POS_Y=0
CHAT_POS_X=0
CHAT_SIZE0=4
CHAT_SIZE1=6
CHAT_POS_Y=386
QUICKSLOT_POS_X=217
QUICKSLOT_CHANGE=FALSE
QUICKSLOT_POS_Y=0
MINIMAP_POS_X=399
MINIMAP_POS_Y=584
COMPASS_POS_X=868
COMPASS_POS_Y=593
MAPBOARD_POS_X=282
MAPBOARD_POS_Y=114
QUESTMINI_POS_X=0
QUESTMINI_POS_Y=297
SHEETSTATUS_POS_X=582
SHEETSTATUS_POS_Y=113
SHEET_STATUS_POS_X=438
SHEET_STATUS_POS_Y=193
SHEET_ITEM_POS_X=455
SHEET_ITEM_POS_Y=177
SHEET_SKILL_POS_X=377
SHEET_SKILL_POS_Y=143
SHEET_SUB_POS_X=477
SHEET_SUB_POS_Y=153
SHEET_QUEST_POS_X=314
SHEET_QUEST_POS_Y=122
SHEET_GUILD_POS_X=390
SHEET_GUILD_POS_Y=177
SHEET_OPTION_POS_X=363
SHEET_OPTION_POS_Y=116
PARTYMINIBAR_POS_X=752
PARTYMINIBAR_POS_Y=180
QUICKSLOT_PLUS=FALSE
QUICKSLOTPLUS_POS_X=215
QUICKSLOTPLUS_POS_Y=101
QUICKSLOTPLUS_CHANGE=FALSE
REVOLVERSLOT_POS_X=676
REVOLVERSLOT_POS_Y=3
REVOLVERADDSLOT_PAGE=0
REVOLVERSLOT_CHANGE=HORIZONTAL
REVOLVERADDSLOT=OFF
QUICKSLOTPOTION_POS_X=736
QUICKSLOTPOTION_POS_Y=59

[INTERFACE_1280X1024]
SHEET_POS_X=1024
SHEET_POS_Y=203
STATUSINFOBAR_POS_X=309
STATUSINFOBAR_POS_Y=0
STATUSMINIBAR_POS_X=0
STATUSMINIBAR_POS_Y=0
CHAT_POS_X=0
CHAT_SIZE0=8
CHAT_SIZE1=6
CHAT_POS_Y=582
QUICKSLOT_POS_X=569
QUICKSLOT_CHANGE=FALSE
QUICKSLOT_POS_Y=0
MINIMAP_POS_X=1110
MINIMAP_POS_Y=0
COMPASS_POS_X=1129
COMPASS_POS_Y=843
MAPBOARD_POS_X=0
MAPBOARD_POS_Y=82
SHEET_STATUS_POS_X=685
SHEET_STATUS_POS_Y=304
SHEET_ITEM_POS_X=960
SHEET_ITEM_POS_Y=305
SHEET_SKILL_POS_X=880
SHEET_SKILL_POS_Y=301
SHEET_SUB_POS_X=934
SHEET_SUB_POS_Y=301
SHEET_QUEST_POS_X=706
SHEET_QUEST_POS_Y=302
SHEET_GUILD_POS_X=910
SHEET_GUILD_POS_Y=306
SHEET_OPTION_POS_X=810
SHEET_OPTION_POS_Y=252

[OPTION]
KEY0=30
KEY1=17
KEY2=16
KEY3=15
KEY4=46
KEY5=32
KEY6=31
KEY7=18
KEY8=17
KEY9=57
KEY10=20
KEY11=37
KEY12=22
KEY13=24
KEY14=47
KEY15=23
KEY16=48
KEY17=34
KEY18=50
KEY19=1
[UNIONPARTY]
ALPAH_VALUE=100
UNION_WINODW_VISIBLE=TRUE
[TUTORIAL]
MOUSE=FALSE
MOVE=FALSE
ITEM=FALSE
SKILL=FALSE
QUEST=FALSE
LEVELUP=FALSE
Save this as: CONFIG.ini


Alright now you got the software, the files, now to edit the Updater using a Hex Editor so Open your Updater with Hex editor and Find http://

You can do Ctrl + F to open the find window

This Image highlights the 3 http:// That will need modification
[Only registered and activated users can see links. Click Here To Register...]

So the first one is:
Code:
http://shaiya.aeriagames.com/sygame/notice..굴림체...
Here's what you put in:
Code:
http://yourwebsite.com.......................굴림체...
Just in case I need to specify yourwebsite.com " Put Your Website "
So if your website is
Code:
http://SrShaden.webs.com
well you put that instead.
As for the dots after .com.......... Don't forget to replace the "2E" on the Left side to "00" this goes for every dots that are not part of your website so I hope you get this, for every dots you use to fill it should be Null "00"

So here's a snapshot after modifying the first http://
[Only registered and activated users can see links. Click Here To Register...]

2. The next http:// witch is the next line in your editor is:
Code:
open....http://login.aeriagames.com/index.php?q=user/register...
Here's what you put in:
Code:
open....http://yourwebsite.com..................................
(Fill with Nulls "00" up to the next http:// )
So here's what it should look like with the 2 fisrt http:// modified:
[Only registered and activated users can see links. Click Here To Register...]

As you can see there is a lot of dots to fill to overwrite the old website so im showing you how to make them NULL, when you put a "dot" it creates the code "2E" on the left... but when you use "dots" to overwrite it should be "00" Example: if you put:
"website.com" the dot should be "2E"
but after that its "website.com........." so the dots after "com" are NULL therefor should be replaced with "00"
So you select all the Null dots, right-click it and select "Fill Selection"
Like the snapshot above then click "ok"
[Only registered and activated users can see links. Click Here To Register...]

3.
Code:
http://shaiya.aeriagames.com/...
Code:
http://yourwebsite.com/..........
"DON'T forget the end /"
So the first 3 http: modification looks like this:
[Only registered and activated users can see links. Click Here To Register...]


Now do Ctrl + F and find: TEST_IP witch is a few dozen lines below.

4. TEST_IP.shaiya.patch.aeriagames.com..\CONFIG.ini.. .. <- Was
TEST_IP.yourwebsite.com...................\CONFIG. ini... <- Change to
Like This:
[Only registered and activated users can see links. Click Here To Register...]

Now Save it. Now go to yourwebsite.com and Upload the file CONFIG.ini with the rest of you website then create a new folder named Shaiya: In this folder you will upload your UpdateVersion.ini, And also in your Shaiya folder you will create a folder there named patch: In this folder you will upload your .patch file, In my case, ps0033.patch cause my PatchFileVersion is 33.

Ok so now your files and folder are created and uploaded to your website, except your psxxxx.patch... Alright then, lets make one together.

For this example I will modify the random_loading images and my Logo.
1.Make sure the files you are patching are the same name as those you want to modify...Example My logo was Logo.gif... but the one I want to change is named sonovlogo.bmp so rename yours to the same as original.

Ok now that thats cleared up you can open Shaiya Make V 0-1, there are 2 folders, files & data...open data folder... YOU NEED to put the same path also. Example, the files I am changing are in interface, so I create a Folder named interface and put my files there.

If you were to modify cash.sdata, you would just put it there, no folders. And so on... Put them in the same location as the original ones.

Alright, so now you Run Shaiya_Make.exe....... Done. Now open Files.. O.O
two files are created OMG its not update.sah or update.saf, its named data.sah and data.saf..... Whats your point? Change them...

data.sah to update.sah & data.saf to update.saf

Ok, now you got those update files everyones talks about. Now what?
Select both of them and right-click \ Add To Achives....
7zip opens up and MAKE SURE YOU SAVE AS .ZIP and not 7z...
Select the option Archive Format = zip
Select Deflate in compression method
select Add and Replace files
Press ok, now you have created the file.zip with your 2 other files.
name it (in my case) ps0033.patch if your CurrentVersion was 1 then you save it with the name ps0002.patch, before you click OK make sure the Update Mode is "Add and replace", now press ok. It will create ps0033.patch in the same folder as your update.sah/saf.

Go to your website and upload it in your patch folder. Now save your website for the changes and there you go ! Oh yea, make sure your updater is named Update.exe and your game is Game.exe

Congratulations !
01/18/2011 11:25 [GM]Recover#2
thanks i have been looking for this but i get confused after the config.ini

but most likley i need to sit down and think
01/18/2011 12:23 SrShaden#3
Tell me what confuses you and I will help, i'm preparing snapshots for better understanding, will modify sometime today when I get the chance
01/18/2011 13:19 [GM]Recover#4
i get confused after the u make ur config.ini
when u start editing in the hex editor
01/18/2011 14:36 SrShaden#5
# Added Snapshots
01/18/2011 17:23 ProfNerwosol#6
Don't forget the compression method should be DEFLATE. Otherwise you'll get C++ Runtime Error.
01/18/2011 17:42 SrShaden#7
Explain because i did it just like that and didnt get an error, If you could explain what you mean plz so we can prevent this from happening to others
01/19/2011 01:17 RebeccaBlack#8
Not sure what DEFLATE compression method is, but this is how I always do it. (When I'm not using LPH's Data File Tool to make patches)

[Only registered and activated users can see links. Click Here To Register...]
01/20/2011 04:39 [GM]Recover#9
i made it on webs but it wont update an ideas but my updater does not have the test_ip thiinghy
01/20/2011 05:45 SrShaden#10
If you didnt modify the TEST_IP thats why it wont work, after the last IP scroll down slowly its not that far down... and if you really want i can give you a hand with team viewer or something, I used the latest Updater of the OS, they all have it from EP3 to EP5
01/20/2011 05:56 [GM]Recover#11
can u just post ur updater.exe
and i will try again
01/21/2011 00:55 Bаne#12
This guide is also in the wrong section xD but it is a great guide.

many thanks as people were having troubles with it..

-Bane
01/21/2011 04:43 SrShaden#13
I Posted this one b4 I posted The NPC Tut. and I send a msg to LPH to move it, he moved the NPC one and will probly move this one soon.
01/21/2011 07:52 [GM]Recover#14
fixed + it is working now
01/23/2011 01:27 ac1dtab#15
ok i have done everything step by step and done everything exactly right even tryed to use LPH's tool ta creat the patch and still nomater what i do it gives download faild: cant read file c25 any help plzz on whats going wrong