Script update in Tz2019: signal not flashing anymore

cisso

quelques pieds sous terre
Hello,

I am updating my signals script and I was wondering why when I run tests signals do not flash anymore (they are supposed to in some cases). I think this is the only issues I have. Updating remaining obsoletes methods seemed to have worked so far.
This is the kind of code I use so maybe some lines are obsoletes? I ran tests in performance and compatibility mode.
Code:
thread void SetSignalcli()
{
    float tempID;
    tempID = floatID;
    //frequence clignotement = 70 / minutes
    while(clignotmt and tempID == floatID)
    {
        SetFXCoronaTexture(n1,corona1);
        SetMeshVisible(couleur1, true, 0.3);
        SetFXCoronaTexture(n2,corona2);
        SetMeshVisible(couleur2, true, 0.3);
        SetFXCoronaTexture(n3,corona3);
        SetMeshVisible(couleur3, true, 0.3);
        Sleep(0.43);
        if(! clignotmt or tempID != floatID) break;
        SetFXCoronaTexture(n1,null);
        SetMeshVisible(couleur1, false, 0.3);
        SetFXCoronaTexture(n2,null);
        SetMeshVisible(couleur2, false, 0.3);
        SetFXCoronaTexture(n3,null);
        SetMeshVisible(couleur3, false, 0.3);
        Sleep(0.43);
    }
}//SetSignalcli

EDIT: flashing is only working in driver mode, and there is no fading anymore when mesh is switched on/off...
 
Last edited:
Cher Cisso,

Ils fonctionnent "flashing" chez moi dans TRS19 SP5 Surveyor comme dans Driver. Il faut "unpause" le UDS-Surveyor et cela marche ici.
J'ai testé un SLUMCE-E - SLUMCE-G ML HT avec MQRRcli.

Amicalement
Paul
 
Last edited:
Hello Paul,

Thanks for your reply. If I understand correctly, UDS is an option that allows us to jump seamlessly from Driver into Surveyor and vice-versa? But it is only available in the platinium edition right? I only got the stantart SP4 build (114800). SP5 is not available yet. Will it be available in SP5?

Bonjour Paul,

Merci de ton retour. Le UDS si j'ai bien compris permet de passer du mode driver à surveyor? Il est disponible uniquement dans la version platinium non? J'ai une version standard SP4 (build 114800). La SP5 n'est pas encore disponible mais peut être que le UDS sera disponible dans le SP5?

Cyril
 
Good evening Cyril,

UDS is available in Platinum and for those that have a Plus or Gold subscription. This is the same in SP5, UDS is not available in the Standard edition(s).
I had similar problems in the signals I made for the Belgian system (they are on https://joomla.cmkks.eu/; the script is a modification of bloodnok's script for N3V). The coronas would not work. The cause is in threads that use the Sleep() routine. Only by "unpausing" the Surveyor mode in UDS will these threads run. One cannot "unpause" in the Standard editions of TRS19 and TRS22.
I solved it by have two script pathways, one for Driver and one for Surveyor, the latter without Sleep() statements.
But eventually I decided to take a Plus subscription. It also gives me access to Surveyor 2.0.

I answer in English now so that everyone can read it. Thanks for your bilingual reply. I saw that you also posted in the scripting thread, and G.M. has responded.
I must end by saying that your signals are beautiful.

Amicalement
Paul
 
Last edited:
Good evening Paul,

Thank you for all this information.
Maybe I'll update to a Plus edition. But all of those using my signals with standard edition will not take advantage as signals will partially work.
Let's hope they will implement UDS in standard edition too.
 
Bonsoir Cyril,

In my experience, in Driver mode there should be no difference. I can only speak for my Belgian signals, but they work(ed) well in Standard Trainz. It is only in Surveyor that the coronas did not appear and in some cases the arms would not move.

Regards,
Paul
 
True! But no way to test signal aspects regarding train path in surveyor, which can be sometimes quite helpful when mapping!
 
bonjour Cyril,
j'ai le problème d'absence de clignotement en mode 'surveyor' mais en mode 'driver' , le clignotement est présent.
seul souci, mais il existe aussi sur TANE , je crois , c'est en vue arrière de feux , la vision brève de ce clignotement
amicalement
gilles
 
I'm assuming that the simple "flash" tag that used to be able to be added to signals' config files does not work anymore?

-A :wave:
 
Back
Top