Silkroad Online Forums
http://www.silkroadforums.com/

Media.pk2 Revealed [56k Warning]
http://www.silkroadforums.com/viewtopic.php?f=5&t=86897
Page 1 of 1

Author:  JanChlpik [ Sat May 03, 2008 12:23 pm ]
Post subject:  Media.pk2 Revealed [56k Warning]

Contens:

Recomended programs:
PK2tools(PK2editor and extractor)
http://www.silkroadforums.com/viewtopic.php?t=73206

DDS/DDJ converter or manual ddj editing thread



Media.pk2 contens
Image

Config
Contains option.txt, which allows you to change intro movie, but only for KSRO.
Constantinople
Code:
//StartProcess = "CPSLoadingMission"
StartProcess = "CPSVersionCheck"
//Map = "0"

StartCharacter = "1907"
StartWeapon = "0"
IntroName = "script\intro\constantinople.txt"
IntroBGM = "maintheme_cut.ogg"

Roc(last two lines)
Code:
IntroName = "script\intro\roc.txt"
IntroBGM = "roc_bgm_total.ogg"

Chinesse ferry
Code:
IntroName = "script\intro\china_wharf.txt"
IntroBGM = "maintheme_cut.ogg"

If you want play with it you can change script data(KSRO) in script\intro and respected txt file

Definition for camera script(KSRO), script\intro
Code:
0.0 S_CameraInsert 0.0 78 105 8319.4 504.60 468.3 -0.979 4.334 -0.006 10

Code:
78 105
- region code(codes can be found in data.pk2, name is regioninfo.txt, it goes by updates so chinese areas are first)
Code:
8319.4 504.60 468.3
northsouth(may be oposite), height, eastwest(not sure may be oposite)
Code:
-0.979 4.334 -0.006
respected angles(tangens alfa)

You can download premade option.txt for ksro here(intro_movie_KSRO_only.zip)
http://hosted.filefront.com/JanChlpik/2221400

Other files in config are not interesting

Cursor
Does not contain cursor used ingame so nothing to say

Effect effects for 2D items and targeting
the colored circle are the ones you see when you click on monster or ground
Image
Image

Fonts
0.dat, i.dat, y.dat is used in KSRO to make these letters different(0,i,y)
Fix is here
If you want change font you can do it in textuisystem.txt under entry UIC_STT_FONTNAME, make sure it is at right place(guide here)

Icon
Contains icons of various items(32x32)
Image
Image
Image

Icon\action
Image
Image

Icon\cos
Image
Image
Image
Image
Image

icon\etc\
Image
Image
Image
Image

icon\etc\icon
Image

icon\item\avatar
Image
Image
Image

icon\item\china\man
Image
Image
Image
Image
Image
Image
Image
Image

icon\item\china\shield
Image

icon\item\china\weapon
Image
Image

icon\item\china\woman
Image
Image
Image
Image
Image
Image
Image
Image

icon\item\etc
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

icon\item\europe\accessory
Image

icon\item\europe\man
Image
Image
Image
Image
Image
Image
Image

icon\item\europe\shield
Image

icon\item\europe\weapon
Image
Image
Image
Image

icon\item\europe\woman
Image
Image
Image
Image
Image
Image
Image

icon\item\fort
Image

icon\npc
Image

icon\skill\china
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

icon\skill\etc
Image

icon\skill\europe
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

icon\skill\monster
Image

icon\skill\tc
Image

icon\skillgroup\Europe and icon\skillgroup\Europe
Contains icons of skill trees

icon\skillmastery
Image

icon\skillmastery\China
Image

icon\skillmastery\Europe
Image

icon\stateodd
Image

Image

icon64
icon64\cos
Image
Image

icon64\item\avatar
Image
Image

icon64\item\etc
Image
Image
Image

icon64\item\package
Image

Interface
Contains pictures of inventory, underbar, minimap, alchemy window, party, window etc.

Launcher(+Eu)
Contains pictures of launcher, .dat are renamed BMP pictures mostly(only hex 3rd letter in file to P and rename it)

Minimap and MinimapD
Contains area maps shown in top right corner.(D version is for downhang dungeon).

