HWPFormat.wiki
changeset 2109 e433562fb881
parent 1442 b3d6459f7343
child 2110 d06d541ca91c
equal deleted inserted replaced
2108:237737e5336c 2109:e433562fb881
    90 
    90 
    91 Using sidecar HWPs is useful for Lua scripters who want to provide a few resources for your script but don’t want to force users to install them globally or to fiddle around with their user data directory. Especially if using the resources only really makes sense together with the script.
    91 Using sidecar HWPs is useful for Lua scripters who want to provide a few resources for your script but don’t want to force users to install them globally or to fiddle around with their user data directory. Especially if using the resources only really makes sense together with the script.
    92 
    92 
    93 Please remember how Hedgewars uses ammo icons in HWPs (see above).
    93 Please remember how Hedgewars uses ammo icons in HWPs (see above).
    94 
    94 
    95 === Limitations ===
    95 === Nested HWPs ===
    96 Important: HWPs are not recursive! This means if you put a HWP inside another HWP, Hedgewars will only load the actual contents of the outermost HWP. The contents of the inner HWP are not loaded. This implies that there is currently no way (via HWP) to distribute a script with custom data. You have to ask users to just extract a normal Zip file with your script data instead.
    96 HWPs can be nested. That is, if you put a HWP inside another HWP, the contents of the inner HWP will be loaded as well.
    97 
    97 
    98 This is considered a bug, see https://issues.hedgewars.org/show_bug.cgi?id=174.
    98 There's a limit to this: The nesting can only go one layer deep, in order to keep things simple. HWPs that are nested even deeper are simply ignored.
    99 
    99 
   100 === Order of precedence ===
   100 === Order of precedence ===
   101 
   101 
   102   # Sidecar HWPs
   102   # Sidecar HWPs
   103   # All HWPs
   103   # All HWPs