Original Message:
Sent: 05-31-2024 18:19
From: Jean Russell
Subject: Simple Scripting Question
You don't seem to be getting the text object associated with "home". Or "visitor" or "filepath". You're creating the variables so the compiler is happy, but you're not attaching them to anything.
------------------------------
Jean Russell
Freelancer
Original Message:
Sent: 05-31-2024 17:22
From: Eric Rodriguez
Subject: Simple Scripting Question
I'm looking to see if anyone might be able to help me figure out this very simple problem. I've done this a dozen times and today it's not working. I'm trying to map the sharder for homecolor1shad from the filepath.Text. When I use the debug monitor I noticed it stops at the filepath line. I've confirmed the file is in the folder of the path listed. I'm sure I'm missing something every simple.
Any help would be appreciated. Thank you.
engine.DebugMessage("start", 0)
dim homecolor1, homecolor2, homecolor3, homecolor4, homecolor5, homecolor6, homelogowhite, homelogocolor, homebackground, homecourt, visitorcolor1, visitorcolor2, visitorcolor3, visitorlogowhite, visitorlogocolor, visitorbackground as xpBaseObject
engine.DebugMessage("start1", 0)
dim homecolor1mat, homecolor2mat, homecolor3mat, homecolor4mat, homecolor5mat, homecolor6mat, homelogowhitemat, homelogocolormat, homebackgroundmat, homecourtmat, visitorcolor1mat, visitorcolor2mat, visitorcolor3mat, visitorlogowhitemat, visitorlogocolormat, visitorbackgroundmat as xpMaterial
engine.DebugMessage("start2", 0)
dim homecolor1shad, homecolor2shad, homecolor3shad, homecolor4shad, homecolor5shad, homecolor6shad, homelogowhiteshad, homelogocolorshad, homebackgroundshad, homecourtshad, visitorcolor1shad, visitorcolor2shad, visitorcolor3shad, visitorlogowhiteshad, visitorlogocolorshad, visitorbackgroundshad as xpBaseShader
dim filepath, home, away as xpTextObject
engine.DebugMessage("start3", 0)
self.GetObjectByName("HOME COLOR 1", homecolor1)
self.GetObjectByName("HOME COLOR 2", homecolor2)
self.GetObjectByName("HOME COLOR 3", homecolor3)
self.GetObjectByName("HOME COLOR 4", homecolor4)
self.GetObjectByName("HOME COLOR 5", homecolor5)
self.GetObjectByName("HOME COLOR 6", homecolor6)
self.GetObjectByName("HOME LOGO WHITE", homelogowhite)
self.GetObjectByName("HOME LOGO COLOR", homelogocolor)
self.GetObjectByName("HOME BACKGROUND", homebackground)
self.GetObjectByName("HOME COURT", homecourt)
engine.DebugMessage("start4", 0)
self.GetObjectByName("VISITOR COLOR 1", visitorcolor1)
self.GetObjectByName("VISITOR COLOR 2", visitorcolor2)
self.GetObjectByName("VISITOR COLOR 3", visitorcolor3)
self.GetObjectByName("VISITOR LOGO WHITE", visitorlogowhite)
self.GetObjectByName("VISITOR LOGO COLOR", visitorlogocolor)
self.GetObjectByName("VISITOR BACKGROUND", visitorbackground)
engine.DebugMessage("start5", 0)
engine.DebugMessage("start6", 0)
self.GetObjectByName("HOME COLOR 1", homecolor1)
engine.DebugMessage("line1", 0)
homecolor1.GetMaterial(0, homecolor1mat)
engine.DebugMessage("line2", 0)
homecolor1mat.GetShader(0, homecolor1shad)
engine.DebugMessage("line3", 0)
engine.DebugMessage("line4", 0)
homecolor1shad.SetFileName(filepath.Text & home.Text & "COLOR1.PNG")
engine.DebugMessage("end", 0)
------------------------------
Eric Rodriguez
------------------------------