Resinfo
Links text and pictures together
Example:
Code:
   GDR_TEXT_CHINA:CIFTextBox
   {
      ClientRect=RECT,"0,0,0,0"
      Color=COLOR,"255,178,101,200"
      DDJ=STRING,""
      FontColor=COLOR,"255,255,255,255"
      FontIndex=INTEGER,"0"
      HAlign=INTEGER,"0"
      ID=INTEGER,"200"
      Rect=RECT,"19,47,401,87"
      Style=INTEGER,"0"
      SubSection=STRING,""
      Text=STRING,"UIO_NEWCHAR_CTL_CHINESE_TT"
      UV_LB=POINT,"0,1"
      UV_LT=POINT,"0,0"
      UV_RB=POINT,"1,1"
      UV_RT=POINT,"1,0"
      VAlign=INTEGER,"0"


GDR_TEXT_CHINA:CIFTextBox
Instruction continues at IFTextBox.txt

DDJ=STRING,"interface\\character\\chr_job.ddj"
Location of picture
or no picture
DDJ=STRING,""

Text=STRING,"UIO_NEWCHAR_CTL_CHINESE_TT"
Text(It will be loaded either from textdataname.txt, textuisystem.txt, textquest.txt, texthelp.txt, textzonename.txt or textevent.txt)

Color=COLOR,"255,178,101,200"
Determines color in ARGB system(which alpha means visibility(255=100%), but not sure about this As I was testing it and I am not sure if they dont have it defined in their own way.

Rect=RECT,"19,47,401,87"
is are, where it will be displayed.Not sure for what resolution is it or if it is resolution independent

Rest is text formating and aligment.

server_dep\silkroad
server_dep\silkroad\event
contains mall_notify.txt which allows you to turn item mall notification on/off and change text.

Code:
Open = "1"

TextMargin = "5"
TextString = "New item(s) has been stocked\nin Item Mall."

Mall_Open = "1"
Mall_FrontImg = "interface\mall\mall_fur_avatawindow.ddj"
Mall_ManItemString = "Fur Dress(M)"
Mall_WomanItemString = "Fur Dress(F)"
Mall_SellingTime = "Until stocks are sold out"


Open = "1"
Mall popup, when you start game(1=on/0=off)

TextString = "New item(s) has been stocked\nin Item Mall."
text on popup

Rest configures item mall start page possibly

server_dep\silkroad\textdata
Contains textdataname.txt, textuisystem.txt, textquest.txt, texthelp.txt, textzonename.txt and textevent.txt, which contain text in game(item names, quest contents, npc dialogues, system msg etc)

Rest of textdata not explored yet, but I can say its 99% complete.

Author:  Rainigul [ Sat May 03, 2008 4:34 pm ]
Post subject:  Re: Media.pk2 Revealed

It's pretty well done, but you should tell what we can do with all that info.

Continue though please :) well done.

Author:  LaloHao [ Sat May 03, 2008 11:48 pm ]
Post subject:  Re: Media.pk2 Revealed

A little more info would be appreciated

Author:  theblindarcher [ Sun May 04, 2008 4:18 am ]
Post subject:  Re: Media.pk2 Revealed

well done dude...well done

Author:  William-CL [ Sun May 04, 2008 4:37 am ]
Post subject:  Re: Media.pk2 Revealed

Not much that people don't know about or how to get. Please continue so we can see where it ends up, but good so far. And about the cursors, they are in the client file or launcher file. Can't remember what cruor said.

Author:  Cruor [ Sun May 04, 2008 8:38 am ]
Post subject:  Re: Media.pk2 Revealed

The scripting system is actually one of the more enjoyable things to play around with, but it's easier to use if you know a few things about the camera.

Here's the axes:
Image

And where they go in the script:
[?] [S_CameraInsert] [t] [x-tile] [y-tile] [x] [z] [y] [θ] [ψ] [φ] [d]

  • Not sure about the first value. It seems to be used along with an S_Start to keep t relatively small.
  • t is start time for the camera's movement.
  • x-tile and y-tile correspond to regioninfo, the minimap, and the map files. They place the origin at the southwest corner of the map.
  • x, y, and z are the coordinates for the focal point of the camera within the tile. One unit is equal to 1/2048th of a tile, so there are 8 units per pixel if you are looking at the minimap.
  • θ, ψ, and φ are the pitch, yaw, and roll of the camera respectively. They are relative to the focal point and are measured in radians (180/π degrees). The camera will never turn more than π radians about the focal point.
  • d is the distance of the camera from the focal point.

Author:  obeckcity81 [ Mon Jun 09, 2008 12:31 am ]
Post subject:  Re: Media.pk2 Revealed [56k Warning]

wow, realy nice!

Author:  /Pi [ Tue Jun 10, 2008 9:04 am ]
Post subject:  Re: Media.pk2 Revealed [56k Warning]

Damn. Those item mall icons are really interesting, especially the green, blue, and red books. @.@

Author:  obeckcity81 [ Tue Jun 10, 2008 4:57 pm ]
Post subject:  Re: Media.pk2 Revealed [56k Warning]

hi, i made a little introskript now with this tut.

http://de.youtube.com/watch?v=Wyk_zm8bdT0

Author:  penfold1992 [ Tue Jun 10, 2008 5:49 pm ]
Post subject:  Re: Media.pk2 Revealed [56k Warning]

wow that is very good. could u write a tut specificly how to do that lol v nice

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/