Train Sim Modeler version 1.2

Collapse
Only viewable if you're a logged in user
X
Collapse
First Prev Next Last
 
  • Time
  • Show
Clear All
new posts
  • kraus
    Senior Member

    • Jan 2001
    • 1086
    • Madison, Wisconsin
    • General

    #1

    Train Sim Modeler version 1.2

    Changes to version 1.2 are removal of registration, now defaults to commercial mode. Updated link in about box. Next version will work as standard user and not need administrator rights.

    TrainSim Modeler

  • slipperman
    2500 Post Veteran



    • May 2010
    • 3661
    • Worksop, UK
    • MSOR

    #2
    Originally posted by kraus
    Changes to version 1.2 are removal of registration, now defaults to commercial mode. Updated link in about box. Next version will work as standard user and not need administrator rights.
    Hi Jeffrey,
    Thanks for the link to the new version of TSM.
    Unfortunately, it requires the addition of four .dll files, three of which (MFC42D.dll, MFCO42D.dll and MSVCRTD.dll) are freely available but the 4th, ImageDev.dll, doesn't seem to be, unless it's included in this site : https://developer.imageviz.com/downl...agedev-2024-1/ Some advice, please.
    These files were not supplied with the last available version (from its author, Louis Sinclair).

    Cheers,
    Ged
    Last edited by slipperman; 06-03-2026, 12:28.

    Comment

    • NW 2156
      Senior Member
      • Aug 2007
      • 2278
      • Carolina's

      #3
      Does this version allow for exporting to .3ds?

      Thnx.

      Comment

      • kraus
        Senior Member

        • Jan 2001
        • 1086
        • Madison, Wisconsin
        • General

        #4
        I will include those missing files with the MSI installer. They are currently included in the old 16-bit installer.

        The program creates .3ds files and uses an MSTS tool to convert them to .s shape files.

        Code:
                    parms.TrimRight();
                    // make sure conv3ds is in current folder
                    if(!CFile::GetStatus("conv3ds.exe",status))
                    {
                        src = theApp.m_TrainSimPath + "\\utils\\conv3ds.exe";
                        dst = "conv3ds.exe";
                        CopyFile(src,dst,TRUE);
                    }
                    // create batch file for running conv3ds
                    CFile* pFile = new CFile;
                    CArchive* ar;
                    CString csBatch;
                    csBatch.Format("@echo Converting file(s)...\r\n%s %s\r\n"
                        "@echo Close this window to continue...\r\n",cmd,parms);
                    if(!pFile->Open("RunConv3ds.bat",CFile::modeCreate | CFile::modeWrite))
                    {
                        AfxMessageBox("Failed to create RunConv3ds.bat file!");
                        throw 0;
                    }
                    ar = new CArchive(pFile,CArchive::store);
                    if(!ar)
                    {
                        AfxMessageBox("Failed to create RunConv3ds.bat archive!");
                        throw 0;
                    }
                    ar->WriteString(csBatch);
                    ar->Close();
                    pFile->Close();
                    delete ar;
                    delete pFile;
                    // run the batch file
                    InvokeShellProgram("RunConv3ds.bat","",resultStr);
                    if(!CFile::GetStatus("TSM.s",status))
                    {
                        errStr.Format("Error running Conv3ds.exe command:\n%s %s",cmd,parms);
                        throw 0;
                    }​
        Last edited by kraus; 06-03-2026, 13:12.

        Comment

        • slipperman
          2500 Post Veteran



          • May 2010
          • 3661
          • Worksop, UK
          • MSOR

          #5
          Thank you,
          Cheers,
          Ged

          Comment

          • kraus
            Senior Member

            • Jan 2001
            • 1086
            • Madison, Wisconsin
            • General

            #6
            I have updated the file to the release version. The prior file was the debug version which is why it was using mfc42d.dll. The ImageDev.dll is for using a TWAIN driver to acquire background images. This can be removed in a future version as TWAIN is no longer supported. The menu path is View, Background, Twain Acquire.

            Comment

            • slipperman
              2500 Post Veteran



              • May 2010
              • 3661
              • Worksop, UK
              • MSOR

              #7
              Hi Jeffery,
              When trying to download the new version, Google Chrome reports that it has blocked a suspicious file. This can be ignored and the file downloaded.

              Unfortunately, when running TSModeler.exe, it won't start, reporting that imageDev.dll is still missing.

              In case it's relevant, I am running Windows 10 Pro.

              Cheers,
              Ged

              Comment

              • kraus
                Senior Member

                • Jan 2001
                • 1086
                • Madison, Wisconsin
                • General

                #8
                The file ImageDev.dll has been bundled with TSModeler.exe and some other required files into https://www.digital-rails.com/files/TSM_1.2.zip
                Last edited by kraus; 06-04-2026, 05:09.

                Comment

                • slipperman
                  2500 Post Veteran



                  • May 2010
                  • 3661
                  • Worksop, UK
                  • MSOR

                  #9
                  Hi Jeffery,
                  Many thanks
                  Chrome still warns about downloading a 'suspicious' file but it now runs OK.

                  Cheers,
                  Ged

                  Comment

                  • NW 2156
                    Senior Member
                    • Aug 2007
                    • 2278
                    • Carolina's

                    #10
                    Hi,

                    My interest is in being able to move back and forth between Gmax and TSM using .3ds file format.

                    Hope that helps.

                    Comment

                    • superheatedsteam
                      Senior Member

                      • Jun 2004
                      • 737
                      • Perth, WA, Australia.

                      #11
                      I can see no option to import and/or export .3ds files in this TSM_1.2 version.

                      Comment

                      • kraus
                        Senior Member

                        • Jan 2001
                        • 1086
                        • Madison, Wisconsin
                        • General

                        #12
                        Import and export of .3ds files is planned for a future version. Version 1.2 removed registration and 16-bit installer. The current version saves files in .3ds format then uses conv3ds.exe to convert the exported .3ds file to a MSTS shape file. Exporting to .3ds should be completed before importing of .3ds.

                        Correction, the code for exporting to .3ds is present but not called.

                        Code:
                        void CFScadDoc::OnFileCreatetsobjectfile()
                        {
                            BOOL b3dsMode = FALSE;
                        
                        /*
                        #ifdef _DEBUG
                            if(AfxMessageBox("Create 3ds file?",MB_YESNO) == IDYES)
                                b3dsMode = TRUE;
                        #endif
                        */
                            CreateTSObjectFile(b3dsMode);
                        }
                        Last edited by kraus; 06-05-2026, 08:11.

                        Comment

                        • NW 2156
                          Senior Member
                          • Aug 2007
                          • 2278
                          • Carolina's

                          #13
                          IMO, Not offering this feature was always a pitfall to TSM. Hopefully your next build offers this ability.

                          Comment

                          • kraus
                            Senior Member

                            • Jan 2001
                            • 1086
                            • Madison, Wisconsin
                            • General

                            #14
                            File http://digital-rails.com/files/TSModeler-3ds.exe adds export to .3ds format. Select Create TS Object File, click yes when prompted to create a 3ds file.

                            The conversion from 3ds to s will probably fail and the file will be saved in the virtual store, C:\Users\user\AppData\Local\VirtualStore\Program Files (x86)\TSM\TSM2000.3ds

                            Comment

                            Working...