TFMC Source Code?

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


  • Hello,


    Does anyone still holds the source code of TFMC?


    I want to improve this tool, but it seems the author have deleted the project on GitHub.


    Doesn't anyone still holds it's source code?


    If not, I will decompile it, knowing it's possible for C# project.


    Thank you!

    This guy is too lazy to create a signature. 8o

  • What is TFMC?


    Valentin

  • @Vabe


    The model converter obj->msh.blob


    It's the alternative option than Blender, especially for these who don't use Blender.

    This guy is too lazy to create a signature. 8o

  • As far as I can tell you have to look in the official forum, I can't remember anything like this in the .net forum.


    Valentin

  • I think it's not the version you mean, but @BR146 has made a similar one... you can ask him for permission or cowork.


    Train Fever Converter (BR146)

    Grüße MaikC


    116494-emd-dda40x-nc-up-png116503-mc-br442-2-png

    Fehler- und Crashreports ausschließlich unter: MaikC - Fahrzeuge und anderes für TPF2 / 2471 TPF2 Modelle and counting.

    Meine Modelle auf Sketchfab anschauen.

  • As far as I know "TFMC" is producing more edges (or something else) as the TFC from BR146.
    Using TFC since the beginning and loving it.
    However in combination with *.mtl´s Blender Import/Export is better dealing with it. (Not really with TPF)



    Nice to have would be updated ModelViewer by Omnich
    Updated Version for ID-Counter

  • @Kiwi-NZ


    Does the TFC deal with multi-material objects? I found TFMC isn't able to do it and it's annoying, since that means I need to split the models up from source by material, and this is break the normals...


    And where is the model viewer, I can't find it anywhere.

    This guy is too lazy to create a signature. 8o

    Einmal editiert, zuletzt von Enzojz ()

  • My Models with 3dsMax are always MULTI-MATERIAL.
    TFC is handling this still fine, however if you have various *.mtl´s (sub-meshes) in different folders you have to adjust manually.


  • There's a bug with TFC:


    on 3dsmax output obj files, the normal are not correctly oriented, it seems the Y and Z are always flipped, X is always inverted, this is not the case on TFMC.

    This guy is too lazy to create a signature. 8o

  • This seems to be a configuration problem. Try using the parameters /flip and /X -X.


    @Grimes: Dear Grimes, you work with 3dsmax too (if I remember correctly). It works for you, right? Maybe you could post your configuration?

  • This seems to be a configuration problem. Try using the parameters /flip and /X -X.

    No, /flip doesn't solve the problem.


    I have just look into the code of tfmc, if I skip axis swapping, it will just write into blob raw vectors, and the output is ok.


    I find the conversion is quite simple, maybe I will write my own convertor in f# :D


    ---------------


    I did some further test, it seems TFMC doesn't output correct result neither.

    This guy is too lazy to create a signature. 8o

    2 Mal editiert, zuletzt von Enzojz ()

  • Grimes is modelling Y/X instead of Ingame X/Y, so his setting wont help.
    My setting with 3dsMax is as follow:



    Using the Converter from BR146:
    My *.bat looks like TFC_BR146.exe" /make "%~n1" OBJ MESH /mtl "....insert pass....". Insert pass is as example for waggons: "vehicle/waggon/"


    As result: X=X and Y=Y ;)


    P.S.
    Materials in 3dsMax should be called as in Transport Fever to avoid manuel writing. However you still have to do this with sub-meshes.

  • Eventuell mag ihm das jemand übersetzen:
    Ich hatte bereits ein ähnliches Problem, ich glaube es war bei der v200, so mal eben Kreativ betätigen...

    Bei mir waren obwohl ich alles korrekt gebaut hatte manche Faces invertiert (nur im mapping, heißt das invertierte mapping Koordinaten? bin gerade überfragt. Die kann man sich aber im Viewport bei diesen + Optionen anzeigen lassen, die werden dann glaube ich Grün. Wie gesagt es geht dabei nur ums Mapping nicht um die Ausrichtung des Faces an sich) , und egal was ich versucht habe ich konnte sie nicht ausrichten, normalerweise gibts dafür ja eine Funktion.
    Habe dann retriangulate versucht, über turn alles noch mal von Hand überprüft, es hat nichts gebracht.
    @UnixRoot hatte exakt das selbe Problem bei seiner BR180, er ist dann hingegangen und hat die Splines die Max quasi automatisch setzt bei nach innen liegenden Rundungen von Hand gezogen. Und tata Problem gelöst.
    Wenn es bei Ihm hier auch an den selben Stellen die Probleme gibt könnte ihm das eventuell helfen.


    MfG Grimes


    Edit: Am Tool von @BR146 liegt es auf jeden fall nicht, das ist immer noch top. Scheint ein Bug? von 3dsmax zu sein.

    149758-signatur-gif-gif

    Gefällt mir 1
  • @Kiwi-NZ


    I am using the same setting but it doesn't work correctly


    This is my model



    This is the problem:


    The top passage is made by two components side by side, one is the Y flipped of another, or 180 rotated(I have tried either), but as you can see clearly, one side is not coherent on shadow with another, an neither is coherent with the walls.




    If I show you another side, you can see the up face is rendered as if it were X/Z exchanged



    And if I rotated the whole object





    The following are result with TFMC, not correct neither



    This guy is too lazy to create a signature. 8o

  • For my understanding if I see the pictures, all is still fine, just missing textures.
    If you would have a "flipped" polygon you could see trough unless in your *.mtl is written: double_sided = TRUE.


    The brown parts looks like trouble with smoothing_groups where not necessary because angle is 90°.
    Or they are bended because the box wasn´t 100% a square or a rectangle. As seen in the last two pictures from the train-station.



    Edit:
    Welded vertices are somtimes causing trouble, instead of "weld" use Optimizer.

  • @Kiwi-NZ


    I get rid of texture just to better check the normal, if I add textures, the situation is even worse, since the AO rendering is all wrong caused by the fautly normals..


    It seems be a bug with obj exportor of 3dsmax, with ase format and TPMC, it works well

    This guy is too lazy to create a signature. 8o

    Einmal editiert, zuletzt von Enzojz ()

  • Ok, with ASE format and TFMC it works. I seems be a bug from obj exportor of 3dsmax, don't know exactly what the problem is, since when I open the obj files it's fine.


    The interesting thing of exported ASE format is it uses local coordinate instead of world coordinate, so extra displacement could be simply avoided.


    Now it's almost sure I will write my own converter :D



    This guy is too lazy to create a signature. 8o