找回密码
 注册
X系列官方授权正版
搜索
查看: 5164|回复: 0

[转帖] DSO遊戲修改詞彙 (不定時更新)

[复制链接]
发表于 2007-6-17 19:03:35 | 显示全部楼层 |阅读模式
Modding glossary 3 c  @" h, P* H7 u; j6 y
By Jan Langermann ) Y& Z0 z8 X1 _2 g
(DSO Moodding Forum/ Admin)- x6 H$ J# A6 P- l" a8 _

4 @3 I0 s; V. j0 `) f7 QThis thread is a growing collection of all important terms relevant for modding and scripting. Italicized words are crossreference and explained elsewhere in the list.
0 e$ r/ k4 m  g" G+ `; O+ f
  • A
  • B
  • C
    • Camera Lib : Collection of helper functions concerning in-game cameras.
    • Coordinates : Within a star system, DSO always uses the same coordinate system:& R0 J* l3 b6 v0 `1 F+ R# H
      The tradestation is at position (0,0,0) and the hypergate is at position (0,0,10000). Most of the action will happen along this path.
      , C& Y3 K$ F# U  ~7 }. [Alignment is following: & Y) X3 M0 @8 U, f& E6 o% i
      Assume you are the tradestation and looking at the hypergate.
      : y! c, u+ k8 \4 u5 r- X is right: `2 n* b3 [9 R% U; T
      - Y is upwards
      8 _. U8 {& z7 |- Z is towards the hypergate
  • D
    • DSO : A short for Darkstar One. Another popular one is "DS1".
  • E
  • F
    • File Extensions
      • .lua file : LUA is the scripting language we use in DSO. All missions are scripted using LUA. See Lua.org for lua basic tutorials and here for a reference of available commands.
      • .bin file : Binary file. This file has been processed so that it is not human-readable anymore. DSO reads them during startup. If it cannot find a .bin file then the associated .ini files are opened and coverted into .bin format. Lua files also get converted into .bin format. The resulting file is the missions.bin.
      • .ini file : Initialization files. They are human-readable. Use a text editor to edit them. They are usually kept within .cpr files
      • .cpr file : A compressed (archive) file. Can be opened using various decompression utilities.
      • .dds file : Direct Draw Surface format. An image format used in DSO for textures and in screens. To make use of them, use either the DirectX Texture tool coming with the DirectX SDK or a plugin for the graphics program of your taste.
        # s& }6 B. @5 e# SHave a look at those sites:' p$ S# ^5 P. d% ?
        MSDN: DXTech - Microsofts DirectX Texture Tool (included in the DirectX SDK)
        ! R6 F' ?  \  v  q/ s! `1 M, OMSDN: DDS FileFormat (technical article)+ ?- i9 R% A2 ^( }
        MSDN: Using Compressed Textures (technical article)
        : C$ Q9 H9 D5 ?9 YDevIL - OpenSource image library, supporting .dds8 v2 S) |+ f  {' H- T9 h3 I
        NVidia Texture Tools
        1 }8 Z: H0 H+ v4 Q2 q8 m+ [  fNVidia .dds - Photoshop PlugIn for .dds
        3 n' r! r. g; R3DSMax Plugins4 D* e  x9 S* G! O1 Q
        ATI Compressonator
      • .dss file : Our savegame format. Each modification will contain an own set of savegames to avoid confusion. Savegames can be hacked but not modded. We do not provide support for hacked savegames .
  • G
    • global.res : A resource file. Contains the strings used by DSO.
  • H
  • I
    • INI-Files:
      • Upgrades.ini : Contains information about upgrades for the ship.
      • StarSystem.ini : Contains information about every star system in the game.
        5 b- t; G0 ?& r5 |4 |Example:
        : ]( @# Z2 O. T1 U% e7 M: NCode:
        ( ?% c7 `! F2 b% ]/ D/ H0 h8 I
        1. [System000] ; . z7 F2 `/ b& r: @' J) S# V
        2. Artefakt = 0 ; > 0, if there is an artifact inside the system
          8 u6 Y$ a7 K( H& P5 h6 y8 {; C6 @
        3. Bedroht = 0 ; > 0, if occupied by pirates* L, |- l& k6 q( ?4 Y2 W
        4. Bürger = 3.600000 ; population, counted in billions
          0 q; Q2 w1 R# b* F8 B
        5. Cluster = 0 ; index of the cluster this system belongs to8 A3 O. }" q5 i) n
        6. EnergyLevel = 0 ; determines the type of energy particles floating around) C6 ~- A, U( y% u
        7. Faction = 1 ; pirate system3 V$ v0 O' A/ F
        8. Function_X1 = 0 ; X1 value0 G- ?9 q# K4 t) m# ?
        9. Function_X2 = 3 ; X2 value1 J; J/ }* X6 \
        10. Function_X3 = 5 ; X3 value' w( M+ W& y) Y- x4 b% F/ p
        11. Function_Y = 0 ; minimal level/ V9 u7 [  q, R9 P
        12. NachbarRegel = 10 - 10 ; system becomes visible as soon as one of these systems is entered
          $ }7 {. h, ^5 U" w5 [* c0 N
        13. Piratengang = 65535 ; index of pirate gang- A  {2 R  n' [$ I. }4 r
        14. Planeten = 2 ; number of planets in system5 l; t2 [5 z3 h4 `/ x( z6 V9 `9 n* [) c
        15. PosX = 4.500000 ; x position on map
          3 N+ }; ~, G: l6 ?( c+ {. w9 x
        16. PosY = 17.799999 ; y position on map6 N. ^0 n* m0 N. ?
        17. Produktion1 = 0 ; coal hydrates$ u/ J0 Q; B9 @  K0 F) {8 a
        18. Produktion2 = 1 ; proteins
          ( Z& h8 [. ~8 K2 ^9 `  n
        19. Produktion3 = 3 ; plants& z9 ^% l) j/ [9 b! }- s
        20. Produktion4 = 12 ; pharma
          . W  [6 G+ o- j
        21. Produktion5 = 23 ; drugs% R: ^  e6 u8 ?* _1 ?
        22. Produktionsfaktor = 0.920000 ; production factor
          6 m$ D$ l# V# }0 U6 k; R- c3 A& k
        23. Regierung = 3 ; government
          , c% c* [% D, q! l" }
        24. Sichtbarkeitstyp = 2 ; visibility type (2=made visible by neighbor)
          / z5 X2 ^* R4 K* `/ P
        25. StarLightId = 3 ; star light index (3=anarchy)
          & H! F/ h+ c& w5 S' Q
        26. UniqueItem = 0 ; > 0, if an unique item is present
        复制代码

        , ?9 y: P3 o* }* [* ?* `5 m) D3 E' E; v( T5 m% o
      • planets.ini : Contains info about all fixed space objects (called "planets" here) in ALL star system.' t) C0 N& r$ Z, A9 P+ \* ~
        Code:
        " U, q) C- c% P$ @$ z$ r+ W
        1. [Globals] ;/ y$ `* n+ x5 u& J, @5 W* u" g3 U* X
        2. Planetenanzahl = 5969 ; Number of planets in the whole ini file. May be greater but NOT smaller than the actual count!
          - m8 ]- e5 {- c3 j, o: x
        3. Sternenanzahl = 403 ; Number of star systems that this ini file has stored planets for. Again, must be at least the actual count!( w, L  k4 d; k! o/ q5 a0 ?0 [
        4. [Planet000_000] ; First index: star system index, second index: planet index within star system
          $ P2 }& e8 z1 ~. u
        5. Model = 3 ; Id of the 3D model to show for this orbiter; N" m) p- E+ g  c% K* r2 m
        6. Orbitart = Sonne ; orbiter type ("Sonne" = "Sun"); z: H4 B6 N* N4 ^% p5 T# c
        7. Position = 464831.531250 / 1936431.875000 / 499874.875000 ; X, Y and Z Position in meters.
          % {. e+ X1 T" X6 U
        8. Radius = 20000.000000 ; Radius in meters
          9 l2 [9 v2 [; b, x/ g9 I1 N
        9. RotationSteps = 0 ; Timesteps needed for a complete rotation about its axis
          5 a: W2 w; ]5 J' K: F
        10. SystemId = 0 ; Index of star system this belongs to
          * \2 G5 O3 I- T3 F
        11. UmlaufSteps = 0 ; Timesteps for one complete circulation around the central orbiter
        复制代码

        $ [" _2 Y; F; k' [(This planet is the central orbiter, so the timesteps are 0 each)
      • darkstarmod.ini : Contains info about the particular DSO mod. One file is needed inside every mod's subdirectory inside the "Customization" directory. Contains two parameters:
        1 \9 H/ u; @5 A  UCode:4 j) U4 \/ i" y& }) E4 s( u$ k, o7 r
        1. [darkstarmod]
          6 x4 M( r1 b- r
        2. mod_name = Modding Tutorial                        ; name of the modification4 l$ j- j4 x9 p& d2 ^  P+ T3 m
        3. mod_desc = Simple modding example                ; a brief(!) description
        复制代码

        : Z, w) U' ?! x5 k" n  p7 |8 l- l6 x' U4 [
  • J
  • K
  • L
  • M
    • Model : 3D objects created by a 3D program.
    • Mission : Missions are scripted, not programmed. Thus they can be altered or created without having to recompile the game executable. This makes modding possible. Missions appear at different places in the game. There are terminal missions, missions started by the storyline, missions starting in free space and missions that are always active. More details will follow.
    • Mission Lib : Collection of helper functions not contained in any of the other scripting namespaces.
  • N
  • O
  • P
  • Q
  • R
  • S
    • Script : Missions are scripted using the scripting language LUA. The original retail scripts are converted into the file missions.bin. Sources to them are not public.
    • script event : Also know as trigger. Scripts can react to certain events like destroyed ships, the player entering a system or a timer running down.
    • script function : Scripts can call various functions to interact with the world. Examples are creating wings of ships, giving wings new orders or starting voice messages or cameras.
    • scripting namespaces : Hard-wired code collections available for scripting use. Each does contain a number of useful scripting functions. The namespaces are: math, lua, NStarSystem, NPlayer, NWing, NShip, NGroupAi, NCamera, NComm, NMission, NScript, NWaypoint, NObject, NContainer, NTerminal, NNPC, NGUI, NSound, NVector, NDebug. "math" and "lua" are original lua code collections. More details to follow.
    • stringId : A name for a string that is used by the program instead of the text itself. StringId's are placeholders.
  • T
    • Texture : Textures are images applied to a polygon or complete 3D Model. in DSO they are in .dds format.
  • U
    • user_strings.xml : Contains additional strings used by a DSO modification. This is human-readable and can be edited by worksheet programs like MS Excel. Needs to be converted into .res format before it can be used. Use the Ascaron delivered tool XML2ResConverter.exe to do so.
    • user_strings.res : A resource file. Contains additional strings used by a DSO modification. Is already converted and ready for use.
  • V
  • W
    • Wing : A logical group of ships. Contains a wingleader and wingmen. You can only assign orders to the whole group. In DSO all ships are also in a wing, even if there is just one ship inside.
    • Wingleader : Part of a wing. Each wing will have exactly one wingleader. If the wingleader is destroyed, you can rely on the wing having been eliminated.
    • Waypoints : Wings may be ordered to fly to certain positions in space. These are called waypoints. Waypoints are space objects that will trigger a script event if the player or a certain ship comes close enough. They have a position and a given radius. See also coordinates.
  • X
    • XML2ResConverter.exe: A tool to convert a user_string.xml to a user_strings.res. It needs to check the global.res to avoid overriding stringId's from the original game content.
  • Y
  • Z
Still work in progress!# x* I" A- F1 f8 h4 h% U8 Q
Request a topic and we will try to fill the gaps.
* T% B+ U) n" _4 [
__________________
9 y& j2 x: Y, I( m- e4 q; G7 t! ?Customer Support, `' i3 X  }8 W% X, y$ q. M
Mission Scripting Darkstar One$ ?$ Y8 @3 }. ?( _8 F" {  T
support form   r# [2 a! {2 i& r

4 p& u" w4 C( h8 B7 e--------------------------------------------------------------------------------
2 l- L$ x' M' bLast edited by CelAthor : 18.09.2006 at 10:19.
; e- Z  P2 Z) Y9 C& ~& Z6 K2 n
[ 本帖最后由 白衣 于 2007-6-17 19:14 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

Archiver|手机版|小黑屋|DeepTimes.NET 太空游戏站