CMTM 2 not loading

mikemike

Member
As far as I can tell, I've got all of what I need for the CMTM2 system to work, but it's not showing up in the route or in the sessions edit options -- even in virgin routes I've downloaded and which show no faults... that is, with their configs and files.

Maybe I'm a jerk... and, maybe that's ok, but I'd like to be a train-jerk too.

mike
 
Mike,

Have you read the CMTM Manual? The website where it is stored is out of commission for a few days. If you email me, I can send it to you. Have you created your CMTMportal and CMTMSystem assets specific to your route? Once you have these created and the database of car movemets installed in your CMTMSystem extensions container, you then install your CMTMPortal on your route. The CMTMSystem asset is a library asset that is attached to the Portal, so once the Portal is in place, the System should be operational. It does not show up in Surveyor for editing. To edit the database, you must edit the config.txt file for the CMTMSystem asset.

Or, you may want to install CMTMSystem3. It has a lot more whistles & bells. It is about ready to be released. And then I will be releasing several routes with it installed.

If you have any other questions, post here or email me.

David
 
Thanks, i've read and re-read. one thing i've just noticed, reading the wiki is that i may have to furnish an address in the config for the portal itself? but, you know, as i mentioned, i'm running these routes -- portal demo, things like that, with no change... and, i've got the filez as they should be. the error message i'm getting in driver is that the .gs file can't be found.

i'm looking forward to system 3 -- i thought it might be out already, and have been looking all over for it! Glad Gaurc is coming back up. , in 1958, my first RR modeled, was the SMVRR...

so, i'm very tired, not sleeping so much and i'll try tomorrow to configure a portal address, cloning up as you suggest and following the steps. i had this cmtm working about a year ago... in fact, your system was the only reason i bought 2010 ( my trees never speed over 2 mph ever. )

mike
 
Last edited:
Mike,

Are you interested in beta testing my System3 demo route? I could use a few folks to give it a spin before ai upload it.

David
 
Checko ergo sum.

so, i tried again last night to get the system to work. For some reason i seem to think that i used to have to load an actual thing called CMTMsystem into my sessions rules?
 
Last edited:
Still somewhat new to Trainz, but already addicted. Been experimenting with session creation and now ready to tackle more prototypical operations. Would you send me the manual to CMTM, or if u don't mind a rookie tryin to screw it up, I'll beta-test v3. Thanks for your help
 
I just checked my 2009, and CMTM was there, and ran one of your first versions CMTM and it worked fine, and there was nothing but basic portal manager and your CMTM portal. There wasn't any CMTM system rule, that is, and I'm wrong about thinking there was.

Pretty neat. I realize I must have never gotten CMTM to work in 2010! I've been working on my C-Plastic trains -- HO scale layout in my place, and haven't used Trainz in what must be a long time.

Checko ergo sum.

so, i tried again last night to get the system to work. For some reason i seem to think that i used to have to load an actual thing called CMTMsystem into my sessions rules?
 
CMTM2 is now loading -- i was leaving out a Local track -- i think my sessions were saving wrong. now i'm saving-as and CMTM2 is fine in 2010.

one thing i haven't done right, i guess, is that i'm building a record in sys,

cmtmdata-soup-32711
{
numrecs "2"
ecstracks "ECS 1"
localtracks "Local"
cmtm0 "1x3x5xx,Local,XTM,GATX,ALTBECKERTankcarStub,load,turps,x,x,x,x,x"
cmtm1 "123xx67,Local,XBG,AA,ALTBECKER,load,paint,x,x,x,x,x'"
}

but, when it loads in the session all the cars in on the layout -- seven -- have either destinations. all the tank-cars, not just the one XTM, but the XT's too -- and, the covered hoppers have this destination also. the three extra XBG's share the paint load and destination too.

so, first off, where should these two cars be placed on the session layout/surveyor, and why the general distribution?
 
Last edited:
ah, seeing it from a distance, i'm remembering that the actual soup number is copy/paste and not dedicated or generated out of this file? would that matter?
 
Keep in mind the structure of a movement record. A car starts its journey one of two places. Always without exception. It either starts as an empty car pulled from the ECS (Empty Car Storage) track, or it arrives via a portal. This is true theoretically, which is the way the database is structured. When a session starts, theoretically any cars that are not on an ECS track are already in service and have started their journey from elsewhere. So, all movement records must reflect this structure.

