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
-
-
-
Hallo
Heute habe ich die animationen geändert und folgende Fehler Meldung kommt jetzt:
Der Schlüssel "front_door.front_door_up_stair" ist gelöscht mit bewusst und danach kommt diesen Fehler beim Export. Ich habe die ganze Animation auch gelöscht und neu Editiert aber das Program findet irgend wie diese Daten name wieder. Ich kann es aber nicht finden.
In Blender forum habe ich diese Erklärung gefunden, aber da spricht man von der Script.
https://www.blender.org/forum/viewtopic.php?t=27147Ist dieser Fehler bekannt und gibt es eine Lösung?
Ich glaube ich soll nur Trams, Loks und Bus modellieren statt Schiffe. Ich bekomme nur so viele problemen das den spaß geht ins Finsternisse.
Übrigens, alle meine Schiff modellen warten auf ein patch update von UG.---------------------------
Nach eine intensiven suche (3 std) habe ich was gefunden.
Ich glaube das es beim gestrigen Import passierte. Meine ältere animations Namen sind in diese Position geschrieben (sehe Bild unten). Nach dem ersten fand das Programm die Nächste und so weiter, zum Schluss sind alle Einträge gelöscht und der Export funktioniert wieder, gut zu wissen. -
anke Merk
Ich habe auch die infos zum Hafen (Harbour) dass die nodes unter transportNetworkProvider/laneLists muss in ein gewisser ordning kommen. Zuerst müssen edges und nodes für SHIP kommen danach PERSON . Leider wird es immer umgekehrt geschrieben beim export und das verursacht nur ein Fehler im Spiel.
Auf der Wunschliste ist auch "runways". Jetzt geht's es doch mit custom metafiles.
Merk Schrieb:
Seats können mit dem Addon noch nicht wirklich exportiert werden (es geht auch über Custom Metadata, ist aber so kompliziert,Ich habe gerade ein test durch geführt und zwar mit import. Nach manuell mehre seats daten editieren im mdl Datei kann ich es im Blender bekommen! Leider kann ich es dann später nicht exportieren. Beim Export wird nichts, kein Fehler Meldung oder mdl Datei. Ich habe auch das Modell umbenannt bevor export auch das hilft nicht.
Ahh, man muss zuerst die import Datei als blend file speichern, dann Blender schließen und neu öffnen. Einige Einstellungen richten und dann geht's! SUPER function !!!!!

Die Einstellungen sind folgendes:
alle texturen mit "normal map" und "metal gloss" kommt beim import nicht richtig ins Blender Programm. Ich muss jedes mal die texturen laden und in die material liste konfigurieren. -
Es gibt ein problem mit export von soundSet wenn schiffe (SHIP) werden benutzt. Um ein sound zu bekommen muss "soundSet" innerhalb "soundConfig" stehen. Bitte an mein Beispiel unten ansehen.
Ich konnte dieses problem selbst lösen mit ein eigens Schrift unter custom metadata in Blender schreiben.Ausschnitt der Datei "ds_schaffhausen.mdl"
Code
Alles anzeigenmetadata = { waterVehicle = { }, transportVehicle = { }, soundConfig = { soundSet = { name = "ship_paddle_steamer" } } }Wie kann man folgende text ins export zu bekommen (.mdl)?
local vec3 = require "vec3"
local transf = require "transf"und
seats = {
--crew
{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-21.4, 0, 1.45)), crew = true, standing = true},
-- Back side{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(-90.0, 0.0, 0.0), vec3.new(-17.7255, -0.6467, 1.0)) },
}Edit von Merk: Doppelpost zusammengefügt.
-
-
Danke, ich habe ein Mesh mit Ngons gefunden, früher kam die Meldung in klar text.
Weiter geht's mit export mit neuen version von plugin (0.5.2). Nach ein gelungenes export bekomme ich jetzt aber ein Fehler beim start. Ich weiß nicht ob ich es hier schreiben soll oder nicht.Ich Bitte um Hilfe.
Nach eine kleine Veränderung im mesh kan ich mein project nicht starten (TpF oder Modelviewer)
Ich habe jetzt viele Stunden verbracht um den Fehler zu finden. Das einzige mesh teil ist mit "Append" in ein neuer project und dort geht es auch nicht. Wenn ich nur die zwei msh Datei austausche mit ein ältere version bekomme ich es zum start. Kann es so sein das die neue alpha version irgendwas macht mit dem msh Datei was nicht im 0.4.6 passierte?mdl und mtl Datei sind also OK in meiner Meinung.
Modelviewer
c:\urban\svn\projects\model_editor\trunk\train_fever\src\lib\util\idrep.h:69: int __cdecl IdRep<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::GetId(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) const: Assertion `it != m_name2id.end()' failed.Transport Fever crash log
c:\build\transport_fever\steam\transport_fever_release\src\lib\util\idrep.h:69: int __cdecl IdRep<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::GetId(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) const: Assertion `it != m_name2id.end()' failed.
MinidumpCallback: dumpPath "I:/Steam/userdata/xxx/local/crash_dump/", minidumpId "a3440b45-1de6-4eb6-855a-5dce28bf5d71", succeeded 1
. -
-
-
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)