Forum rules - please read before posting.

error with 1.78.0 update

I updated to 1.78 and got and error with my own script:
No overload for 'OnFinishLoading' matches delegate 'EventManager.Delegate_SaveID'

In script I try this:
private void OnEnable () { AC.EventManager.OnFinishLoading += OnFinishLoading; }
private void OnDisable () { AC.EventManager.OnFinishLoading -= OnFinishLoading; }

private void OnFinishLoading () {
    EmptyAll();
}

This worked fine earlier.

Comments

  • Ok I think just adding the ID as incoming variable seemed to did the trick.

  • From the "Upgrade notes" section of the Changelog:

    • The OnFinishLoading custom event now takes an integer parameter for the loaded save-file's ID

    Replace OnFinishLoading () with OnFinishLoading (int saveID) will fix it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.