Movement records are identified as either thru or local. Thru records have only one destination with this exception - if the destination is for an ECS track. It is expected that the one destination in a thru record will be a portal. Local records have either an ECS track as their first destination or they have more than one destination.

All cars that are on the route when a session starts that are not on a “local” track are deemed to have an off route destination, hence they will be given a thru record on start-up.

So, if you want a car at a “local” track mark to be delivered to a local industry, its first delivery location must be on the route and it must have at least a second destination where will it go after it has been delivered to its first destination and the product has been loaded/unloaded. (This is called a local record.)

cmtm1 "123xx67,Local,XBG,AA,ALTBECKER,load,paint,x,x,x,x ,x'"

cmtm1 “123xx67,PortalX,XBG,AA,ALTBECKER,load,paint,x, PortalX,empty,x,x”

Changing your record structure as shown should fix your problem.

David
 
Last edited:
yes, i've tried all that kind of variation ( i'm an idiot, but i'm a persistent idiot ) and what i get when i add a portal as a begin-from is a red-dot exception. that's why i've devolved to this simple 'local' -- figuring i'd figure out the portal problem later. so, i swapped your re-write for mine, and got a nice red-dot greeting when i loaded in driver.

but, my problem here is that every car of a type, anywhere on the route, is given the destination and load. i must be dropping a semi-colon or maybe haven't fastened my braces...

so, first question. if i had only the two cars on the route -- the cars i've declared -- where would i put them? in 'local' or 'ecs' or not on either...?
 
First, you have to have at least one portal on your route, because that is what sets-up the CMTMSystem.

Lets start with just two cars. Where will they be located on start-up and what will their first, second & possible third or more destinations be?
 
I built this small railroad and used the data from the CMTMSystem2 config.txt to figure out how CMTM worked.

metro_east.jpg


Once I broke it down to the basics it all made sense.

Harold
 
i've got three. i did read the manual that much, though i had to ask mom about some of the big words. when i'm doing c++ hobby writing, it's usually some little thing like braces or a semi-colon and not a reference call. i think i have the basic needs constructed in the route, but i'm not linking them correctly.

so, wadda ya' think of this:

string-table
{
portalnorth "PORTALNORTH"
altbecker "ALTBECKER"
cn_gp7_green_1 "CN GP7 Green 1"
altbecker_paint_mfg._co. "Altbecker Paint Mfg. Co."
40ftboxcaraa1288 "40ftBoxcarAA1288"
40ftboxcarcbq_burlington62993 "40ftBoxcarCBQ Burlington62993"
portalxchange "PortalXchange"
40ftboxcar_atsf_#_1 "40ftBoxcar ATSF # 1"
protalchicago "ProtalChicago"
altbecker_siding "Altbecker Siding"
altbeckertankcarstub "ALTBECKERTankcarStub"
altbecker_mfg._co. "Altbecker Mfg. Co."
2baycovhopper_cnw_4108_1 "2BayCovHopper CNW 4108 1"
milw-tank-car-40ft-l-01_1 "MILW-Tank-Car-40ft-L-01 1"
2baycovhopper_bo_604321_1 "2BayCovHopper BO 604321 1"
local "Local"
tanker40ft_3dome_gatx_44777_lars_1 "Tanker40ft 3Dome GATX 44777 LARS 1"
ecs_1 "ECS 1"
}

ah, 'protalchicago', for one thing, but the other two are ok.

... just corrected it out, but still got: Unknown : Thread Exception: ER_Timeout, line 1217, file cmtmsystem2.gs (1)

when i loaded it to driver.
 
Last edited:
Mike,

Work with me on this. There is no code to write. Only to create movement records that follow a specific protocol. I have no idea to which asset your string table belongs. I don't know if some items are track marks or structure names. If you want some help, don't try to second guess where this is going, just answer the simple questions I ask and we will build a database to give your freight cars destinations.

David
 
go ahead. i've got three portals on my route. do i address them as you've shown, with that wording? i have no red-fault unless i add a portal address in sys... including copying and pasting your suggestion.

by the way, i was referencing the coding just to show that i can follow an instruction in a critical way -- that i know that if you don't do everything correctly that a system will fail.
 
Back
Top