tiltedphoques / TiltedEvolution

Skyrim and Fallout 4 mod to play online!
https://wiki.tiltedphoques.com/tilted-online/
Other
1.06k stars 222 forks source link

[Feat Req] Add Chest sync config in STServer.ini #629

Closed wonson closed 11 months ago

wonson commented 12 months ago

Description

I understand currently there is a complicated Chest share mechanism in Skyrim Together Reborn.

However, I think a simple mechanism like the current unsync body loot and home chest is good too.

I hope there is an option that we can choose what we want.

Additional context

I played with my family at a LAN server we set. I run a dungeon at the night before, and loot everything because I did not know yet.

When I played with her today and she saw every chest is empty, she was so frustrated.

We do want to fight alongside each others, and explore the same world together. But we want our loot as well.

I hope there is an option so that we have freedom to choose.

wonson commented 11 months ago

https://github.com/tiltedphoques/TiltedEvolution/blob/c8e71333798741f31bc9fcb302887b3eb984155e/Code/client/Services/Generic/ObjectService.cpp#L70

bool ShouldSyncObject(const TESObjectREFR* apObject) noexcept
{
    if (!apObject)
        return false;

    switch (apObject->formID)
    {
        // Don't sync the chest in the "Diplomatic Immunity" quest
    case 0x39CF1: return false;
    default: { 
        if (apObject->baseForm->formType == FormType::Container && !World::Get().GetServerSettings().SyncChests) return false; 
        return true;
    }
    }
}

I guess this should do the trick?

VENDETTA5 commented 11 months ago

Welp, actually if she was leading the party all the loot would respawn, lol.

wonson commented 11 months ago

@VENDETTA5 They didn't respawn at all and she was leading the party because Golden Claw quest was hers🤔 But all chests I opened before in the mission site and Skyrim world are empty . (But the enemies respawned normally and we can loot from them separately)

The chests only respawn after we both disconnected the server and she loads a save before we entered.

In addition, the server hosts on her laptop as well.

VENDETTA5 commented 11 months ago

Welp the way the game works, is the person who enters the dungeon first, hosts it. That's why the devs always ask the party host to get into the dungeon first, to avoid some unpleasant stuff.

Dragonisser commented 11 months ago

Follow the gameplay guide.

wonson commented 11 months ago

@VENDETTA5 @Dragonisser

But how about the "Skyrim" chest? Like the tower in the world map?

Dragonisser commented 11 months ago

@VENDETTA5 @Dragonisser

But how about the "Skyrim" chest? Like the tower in the world map?

The thing is, the gameplay guide clearly states to not play alone on your save. This is what you've done and therefore made your world and your family ones out of sync.

This is basically defeating the purpose of the mod.

wonson commented 11 months ago

Never mind. I build my fork then :)