RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Post your finished add-on release announcements here!

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby buzz456 » Thu Jan 18, 2018 6:18 pm

Manual installation of the Geos to both the Engine and The Cabview got them to show up.

Screenshot_Canadian Mountain Passes_50.99739--118.18964_12-00-28.jpg
You do not have the required permissions to view the files attached to this post.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 21336
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby Sagefuncom » Thu Jan 18, 2018 6:25 pm

buzz456 wrote:Manual installation of the Geos to both the Engine and The Cabview got them to show up.

Screenshot_Canadian Mountain Passes_50.99739--118.18964_12-00-28.jpg


Okay good.
Sagefuncom
 
Posts: 112
Joined: Mon Jul 04, 2016 5:23 pm

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby qrfan3 » Thu Jan 18, 2018 7:50 pm

Sagefuncom wrote:I did not modify any GEO files for this add-on.


Okay, good...same as Buzz, did manual install and all's good.
User avatar
qrfan3
 
Posts: 443
Joined: Sun Feb 28, 2010 11:38 pm
Location: Downunder from the Sunshine State.

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby Chacal » Thu Jan 18, 2018 10:59 pm

@Sagefuncom: I am in the process of rebuilding my vbs script library. I've added a function for extracting a file from an .ap file, so that you won't have to teach your users to do it manually anymore. It uses the 7za.exe program that you can include with your scripts. It is a lightweight, standalone, command-line version of 7zip. This is the same technique Mike uses for RW-Tools.

Here's the function:
Code: Select all
Function ExtractAP (path, exFile)
   'Extract exFile from any .ap file in path
   'exfile = relative path to desired file inside the archive, including file name
   'path = path to desired .ap file, including file name
   Dim oFSO, oFile, command, WshShell, intResult, objFSO, objFile, readOnly
   readOnly = 1
   ExtractAP = False
   Set oFSO = CreateObject("Scripting.FileSystemObject")
   If Not oFSO.FolderExists(path) Then
      WriteLog "    ExtractAP: Folder doesn't exist: " & path
      Exit Function      
   End If
   For Each oFile In oFSO.GetFolder(path).Files
        If LCase(oFSO.GetExtensionName(oFile.Name)) <> "ap" Then
         Exit For
      End If
      command = "7za.exe x -o" & AddQuotes(path) & " " & AddQuotes (path & "\" & oFile.Name) & " " & AddQuotes (exFile)
      Set WshShell = WScript.CreateObject("WScript.Shell")
      WriteLog "    ExtractAP: Trying " & command
      intResult = WshShell.Run (command, 0, TRUE)
      If intResult Then
         WriteLog "    ExtractAP: Error returned: " & intResult
      Else
         WriteLog "    ExtractAP: Seems to have completed successfully "
      End If
      If CheckFile (path & "\" & exFile, False, False) Then
         'Make the file writeable
         Set objFSO = CreateObject("Scripting.FileSystemObject")
         Set objFile = objFSO.GetFile(path & "\" & exFile)
         If objFile.Attributes AND readOnly Then
            objFile.Attributes = objFile.Attributes XOR readOnly
         End If
          ExtractAP = True
      End If
   Next
   Set WshShell = Nothing
End Function


Here's how to use the function:
Code: Select all
   
    'Check if file exists
   If Not CheckFile (pathfile, True, False) Then
      'Try to find the file in .ap archives
      If Not ExtractAP (path, file) Then
         'No such scenario
         WriteLog "    ERROR - can't find Scenario.bin, already checked in .ap files."
        Exit Function
     End If
   End If
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6679
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby DrewG » Fri Jan 19, 2018 12:15 am

Chacal wrote:@Sagefuncom: I am in the process of rebuilding my vbs script library. I've added a function for extracting a file from an .ap file, so that you won't have to teach your users to do it manually anymore. It uses the 7za.exe program that you can include with your scripts. It is a lightweight, standalone, command-line version of 7zip. This is the same technique Mike uses for RW-Tools.


And I could barely make a JavaScript text adventure. !*roll-laugh*! !*roll-laugh*! At least I can somewhat understand the code. Sounds like that'd be a real useful tool!
DrewG
 
Posts: 910
Joined: Wed Jan 22, 2014 7:00 pm
Location: Ontario, Canada

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby Sagefuncom » Fri Jan 19, 2018 9:25 am

Chacal wrote:@Sagefuncom: I am in the process of rebuilding my vbs script library. I've added a function for extracting a file from an .ap file, so that you won't have to teach your users to do it manually anymore. It uses the 7za.exe program that you can include with your scripts. It is a lightweight, standalone, command-line version of 7zip. This is the same technique Mike uses for RW-Tools.


Thanks very much Chacal! You're a life-saver!

This'll be something to implement in the 1.1 update...
Sagefuncom
 
Posts: 112
Joined: Mon Jul 04, 2016 5:23 pm

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby Chacal » Fri Jan 19, 2018 10:51 am

I'm planning on publishing an easy-to-use installer "soon".
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6679
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: RoadRailer Simulations' Canadian National C40-8 Repaint Pack (OUT NOW)

Unread postby OwainGlyndwr » Thu Mar 22, 2018 2:51 pm

Many thanks for these excellent reskins, i copied the Geo files manually and they worked fine in game.

Nice work and thanks for sharing. !!*ok*!!

Mike.
OwainGlyndwr
 

Previous

Return to Freeware Add-On Releases

Who is online

Users browsing this forum: No registered users and 10 guests