Page 10 of 16

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 6:24 pm
by Isaac
I have not played the mod [yet], but AFAIK the camera object/ orientation cannot be saved conventionally (and complains)... but it's probably not really a problem either. If this is just Console Spam, then you can probably ignore it; it might even be a known/accepted issue.

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 6:34 pm
by Torst
Of course it's not a problem.

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 11:02 pm
by Slayer82
Hey, Torst.

Yes, the error message that occurs is annoying, but does not affect gameplay.
I have asked for solutions to remedy it, but no one knows how to by-pass it.

It is related to the Zimber assets' scope that he/she implemented.
The scope isn't used in this mod, however, removing the scope caused crashes.

Anyway, I'm glad you're enjoying the mod. :)

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 11:39 pm
by Isaac
@Slayer82

Have you grep/searched the mod scripts for defined cameras; and for those object names being called from hooks and user scripts? You might be able to remove the component—if not the object itself, if you are not actively using it.

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 11:47 pm
by Slayer82
Hi, Issac.

Yeah, I tried to do that. I need to look more deeply into it, because I only attempted to remove the components from Zimber's assets after I implemented so many of the their assets.

I kept getting different crashes.

I will try and resolve these issues in an update.

Re: The Allure of Nightfall - Version 1.0

Posted: Wed Oct 30, 2019 11:52 pm
by Isaac
Finding and removing it is best, but if you cannot find all of the called references...you might try an experiment; change the camera component class to "Null", and assign it: name = "camera". So long as you are not using it for anything, the simple fact that it's no longer a camera component might remove the console spam.

*Be certain to examine the camera component for any defined hooks.

Re: The Allure of Nightfall - Version 1.0

Posted: Thu Oct 31, 2019 12:07 am
by minmay
CameraComponent saves/loads fine. The warning message is a bogus warning caused by the way CameraComponent is implemented internally, and doesn't indicate any actual problem.
The only way to get rid of it, sadly, is to use Console.setSuppressWarnings(true) to get rid of all warning messages.

Re: The Allure of Nightfall - Version 1.0

Posted: Thu Oct 31, 2019 12:13 am
by Isaac
Well this is nice to know. 8-)

It's a shame there is no way to filter messages, or to inspect the console output, and over-print if the word "camera" is found.

Still... a timer on the party could clear the console every minute or so... That at least would erase it while not preventing console messages; or screenshots of them.

Re: The Allure of Nightfall - Version 1.0

Posted: Thu Oct 31, 2019 1:05 am
by minmay
If you really want to prevent the warning, I think it would also work to put your CameraComponent on a minimalSaveState object, but of course then you need to manually store all the data about the object and manually re-apply it when the game is loaded. And this also means you can't use it on the same object as Components that require non-minimalSaveState like ItemComponent, PortalComponent, etc.

Re: The Allure of Nightfall - Version 1.0

Posted: Thu Oct 31, 2019 3:20 am
by Isaac
minmay wrote: ↑Thu Oct 31, 2019 1:05 am...but of course then you need to manually store all the data about the object and manually re-apply it when the game is loaded.
This is what I had meant by [non-] conventional means of saving.