Skip to content
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

Was there a change to the App or ModApp api? Upon opening this for the first time there is an error #4

Open
MostHated opened this issue Aug 1, 2021 · 0 comments

Comments

@MostHated
Copy link

MostHated commented Aug 1, 2021

Hey there,
I downloaded this and opened the project up, but there is an error of:

Assets/ModPlayerSDK/Editor/UI/CreateAppWindow.cs(56,58): error CS1061: 'CreateAppResponse' does not contain a definition for 'app' and no accessible extension method 'app' accepting a first 
argument of type 'CreateAppResponse' could be found (are you missing a using directive or an assembly reference?)

Which looks to be caused by these fellas below:

// CreateAppWindow.cs

     // -- This creates App()
51:  var resp = await App.CreateApp(appName);

     // -- 'resp.app' doesn't exist, so 'id' doesn't as well, but 'resp' has '.app_id'
56:  .GetReference($"thumbnails/{resp.app.id}"); 

     // -- This wants 'resp.app', but that doesn't exist.
     // -- SetThumbnail wants either 'App' or 'ModApp', but 'resp' is 'CreateAppResponse', and only has 'resp.app_id'
     // -- I am not quite sure what the intended setup is supposed to be, though.
63:  await App.SetThumbnail(resp.app, url.ToString());

Thanks,
-MH

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

No branches or pull requests

1 participant