• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

How can I include an asset in a mutator?

Ducky

Super Moderator
May 22, 2011
6,358
237
0
Netherlands
I'm looking for a way on inserting .upk files into a .u file. This is what I have:

  • Some .uc files
  • Some .upk files (sound cue's)
And after a build I want to have:

  • 1 .u file that contains the compiled .uc's and all the .upk's as they are
In UE2 this could be done with a compiler directive in the .uc file. Something like:
#exec OBJ LOAD FILE="BlaBla\Whoopi.upk"


UE3 doesn't support this #exec directive anymore. Does anyone have a clue on how to do a thing like this in UE3?


Many thanks in advance!
 

Ducky

Super Moderator
May 22, 2011
6,358
237
0
Netherlands
Thanks for the reply.

Did try that already, but that still leaves me with more than one file. My goal is to have 1 file that contains the mutator and the assets. The reason is that a mutator that uses assets is not downloaded correctly to the clients over the redirect. If a client connects to the server, then the mutator (the .u file) is uploaded to the client, but the asset files aren't (the .upk files). Next the client will get auto kicked because of a missing asset file. If he now connects again, then all the asset files referenced by the mutator will be uploaded to the clients. From that point on all is good. But a don't want a two stage rocket. Most players will leave that server after a failed connect.

This is why I only want to have 1 file.
 

-=THOR=-

FNG / Fresh Meat
Sep 20, 2011
1,050
50
0
For CTF, a map uses the code package, which in turn references the assets package. Of course it's not a mutator and cannot be directly compared, but maybe you could try to add a fake placeable actor to your mutator, and cook a fake map that uses it. Maybe the mutator will be cooked differently :/
 

Zetsumei

FNG / Fresh Meat
Nov 22, 2005
12,459
1,433
0
32
Falmouth UK
Thanks for the reply.

Did try that already, but that still leaves me with more than one file. My goal is to have 1 file that contains the mutator and the assets. The reason is that a mutator that uses assets is not downloaded correctly to the clients over the redirect. If a client connects to the server, then the mutator (the .u file) is uploaded to the client, but the asset files aren't (the .upk files). Next the client will get auto kicked because of a missing asset file. If he now connects again, then all the asset files referenced by the mutator will be uploaded to the clients. From that point on all is good. But a don't want a two stage rocket. Most players will leave that server after a failed connect.

This is why I only want to have 1 file.
upk files traditionally do not transmit over the redirect, this was already the case in RO1. If you use multiple .u files all of them should actually download.