Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Gta Fishhead

Los Santos bus traffic line

Recommended Posts

Gta Fishhead

 

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 biggrin.gif

Edited by Gta Fishhead

Share this post


Link to post
Share on other sites
Gta Fishhead

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 devil.gif

 

soon it will be released a new version, much better one biggrin.gifbiggrin.gifbiggrin.gif

Share this post


Link to post
Share on other sites
s02282

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 this post


Link to post
Share on other sites
Gta Fishhead
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 this post


Link to post
Share on other sites
s02282

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 this post


Link to post
Share on other sites
Gta Fishhead

 

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 this post


Link to post
Share on other sites
Gta Fishhead

 

: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 sad.gif

I'm out of ideas... mercie_blink.gif

Share this post


Link to post
Share on other sites
s02282
: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 sad.gif

I'm out of ideas... mercie_blink.gif

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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.