# Mod works in SP but not MP

**URL:** <https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [April 2, 2017, 2:26pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075 "2017-04-02T14:26:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DumpsterDave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DumpsterDave](https://forums.unrealengine.com/u/DumpsterDave)\
**Post date:** [April 2, 2017, 2:26pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/1 "2017-04-02T14:26:12Z")

</div>

I’ve created a mod that modifies supply crates using event graphs. When I run the mod in Single Player, everything works perfectly. As soon as I run it on a dedicated server, everything works except the node where the supply crates loot item set is swapped out. I’m guessing that this has something to do with authority or replication, but I’m not sure what needs to be done to correct the issue.

I have an Array of PrimalSupplyCrateItemSets that is passed to a GetArray with the index set by a RNG (It’s limited so that it always selects an index within the bounds of the array). The result is passed to a Set Item Sets Override node. Again, this works perfectly in single player, or if I host a non-dedicated server. It does not work if I run the mod on a dedicated server.

I’ve tried setting the Array to replicated, but that didn’t change the result.

Also, on another note, if I test this in the editor with 1 client, everything works. If I run it with the dedicated server box checked, the crates spawn and everything looks correct, but I can’t access the inventories.

Any help or insight would be appreciated.

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [April 3, 2017, 2:24pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/2 "2017-04-03T14:24:36Z")

</div>

Why on earth are you using graphs?

---

<div class="post-metadata">

**Author:** ![AP\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AP\_Studios](https://forums.unrealengine.com/u/AP_Studios)\
**Post date:** [April 3, 2017, 2:36pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/3 "2017-04-03T14:36:03Z")

</div>

i would say the switch doesnt have authority - thats my guess. I have seen a lot of “works in single player but not multiplayer” issues in the past, and, the resolution was simple, just, dont remember what it was. I was a map designer, not a BP mod maker so i didnt run into this kind of thing.  
The exact setup of how this should work, you got me on this one. I would PM someone whos done the drops mods in the past and see how it was resolved.

---

<div class="post-metadata">

**Author:** ![DumpsterDave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DumpsterDave](https://forums.unrealengine.com/u/DumpsterDave)\
**Post date:** [April 3, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/4 "2017-04-03T16:15:51Z")

</div>

> [@Huston850;689973](#):
>
> Why on earth are you using graphs?

Because I don’t want to simply map the crates 1:1. I want to re-do the existing crates while also adding additional ones.

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [April 3, 2017, 8:48pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/5 "2017-04-03T20:48:45Z")

</div>

> [@DumpsterDave;690035](#):
>
> Because I don’t want to simply map the crates 1:1. I want to re-do the existing crates while also adding additional ones.

What file is the graph in? It sounds like your issue is the activation of the modified crates not replicating to the clients.

---

<div class="post-metadata">

**Author:** ![DumpsterDave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DumpsterDave](https://forums.unrealengine.com/u/DumpsterDave)\
**Post date:** [April 3, 2017, 9:03pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/6 "2017-04-03T21:03:42Z")

</div>

The graph is in my custom supply crate BP.

I created a BP that is a child of the SupplyCrateBaseBP. In my PGD, I re-mapped all of the supply crates with my custom crates.

You may be right about the activation. When I test in the editor with either 2 clients or as dedicated server, the crates spawn with the correct color and level requirement, but I cant access the inventory (when running as two clients, the host can access the inventory). I’ve taken a look at the graph on the parent and it calls “Set Container Active”. I added that in my graph, but it didn’t seem to change anything. I could be adding it or using it in the wrong context though.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/mod-works-in-sp-but-not-mp/89075/7 "2022-03-09T21:34:36Z")

</div>


