Cmp™ - OnLaptop Mar 17 @ 10:26am
Color Script Issue :s
I just started using Doc's newer color script and at first, it worked great because it saved me time from using the Hat Proxy, which is reliable, but it takes a bit of tinkering.

However, recently, any of my sessions that have the color script in use crash SFM. It's not a huge deal I guess because I only just started using it, so not a lot of my sessions have it in use, but still, it's really annoying.

Before it's brought up, yes, I used the script correctly. I never painted over the same hat twice. I've always deleted the hat completely for good measure and brought in a new one, THEN applied the script.

Any ideas?
Showing 1-13 of 13 comments
< >
I am wondering if the script had an update after you painted your hats in the other sessions? If so, then there may be a conflict between what the script should say and what the script actually says.
Cmp™ - OnLaptop Mar 17 @ 1:02pm 
Only if it's been updated with the past two days, because that's how long I've been using it.
Can you provide one of your sessions that crash in a drop box and link it?
Cmp™ - OnLaptop Mar 17 @ 1:31pm 
This is the session where I test paint fixes and experiment with stuff.
https://drive.google.com/file/d/0B9gseVcNYFfZb1ZMUVMzaER2cEU/edit?usp=sharing
Crash boom bang... Do you remember what you might have painted in this file?
EDIT:
Also I see reference to the enhanced scout, did you use that in this??
Last edited by Pte Jack is away for a MONTH; Mar 17 @ 2:07pm
Cmp™ - OnLaptop Mar 17 @ 2:11pm 
Yeah, I did. I hope that's not an issue, because I like using the enhanced scout :<

The only thing I painted with the color script that I can accurately recall is the Toque when I was working on that hat. I MAY have painted the Professor's Pineapple with the script, but I can't recall. Before that, I'd just been using the hat proxy on a lot of stuff I can't recall >.<
Cmp™ - OnLaptop Mar 17 @ 3:07pm 
Accepted!
PalmliX Mar 17 @ 4:00pm 
One thing I've come to realize about SFM, just because you delete something in the animation set editor doesn't mean it's totally gone, a reference to it usually stays in the element viewer. Not saying that's what's causing the crash, but it's something that's caused me issues in the past.
Yes, I'm seeing that in the DMX... All kinds of references...
Cmp™ - OnLaptop Mar 17 @ 5:07pm 
Well, the "correct" way I thought I was using was actually incorrect, as Jack has very kindly showed me in practice.

I will make sure to use the script the truly correct way now and will be working with that dmx convert tool to try and repair the other sessions.

Thanks again, Jack!
Setting the con_logfile "filename.txt" cvar I was able to determine that a modelwas the last touched culprit while loading and was most likely causing the crash. Using DMXConvert I was able to convert the session to tex format so I could investigate the session dmx in plain english.

Being told that the last thing done to the file was that the color script was used on it, I suspected that the materials were pooched. Not knowing what I was looking for I created a new session with a paintable item and used the paint script to paint it so the material overrides would be in place. I then sent the model to the element viewer and exported the model element. I converted the binary dmx to tex and started to compare models.

What I found was that the Materials element array contained empty elements on both of the models in the session.
"materials" "element_array"
squarebracket-on
"element" "",
"element" "",
"element" "",
"element" ""
squarebracket-off

I suspect that this was caused by deleting the material proxies created straight from the element viewer rather than removing the override materials from the animation set in the animation set editor as recommended in the script instructions.

I copied the Materials element arrays from my exported model set to the missing arrays


"materials" "element_array"
squarebracket-on
"DmeMaterial"
{
"id" "elementid" "74a184bb-1f4e-4724-b0e1-74ab808d7dc1"
"name" "string" "proxy material"
"mtlName" "string" "models/player/items/heavy/models/player/items/heavy/heavy_stocking_cap"
"$color" "vector3" "1 0.4117647111 0.7058823705"
"$color2" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_base" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_tmp" "vector3" "0 0 0"
},
"DmeMaterial"
{
"id" "elementid" "ee10280a-2d42-4bad-a101-f1a31ebffebd"
"name" "string" "proxy material"
"mtlName" "string" "models/player/items/heavy/heavy_stocking_cap"
"$color" "vector3" "1 0.4117647111 0.7058823705"
"$color2" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_base" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_tmp" "vector3" "0 0 0"
},
"DmeMaterial"
{
"id" "elementid" "0993405b-daa1-4764-a25f-d84add2ef16e"
"name" "string" "proxy material"
"mtlName" "string" "models/player/items/heavy/heavy_stocking_cap_blue"
"$color" "vector3" "1 0.4117647111 0.7058823705"
"$color2" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_base" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_tmp" "vector3" "0 0 0"
},
"DmeMaterial"
{
"id" "elementid" "3fc3c3e9-b163-4456-abc4-09374d0b2252"
"name" "string" "proxy material"
"mtlName" "string" "heavy_stocking_cap_blue"
"$color" "vector3" "1 0.4117647111 0.7058823705"
"$color2" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_base" "vector3" "1 0.4117647111 0.7058823705"
"$colortint_tmp" "vector3" "0 0 0"
}
squarebracket-off

Converted the tex file back into a binary DMX and the session loaded without a problem.

WOW, What a learning curve.... But the end result was a happy customer
Last edited by Pte Jack is away for a MONTH; Mar 17 @ 5:51pm
PalmliX Mar 17 @ 6:10pm 
Wow Jack, I'm impressed. I'll definitely be referring to your post in the future. Great stuff!
Showing 1-13 of 13 comments
< >
Per page: 15 30 50
Date Posted: Mar 17 @ 10:26am
Posts: 13