Skip to content

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

@MostHated

Description

@MostHated

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions