1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Like RaceDepartment on Facebook.

Change Color of String Object

Discussion in 'Bob's Track Builder' started by Yeek, May 29, 2009.

  1. Hi there,

    Could someone point me a link on how to change the color of a string object? In particular, I want to make the default white tyre walls into red and white alternating colors.

    many thanks,

    Yeek
     
  2. I believe there are various coloured tires in the 'Ennis Extras' X-Pack.
    Check Piddy's videos for instructions on how to change the Sobject properties.
    Bob's Track Builder - Videos

    Also, search for SObjects, or String Objects on YouTube..

    Cheers,
    Mark
     
  3. Sobjects are treated as a object like any other.

    You only need to click on materials button (that kerb in BTB interface) and replace tyres textures by any you like. The BTB interface will update all Sobjects immediately.

    Of course, you must have the new textures before do that.
     
  4. Thanks!

    Thanks guys, am now looking at the vids for more info. 1 thing though, my Ennis Extras brought into BTB does not seem to show up in my object list :( ??? Hang on....are the Ennis Extras not objects but just textures only?

    Satangoss, I found the Edit Materials button on the top of the interface of BTB, the 5th one from the right, next to the Sun icon. Is it what you were referring to? I can't seem to find heads or tails on how to use it. What do I do to change the tires' texture and save it as Red Tires so that I can use it as 1 one 2 tire objects in Sobject (alternating White Tires with Red Tires Objects)? Thanks!
     
  5. Sobject

    Alright! Smack on what I need! Mega thanks dude!

    You're Ennis? :)

    Cheers!

    Yeek
     
  6. Error encountered...

    New problem faced.

    When I followed the linked instructions in:

    http://forum.racedepartment.com/bobs-track-builder/16694-question-changing-sobject-curb-colours.html

    I got this error when I pressed OK:

    "Object reference not set to an instance of an object"

    The details are as follows:

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at BobsTrackBuilder.frmMaterials.butOK_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///d:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    MC
    Assembly Version: 3.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSI....0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    ˆ†Žš†—“ˆŠ”›†š˜–˜
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    License
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSI...0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    BobsTrackBuilder
    Assembly Version: 0.7.0.6
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    BobsBits
    Assembly Version: 1.1.1.5
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    Microsoft.DirectX
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///D:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3D
    Assembly Version: 1.0.2902.0
    Win32 Version: 9.05.132.0000
    CodeBase: file:///D:/WINDOWS/assembly/GAC/Mic...bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3DX
    Assembly Version: 1.0.2911.0
    Win32 Version: 9.12.589.0000
    CodeBase: file:///D:/WINDOWS/assembly/GAC/Mic...f3856ad364e35/Microsoft.DirectX.Direct3DX.dll
    ----------------------------------------
    Microsoft.VisualC
    Assembly Version: 8.0.0.0
    Win32 Version: 8.00.50727.3053
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSI...0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.dll
    ----------------------------------------
    ICSharpCode.SharpZipLib
    Assembly Version: 0.85.5.452
    Win32 Version: 0.85.5.452
    CodeBase: file:///D:/Program Files/BobsTrackBuilder/ICSharpCode.SharpZipLib.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.


    Help!!

    Yeek
     
  7. Yeek, could you solve it?

    I'm refering to this button:

    You only need to open "Default" tree, walls-> tire, and click on the default texture.

    [​IMG]

    It will be able you to click on "load" and replace that white texture for whatever you like. Remember that tire wall are made by two textures. You need to change the colors of both in Photoshop (or another one similar), save as DDS and load into BTB.
     
  8. Change texture

    Hi there,

    Yes I managed to edit the textures and replaced the plain old white tires to alternating white and red tires :)

    I discovered that if I pointed to a texture saved under a different name from the original "white1_side.dds", I get a:

    "Object reference not set to an instance of an object" error in BTB.

    No choice, I had to make a copy of the "default" xpack, renamed it as "redwhitetires" and kept the texture name of the tires to "white1_side.dds"

    Once again many thanks for the assistance :)