PRR Screenshots

To stop the bouncing pantograph remove the line anim "anim.kin" from the mesh-table of the pantograph.

Peter

That does not seem to work Peter.

In the config.txt of the locomotive there is this

Code:
 panto-f
  {
    mesh-asset                          <kuid:520526:2424>
    mesh                                "panto.im"
    att                                 "a.panx0"
    att-parent                          "default"
    auto-create                         1
    anim                                "anim.kin"
[COLOR=#ff0000]    animation-loop-speed                1[/COLOR]

    effects
    {
      0
      {
        kind                            "corona"
        att                             "a.sparkt"
        directional                     0
        object-size                     0.15
        texture-kuid                    <kuid:60850:99999>
      }
    }
  }
  
  panto-b
  {
    mesh-asset                          <kuid:520526:2424>
    mesh                                "panto.im"
    att                                 "a.panx1"
    att-parent                          "default"
    auto-create                         1
    anim                                "anim.kin"
[COLOR=#ff0000]    animation-loop-speed                1[/COLOR]

    effects
    {
      1
      {
        kind                            "corona"
        att                             "a.sparkt"
        directional                     0
        object-size                     0.15
        texture-kuid                    <kuid:60850:99999>
      }
    }
  }

Removing these red highlighted lines seems to solve the issue. This would have to be done for each of the 5 locomotives.

Edit; OK now I'm confused. I repeated testing these alterations and they didn't solve the issue. I'm baffled.

Edit; I've gone through several of pweiser's electrics and through several pantos and compared config.txt. There have been several different formats used over the years but I found several locomotives that had the exact same lines as the P5a and, so far as I can tell, none of them have this problem.
 
Last edited:
The change has to be made to the config.txt of the pantograph used (<kuid:520526:2424> PRR P5a Pantograph Hi-Rise), not the one of the locomotive.

Peter
 
The following change in the sparker.gs worked for me.

if ((fleetId == null) or (fleetId == ""))
{
SetRunningNumber("4775"); /* Default */
if (i >= 0)
{
if (name == "1") { SetRunningNumber("4776"); }
if (name == "2") { SetRunningNumber("4777"); }
if (name == "3") { SetRunningNumber("4780"); }
if (name == "4") { SetRunningNumber("4790"); }
}
}

PS: This script is in the locomotive so you have to do it to all of them
 
Last edited:
The change has to be made to the config.txt of the pantograph used (<kuid:520526:2424> PRR P5a Pantograph Hi-Rise), not the one of the locomotive.

Peter

Thank you all for figuring this out! Normally (in TS2009) bouncing pantos indicate a script failure because one of the first things the script does is stop them. Not sure why I have the animation-speed line in the panto config... might even be required in TS2009, haven't tried without it.
 
The following change in the sparker.gs worked for me.

if ((fleetId == null) or (fleetId == ""))
{
SetRunningNumber("4775"); /* Default */
if (i >= 0)
{
if (name == "1") { SetRunningNumber("4776"); }
if (name == "2") { SetRunningNumber("4777"); }
if (name == "3") { SetRunningNumber("4780"); }
if (name == "4") { SetRunningNumber("4790"); }
}
}


Yes, as I recall that was the fix @p-dehnert discovered. Caused by my failure to put a bucket under a statement to catch out-of-range results.
 
@Mark1223 Try http://www.kgrid-trainz.com.pl/cms/downloads.php and go to the second from the bottom link "Paczka wsporcza - Support Pack" and see if that works for you. Note again that there is a lot of garbage in this file. I spent more time deleting faulty, missing deps, and obsolete assets than I spent downloading the file to begin with. These are some very old assets and most are not needed.

It's files like this that really make me wish it was possible to go into a cdp file and choose what you want from it rather than having to install an entire dependency for a route you have no intention of using just to get a few assets from it.
 
After using TKI, I am left with 54 Missing Dependencies including the ones from EastCoastTrainz:
EastCoastTrainz:
<kuid:336419:100219>
<kuid:336419:1035>
<kuid:336419:100211>
<kuid:336419:1034>
<kuid:336419:1042>
<kuid:336419:100093>
<kuid:336419:100217>
<kuid:336419:100207>
<kuid:336419:23000>
<kuid:336419:1037>

Gfisher:
<kuid:106916:10409>
<kuid:106916:10416>
<kuid:106916:10404>
<kuid:106916:10410>

Lotherhake:
<kuid:68787:200609>
<kuid:68787:200611>

Itgxr:
<kuid:13920:101046>
<kuid:13920:101063>

Mcguriel:
<kuid2:72938:44115:1>
<kuid2:72938:44071:1>
<kuid2:72938:21181:2>
<kuid2:72938:44117:1>
<kuid2:72938:44072:1>
<kuid2:72938:44065:1>
<kuid2:72938:44129:1>
<kuid2:72938:44068:1>
<kuid2:72938:44070:1>
<kuid2:72938:44035:1>
<kuid2:72938:44067:1>
<kuid2:72938:44118:1>
<kuid2:72938:44038:1>
<kuid2:72938:44039:1>
<kuid2:72938:44128:1>
<kuid2:72938:44064:1>
<kuid2:72938:44033:1>
<kuid2:72938:44036:1>

Railwoodman:
<kuid:82053:100117>
<kuid:82053:100064>
<kuid:82053:100182>
<kuid:82053:100066>

rrsignal:
<kuid:481384:10000085>
<kuid:481384:1000106>
<kuid:481384:1000086>
<kuid:481384:1000108>

SimulatorTrain:
<kuid:156765:100746>
<kuid:156765:1434>
<kuid:156765:1380>

Steve Lerro
<kuid:68926:460000>
<kuid:68926:460001>

Other:
<kuid:574078:777108>
<kuid:511506:100620>
<kuid:146087:60095>
 
Last edited:
normhart,

Thank you very much, I was able to to download it. After accessing the link you provided below, I was even able to use the original link you provided! I'm guessing the site was down for a period of time when I first tried to access it.

Thank you again, the response was greatly appreciated!

Regards and thanks,
Mark



@Mark1223 Try http://www.kgrid-trainz.com.pl/cms/downloads.php and go to the second from the bottom link "Paczka wsporcza - Support Pack" and see if that works for you. Note again that there is a lot of garbage in this file. I spent more time deleting faulty, missing deps, and obsolete assets than I spent downloading the file to begin with. These are some very old assets and most are not needed.
 
Sorry guys, but failing miserably on fixing the bouncing pantos. Tried removing the lines anim & "anim.kim" but that didn't work. I tried removing the animation-loop-speed 1 line but that didn't work.

I'd be willing to take a shot at changing the sparker.gs but can't figure out how to open it. Any help would be greatly appreciated. The engine is so neat and I really want it to work right.

Gary
 
the Try street yard and 2nd ave Station, pittsburgh PA, the main "panhandle" line here is now a light rail line and the yard is now interstate on and off ramps, some of the buildings are still around like the court house in the left top hand corner
My-Trainz-Screenshot-Image.jpg
 
Sorry guys, but failing miserably on fixing the bouncing pantos. Tried removing the lines anim & "anim.kim" but that didn't work. I tried removing the animation-loop-speed 1 line but that didn't work.

I'd be willing to take a shot at changing the sparker.gs but can't figure out how to open it. Any help would be greatly appreciated. The engine is so neat and I really want it to work right.

Gary
Use notepad or your favorite text editor or even notepad++
 
KenRuof,
For my TANE version, I went into notepad and made the changes to the sparker.gs file, just as y'all had listed in the previous posts. I saved it as sparker1.gs, copied it into the P5a file, removed the original sparker.gs file, then changed the name of the sparker1.gs to sparker.gs. I submitted the edits for the engine and the file showed modified/faulty. No joy. I deleted the changed sparker file and put back the original sparker.gs file and it still showed modified/faulty. I had to delete it and reinstall it. The edits in this case didn't work. I put all three on the Balenzino route in free session and all three had continuously bouncing pantographs. :confused:

I also have this engine and the boxcabs loaded into TRS19. Amazingly enough, when I went into the TRS19 Balenzino route, free session, and put the two versions of the boxcabs and the P5a on the route, the pantographs were not bouncing and raised up properly with the end key...for all three. I'm completely baffled.

I'd really like them to work in TANE as Matt's route is most likely going to be a TANE route, but the panto's are baffling me. I'm wondering if I should replace the pantographs kuid with a different kuid version of the pantographs found on some other of PWeiser's electrics. Again, wide open for suggestions.

Heinrich505
 
What error message did you get from the script?

This is what I get:
- <kuid:520526:2421> VE197: Syntax error in script 'sparker.gs' for asset <kuid:520526:2421> "PRR Class P5aM Electric - Freight"
- <kuid:520526:2421> TrainzBaseSpec::CacheScripts> ** GSC> sparker.gs(114) : parse error, line 114
- <kuid:520526:2421> sparker.gs(114) : parse error, line 114
S4f2LE7.png
 
Last edited:
You appear to have an unbalanced curly bracket right at the cursor (vertical bar) on your screenshot - probably found by the parser. Deleting one of the two right curly brackets ( } )should fix it.
 
I deleted the curley bracket as noted above. Then I copied the script into the P5aM. I submitted the edits, and again got the modified/faulty message.

When I opened the faults menu, this is what I got.

; <kuid:520526:2428> Validating <kuid:520526:2428>
! <kuid:520526:2428> VE48: This asset uses an obsolete trainz-build number. Trainz-build numbers below 3.5 are no longer supported.
; <NULL> MeshResource::LoadResource> <NULL> | arc:fld:$(local)/hash-CD||kuid 520526 2428.tzarc|
; <NULL> Loading mesh mainmed.im
! <kuid:520526:2428> VE166: 22 combined chunks (of 23 source) in .im file:
; <NULL> Loading mesh main.im
! <kuid:520526:2428> VE166: 22 combined chunks (of 23 source) in .im file:
! <kuid:520526:2428> VE82: Individual mesh files are not supported for traincar assets. Upgrade 'panto.im' to a .lm file.
! <kuid:520526:2428> VE82: Individual mesh files are not supported for traincar assets. Upgrade 'panto.im' to a .lm file.
! <kuid:520526:2428> VE82: Individual mesh files are not supported for traincar assets. Upgrade 'me_lowres/me.im' to a .lm file.
! <kuid:520526:2428> VE82: Individual mesh files are not supported for traincar assets. Upgrade 'me_lowres/me.im' to a .lm file.
- <kuid:520526:2428> VE123: The script file 'Sparker' does not exist.
! <kuid:520526:2428> VE109: The low-detail meshes total more than 500 polygons. This may have a negative impact on performance: 0: 17088, 1: 10840, 2: 4238

The line in red is the error. The others were yellow warnings. Sorry I didn't get back sooner - doggone work!!! :(
 
Might have found my problem after making the script changes.

From the notepad, my changed sparker.gs file is saving as a text file. Don't know how to save it as a .gs file. The options don't come up for that when I hit save as in Notepad. That might be why I am getting the error that the file doesn't exist.

In the config file I now show:

sparker.gs GS file
sparker.txt Txt document
 
Back
Top