Jump to content

Creatures Framework API reference not found


Recommended Posts

Posted

Not sure if this topic should be in this forum. I aplogize in advance.

 

Regardless, I've been having trouble with some SexLab mods I've been using. I recently installed SexLab and Defeat and they were working fine. Then I tried installing the creatures framework, along with More Nasty Critters and their prerequisites. The game will work for a time, animations will play, everything goes smoothly. However, the game will most certainly crash at some point, even if I avoid animations all together. Obviously these mods are typically unstable and should be treated as such, but, two new things occur in my games. One is that certain saves will never load. They will be stuck infinitely within the loading screen. Second is that, when a game does load, it often brings up an error message that says "Creature Framework API reference not found. Make a clean save and try again". The animations will still work splendidly, but creatures will not become erect. Activating FNIS for users will sometimes help the API problem, if that helps.

 

Can anyone help with these three issues?

 

 

I had the problem with Creature Framework not found last night, and it turns out it was my load order. For More Nasty Critters specifically, this is how your load order must be. You'd think the .esp's would be loaded after SkyUI, but you'd be wrong.

 

CreatureFramework.esm

Morenastycritters.esp

SexlabNudecreatures.esp

SexlabNudecreaturesDG.esp

SexlabNudecreaturesDB.esp

Hentaicreatures.esp

 

Regarding the creatures not being erect. The latest version of More Nasty Critters does offer the creatures being erect, but it doesn't always work for a lot of people myself included. It could be load order, or another conflicting creature mod altogether.

  • 3 months later...
Posted

Thank you - copying the SLA files over , but not activating the ESM did the trick for me.

 

Edit: Nope, did not work.  I just got lucky a couple times.

 

Such a bizarre error.

 

Eric

  • 3 months later...
  • 2 months later...
Posted

well here we are in 2017 i've been over this post twice, and i'm having the same issue as the OP, only i have everything it requires downloaded and installed, BUT the error happens at random, sometimes it works some times it dosn't and when it dosn't it comes up with the API message and when it works nothing, all is well with the game. I've tried moving the load orders around it works once and then Bamph back to same problem next time i load in or restart. what the heck has gone wrong with this mod :( 

Posted

The error message is issued by Sexlab Nude Creatures, not Creature Framework or sth else. Sexlab Nude Creatures simply tries to call the function GetAPI(), which is part of CreatureFrameworkUtil.pex, and if the function returns none/nothing, the dreaded message box appears. Therefore the only thing that "should" be necessary to avoid the error, is the presence of CreatureFrameworkUtil.pex in your script folder. So all you should need is CreatureFramework.

 

Sexlab Aroused(Redux) without the esm-file cannot possibly achieve anything - unless you either use the loose files package of Sexlab Aroused OR use MO as mod manager, since MO unpacks BSA-files.

 

Installing Sexlab Aroused, using its loose files and deactivating the .esm-file can possibly achieve sth.. It could e.g. overwrite script files from other mods. As a matter of fact, however, it does not. And since without active esm-file its own scripts are not run, too, i am still clueless why Sexlab Aroused (without active esm-file) could make that whole mess work. Maybe it's placebo, but anyway: there is no reason why Aroused should be necessary. It's something either SLNC or CF has to deal with. Maybe, whenever the error message does not appear, its just because the OnloadGame() event simply didn't fire: the code within OnLoadGame() has to run only once to make the mod work forever. The only reason it is run on every game start is that the user might change it's loadorder (e.g. uninstall creature framework or sth similar stupid).

 

If I was the author of SLNC i gave the Onloadgame() function within slncMainQuestScript a second or third try to get the api by substituting the last part of the script starting with "Form api = none" e.g. as follows:

 

    Form api = none
    int count = 3
    while ( (api == none) && count != 0 )
        api = CreatureFrameworkUtil.GetAPI()
        if api != none
            cfapi = api as CreatureFramework
            if cfapi != none
                RegisterForModEvent("CFRegister", "OnCreatureFrameworkRegister")
            Else
                config.debugLog(self, "Could not cast api reference.", true)
                config.debugLog(self, "Maybe CreatureFramework is not installed.", true)
                Debug.MessageBox("Could not cast CreatureFramework API reference. Maybe CreatureFramework is not installed correctly? Do a clean save and retry.")
            EndIf
        else
            count -=1
            utility.wait(1.0)
        endif
    Endwhile
    if ( count == 0 )
        config.debugLog(self, "CreatureFramework API reference not found.", true)
        config.debugLog(self, "Maybe CreatureFramework is not installed.", true)
        Debug.MessageBox("CreatureFramework API reference not found. Maybe CreatureFramework is not installed correctly? Do a clean save and retry.")
    endif

    config.debugLog(self, "OnLoadGame() End")

 

Or he could put the this whole code in the OnInit event - users might still need a couple of new game starts until they are lucky to not receive the error message, but then they could save the game and had not to deal with the bug anymore.

 

I dont want to mess with my scripts folder myself (recompiling slncMainQuestScript involves recompiling a shitload of other scripts, too, of which you need to have the source code).

  • 1 month later...
  • 2 months later...
  • 1 year later...
Posted
On 10/9/2015 at 9:53 PM, usegaiden said:

For those having the creatureframework api not found issue: The problem is that creatureframework requires PapyrusUtil which DOES NOT come with More Nasty Critters (IT SHOULD!). If you did not had PapyrusUtil and simply installed Creature Framework through MNC than you now what to do now.

I get that message and the creature framework MNC doesn't show up in game, how to I get this PapyrusUtil to make it work.

 

All this started because I had more nasty critters, and everything worked. BUT the dragons, dragon animations didn't play, I'd just stand there naked, and the dragon would do nothing as well. I wanted to figure out why, looked it up, they say just run FNIS so I did, went back to that save, crashed. Started new game, worked fine, but I got that error pop up, now no critter has it's equipment and idk why.

  • 11 months later...
Posted

I encountered this problem again today, it's touchy to say the least.

 

What solved it for me was installing the latest Creature Framework, set my load order to start with that, then MNC with all of its additional ESPs (MNC first). Then I had to slowly install all the mods, testing and saving in between, making sure that everything had loaded and was installed before continuing.

 

Arousal Redux works as a replacement for SL Arousal, so that's a good thing. I personally like the arousal state being registered, so I like to use SLAR ;) But as others have stated, this is a soft dependency to be active, a hard dependency to have.

 

Since I will no doubt reinstall this at some point, I thought for Google's sake I'm adding my two cents!

  • 1 year later...
Posted

This API issue is  still a fucking issue....

The Game won't even fucking load in after hitting New Game it immediatly crashes after saying API not found try reinstalling BULLSHIT...  You figure this issue would be resolved after what? 6 fucking years?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...