DIGIFLAG

Discussion in 'Track Modding' started by Kaiser, May 8, 2020.

  1. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    Hi guys

    I am adding digital flags to the circuit (led) and the screen does not change color, however the marshall does change the color of the flag. I attach how I have the project.

    Instance=DigiFlag_000
    {
    MeshFile=DigiFlag_000.gmt CollTarget=False HATTarget=False ShadowCaster=(Static, Solid) ShadowGroups=(12)
    AnimFile=CW_FLAGDOWN.ANM AutoStart=(0)
    AnimFile=CW_FLAGWAVE.ANM AutoStart=(0)
    AnimFile=CW_FLAGHELD.ANM AutoStart=(0)
    AnimFile=CW_SAFETYCAR.ANM AutoStart=(0)
    }

    Instance=StarterWorker_000
    {
    MeshFile=StarterWorker_000.gmt CollTarget=False HATTarget=False ShadowCaster=(Static, Solid) ShadowGroups=(12)
    AnimFile=CW_FLAGDOWN.ANM
    AnimFile=CW_FLAGHELD.ANM
    AnimFile=CW_FLAGWAVE.ANM
    AnimFile=CW_SAFETYCAR.ANM
    AnimFile=SW_PRESTART.ANM
    AnimFile=SW_START.ANM
    AnimFile=SW_VICTORY.ANM
    }


    Led screen. https://www.dropbox.com/s/yvvk3zgh70xl6l1/DP.rar
    This object has been sent to me, I suppose it's fine. I hope you can tell me something
     
  2. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,354
    Likes Received:
    2,495
    I guess it will depend on the object, there are some digitalflags no have animation. This is an example of the most common. You should check the scn of the "donor" circuit

    Instance=DigitalFlag_000
    {
    MeshFile=DigitalFlag_000.gmt CollTarget=False HATTarget=False Reflect=True
    AnimFile=DF_FLAGDOWN.ANM
    AnimFile=DF_FLAGHELD.ANM
    AnimFile=DF_FLAGWAVE.ANM
    AnimFile=DF_SAFETYCAR.ANM

    }

    Not all animations are created equal. The marshalls don't work with differents animations (even if they have the same name). What I usually do is save the object model with the animations of the track and a copy of the .scn lines as an example that refer to that object
     
    Last edited: May 8, 2020
    svictor likes this.
  3. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    https://www.dropbox.com/sh/dikthazoooglf0t/AABUNUeB_BMftjR_xeBDsjcxa?dl=0

    Ok, I have uploaded the new animations that I am using, the object that I cut from the circuit. the original scn of the object. and on the other hand my scn and the same object but with my coordinates on the map.

    I have tried this one now, and it seems that the color does not change much, the animation in the 3dsimed marks well, event, and with its frames.
    I don't know what else to do ... the march worked the first time
     
  4. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,354
    Likes Received:
    2,495
    you have the first object called "digitalflag_000" ?
     
  5. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    [​IMG]yes and it doesn't work.
     
  6. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    any ideas please
     
  7. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    I did download the object from your above post, have taken the Digitalflag_012.gmt and put it into the joesville track by using this instance entry in the scn file:
    Instance=DigitalFlag_000
    {
    MeshFile=DigitalFlag_12.gmt CollTarget=False HATTarget=False
    }
    and it changed from green to yellow when i stopped at the track.
    So it works.
    Ensure that you really use the scheme "Instance=DigitalFlag_000" for the first digflag, "Instance=DigitalFlag_001" for the 2nd digflag and so on.
    The mesh that you use don't needs any animation file, because it is texture animated only.
     
  8. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    Instance=xpitin
    {
    Render=False
    Change=False
    MeshFile=xpitin.gmt CollTarget=True HATTarget=False ShadowReceiver=False
    Response=VEHICLE,PITSTOP
    }

    Instance=xpitout
    {
    Render=False
    Change=False
    MeshFile=xpitout.gmt CollTarget=True HATTarget=False ShadowReceiver=False
    Response=VEHICLE,PITSTOP
    }

    Instance=StarterWorker_000
    {
    VisGroups=(32)
    MeshFile=StarterWorker_000.gmt CollTarget=False HATTarget=False ShadowCaster=(Static, Solid) ShadowGroups=(12)
    AnimFile=CW_FLAGDOWN.ANM
    AnimFile=CW_FLAGHELD.ANM
    AnimFile=CW_FLAGWAVE.ANM
    AnimFile=CW_SAFETYCAR.ANM
    AnimFile=SW_PRESTART.ANM
    AnimFile=SW_START.ANM
    AnimFile=SW_VICTORY.ANM
    }

    Instance = DigitalFlag_000
    {
    MeshFile = DigitalFlag_12.gmt CollTarget = False HATTarget = False
    }


    //-------------------------------------------------------

    ReflectionMapper=REFLECTEDENV
    {
    Type = Planar
    TextureSize = (1024)
    UpdateRate = (100,000)
    StaticSwitch = (150,000)
    TrackingIns = NULL
    IncludeINS =
    }


    It doesn't work, I've already tried everything ...
     
  9. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,345
    Likes Received:
    6,572
    Might be barking up the wrong tree here, but be aware you've put spaces around the = signs in your digitalflag entry. Maybe it should still work, but best to do exactly as others do...
     
  10. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    Hi guys, I have already solved the problem, the flags are changed. But what I notice is that the screen changes flag just when you are very close to the screen. Is there a way for that detection to be done earlier?

    what i did was a new aiw, with all its steps from the beginning, and it was solved, thanks to brend
     
  11. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    That is also something that worked better some years ago.
    The flags.
    I would suggest to put at least 3 flags into each sector.
    One at the beginning, one in the middle and one at the end of each sector.
    That should work better.
    And BTW my name is bernd, not brend. ;)
     
    Kaiser likes this.
  12. Kaiser

    Kaiser Registered

    Joined:
    Apr 11, 2018
    Messages:
    36
    Likes Received:
    2
    hahah sorry bernd!! ;):p:D

    When you say flags, do you mean the screens?
    can i put 2 marshall and one screen in one sector?
    or 2 screens and a marshall?
     
  13. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Normally you can use whatever you want, just try it out. ;)
    But think at the scheme with the instance names!
     
    Corti likes this.

Share This Page