Beiträge von melectro
Willkommen in der Transport Fever Community
Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.
Die Registrierung und Nutzung ist selbstverständlich kostenlos.
Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.
Das Team der Transport-Fever Community
-
-
Ahhh, mit volle Freude ging ich zur nächster Stadt und habe dort auch die Kreuzung beim Bahnhof ausgetauscht und dann hat es wieder passiert. Nun konnte ich diese konstruktion wiederholen mit Ausgangspunkt von ein savegame.
Einige screen shots kan das erklären.1)
zwei alte Strassen Anschlüsse werden benutzt2)
An die markierte Strassen werden das Problem nach dem Anschluss auftreten.3)
Meine Lösung: Die Kreuzung löschen und zurück setzen. Anscheinend habe ich es vergessen in meiner Antwort oben (vor 1 Stunde). -
Ich habe meinen strassen Anschluss gelöscht und wieder gelegt. Jetzt geht's aber. Ich habe diesen test wiederholt und es läuft bei jedem versuch.
-
-
Ich Bitte um Hilfe, ich versuche mein bestes aber es wird nichts.
Die edges und nodes habe ich manuell editiert und so lange Ich die "runways" nicht aktivieren lässt (Zeilennummer 141 -153 im mdl Datei), kann ich mein Hafen im Spiel fixieren. Aber wenn ich die "runways" aktiviere, bekomme ich ein error "Die Docks befinden sich außerhalb befahrbarem Wasser". Nirgends kann ich dann den Hafen platzieren.
Ich habe nodes absichtlich gelegt um einen Bogen anzuzeigen. Als start (beispiel) benutze ich die vanilla "Passenger Harbor"
RUNWAY nicht aktiv
(e = edges im quell code mit X,Y)Code
Alles anzeigentransportNetworkProvider = { laneLists = { -- street (in con file) -- edges[#edges + 1] = { { 80.0, -52.00, 2.1 }, { 80.0, 21.0, 2.1 } } -- edges[#edges + 1] = { { 80.0, -30.00, 2.1 }, { 80.0, 21.0, 2.1 } } { transportModes = { "PERSON" }, nodes = laneutil.makeLanes({ -- to street -- edge 0/0 { { 80.0, -28.0, 2.10 }, { 80.0, -22.0, 2.10 } , { 0.0, 6.0, 0 }, { 0.0, 6.0, 0 }, 3.0 }, { { 75.5, -28.0, 2.10 }, { 80.0, -28.0, 2.10 } , { 12.0, -0.0, 0 }, { 12.0, -0.0, 0 }, 3.0 }, { { 80.0, -28.0, 2.10 }, { 84.5, -28.0, 2.10 } , { 12.0, -0.0, 0 }, { 12.0, -0.0, 0 }, 3.0 }, { { 84.5, -28.0, 2.10 }, { 84.5, -60.0, 2.10 } , { 0.0, -2.0, 0 }, { 0.0, -8.0, 0 }, 3.0 }, { { 75.5, -28.0, 2.10 }, { 75.5, -60.0, 2.10 } , { 0.0, -2.0, 0 }, { 0.0, -8.0, 0 }, 3.0 }, -- edge 5/10 { { 80.0, -14.0, 2.1 }, { 82.5, -14.0, 2.1 } , { 2.5, -0, 0 }, { 2.5, -0, 0 }, 3.0 }, { { 82.5, -14.0, 2.1 }, { 85.0, -14.0, 2.1 } , { 2.5, -0, 0 }, { 2.5, -0, 0 }, 3.0 }, { { 85.0, -14.0, 2.1 }, { 109.0, -14.0, 2.1 } , { 20.0, -0, 0 }, { 20.0, -0, 0 }, 3.0 }, { { 109.0, -14.0, 2.1 }, { 109.0, -22.0, 2.1 } , { 0.0, -30.0, 0 }, { 0.0, -30.0, 0 }, 3.0 }, { { 109.0, -22.0, 2.1 }, { 80.0, -22.0, 2.1 } , { -20.0, -0.0, 0 }, { -20.0, -0.0, 0 }, 3.0 }, -- waiting areas -- edge 10/20 personEdges, personNodes (right) { { 138.0, -14.0, 2.10 } , { 109.0, -14.0, 2.10 }, { -30.0, -0.0, 0 }, { -30.0, -0.0, 0 }, 3.0 }, }), }, { transportModes = {"SHIP"}, nodes = laneutil.makeLanes({ --Landing -- edge 11/22 { { 96.0, 2.0, -2.1 }, {96.0, 60.0, -2.1}, { 2.5, 0.0, .0}, { -6.0, 1.0, .0 }, 30.0 }, { { 76.0, 0.5, -2.1 }, {96.0, 2.0, -2.1}, { 6.0, 1.0, .0}, { 10.0, .5, .0 }, 30.0 }, { { 55.0, 0.0, -2.1 }, {76.0, 0.5, -2.1}, { 10 , 0.5, .0}, { 6.0, 1.0, .0 }, 30.0 }, { { 55.0, 0.0, -2.1 }, { 95.0, 1.0, -2.1 }, { 1.0, 0.0, .0 }, {10, 0.3, .0 }, 30.0 }, { { 95.0, 1.0, -2.1 }, {105.0, 2.0, -2.1 }, {10.0, 0.3, .0 }, {10, 2.0, .0 }, 30.0 }, { {105.0, 2.0, -2.1 }, {121.0, 7.0, -2.1 }, {10.0, 2.0, .0 }, { 3, 2.0, .0 }, 30.0 }, -- Take off -- edge 17/34 { {121.0, 7.0, -2.1 }, {130.0,20.0, -2.1 }, { 3.0, 2.0, .0 }, { 1, 3.0, .0 }, 30.0 }, }) } }, terminals = { { vehicleNode = 26, personNodes = { 21 }, personEdges = { 10 } }, }, -- runways = { -- { -- type = "TAKEOFF", -- node = 35, -- edges = { 17 } -- }, -- { -- type = "LANDING", -- node = 23, -- edges = { 11 } -- }, -- }, },
-
Hallo,
Ich versuche es in Deutsch zu fragen. Ich arbeite mit die Stena Hafen anlage und komme nicht weiter. Ich habe Probleme mit der anfahrt der Fähre. Es heißt laneUtil und runway.
Kan jemand mir erklären was die verschieden Ziffern bedeutet? Ich glaube ich habe einzelne im griff, aber bin nicht ganz sicher.
Wie funktioniert runway und was ist "nodes" und "edges"?Ich kann es nicht ausprobieren solange ich nicht weiß wie ich es richtig eingebe in Blender und Blender unterstützt jetzt nicht SHIP beim export. Ich habe LKW anlagen (train fever) geöffnet (import) aber es ist nicht einfach zu vergleichen mit Schiffe in Transport Fever?
Gebe es irgendwo ein anderes Werkzeug (windows Programm) um die strecken zu machen?
Bash
Alles anzeigentransportNetworkProvider = { laneLists = { { transportModes = { "SHIP" }, nodes = laneutil.makeLanes({ -- Note: -2.1 because models is 2.0 + 0.1 above water level -- port east -- Ich möchte hier eine Erklärung, bitte { {10.0, -13.0, -2.1}, {50.0, -13.0, -2.1 }, { 55.0, 0.0, .0 }, { 55.0, 0.0, 0.0 }, 30.0 }, { {50.0, -13.0, -2.1}, {60.0, -13.0, -2.1 }, { 10.0, 0.0, .0 }, { 10.0, 0.0, 0.0 }, 30.0 }, -- port west { {-10.0, -13.0, -2.1 }, {-50.0, -13.0, -2.1 }, { -55.0, 0.0, .0 }, { -55.0, 0.0, 0.0 }, 30.0 }, { {-50.0, -13.0, -2.1 }, {-60.0, -13.0, -2.1 }, { -10.0, 0.0, .0 }, { -10.0, 0.0, 0.0 }, 30.0 }, -- water ways east ("runway east") { {60.0, -13.0, -2.1}, {80.0, -13.0, -2.1 }, { 20.0, 0.0, .0 }, { 20.0, 0.0, 0.0 }, 30.0 }, -- water ways west ("runway west") { {-60.0, -13.0, -2.1}, {-80.0, -13.0, -2.1 }, {-20.0, 0.0, .0 }, { -20.0, 0.0, 0.0 }, 30.0 }, }) }, }, terminals = { }, -- Auch hier habe ich probleme runways = { { type = "TAKEOFF", node = 8, edges = { 4 } }, { type = "LANDING", node = 9, edges = { 4 } }, { type = "TAKEOFF", node = 10, edges = { 5 } }, { type = "LANDING", node = 11, edges = { 5 } }, }, },
-
As the export isn't the best, all edges still uses the laneutil helper in the mdl to correct them
- I've been working all the weekend to try different settings in Blender to get the start and end points of the Bezier curves exported, but I can't get it out from Blender. I find the only way is to manually enter the coordinates in the mdl file, but this has to be repeated every time I make any change in Blender with a following export, this seems not to be the right solution.
* What are you doing when you need to create a new station with lanes?
* Do you use Blender?
* What is the laneutil helper? - I'm also struggling with the mesh. The terminal is always turned 180° (outside-in). All of you will probably answer turn it 180° with the rotation function in Blender by looking from above, and yes I have done that, but nothing happens in the game! The old .msh file is deleted before the export, else that export will not rewrite the file if the flag "overwrite" is off. Is there someone with an idea?
I have found the error for the second issue and it was placed inside the con file,Codetransf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.0, 30.0, .1))-- transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.0, 30.0, .1)) (version with error)
I'm so stuck in the first export problem that I will soon loose the motivation to continue. The Stena Ferry can't arrive to the UG harbour as it is to big and I'm drained of ideas.
- I've been working all the weekend to try different settings in Blender to get the start and end points of the Bezier curves exported, but I can't get it out from Blender. I find the only way is to manually enter the coordinates in the mdl file, but this has to be repeated every time I make any change in Blender with a following export, this seems not to be the right solution.
-
I have now changed the code as you wrote. I have also discovered that the TNP code inside my mdl file is sometimes not appearing as it should. To get it back, I restarted Blender a couple of times until the export of TNP was working.
At first I thought this was a new effect, but I found that same thing is also happening with the original code. As long as TNP code is visual in the exported mdl file, I don't have to restart Blender.With the updated plugin, I still get no laneList nor terminals.
- Do I have to use a specific curve in Blender?
- How to connect two separate curves? Is it just to place the end points close enough (same XYZ coordinates)?
- Is it possible to get a small zipped sample file in Blender format (.blend)?
-
I have been working on the Stena Line Ferry and this huge vessel needs a harbour.
The Ferry doesn't fit in the UG Harbor. That's why I now also have started to construct the Stena terminal.
The first thing I wish to understand is how the paths are made in Blender. I have found the TNP (Transport Network Provider) object and added one into my Blender project, please see the screen shot below.
In the TNP I have placed two curves just for testing and then I can export the project with the plugin from Merk.
The result can be seen on row 92-98, the content is empty .I have been searching for tutorial, but I'm not a lucky person. I have also tested to import the UG harbour but this is failing as the plugin is (for now) only made for Train Fever. I hope someone can give me some help on how to setup a simple Ship paths inside blender.
Bash
Alles anzeigenlocal laneutil = require "laneutil" function data() return { boundingInfo = { bbMax = { 151.1678, 13.08573, 15.36984, }, bbMin = { -47.36639, -60.0, -0.0, }, }, collider = { params = { }, type = "MESH", }, lods = { { children = { { id = "station/train/Stena_Terminal/Cylinder.004.msh", transf = { 0.23409, 0.0, 0.0, 0.0, 0.0, 0.23409, 0.0, 0.0, 0.0, 0.0, 0.23409, 0.0, -12.0, -4.7, 13.15957, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Cylinder.004.msh", transf = { 0.23409, 0.0, 0.0, 0.0, 0.0, 0.23409, 0.0, 0.0, 0.0, 0.0, 0.23409, 0.0, -12.0, 4.7, 13.15957, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Cube.001.msh", transf = { 0.0, -26.45471, 0.0, 0.0, -20.58392, -0.0, 0.0, 0.0, -0.0, 0.0, 1.0, 0.0, -26.78247, 12.95963, 1.19334, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Plane.010.msh", transf = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 3.2, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Plane.005.msh", transf = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -2.32482, 0.0, 9.16465, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Plane.001.msh", transf = { 1.0, 0.0, 0.0, 0.0, 0.0, 0.07666, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -12.0, -4.57793, 8.97511, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Plane.003.msh", transf = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -12.0, 6.0, 8.72171, 1.0, }, type = "MESH", }, { id = "station/train/Stena_Terminal/Plane.002.msh", transf = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 3.2, 1.0, }, type = "MESH", }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 2500, }, }, metadata = { availability = { yearFrom = 0, yearTo = 0, }, cost = { price = 0, }, transportNetworkProvider = { laneLists = { }, terminals = { }, }, }, } end
-
After a long trip to China I'm back in business and my work is continuing.
Now I have implemented two lods with reduced number of tris. I would appreciate to get comment from pro modders that can condemn or approve my work in following question.The Stena Ferry has got totally 42k tris, and a summary of the objects can be seen in the list below
I have manually counted the sum for the lods and this is what I got:Verts Edges Tris Lod 0, 0-300m 57561 58134 36081 Lod 1, 300-800m 3130 8086 4877 Lod 2, 800 - 2500m 722 1786 1038 Am I working on the right path or is this to "heavy" for some computers? Do I have to reduce some parts even more?
-
Is it possible to make an animation on a ramp located in the harbour like "open doors" event and it should be triggered by a signal when a ship has arrived to the harbour? The same signal should then activate the "door closing" event when the ship is ready to depart.
Normally this triggering is done on the vehicle (in my case the Stena Ferry), but can this be made for a static mod? -
A new harbour, there will be... (sounds like Yoda)
A harbour with loading ramps to drive on to the second car deck......(more work) -
Here is a small sample of my work, done today. There is still a huge part to create, for instance turning the lod 180° outside the harbour before arrival.
Right know I have discovered that the Bounding box parameter do not have any effect on the ship position in the harbour when I manually edit the values.
boundingInfo = {
bbMax = { 55.0, 13.0, 31.0, },
bbMin = { -100.0, -13.0, -5.0, },
},
Both 13.0 meters are changed to +-18.0 but the ship is still smashing on the same place into the harbour.... -
After lots of tests and headache, I have finally figured it out and the solution was to move all Transforms to Deltas.
-
I forgot to write this in the text above: When I adjust the red marked rotation parameter in Y led and places it in the Z position it will then be right in the game, but wrong in Blender. It seems for me that this is a bug.
-
Progress report:
I'm continuing with animations and I have now a working door opening in Blender. The Delta rotation is configured to turn around the y axis, but in the game and model viewer
- the loading ramp is turning around the X axis
- and the fence on the loading ramp turns around the Z axis!
These both meshes are configured in one animation. I have tested two calls, open_all_doors and open left_door, it makes no difference on door opening.
For information I have a second animation that is working 100% and it is a forever turning radar animation in Z axis.Please help, I'm so confused.
Cut from the mdl. file
events = {
close_doors_left = {
[14] = {
forward = false,
name = "Fence_rampAction",
},
[21] = {
forward = false,
name = "LastrampAction",
},
},
forever = {
[18] = {
forward = true,
name = "FrontMast",
},
[30] = {
forward = false,
name = "RadarsmallAction",
},
},
open_doors_left = {
[14] = {
forward = true,
name = "Fence_rampAction",
},
[21] = {
forward = true,
name = "LastrampAction",
},
},Cut from one of the faulty msh files:
Fence_rampAction = {
params = {
keyframes = {
{
rot = { 0.0, 0.0, 0.0, },
time = 0.0,
transl = { 0.0, 0.0, 0.0, },
}, {
rot = { 0.0, -90.0, 0.0, },
time = 14400.0,
transl = { 0.0, 0.0, 0.0, },
},
},
origin = { 0.0, 0.0, 0.0, },
},
type = "KEYFRAME",
}, -
Hello again
After a couples of hours I have fixed almost all texture errors, but there is one place that will not make the change to the better. These darker/brighter areas are also showing through the texture in the game.
An area is filled with slightly darker faces. I have tried to delete only the faces and secondly also the edges to fill this area with one ngon, seen in image 1. The ngon has one color but after triangulating faces the sub faces do not have the same color any longer.
It seems that Blender is copying the color of the nearby face (outside the ngon). I have also tried to refill these areas but they will always be filled with the same color as before.
How can these solid face colors be forced into the same intensity?
(This is probably what WiZz4Rd wrote, but I don't find the way in Blender.) -
I think that it should be the faces a flipped
Read this link I think it should help
http://blender.stackexchange.c…ight-consistent-directionThank you!
I did following:
Edit mode, A and then ctrl+N clicking twice on the "Make Normals Consistent / Inside", solved my issue with wrong color. -
You have guessed very good. The ferry has 59 000 tris and the lifeboat 3500 tris. As the ferry will travel mostly on the sea (alone) and not in a city center I think this huge object will probably work on even slower computers, though I have a pretty powerful system.
In the mdl file I will use the parameter visible (from /to) to reduce the load for the graphic card. At far distance I will disable the smaller details and that can be done easily with the configuration I have right now.But still there is a "bad" color on some parts of the ship. The biggest visible area is seen on the lifeboat as shown in the first image. Do you have an idea to solve this?
-
Ich starte hier ein Thema mit dem Inhalt meiner Arbeit, (die Fähre Stena Line). Ich werde weiterhin in English schreiben, aber Sie können gern in Deutsch antworten. Ich verstehe beide sprachen, aber ich finde English is einfacher im Schrift.
I've been modelling for a couple of months with the Stena Ferry. While working I'm also learning, and yes I'm a newbie with Blender. My intension is to create a one mission campaign with a map of the west coast of Sweden including north of Denmark. The map is almost finished, and on this map there will be a fishing boat to collect fish and a passenger ferry to be used between Denmark and Sweden.
So let's get to work...
I have often got trouble with surfaces in Blender. When I need to insert new faces or make changes on the mesh I get different colours on the faces. These colors are showing through the texture when the object is visible in the game, please note *1 in Blender screen shot below.
- Can someone explain how I can get a specific color and fix these details? (Texture painting in Blender is not working)
I got the comment from (MaikC) that this mod should be sufficient with 2-3 lods. I have more then 10 lods (children) to get this ferry and here are some of them: Ships hull, loading ramp (animation), radar (animation), 4 pcs lifeboat (linked obj), speedboat, 10 pcs life boat cranes (linked), chimney, window.
- What is the limitation (amount of lod) for good practice to use in one object?
- What is the best selection between,
- many lods with small sized texture maps or,
- few lods with big texture map?
In my project I have selected the image size of 4096 x 2048 for the ship hull and it is almost to small. The other details are using 512 x 512 up to 1024 x 1024.
/melectro