-
Notifications
You must be signed in to change notification settings - Fork 21
ASC 3.0 Compatibilization #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Now ASC has the possibility to uploading and downloading profiles directly from a folder in the google drive and implement associated functions to handle profiles and splits effectively. Implemented Functions:
Enhanced Profile Creation:To be able to enter the splits that are downloaded from drive I created a custom serialization that has as structure the name of the profile and the splits
The idea is after establishing the profile to go through a list that I have of splits and add them with
|
I’m already in testing and beta phases with the new version of ASC. I’ll be coordinating with you soon to carry out an update. Best regards |
Applied same changes as for v2 (see #40 for details) |
Awesome the names are clearer. I'm tested the new methods in Cloud Functions for profile creation, retrieval, and inserting splits, and everything is working correctly |
Nice to hear, shall we keep the PRs open (if you plan to add/change anything further) or shall I merge it already (from my side it looks fine). |
i have some troubles removing GetActiveGameIndexMethod for this and HCMv2 HitCounterManager/Sources/Form1.cs Line 88 in 7effd4b
HCM register ASCInterface First to get GameList before after all HitCounterManager/Sources/Form1.cs Line 92 in 945ee46
It is necessary to keep the GetActiveGameIndexMethod because RegisterHitCounterManagerInterface relies on the game list being populated before it can set the active game index. Specifically, the ComboBoxGame is not filled until after the registration process (referenced in Form1.cs line 88 and AutoSplitterMainModule.cs lines 81-98). This is important because ASC need ComboBox Filled to set a Active Index.
but I'm not sure if this would be the right approach |
(Required for better AutoSplitterCore integration, see #36)
Yes you were right, the GameList was not changing the ComboBox directly when the collection gets changed by ASC. I fixed that in the commit, I just pushed. It should behave as in version 2 now. So, in the debugger, when I change the result of To test this, the ASC implementation looked this way in interfaceASC.GameList.Clear();
foreach (string game in GetGames())
{
interfaceASC.GameList.Add(game);
}
interfaceASC.ActiveGameIndex = GetSplitterEnable(); //Before HCM Interface Change, ASC control mannualy on start the index of ComboBoxGame in Main Program
//interfaceASC.GetActiveGameIndexMethod = () => GetSplitterEnable(); //After HCM Interface Change, HCM ask on Start The index of ComboBoxgame on ASC
interfaceASC.SetActiveGameIndexMethod = (splitter) =>
{ Hopefully this resolves the issue that you see or did I miss anything? |
Hey good, I hope you are well. After a lot of time coding and very little because university things I started adding functionalities for ASC 3.0 after my new interface was finished.
I have a problem with the combobox that we used to set the active splitter did'nt set on Startup,
BEFORE HCM INTERFACE IMPLEMENT
AFTER HCM INTERFACE IMPLEMENT
You added
interfaceASC.ActiveGameIndex = GetSplitterEnable();
on ASC in RegisterHitCounterManagerInterface() Functionbut the problem for manage this by the function is that called before fill ComboBox on HCM, then this raises an OutOfRange exception in the comboBox, to fix this im added GetActiveGameIndexMethod Function.
Remember that now ASC Fill ObservableCollection GameList after AutoSplitterRegisterInterface is invocated.
I dont know why PracticeMode still working but if it works that's enough, maybe is manage by other function.