ElCono
Here are some Posts from the user Siecool who is from PL vBus Forum about Creating routes.
They are translated parts from the original polish version which was written by emka.
Overview:
General
VJ - creating the street
Bwiu - editing Map, placing Objects
PED - let's add traffic
They are translated parts from the original polish version which was written by emka.
Overview:
General
VJ - creating the street
Bwiu - editing Map, placing Objects
PED - let's add traffic
|
Original from Siecool (Oct 7 2005, 13:24) The most important thing in making routes is a 3ds model of the streets you want to have in the game. If you want to create your own first find a program for 3D modelling e.g. 3DS Max (shareware), Animat8r or Zmodeler (both free). Then model some streets and export it to the 3ds file format. What you will also need are buildings, bus stops etc. also as 3ds objects. Next step is producing a map file (with extension .ms1 - those are in the map subfolder of your vbus), here is the structure of this file according to this article written by emka: - first line - number '3' - second line - two numbers separated with a coma, they doesn't count in the modern versions of vbus. - then up to four lines starting with # sign, these are the lines of comment that you see in the main menu when you choose a map. Next lines consist of parameters, here are those that you can use: - A1 x,y,a x,y-starting position of the bus, a - angle - M1 x,y,z,a,sx,sy,sz,"filename" a single object from a 3ds file (e.g. building, road sign); x,y,z-position, a-rotation (around the z axis), sx,sy,sz - scaling (if none then write 1,1,1 ), objects from a single file should be grouped (lines inserting them should be right after each other - this would cause the program to effectively use cache memory) - M2 x,y,z,a,sx,sy,sz,"filename" analogically as for the M1 parameter, used for inserting CSV objects from BVE. Attention! This option may not work properly as it was tested long ago. - M3 x,y,z,a,sx,sy,sz,"filename" analogically as for the M1 parameter, but used for objects with transparent elements, those elements have to be joined into one object named 'b_2' - U1 x,y,z,a,sx,sy,sz,"filename" reads the 3ds file with roads, same parameters as in the case of M1, there can be only one U1 parameter in a single ms1 file. Attention: you can place the 3ds file with roads either with M1 parameter or U1. If you place it as a latter the bus will have different max. speed on road and outside it, in case of M1 the max speed is the same all over the map. Using the U1 parameter also uses more memory thus the FPS might be lower. - B2 x,y,z,a,w,h,"filename" single flat object for example a billboard; x,y,z-position; a- rotation around the z axis; w,h- width and height; "filename" - name of the graphics file (e.g. BMP) - P2 x,y,z,a,w,h,"filename" similar to B2 but enabling to insert partly transparent objects, transparent color must be in the top left corner of the picture (enables you to insert a fence) - B3 x,y,z,a,w,h,"filename" P3 x,y,z,a,w,h,"filename" analogical objects as in the case of B2 and P2, but instead of objects placed perpendicularly to the ground, it places them parallely to it. - L1 x,y,a inserts a lamp-post; x,y-placement; a -angle. Lamp-posts give a light at night.
Okay, now the tricky part: - SE x,y,z,a,t0,t1,n inserts trafic lights; x,y,z - placement; a- orientation; t0 - movement in a phase; t1 - time unit; n - for a future use; period=10*t1 examples: SE *,*,*,*,0,1,* period 10s, phase=0s, so we begin with the red and orange light SE *,*,*,*,5,1,* period 10s, phase=5s, we begin from the orange light (that's exactly half of the period 5/10=0.5) SE *,*,*,*,0,2,* period 20s, phase=0s, we begin with the red and orange light SE *,*,*,*,10,2,* period 20s, phase=10s, we begin with the orange light (another time it's the half of the period 10/20=0.5) - ST n,x,y,z,r,"name" a bus stop (does NOT insert any visible object - a bus stop building you have to insert with a M1 parameter); n-stop number; x,y,z-placement; r-radius - when the distance of the bus to the point with coordinates x,y,z is smaller than r then after opening the doors people will start getting on and off the bus; after closing it you may proceed to another bus stop, if bigger you have to drive closer; if the radius is 0 then program treats it as a default value 7, "name" - name of the bus stop, it will be visible later on the schedule. - RB hh:mm:ss this parameter starts the schedule section of ms1 file, hh:mm:ss is the beginning time. - RS n,hh:mm:ss,l1,l2 single position in a schedule; n-number of the bus stop (exactly the same as in the ST parameter); hh:mm:ss - time of departure; l1 - number of people getting of the bus (write -1 if you want all passengers to leave); l2- number of people getting in. Attention! Program chooses a random number from the interval <0.5x; 1.5x> (where x is either l1 or l2) not exactly the number you have written. - RE parameter that ends the schedule section. Attention! The RS parameter MUST be between RB and RE parameters. Below are parameters used for the direction boards: - LN n line symbol - K1 description K2 description two lines of description for direction nr 1 - K3 description K4 description two lines of description for direction nr 2 - K5 description K6 description two lines of description for direction nr 3 - K7 description K8 description two lines of description for direction nr 4 - K9 description K0 description two lines of description for direction nr 5 - 1A description 2A description 3A description 4A description 5A description description for plywood boards, in Poland these descriptions are names of the main streets through which the bus goes. - 1B description 2B description 3B description 4B description 5B description analogically, but for the 2nd direction. - 1C description 2C description 3C description 4C description 5C description analogically, but for the 3rd direction. - 1D description 2D description 3D description 4D description 5D description analogically, but for the 4th direction. - 1E description 2E description 3E description 4E description 5E description analogically, but for the 5th direction. - D1 n type using which the description will be shown on electronic boards; there are 4 types: n=1 one line (in such case only the first parameter from each pair is shown - K1, K3, K5, K7 and K9) n=2 two lines n=3 two lines, but first (so K1, K3 etc.) written with bigger letters n=4 two lines, but second (so K2, K4 etc.) written with bigger letters - D2 n analogically but for the 2nd direction. - D3 n analogically but for the 3rd direction. - D4 n analogically but for the 4th direction. - D5 n analogically but for the 5th direction. The 3ds file with roads has to be placed in the scene folder or a subfolder in the folder scene, so for example scene/ottawa/; the ms1 file has to be in the map folder. |
|








We close our letter 'P', in this case we have all needed nodes, so we choose connect to the nearest node at both points: (1) and (5). 





