Required tag 'looped' Required tag 'speed' missing

xcrossi

New member
Hello
where do I insert the tags and what values do I enter
for dkCrossing Gate.
I did find a animated looped-speed tag ....no joy
As you can see its is asking for two entries
after I clone and delete the extra kuids I get only 2 warnings

Warning: Required tag 'looped' was missing and has been set to default.
Warning: Required tag 'speed' was missing and has been set to default.

The clone shows but does not work.

Gerry
 
Hi
Ah.. I don't see any mention of looped nor speed entries or values.
but your hint helped me to find where to add the tags to the container .
I would like to know what values to use.
Did not find a similar 2.7x asset xing gate to use as a example.

Gerry
 
Last edited:
Hello again
I'm sorry I just need to know what values if any.
I can't make heads or tales of the links you provided.
I entered just a random numbers and the xing arm is
definitely animated, rapidly moving up and down.

Gerry
 
The link I posted has the default values listed.
looped 0 (for non looping animation)
speed 1 (for normal speed)

Peter
 
Howdy...

OK..I found it Thanks..and all errors clear..But it does not work..
I'm doing this more to learn than any thing else.
I like fixing small appliances. For example coffee makers and fans.
the most common repair is to replace the thermal fuse.
Coffee Maker has two one for hot plate and one for water heater.
Its harder to get to the Fans fuse. Not keeping the fan clean and oiled
is the main reason why the fuse blows.
OOPS off topic...

I checked other xings and none have those entries and the script is more complex.
What would suggest my next step be?

Gerry
rweb95 and p-dehnert
I just noticed we joined the same time.
Some of my fondest memories are of Heidelberg 1964
and your lovey country and wonderful people.

When I was a small lad I lived in Bonneville, Hoquaim, Aberdeen and Centralia Wa.
 
Last edited:
The Nov 2006 joined date shows for all of us that were members before the old Forum crashed. A lot of data on previous memebers was lost so when Auran started up a new forum in Nov 2006, we all got new join dates.

Bob Weber
 
I was getting tired
I realize now I joined in 2004

here is the script and new config txt

include "MapObject.gs"

class gate isclass MapObject
{
bool debug=false;
string myname;

void eventhandlergateup (Message msg)
{
myname = me.GetName();
if(msg.minor == myname[0,msg.minor.size()]) {
if(debug) Interface.Print("Gate Dev: " + myname);
SetFXAnimationState("down",false);
SetFXAnimationState("up",true);
}
}

void eventhandlergatedown (Message msg)
{
myname = me.GetName();
if(msg.minor == myname[0,msg.minor.size()]) {
if(debug) Interface.Print("Gate Dev: " + myname);
SetFXAnimationState("up",false);
SetFXAnimationState("down",true);
}
}

public void Init()
{
inherited();
myname = me.GetName();
SetFXAnimationState("up",true);
if(debug) Interface.Print("Gate Init: " + myname);
AddHandler(me, "gate_high", "", "eventhandlergateup");
AddHandler(me, "gate_low", "", "eventhandlergatedown");
}
};


NEW CONFIG.TXT:

kuid <kuid2:62310:30066:1>
username "dkCrossing Gate /long"
kind "scenery"
trainz-build 2.9
script "gate"
class "gate"

mesh-table
{
default
{
mesh "gate.im"
auto-create 1

effects
{
up
{
looped 0
speed 0.5
kind "animation"
anim "up.kin"
}

down
{
looped 1
speed 0.5
kind "animation"
anim "down.kin"
}

gate_al
{
kind "attachment"
default-mesh <kuid:62310:30092>
att "a.default"
surveyor-only 1
}
}
}
}
light 1
rotate-yz-range -15,15
height-range -15,15
category-class "ZX"
category-era "1960s;1970s;1980s;1990s;2000s;2010s"
category-region "DK"
description "Part of Danish crossings"

thumbnails
{
0
{
image "$screenshot$.jpg"
width 240
height 180
}
}

kuid-table
{
redcorona <kuid:62310:30044>
0 <kuid:62310:30092>
}
 
Back
Top