Skip to content

Experimental#668

Open
Suterusu1337 wants to merge 38 commits into
mainfrom
experimental
Open

Experimental#668
Suterusu1337 wants to merge 38 commits into
mainfrom
experimental

Conversation

@Suterusu1337

Copy link
Copy Markdown
Collaborator

No description provided.

Suterusu1337 and others added 30 commits July 9, 2026 22:01
…ed for the pair if it is already in progress.
FileCacheManager fileCacheManager, MareMediator mareMediator, PlayerPerformanceService playerPerformanceService,
ServerConfigurationManager serverConfigManager, ICompressedAlternateManager compressedAlternateManager,
PlayerPerformanceConfigService performanceConfig, MareConfigService mareConfigService, IDataManager dataManager)
PlayerPerformanceConfigService performanceConfig, MareConfigService mareConfigService, IDataManager dataManager, PlayerIdleStatusService playerIdleStatusService)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look like this is used

return await _ipcManager.Heels.GetOffsetAsync().ConfigureAwait(false);

case PlayerChanges.Moodles:
var playerChara = await _dalamudUtil.GetPlayerCharacterAsync().ConfigureAwait(false);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one of those synchronization issues I need to come through and fix up

Logger.LogDebug("Attaching Census Data: {data}", dto);
}

_pairManager.InitialLoading = true;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be called something like DeferRecreate or something?

await Task.Delay(250, cts.Token).ConfigureAwait(false);
Logger.LogTrace("Waiting for permissions change for {data}", userData);
}
Mediator.Publish(new PairOfflineMessage(pair));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you leave a comment here about how data won't get pushed on delayedframeworkupdate if it's too fast?


// Adapted from https://stackoverflow.com/questions/1037595/c-sharp-detect-time-of-last-user-interaction-with-the-os

public static class IdleCheck

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to revisit what to do with this

public void ReceiveCharaData(OnlineUserCharaDataDto dto)
{
if (!_allClientPairs.TryGetValue(dto.User, out var pair)) throw new InvalidOperationException("No user found for " + dto.User);
_identToUserPairs.AddOrUpdate(dto.Ident, pair, (_, _) => pair);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there's already a pair in _identToUserPairs, should we just use that one? should we dispose the old one? 🤔

}
else
{
if (dto.AddonPlugin is not null) // process the dto via the addon plugin path if AddonPlugin exists

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!= please

//var gate = GetActorLock(applicationBase.ToString());
//await gate.WaitAsync(token).ConfigureAwait(false);

if (_penumbraCollection is null)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ewwwwwwwwwwww

}
}

private async Task ApplyHonorificDataASync(CharacterData charaData)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: ASync


private async Task ApplyLociDataASync(CharacterData charaData)
{
if (charaData.LociData is null)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use == and != for null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants