Generic question about AI trains

Discussion about RailWorks scenario creation.

Re: Generic question about AI trains

Unread postby Machinist » Fri Aug 03, 2012 7:42 am

AH! RS age... I started with scenarios with RW2 one year ago and then (couple months later) I continued with RW3. In Trainz, the portals emmit trainz (pun intendend) which is good once whilst not launched yet they do not impact performance (is just take care of don't emmit more then one at same time) and they don't disturb the traffic (don't block the path for other trains).
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Generic question about AI trains

Unread postby OldProf » Fri Aug 03, 2012 12:12 pm

Well, that didn't take as long as I thought it would! My demonstration scenario, Portal_Test_01, is on its way to the file library.

I decided to use the Castle Rock Railroad route and standard RW3 stock. The scenario includes a player train and two AI trains that spawn from a portal. The basic steps I took are as follows:

1) Placed an engine near a convenient portal, added a driver and a couple of commands, then double-clicked the portal to open its properties box. This includes two buttons: ADD and REMOVE. Clicked the ADD button, then clicked the AI engine, which immediately disappeared into the portal.

2) Set up a player engine and assigned it some tasks.

3) Tested the scenario, which worked as it should have.

4) Never satisfied with something simple, assigned some tasks to the AI train. To do so, used the REMOVE button to extract the train from the portal, placed it on a track, and edited it. Returned the train to the portal, as in step 1.

5) Tested the scenario: no problems.

6) Still not satisfied, added a second AI train, giving it a later starting time and some tasks. To place this train into the portal, I had to remove the other train, because it had to leave the portal first. Used the ADD button to assign the 2 trains to the portal (Service 3 first, Service 1 second -- the player train is Service 2).

7) Tested again: no problems.

In my opinion, after this initial test, RW3 handles AI trains spawned from portals better than RS did. That a train can be placed into a portal, removed, and placed again multiple times is quite impressive! I'm inspired to make additional tests.

Note: As stated above, this scenario runs on my RW3 installation without problems. If it does not run on your system, please don't scream at RSC or at me.
Tom Pallen (Old Prof)

{Win 10 Home 64-bit; Intel Core i7 6700 @ 3.40GHz; 16.0GB Single-Channel @ 1063 MHz (15-15-15-364); 2047MB NVIDIA GeForce GTX 960}
User avatar
OldProf
 
Posts: 2755
Joined: Wed Sep 09, 2009 10:09 am

Re: Generic question about AI trains

Unread postby artimrj » Fri Aug 03, 2012 12:32 pm

Thanks Tom! That will make things different.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4749
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Portal emiting AI Trains, is possible!

Unread postby Machinist » Fri Aug 03, 2012 2:01 pm

Great Tom! !*brav*! As RSC stated on wiki that Portal doesn't spawn AI train, I never realised (how) to try!

@Bob, NERW is plenty of Portals, anywhere, so it will be really great for scenarios designers!

I changed the name of my post to make the it easier to find further.

Cheers,
Doc.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Generic question about AI trains

Unread postby harryadkins » Fri Aug 03, 2012 2:05 pm

Excellent work Tom. Can't wait to try it out.

Harry
User avatar
harryadkins
 
Posts: 3098
Joined: Sun Aug 23, 2009 8:01 am
Location: South Carolina, USA

Re: Generic question about AI trains

Unread postby Chacal » Fri Aug 03, 2012 2:29 pm

I guess the wiki needs an update.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6472
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Generic question about AI trains

Unread postby Machinist » Fri Aug 03, 2012 2:33 pm

Chacal wrote:I guess the wiki needs an update.

In fact, needs to be redone... *!twisted!* a lot of missing information letting us blind when scripting. *!sad!*
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Generic question about AI trains

Unread postby OldProf » Sat Aug 04, 2012 6:18 am

Machinist wrote:
Chacal wrote:I guess the wiki needs an update.

In fact, needs to be redone... *!twisted!* a lot of missing information letting us blind when scripting. *!sad!*


Indeed! Here, here! At the Support tab of RSC's website, this statement appears: "The Official RailWorks3 Train Simulator 2012 FAQ can be found as part of the Developer Wiki.", but as far as I can see, all of the FAQs relate to RW2. Moreover, the sections dedicated to scenarios do not even mention the Timetable Editor. RSC does provide a Timetable Editor Manual, but it hasn't been updated since it first appeared in 2010, along with RW2. Since then, AI deliveries and pick-ups have been added, as have those mysterious new "cinematic" scenario openings and the possibility of adding graphics to instructions, but RSC has not revealed the secrets behind these novelties. I very much respect RSC's production of new routes and rolling stock, but leaving those who enjoy making routes and writing scenarios groping in the darkness is really disappointing. On several occasions. members of various forums have attempted to put together a new wiki, but those efforts have usually produced more dissension and confusion than anything else. Besides, none of us really knows the facts behind RW's programming or the possibilities and limits that result from than programming. Thus, only RSC can actually create a worthwhile wiki. As we say in Italian, "magari!"

I'd appreciate feedback from anyone who tries my scenario, as well as suggestions about further experiments.
Tom Pallen (Old Prof)

{Win 10 Home 64-bit; Intel Core i7 6700 @ 3.40GHz; 16.0GB Single-Channel @ 1063 MHz (15-15-15-364); 2047MB NVIDIA GeForce GTX 960}
User avatar
OldProf
 
Posts: 2755
Joined: Wed Sep 09, 2009 10:09 am

Previous

Return to Scenario Creation

Who is online

Users browsing this forum: No registered users and 1 guest