Outdated Beam Legal Racing - SLRR Inspired Hardcore Career Mod

Discussion in 'Content Creation' started by r3eckon, Aug 4, 2022.

  1. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    Here is the preview video for next update! It took over a month but I'm pretty much done getting the new advanced part inventory system working as intended. It's not 100% done yet but it's to the point where most obvious bugs have been dealt with so I can show off how it works.


    For those unaware of the inner working of the inventory system, the current inventory system only keeps a count of each part owned by the player. In comparison this new inventory system makes each part a unique entity allowing them to have specific odometer and integrity values. This means that replacing old parts for new parts will now have a positive impact on your vehicle's performance as long as BeamNG's part condition system makes use of the odometer for that part which is the case for engines and brakes. Engines with higher odometer values have more friction and more idle play, while brakes with higher odometer values will glaze faster.

    Part specific odometer values are reflected in part sell price, with 200,000 km giving the worst sell price which is 10% of the brand new part value. Vehicle sell price at car shops is also tied to part odometer values. At a high enough reputation the full price of a brand new part will be reflected in the sell price for the whole vehicle. Parting out vehicles will still be more profitable, partly for realism but also for balance as it is a more labor intensive process compared to quickly selling the whole vehicle.

    The oil leak mechanic has been tied to this updated inventory system. Currently only the vehicle's odometer is used to calculate oil leak rate. With the new inventory system, the oilpan and engine odometers are used. 70% of the leak rate comes from the oilpan while the remaining 30% comes from the engine. This means that replacing an old vehicle's oilpan for a new one will drastically reduce the oil leak.

    One problem that arises from this new inventory system is that configs (as in the player saved configs used to quickly change setups), being tied to parts that are now unique, can refuse to load despite the inventory containing a compatible part if the part used in that config has been sold or used in another vehicle. This wasn't an issue with the previous count based inventory system as configs could simply load as long as there was another compatible part in the inventory. To fix this issue a new menu has been added to the config loading window, this menu will list missing parts from a particular config and allow the player to select replacement parts in the inventory to fix the config and allow it to load.

    To go with this new inventory system part shops now sell used parts with reduced cost based on odometer values. Each part can only be bought once per shop per day. Each shop sells used parts with different odometers and used parts will be restocked every day so visiting part shops daily when looking to buy a certain part is a good way to find a good deal on a part in decent condition that's cheaper than the brand new version.

    Finally, dynamic mirrors have been integrated into the mod. A simple UI app has been added to edit mirror offsets. The app will detect mirrors attached to your vehicle and load vanilla SVG icons similar to the vanilla mirror offset edit UI. However the main difference is that mirror offsets are saved to your vehicle config meaning each vehicle can have different mirror offsets.

    I still have no precise ETA for when this update will release, I have a lot of things to test and fix and recently have not had a lot of time to work on the mod. It should hopefully release before the end of the month, maybe sooner if I have more time than anticipated.
     
    • Like Like x 10
  2. shadow101

    shadow101
    Expand Collapse

    Joined:
    May 5, 2024
    Messages:
    41
    Nice progress but engine idle play is very low in that D series i dont know if u played career mode but when i bought large mileage barstow it idled so rough that it can stall also one thing id like to know with this new inventory system could we do engine swap if we blew old one with no other damage to car
     
  3. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    In previous versions of the game the odometer had a bigger effect on engine performance and the high odometer cars would easily stall, at some point that changed so that to stall the engine it also has to have a low integrity value. Lowering the integrity adds a lot of friction to the engine which is what causes it to stall, lowering it some more makes it so the car barely gets going and at a low enough integrity it can permanently lock up the engine. I focused on the odometer for now but the integrity value of each part is also saved in the new part inventory and I do plan on making high odometer parts lose integrity.

    As for the engine swap, the problem is that this counts as mechanical damage and not beam deformation, so this has to be fixed. But it should be possible for me to add the option to remove the engine like we can do with deformed parts when there's mechanical damage.
     
    • Like Like x 2
  4. Vegt

    Vegt
    Expand Collapse

    Joined:
    May 29, 2023
    Messages:
    10
    Great stuff, @r3eckon !

    I have an idea for race events. I've played many of them but never seen parts as prizes. I wonder if those work? If not, I have a small idea on how to implement it.

    What about using tokens like in Need for Speed ProStreet? You could use them for parts, repairs, or even a whole car?)
     
    • Agree Agree x 1
  5. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    Part rewards are implemented for both regular races and track events. For example track event files have the partreward field, list internal part names separated by commas there and it should work like car rewards. I just haven't been using them, mostly because the current system is a bit bad as for one I'd have to manually add a bunch of parts to specific race files, and also there's no way to know if the part would be any useful to players. That system was added before part selling was possible and even now if you get a part as a reward you can't sell it unless you have a car that it could be attached to otherwise it doesn't show up in the UI. I have a few ideas to improve this system, so that part rewards are randomly offered like pink slips races, having the game choose a part that fits your current vehicle (so you can at least sell it if you don't want it) with values that are as close as possible to monetary rewards for the races.

    Tokens/coupons for car repair and other things have been on the to do list for a bit now, I'm getting closer to adding this type of item to the mod since the item inventory has been added.
     
    #1005 r3eckon, Aug 7, 2024
    Last edited: Aug 8, 2024
    • Like Like x 3
  6. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    61
    is there a way to add ui apps back? I really miss the gear indicator especially on older cars that don't have a dash visualization of the current gear is real car you'd be able to feel it but now I'm just driving from the hood rather than the interiors because of the
     
  7. Vegt

    Vegt
    Expand Collapse

    Joined:
    May 29, 2023
    Messages:
    10
    Mostly because of the amount of manual work involved, I've proposed this. With a Part Token, you can avoid or save some coding time and performance. You could create an additional button next to the "Buy" button: "Buy with token." This would allow the player to choose what part they need through the existing menu. Optionally, these tokens could hold some monetary value to balance them out.) But I'm not very close to modding this game so I may talk nonsense)))
     
  8. rapturereaperALEX

    rapturereaperALEX
    Expand Collapse

    Joined:
    Nov 28, 2021
    Messages:
    341
    Look into the UI file of beamlr, (find it somewhere lol) Now, make your UI as you want, then copy the ui elements in the beamlr ui file.
     
  9. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    61
    I removed the engine for an engine swap, now radiator is damaged, will not repair neither at garage not at home, and game won't let me install the new engine :(

    upload_2024-8-14_18-14-17.png
    --- Post updated ---
    Couple more things.. Small item delivery gets you similar money than trailer, that seems to make little sense as its far easier.

    The other thing is how does one find club races? I saw some of the race point in utah from streamers and whatnot, but I'm playing west coast.
     
  10. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    I'm glad you like the mod! You can make the traffic smarter by decreasing the risk value in options. This mod doesn't change traffic behavior in any way other than using custom risk values. Not sure what values are used in freeroam, if you drop the risk value too much traffic will still be quite stupid and come to a complete stop for no reason. One thing that could be to blame is traffic pooling, that feature is quite buggy. For example there will sometimes be invisible cars you can still hear drive by, it's possible other traffic vehicles still try to avoid them despite collisions being disabled.

    Yeah I also noticed that issue with the pickup. Nothing I can do to prevent that damage but I added a workaround for that in next version so damage under 1$ still allows part edits. Your only option for now would be to remove the radiator support by not selecting it when repairing. Then just cheat yourself the cost of buying a new one. If you add it after the engine hopefully it won't get damaged.

    The delivery rewards are calculated by taking a value based on distance to destination and scaling it based on fragility of the item being delivered. Some small item deliveries will pay more than trailer deliveries but a trailer delivery of the same distance and item fragility should pay more than a similar small item delivery. If you find specific missions that you think should get higher payouts let me know and I'll try to balance them.

    Right now to find race clubs use the maps linked on github, for next version I also added them to the GPS system. The East Coast map has a missing night only race club but that one is easy to find as it's basically right next to the home garage, in front of the convenience store.
     
    • Like Like x 1
  11. NordschleifeSpeeder

    NordschleifeSpeeder
    Expand Collapse

    Joined:
    Dec 15, 2022
    Messages:
    9
    So far I'm absolutely in love with this mod, even though I just wrecked my ETK Rennspecht (10k dollars in damages )

    The track races though are woefully unbalanced. I entered a D class race expecting to be pitted against ETKs and Bastions (they were all in stock togracs and a stambecco )

    I also wish track races saved damage. My heart was pumping like crazy until I realized nothing happened to my car after the race.

    Ended up pit-maneuvering everyone in the end

    Is multiplayer planned for this? I can see this ending up being extremely popular for how engaging it is.

    Also will there be a storyline?
     
  12. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    61
    Here's an example:
    upload_2024-8-15_19-33-1.png

    granted the trailer job is slightly closer, but you get the trailer complications, a much lower G, and I'd lkely never pick it over the small item which I can just rush with my sport car trough the very straight and flat bridge to the lighthouse
     
  13. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    I just checked and the mission files are definitely wrong, all trailer deliveries have lower base rewards than small item deliveries on west coast. I'll increase the values a bit for trailer deliveries.
     
    • Like Like x 1
  14. NordschleifeSpeeder

    NordschleifeSpeeder
    Expand Collapse

    Joined:
    Dec 15, 2022
    Messages:
    9
    Ok for some reason I tried repairing the front struts after hitting a killer curb and it stripped my car of its doors and its suspension system for no reason.

    Any fixes?
     
  15. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    BeamNG doesn't allow repairing only certain parts while leaving damaged parts attached so unless you click "Repair All" any part that's damaged and not selected to be repaired will be deleted, any undamaged part that's attached to a damaged part in the hierarchy (same as vanilla part editor) will be removed and added to the inventory. I added a message about this for next version as this seems to confuse new players.
     
  16. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    I'm not planning on adding multiplayer at least until official multiplayer happens. I don't think I'll add a storyline, I'd rather keep it open sandbox style.

    As for track event balance this is because I created performance classes based on data listed in vanilla configs, these numbers could be wrong but D class is mostly stock entry level vehicles. The cars are more balanced in better classes.

    Regarding damage not saving beamstate just isn't working anymore (been broken since 0.28) and the "lore" explanation is that the event joining fee basically pays for repairs, fuel and nitrous. It would be weird if you wanted to repair mid race but because you don't have the money it won't let you. So repairs are free for the duration of the event.
     
  17. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    61
    this mod is soo cool I finally found out races thanks to your map tip and having a blast. I wondering if you could use the car score to add to the race something like "easy, balanced, hard, impossible" to the opponent description on the race confirm dialog, it's a bit hard now to judge where one stands in term of performances, and I arrived definitedly overprepared to them so the bronze league was a waltz. maybe opponent can refuse races too? "your car is too expensive for this league come back with a cheaper one" or smth like that. Haven't tested track races yet, getting 500 reputation seem to need a lot of racing at bronze level, do later leagues give more rep per race?
     
  18. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    Yeah I'm planning on adding a restriction for car performance class on regular races, probably E D for bronze, C B for silver, A S X for gold and hero leagues. I don't want to give too much information on opponent performance, a big part of what made SLRR drag races a gamble is that you didn't know if the other car would be faster. The later leagues do give more rep but the easiest way to gain rep is high tier track events.
     
    • Like Like x 3
  19. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    61
    sorry for all the noise it's that I'm playing a lot :D

    there's a bug on club races, the races won counter doesn't increase. I did receive the reputation and cash reward, but the races won counter is stuck at 2

    idk if you have a log I can upload somewhere, but I tried to capture it in a video. sorry I'm afraid I'm not a fast driver so took a while to win and get back

    you can freeze frame at the beginning and end to see the race counter tho. thought to upload the full video in case it'd be useful.

    I can replicate this, this was actually the third race.

     
  20. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    595
    I can't recreate the problem on my end. Before anything else make sure the mod is correctly installed (not installed in the game folder, not installed as a zip in mods folder, not extracted zip in mods/unpacked folder) as file related problems are often caused by this. If that's not the issue, clear the console (~) before clicking "Claim Rewards" and see if there are any errors listed. If not, check the progress file for that club (beamLR\races\westCoastIslandRaceClub\progress) before and after completing a race, make sure you reload file changes (just close the text editor while racing), it should add an extra element to the list for the league you're in. If not, to pinpoint if the progress loading or saving is to blame try manually adding an extra element (like "race1" or another low number up to race11 which the last race file for that league, also make sure to finish the line with a comma) and then load into the scenario and see if the race club correctly shows an extra completed race. If it does that means the bug happens when league progress is saved, if it doesn't that means the loading is bugged. So I'll know where to investigate further.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice