Elvas Tower: Multiple car spawner lists - Elvas Tower

Jump to content

  • 13 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple car spawner lists Rate Topic: -----

#1 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 31 May 2016 - 04:35 AM

Having different car spawner lists for e.g. highways or small country roads is of some interest for me.

Providing the ability to manage multiple car spawner lists should be reasonably simple. That could be done with two files added in the Openrails subfolder of the concerned route folder: in one file (let's call it carspawnerlists.dat) there are car spawner lists that are additional to the carspawn.dat file present in the route folder; in the other one (let's call it carspawners.dat) there are the correspondences between the car spawners (identified as world file and UiD) and the selected car spawner list (identified by a number).
No modification to existing files is therefore needed. An OR-specific RE could automatically generate the second file.

Are there comments about this?

#2 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 31 May 2016 - 05:41 AM

I agree with you completely that this would be a very good addition but why limit to two ...........!

#3 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 31 May 2016 - 06:04 AM

It's not limited to two! In the carspawnerlists.dat file there can be more than one list of vehicles. In fact the file is called carspawnerlists.dat and not carspawnerlist.dat :)

#4 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 31 May 2016 - 06:11 AM

View PostCsantucci, on 31 May 2016 - 06:04 AM, said:

It's not limited to two! In the carspawnerlists.dat file there can be more than one list of vehicles. In fact the file is called carspawnerlists.dat and not carspawnerlist.dat :)



Very good.

#5 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,577
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 31 May 2016 - 07:32 AM

I like it. There's always been a need to have different types of spawner lists for a autobahn/expressway vs. a rural road.

Presumably the default would still be used where an alternative is not expressly specified in the OR subfolder?...

#6 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 03 June 2016 - 12:54 PM

Blueprint has been filed https://blueprints.l...r-spawner-lists .
A beta release is available. To test it, update x.3551 with the files included in this .zip
Attached File  MultipleCarSpawnerLists.zip (1.11MB)
Number of downloads: 579
To use it, two files have to be created in an Openrails subfolder of the related route.
I have created a stupid test example for USA1 route, for two of the four carspawners that pass over the tracks with a viaduct just after the station on Philadelphia.
The first file is a file named extcarspawn.dat that contains all additional car spawner lists (additional because the one included in carspawner.dat is still valid and used). Here the file I used:
Attached File  extcarspawn.zip (312bytes)
Number of downloads: 514
In this case I used only a new shape (postbus.s) with respect to the ones of the standard carspawn.dat. Of course to see it you need to have that shape, or to replace it with another shape you insert in the shapes folder (together with .sd file, and with needed texture files in the textures folder).
The second file is a file named carspawnerstolists.dat. I used following sample file:
Attached File  carspawnerstolists.zip (264bytes)
Number of downloads: 515
An entry in this file must be created for every car spawner where it is desired to use a car spawner list different from the one of carspawn.dat.
The structure is self-explanatory: the car spawner is identified with world file and UiD (they may derived using track viewer and uncompressing the related .w file), and the CarSpawnerList parameter identifies the index of the car spawner list (zero is the car spawner list of the standard carspawner.dat, so that the indexes of the lists included in extcarspawn.dat start from one).

By the way these .exe files include also this http://www.elvastowe...rations-window/ .

#7 User is offline   conductorchris 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,345
  • Joined: 24-March 10
  • Gender:Male
  • Simulator:Open Rails - MSTS
  • Country:

Posted 03 June 2016 - 01:11 PM

This is great! Thank you.
Christopher

#8 User is offline   Jovet 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 2,250
  • Joined: 14-January 08
  • Gender:Male
  • Location:Omaha, Nebraska.
  • Simulator:MSTS/Open Rails
  • Country:

Posted 03 June 2016 - 01:53 PM

Would it be possible to link Car Spawner list with a list of eligible road shape files for the entire route? That is, set the spawner list that is used based on the actual road shape the spawner spawns on.

#9 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 03 June 2016 - 03:50 PM

Yes!, I would be thrilled if this feature of multiple individual cars pawners will exists in Open Rails in the future!
Why? As I mentioned in post #9 of topic "ORTS WishList 2014-05":

Quote

...this would be a real advantage for OR when you could have certain vehicles on certain roads. For example, one could have an automatically running tram without any tracks on an 4 lane road in the middle lanes. On fields could drive tractors or horse and carriage individual. Not to mention what would be possible thereby with ships or even aircraft or migrating bird swarms etc.

In combination with hidden railroad crossings it will be a great chance to let the trian interact with certain vehicles.

During building my last route I refrained to involve a Zeppelin aircraft as an animation, because the creation of the animation was too elaborate for me. If I had the option of an individual car spawner this time I would have let "fly" the Zeppelin simply as a car on a hidden road vector.
(Sure, it can also being realized by make the Zeppelin aircraft a driveable locomotive on hidden tracks. But then it only(!) would have been seen in activities, not in explore mode.)

Various individual car spawners would give a huge opportunity to make the environment look lively and more diversified by moving "things" of different kind. Relatively little effort, great effect!

Since the first days of MSTS I missed very hard the possibility to define lists of cars per car spawner while set in a route. What a wasted chance by Kuju!


Attached Image: AsIs_And_Awaited_01.jpgProperty window of a car spawner as is in MSTS

Attached Image: AsIs_And_Awaited_02.jpgTruely Expected property window
With a selective list of vehicles that should used at this certain car spawner

#10 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 03 June 2016 - 04:14 PM

@Csantucci

A small idea, instead of having two files ("extcarspawn.dat" and "carspawnerstolists.dat"), what about to sum it up in one "carspawnerstolists.dat" containing the lists direkt (and individual) like this:

2
CarSpawner(
WFile ( "w-011008+014318.w" )
UiD ( 534 )
CarSpawnerList (
CarSpawnerItem( "car1.s" 4 )
CarSpawnerItem( "postbus.s" 4 )
)
)
CarSpawner(
WFile ( "w-011008+014318.w" )
UiD ( 532 )
CarSpawnerList (
CarSpawnerItem( "policePHIL.S" 6 )
CarSpawnerItem( "truck1.s" 13 )
CarSpawnerItem( "postbus.s" 6 )
)
)

This way you only have to edit one file to set the individual car spawners completly and it will not needed to keep in mind the list index of the "extcarspawn.dat?

  • 13 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users