Hallo zusammen
die Mods die ja zurzeit erstellt werden, sind ja ohne Türanimationen.. Vielleicht kann ja diese Datei dabei die Türanimationsprobleme beseitigen.
Es ist bei jedem Vehicle so eine Animationsdatei dabei. Öffnen kann man sie mit Photoshop.
Gefunden habe ich die Datei z.b. unter der object.gs Datei im Hauptordner von Cities in Motion.
Die GS Datei kann man mit dem GS Viewer öffnen.
Ich weiss nicht ob Euch das hilf für die Türanimationen, da ich mich damit nicht wirklich auskenne.
Beispieldatei:
für Tram01
Aber vielleicht kann der eine oder der andere damit was anfangen.
Mfg
pluesch
Nachtrag:
Script Tram01
this.length = 2;
this.frontOffset = 4.06;
this.rearOffset = 4.06;
this.frontAnchor = 1.21;
this.rearAnchor = 1.21;
this.displayName = MAIN.$strings.$vehicle_tram01;
this.capacity = 100;
this.acceleration = 0.9;
this.braking = 0.4;
this.speed = 0.85;
this.turning = 1.2;
$objectinfoPattern = MAIN.$strings.$objectinfo_timesLastMonth_pattern;
$objectinfoText = MAIN.$strings.$objectinfo_tram;
$objectinfoRange = [4, 19];
this.addPath("doorR0-enter", GRID_PATH_END, vector(2.0, 0.0, -2.5), QUAT_IDENT, vector(-0.5, 0.0, -2.5), QUAT_IDENT);
this.addPath("doorR0-exit", GRID_PATH_START, vector(-0.5, 0.0, -2.5), QUAT_IDENT, vector(2.0, 0.0, -2.5), QUAT_IDENT);
this.addPath("doorR1-enter", GRID_PATH_END, vector(2.0, 0.0, 2.5), QUAT_IDENT, vector(-0.5, 0.0, 2.5), QUAT_IDENT);
this.addPath("doorR1-exit", GRID_PATH_START, vector(-0.5, 0.0, 2.5), QUAT_IDENT, vector(2.0, 0.0, 2.5), QUAT_IDENT);
with (this.loadSkeleton("tram01_scene.skeleton")) {
.loadAnimation("default", "tram01anim.animation", 0);
}
this.doorOpenStart = 0.0 / 30.0;
this.doorOpenLen = 30.0 / 30.0;
this.doorCloseStart = 40.0 / 30.0;
this.doorCloseLen = 30.0 / 30.0;
$price = 60000;
$trailers = [
//["tram-04b", false]
];
$icon = MAIN.$window.video.new_texture("/metro/objects/vehicles/tram-01/tram01-icon.dds");
$rendering = "metro/objects/vehicles/tram-01/tram01-render.dds";
$reliability = 0.90;
$fuelConsumption = 0;
$electricityConsumption = 13;
$attractiveness = 0.80;
$speed = 65;
$type = 1;
$infoText = MAIN.$strings.$vehicle_tram01_info;
with (this.doorOpenSound = new_sound(this)) {
.load("/metro/sounds/4. Bus door opening1 (hiss clank short).wav");
.volume = 1.0;
.minDistance = 50.0;
.maxDistance = 300.0;
}
with (this.doorCloseSound = new_sound(this)) {
.load("/metro/sounds/4. Bus door closing2 (short) .wav");
.volume = 1.0;
.minDistance = 50.0;
.maxDistance = 300.0;
}
with (this.moveSound = new_sound(this)) {
.load("/metro/sounds/4. Tram movement1 (pitch2).wav");
.volume = 0.5;
.minDistance = 50.0;
.maxDistance = 300.0;
}
with (this.bellSound = new_sound(this)) {
.load("/metro/sounds/4. Tram bell3 (2 hits).wav");
.volume = 1.0;
.minDistance = 50.0;
.maxDistance = 300.0;
}
with ($brokenEffect = new_particleEmitter(this)) {
.direction = vector(0.0, 1.0, 0.0);
.minParticleSpeed = 2.0;
.maxParticleSpeed = 3.0;
.minParticleAngle = 0.0;
.maxParticleAngle = 1.0;
.minParticleLife = 2.0;
.maxParticleLife = 4.0;
.maxDistance = 400.0;
.particleSize = 0.5;
.setParticleScale(1.0, 0.1, 6.0);
.particleAirResist = 0.5;
.gravitation = vector(0.0, 3.0, 0.0);
.density = 40.0;
.addColorRange(0x80333333, 0x00333333);
.setTexture("effects/particles/lightsmoke.dds");
.conditions = GRIDVEHICLE_BROKEN;
.sortParticles = true;
.autoemit = true;
.visible = true;
}
event this.onLoaded::() {
$brokenEffect.position = vector(0.0, 0.0, -2.0);
}
Bei mehreren Scripts für das vehicle muss natürlich für jedes einzelne auch eine Animation erstellt werden.
Z.B. für tram 06
tram06a_anim.animation
tram06b_anim.animation
tram06c_anim.animation
tram06d_anim.animation