Search In
• More options...
Find results that contain...
Find results in...

# Los Santos bus traffic line

## Recommended Posts

in the mod, every time the bus stops, it rushes onto the pedestrian path, the place you wait the bus can be different to the place the bus stops...

2.

when the bus is created, angle is not set correctly...

3.

i figured the problem of repeating showing notices....the place where bus generated is too far from CJ(the place of the bus stop), you can see there is a limitation you have set (250 meters), once the bus is created further than 250 meters to CJ, it is released/deleted immediately, which loops back to the front of the program...

4.

On some streets, the bus goes along the other side of traffic, that occurs along some paths(especially wide roads more than 2 lanes) when you loops the drive-to command, you may avoid the loop on that part of the route and add more points to guide the route(not always capable to solve the problem)

I found out about that bus stops being too far from each other, I started creating new bus stops between the existing one's, but can I increase that number 250, meters, that is my main problem, and yeah I know about the angle, I'll set it properly...

`0209: [email protected] = random_int_in_ranges 25000 40000 0209: [email protected] = random_int_in_ranges 5000 10000`

is this the one, because I don't understand all the numbers here, can you plz explain me

##### Share on other sites

Ahhhh, I finally found out what is the problem, thanks for mentioning 250 meters from CJ, I could newer find the problem, it is in this one:

`:BUS_43674if and0202:   actor \$PLAYER_ACTOR near_car [email protected] radius 250.0 250.0 flag 0   not Car.Wrecked([email protected])else_jump @BUS_43728 if   not Actor.Dead([email protected])else_jump @BUS_44013 return`

Thanks a lot this is a huge step forward, I changed the number to 450 meters, so now it creates on farther distances,

the rest you said I will fix soon, I know how to do that

soon it will be released a new version, much better one

##### Share on other sites

I have to remind you one thing, setting the distance that far(450 meters) may lead to a 'bug': The collision detection is in limited range from CJ(in-built setting), the bus may fall through the ground, returns to the ground and then fall again and again... and your bus would never be able to come when the distance from CJ to the bus is over a range greater than about 270 meters.

I have a hint for you so that you don't need to either add more bus stops or enlarging the distance between CJ and the bus: the location of bus created doesn't need to be set at the previous stop, add one more step for each stop with the same problem(use only in bus generation for that specific stop, doesn't involve in normal procedures of the bus route, it can be used to initialize a position where the bus generated is in the range of 250 meters to CJ)

The random numbers ([email protected], [email protected]) are just waiting time(wait for a random time until a bus arrive/bus waiting time at stops), it doesn't matter if you replace the random command with an integer you like. I think a random timing is more realistic

Edited by s02282

##### Share on other sites
I have to remind you one thing, setting the distance that far(450 meters) may lead to a 'bug': The collision detection is in limited range from CJ(in-built setting), the bus may fall through the ground, returns to the ground and then fall again and again... and your bus would never be able to come when the distance from CJ to the bus is over a range greater than about 270 meters.

I have a hint for you so that you don't need to either add more bus stops or enlarging the distance between CJ and the bus: the location of bus created doesn't need to be set at the previous stop, add one more step for each stop with the same problem(use only in bus generation for that specific stop, doesn't involve in normal procedures of the bus route, it can be used to initialize a position where the bus generated is in the range of 250 meters to CJ)

The random numbers ([email protected], [email protected]) are just waiting time(wait for a random time until a bus arrive/bus waiting time at stops), it doesn't matter if you replace the random command with an integer you like. I think a random timing is more realistic

DO you mean this:

`00EC:   actor \$PLAYER_ACTOR 0 near_point 1462.899 -1028.158 radius 20.0 20.0 else_jump @BUS_1945 [email protected] = 1658.548 [email protected] = -1155.059 [email protected] = 90.0 03E5: show_text_box 'BUS_T2' wait 3000 03E5: show_text_box 'ON_BUS' jump @BUS_2263`

and how much I understood I only have to change this to be closer to the stop:

`[email protected] = 1658.548 [email protected] = -1155.059 [email protected] = 90.0`

is it?

##### Share on other sites

you are right

[email protected] = 1658.548

[email protected] = -1155.059

[email protected] = 90.0

are the coordination+car angle telling where the bus to be spawned(it can be set closer to the stop where you are=>where less than 250 meter between CJ and the spawning location)

##### Share on other sites

you are right

[email protected] = 1658.548

[email protected] = -1155.059

[email protected] = 90.0

are the coordination+car angle telling where the bus to be spawned(it can be set closer to the stop where you are=>where less than 250 meter between CJ and the spawning location)

So just to add another one like this:

`:BUS_1839wait 0 if 00EC:   actor \$PLAYER_ACTOR 0 near_point 1462.899 -1028.158 radius 20.0 20.0 else_jump @BUS_1945 [email protected] = 1658.548 [email protected] = -1155.059 [email protected] = 90.0 03E5: show_text_box 'BUS_T2' wait 3000 03E5: show_text_box 'ON_BUS' jump @BUS_2263`

with cnaged coordinates, and that is it?

##### Share on other sites

`:BUS_1839wait 0 if 00EC:   actor \$PLAYER_ACTOR 0 near_point 1462.899 -1028.158 radius 20.0 20.0 else_jump @BUS_1945 [email protected] = 1658.548 [email protected] = -1155.059 [email protected] = 90.0 03E5: show_text_box 'BUS_T2' wait 3000 03E5: show_text_box 'ON_BUS' jump @BUS_2263`

I changed only the coordinates and angle, and nothing else, and it crashes the game the moment the bus is created

I'm out of ideas...

##### Share on other sites
`:BUS_1839wait 0 if 00EC:   actor \$PLAYER_ACTOR 0 near_point 1462.899 -1028.158 radius 20.0 20.0 else_jump @BUS_1945 [email protected] = 1658.548 [email protected] = -1155.059 [email protected] = 90.0 03E5: show_text_box 'BUS_T2' wait 3000 03E5: show_text_box 'ON_BUS' jump @BUS_2263`

I changed only the coordinates and angle, and nothing else, and it crashes the game the moment the bus is created

I'm out of ideas...

It is time for you to learn debugging i.e illuminate other conditions that would affect the program(including other CLEO mods), and find out why the game crashes when the bus is created(sort of errors)

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×