Alright, figured out CodeWalker (very cool tool).
I added 7 entities to Warehouse_Small.ymap
which contains the entities for ex_int_warehouse_small_dlc.ytyp
. They appear in CodeWalker, they appear in the .ymap if I open it in OpenIV and view as XML.
I attempt to inject them and am running into some issues. I tried with and without the -x
parameter for injectentities (I didn’t remove any entities from the room).
With -x, the interior doesn’t load at all. Without -x, the interior loads, but none of my added entities are there.
What I’m doing, with output:
gtautil find --position 1091,-3096,-40
Result:
ymap: ex_exec_warehouse_placement_interior_1_int_warehouse_s_dlc_milo_.ymap
ytyp => ex_int_warehouse_small_dlc.ytyp
mlo => ex_int_warehouse_s_dlc
position => 1095,-3100,-40
rotation => 0,0,0,1
room => limbo
room => Warehouse_Small
gtautil extractentities --name small_warehouse --ytyp .\ex_int_warehouse_small_dlc.ytyp --position 1095,-3100,-40 --rotation 0,0,0,1
Result:
D:\FiveM\gtautil>GTAUtil.exe extractentities --name warehouse --ytyp .\ex_int_warehouse_small_dlc.ytyp --position 1095,-3100,-40 --rotation 0,0,0,1
Loading cache
Loading DLC list
Loading file tree
Room => limbo (1 entities)
1087.032 -3103.891 -40
1105.715 -3095.144 -36.06564
Room => Warehouse_Small (40 entities)
1086.914 -3103.943 -41.63591
1105.579 -3091.098 -36.06563
Without -x:
gtautil injectentities --name .\F\ex_int_warehouse_small_dlc --ytyp .\ex_int_warehouse_small_dlc.ytyp --ymap '.\small_warehouse\*.ymap' --position 1095,-3100,-40 --rotation 0,0,0,1
Result:
Loading cache
Loading DLC list
Loading file tree
Calculating rooms extents
With -x:
gtautil injectentities -x --name .\F\ex_int_warehouse_small_dlc --ytyp .\ex_int_warehouse_small_dlc.ytyp --ymap '.\small_warehouse\*.ymap' --position 1095,-3100,-40 --rotation 0,0,0,1
Result:
Loading cache
Loading DLC list
Loading file tree
Calculating rooms extents
DELETE 40
DELETE 39
DELETE 38
DELETE 37
DELETE 36
DELETE 35
DELETE 34
DELETE 33
DELETE 32
DELETE 31
DELETE 30
DELETE 29
DELETE 28
DELETE 27
DELETE 26
DELETE 25
DELETE 24
DELETE 23
DELETE 22
DELETE 21
DELETE 20
DELETE 19
DELETE 18
DELETE 17
DELETE 16
DELETE 15
DELETE 14
DELETE 13
DELETE 12
DELETE 11
DELETE 10
DELETE 9
DELETE 8
DELETE 7
DELETE 6
DELETE 5
DELETE 4
DELETE 3
DELETE 2
DELETE 1
DELETE 0
I’m at a loss here. I tried looking at the other parameters for injectentities, but didn’t find much. Any advice is greatly appreciated.
Edit: Other parameters can be found in the Options.cs file - https://github.com/indilo53/gtautil/blob/master/gtautil/Commandline/Options.cs