Streaming / overriding scenario ymt

Probably as you’re doing it wrongly?

I’ve no clue what you’ve tried since but if there hasn’t been any progress from yous since @bob74’s reply from 2018, obviously that doesn’t work:

--data_file 'SCENARIO_INFO_FILE' 'countryside_ne.ymt'                     -- ScenarioInfoMounter
--data_file 'SCENARIO_POINTS_PSO_FILE' 'countryside_ne.ymt'               -- ScenarioPointMounter
--data_file 'FIVEM_LOVES_YOU_A01627E3E5FC490A' 'countryside_ne.ymt'       -- ScenarioInfoMounter
--data_file 'FIVEM_LOVES_YOU_399915A5EEB45A2B' 'countryside_ne.ymt'       -- ScenarioPointMounter
--data_file 'FIVEM_LOVES_YOU_A9E8B9F6EEB35186' 'countryside_ne.ymt'       -- ScenarioPointMounter
--data_file 'FIVEM_LOVES_YOU_DB4D236636684A3F' 'countryside_ne.ymt'       -- ScenarioPointMounter

This is not how such files get registered!

Scenario files are referenced from a scenario point manifest as such:

  <Item type="CScenarioPointRegionDef">
   <Name>platform:/levels/gta5/scenario/countryside_ne</Name>
   <AABB>
    <min x="577.9417" y="-2190.842" z="1.645161" />
    <max x="2970.658" y="6642.504" z="355.7393" />
   </AABB>
  </Item>

which explains why they do nothing if ‘just’ registered as file or dropped in stream/.

However, what should work is registering a replacement scenario point manifest:

  1. take sp_manifest.#mt from update:/%platform%/levels/gta5/ from 1604 if you use it! if you use the 2189 one on 1604 you’ll crash with ERR_STR_PACK_2 as island scenarios don’t exist!, (contents of, as XML)
  2. specify it as data file:
    file 'sp_manifest.ymt'
    -- SCENARIO_POINTS_FILE may work, too
    data_file 'SCENARIO_POINTS_OVERRIDE_FILE' 'sp_manifest.ymt'
    
  3. edit it:
    <Item type="CScenarioPointRegionDef">
      <Name>compcache:/test_ymt/countryside_ne</Name> <!-- apparently VFSRagePackfile doesn't support RSC registration, so we use `compcache` instead of `resources` here -->
      <AABB>
       <min x="577.9417" y="-2190.842" z="1.645161" />
       <max x="2970.658" y="6642.504" z="355.7393" />
      </AABB>
    </Item>
    
  4. make sure file 'countryside_ne.ymt' is in your resource’s stream/ folder
  5. yay!
5 Likes