Advertisement
shedarshian

STD file

Sep 21st, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. the std file structure(std file is the file that controls 3d bkg)
  2.  
  3. file header:
  4. word data_count
  5. word (the count of that statements whose second parameter is 0x1c(28))
  6. dword address_moredata
  7. dword address_script
  8. dword unknown
  9. string anm
  10.  
  11. data address(begin from 90):
  12. dword data_address_01
  13. dword data_address_02
  14. ......
  15.  
  16. data(which is the objects in std)(create object using "script" number in anm):
  17. [data 0]
  18. word std_object_id(usually same as data number)
  19. word anm_script_id
  20. float x
  21. float y
  22. float z
  23. float width
  24. float height
  25. float depth
  26. (the following statements follows the upper statements directly, and may repeat many times)
  27. word 0(0 means a quad, 0xffff means the end WHATISTHIS.jpg)
  28. word 1Ch
  29. word anm_script_id
  30. float x
  31. float y
  32. float z(x y z are the position of the upper-left corner)
  33. float width
  34. float height(if not 0, this data will cover the width and height in anm, otherwise the program will use datas in anm)
  35. ......
  36. word FFFF
  37. [data 1]
  38. ......
  39.  
  40. more data(put objects that are set up in data to somewhere in the space):
  41. [more data]
  42. word std_object_id
  43. word 100h
  44. float x
  45. float y
  46. float z
  47. ......
  48.  
  49. script(script zone):
  50. ......
  51. FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
  52.  
  53. std scripts
  54. name number parameters usage
  55. setCamForward 0600 1400 float x, float y, float z set the camera's direction(usually(0.0f,1.0f,0.0f))
  56. setCamFOV 0700 0C00 float angle set the camera field
  57. setFog 0800 1400 [byte R, byte G, byte B], byte alpha, float start_z, float end_z create fogs with specified color and alpha in the field start_z~end_z
  58. changeFog 0900 1C00 dword time, dword mode, [byte R, byte G, byte B], byte alpha, float start_z, float end_z change "setFog"'s parameter by time
  59. setCamPos 0200 1400 float x, float y, float z set the camera's position
  60. moveCamPos 0300 1C00 dword time, dword mode, float x, float y, float z change "setCamPos"'s parameter by time
  61. setCamTarget 0400 1400 float x, float y, float z set the camera's facing target position
  62. moveCamTarget 0500 1C00 dword time, dword mode, float x, float y, float z change "setCamTarget"'s parameter by time
  63. jump 0100 1000 dword bytes, dword time jump to given bytes' address within given time pos
  64. setFlag 0C00 0C00 dword flag give the bkg some effect by given flag. following is in HSiFS: 1:the camera position jump left and right; 2:bkg rotates counterclockwise from 0.0f(HSiFS stage6); 3:the camera position floats up and down, facing floats left and right;
  65. 4:bkg rotates clockwise
  66. UNKNOWN 0D00 0C00 dword unknown unknown
  67. unset 1000 0C00 dword a cooperate with ins_630 in ecl(630 in th14, 527 in th12, 441 in th10). when ins_630 is called, std will jump to ins_16(1000 0C00)(int a)
  68. UNKNOWN 0E00 1400 dword unknown_00, dword unknown_01, dword unknown_02( dword unknown_00, dword unknown_01 in MoF) unknown
  69. UNKNOWN 1300 0C00 dword unknown unknown
  70. moveCamForward 1200 1C00 dword time, dword mode, float x, float y, float z change "setCamForward"'s parameter by time
  71. UNKNOWN 1100 0C00 dword unknown used in HSiFS stage1, the parameter is 1, in which the lower half bkg twists
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement