|
Post by lakelunvik on Feb 9, 2023 3:59:42 GMT -5
Hi, i'll make it short and simple. i'm not new to s4s but this error feels very new. and i've gone thru my previous swatches and nothing was duplicated so i'm very confused. any help will be appreciated. I am used the normal version of s4s because the latest beta one is difficult when making eyes (my specialty).
The Sims 4 Studio - Version 3.1.6.3 System.AggregateException: One or more errors occurred. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream. at Gibbed.IO.StreamHelpers.ReadBytes(Stream stream, Int32 length) at S4Studio.Shared.LRLEImageResource.ImportToLRLE(Byte[] ddsBytes) at S4Studio.ViewModels.CAS.CASSwatchTexture.Import(String file) at S4Studio.ViewModels.Generic.Sims4SwatchContent.<>c__DisplayClass66_0.<ExecuteImportTexture>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.IO.EndOfStreamException: Attempted to read past the end of the stream. at Gibbed.IO.StreamHelpers.ReadBytes(Stream stream, Int32 length) at S4Studio.Shared.LRLEImageResource.ImportToLRLE(Byte[] ddsBytes) at S4Studio.ViewModels.CAS.CASSwatchTexture.Import(String file) at S4Studio.ViewModels.Generic.Sims4SwatchContent.<>c__DisplayClass66_0.<ExecuteImportTexture>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---
|
|
|
Post by mauvemorn on Feb 9, 2023 9:25:50 GMT -5
Hi. As you know, eyes are using a color slider compatioble format called LRLE. This format is too heavy for s4s wishes, which is 32bit compatible. The beta version is 64bit compatible, so it can work with this format.
But its strange, though, because the eye texture should not be that heavy and so far you worked fine with them, maybe something is different this time? Does this package have a lot of swatches? Do you use uncompressed dds or png? Try the opposite
|
|
|
Post by lakelunvik on Feb 9, 2023 10:26:17 GMT -5
Hi. As you know, eyes are using a color slider compatioble format called LRLE. This format is too heavy for s4s wishes, which is 32bit compatible. The beta version is 64bit compatible, so it can work with this format. But its strange, though, because the eye texture should not be that heavy and so far you worked fine with them, maybe something is different this time? Does this package have a lot of swatches? Do you use uncompressed dds or png? Try the opposite I was coverting eyes to nondefault, over 100 swatches but i was only on 14. and i can't use png on eyes, but yes i was using uncompressed dds. it was working fine until swatch 14 tho so i'm confused.
|
|
|
Post by mauvemorn on Feb 9, 2023 11:50:45 GMT -5
What happens when you close s4s, open it again and choose the 14th swatch again? If you still get the error, you’ll have to use the beta, unfortunately. As I understand, the beta has a bug that does not convert those files to LRLE automatically, so you can try making a test package, import one, then Tools - Modding - convert RLE2 to LRLE. If this will work, try importing a few and converting.
|
|
|
Post by lakelunvik on Feb 9, 2023 12:07:19 GMT -5
What happens when you close s4s, open it again and choose the 14th swatch again? If you still get the error, you’ll have to use the beta, unfortunately. As I understand, the beta has a bug that does not convert those files to LRLE automatically, so you can try making a test package, import one, then Tools - Modding - convert RLE2 to LRLE. If this will work, try importing a few and converting. i downloaded it, the beta, made a new package, in hopes it would fix it but i get this error The Sims 4 Studio - Version 3.2.0.3 System.AggregateException: One or more errors occurred. (Attempted to read past the end of the stream.) ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream. at Gibbed.IO.StreamHelpers.ReadBytes(Stream stream, Int32 length) at S4Studio.Shared.LRLEImageResource.ImportToLRLE(Byte[] ddsBytes) at S4Studio.ViewModels.CAS.CASSwatchTexture.Import(String file) at S4Studio.ViewModels.Generic.Sims4SwatchContent.<>c__DisplayClass65_0.<ExecuteImportTexture>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace ---
|
|
|
Post by mauvemorn on Feb 9, 2023 12:25:27 GMT -5
Hmmm, also on the 14th swatch? If yes, can you try importing a different texture in this swatch (the one from previous swatches) to rule out the texture itself
|
|
|
Post by lakelunvik on Feb 9, 2023 12:27:06 GMT -5
Hmmm, also on the 14th swatch? If yes, can you try importing a different texture in this swatch (the one from previous swatches) to rule out the texture itself no this was on the first swatch
|
|
|
Post by mauvemorn on Feb 9, 2023 12:45:50 GMT -5
I found another instance of this issue with the beta, there the person was importing a compressed dds. Makes no sense for this to happen on the 14th texture, but just to be sure, youre saving them with these settings, right? If yes, again for the sake of testing, can you export the original image in png and import it back to see if there will be an error?
|
|
|
Post by lakelunvik on Feb 9, 2023 12:50:14 GMT -5
I found another instance of this issue with the beta, there the person was importing a compressed dds. Makes no sense for this to happen on the 14th texture, but just to be sure, youre saving them with these settings, right? If yes, again for the sake of testing, can you export the original image in png and import it back to see if there will be an error? png will turn the s4s model white and yes those are my settings
|
|
|
Post by mauvemorn on Feb 9, 2023 13:01:21 GMT -5
you cant just save dds as png, the alpha channel will not automatically convert into transparency, you'd need to either make it a mask yourself or use an online converter, otherwise the alpha will be lost and you'll get a fully opaque image with the white sim.
Until the beta version, we'd get these reports all the time, but then they stopped. You're only the second person who's encountering this issue on beta, so i need to figure out what is causing it exactly to report it. You do not need to convert your files to png manually, just exporting an existing texture from the package in png and importing it back is enough to answer that
|
|
|
Post by lakelunvik on Feb 9, 2023 13:21:31 GMT -5
you cant just save dds as png, the alpha channel will not automatically convert into transparency, you'd need to either make it a mask yourself or use an online converter, otherwise the alpha will be lost and you'll get a fully opaque image with the white sim. Until the beta version, we'd get these reports all the time, but then they stopped. You're only the second person who's encountering this issue on beta, so i need to figure out what is causing it exactly to report it. You do not need to convert your files to png manually, just exporting an existing texture from the package in png and importing it back is enough to answer that i will use png, but is there something wrong with dds now or not? thank you somuch for your help
|
|
|
Post by mauvemorn on Feb 9, 2023 14:34:26 GMT -5
Well, I need you to tell me that lol. If png will give you no errors, then yes, something must be wrong with the uncompressed dds. If it won’t work as well, then there must be another reason
|
|
|
Post by lakelunvik on Feb 9, 2023 15:51:11 GMT -5
Well, I need you to tell me that lol. If png will give you no errors, then yes, something must be wrong with the uncompressed dds. If it won’t work as well, then there must be another reason well, this is quite the predicament, the png works well
|
|
|
Post by lakelunvik on Feb 9, 2023 15:59:19 GMT -5
I found another instance of this issue with the beta, there the person was importing a compressed dds. Makes no sense for this to happen on the 14th texture, but just to be sure, youre saving them with these settings, right? If yes, again for the sake of testing, can you export the original image in png and import it back to see if there will be an error? png will turn the s4s model white and yes those are my settings do you happen to have a full ss of these settings? my mouth was doing this autoscroll thing yesterday and i think that might have a part to play
|
|
|
Post by mauvemorn on Feb 9, 2023 16:07:10 GMT -5
It’s just 8.8.8.8 and generated mipmaps, nothing unusual Ok so I guess there is a problem with dds after all. what you can do is dump a few dds textures into dds to png converter and it will make proper png textures without the white background. If all of it will work, dump all 100 textures there convertio.co/dds-png/ (I haven’t tried it myself but if it will ask for your email, money, registration, just google « dds to png converter » and try the next link) also, could you please share one dds texture that is giving you problems so that I could sent it to developers (upload it on the file sharing website, not the image sharing one, please)
|
|