Is there a way to tell the engine to load a specific package first?
The reason for me asking this is because I want my app to support generating arenascripts (http://www.urbanterr...63-arena-files/) for any map. This works fine, but I cannot save the files to the original pk3 files because most servers check for modified pk3 archive (sv_pure = 1). So instead the arena files are saved to a seperate pk3. But it seems, that the arena files must be loaded before the corresponding map file (.bsp), otherwhise the maps do not show up in "Start Server", etc.
Of course, i could just save the file as zzzArena.pk3, but I would really like that choice to be the user's..
edit:
I got a second engine related question: If there are multiple "items" of the same type and the same name, for instance two shaders with the exact same name but in different files/packages and with different content, how does the engine decide which one to use? Does it just use the one that was loaded first or does it prefer ones that are in the same package as the map-file requesting the "item" or does it handle such situations completly different?
Just to clarify, imagine a filestructure like this:
SomePackage.pk3
{
...
scripts/
{
someshaders.shader
{
...
textures/common/hallo {"ContentA"}
...
}
}
...
}
ut4_mymap.pk3
{
...
scripts/
{
ut4_mymap.shader
{
...
textures/common/hallo {"ContentB"}
...
}
}
maps/
{
ut4_mymap.bsp
}
...
}
if ut4_mymap is loaded, which shader will be used, the one with ContentA or the one with ContentB?
This post has been edited by argusmagnus: 27 February 2013 - 10:31 AM