WIP Beta released Generic City discussion and testing

Discussion in 'Terrains, Levels, Maps' started by jammin2222, Jun 6, 2020.

  1. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    Sorry for the troubles this map is causing. Long story short. I don't have a fix yet, but it seems to be a bug with the game that the dev's now have a support ticket for. They said they will look into it.

    I have looked through all the files and the log and nothing seems to be jumping out as a problem on my end.
    Some people including myself seem to be able to load the map without too much trouble, and others are having some painfully long load times.

    Ryzen CPU's seem to be causing the most issues for whatever reason. I don't have any control over what hardware is compatible and there is nothing I can do to make it work in that regard. If the map works for me and others I can only think the problem is with how the game handles different systems.

    As I said, the devs have a bug report ticket they will be looking into at some point, but I guess that will be a waiting game.
    The game has had a lot of updates since this map was made, and clearly something is no longer working like it should.
    What did I do to the map to update it?

    The map was made 5-6 years ago and it refused to load at all without clearing the cache when I started working on it again last month.
    I fixed all the errors in the log and removed any outdated files from the old days. The map was now loading for me without needing to clear the cache each time.

    As the map was nearly 600MB I was unable to upload it to the forum because of the 488MB limit.
    My next task was to clean up unused files and reduce the file size. This was a long tedious task that took about 10 days to work through.
    I am a noob when it comes to 3d modeling and Sketchup was used because I knew how to use it.
    I used any old textures I could find, so the textures were in .jpg, .png, .tga format of varying resolutions. While this worked, the randomness was not optimal. I needed to convert all the thousands of textures to the .dds format and make the resolutions standard sizes. This reduced the file size buy about half and seemed to boost the FPS a little too.
    As the map never had AI enabled I spent a few days drawing decal roads under all the mesh streets.
    The scenarios I had made years ago were kind of borked, and some just crashed the game. I had to relearn how make them too. Once they were fixed I was quite sure at this point the map was working, so I uploaded it.
    It soon became apparent that some people were having trouble loading it. As far as I can tell, everything is working.

    If you have any map making experience and would like to look through the files for any problems, I would be grateful.

    In the mean time all I can do is wait for the dev's to either point out my mistake or find the bug causing the issue.

    The latest version of the map is below, its the same version as the one on the repository at the moment. Any updates will be live here before the repo version is approved.
     

    Attached Files:

    #1 jammin2222, Jun 6, 2020
    Last edited: Jun 19, 2020
    • Like Like x 7
  2. zigav2000

    zigav2000
    Expand Collapse

    Joined:
    Mar 9, 2017
    Messages:
    13
    I'm pretty sure issues with loading occur for people with ryzen CPUs. I have a Ryzen 5 1600 and it doesn't load for me and I've noticed a few others with ryzen saying that it doesn't load for them either.
     
    • Agree Agree x 5
  3. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    That's interesting. If that is the case then I guess its a deeper issue than just the map itself. Not everyone with a problem has mentioned what their CPU is, so I can't rule anything out right now.
    I'm sure the map must have something not right though. Otherwise it would work for everyone.
     
  4. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,812
    The issue here is that, even if we wanna try to find errors or something, (for me anyways) the log is empty.
    I tried to look into it quickly and maybe find something you missed but its kinda hard when the game literally freezes and hangs on forever and leaves the LOG basically empty.

    If it is an amd cpu issue tho, i would hope that the devs could help you a bit more with that, cuz im not gonna be able to give you tips if the issues is deeply embedded in the game engine itself.

    ill try this map on a friend laptop when i can, its got an intel cpu instead. so if its really related to amd cpus then thats why it works for some and not for others.

    I really hope someone can shed some light on this issue. its a fun map and i was hyped when i saw it was back. but damn this issue is annoying.. i cant even try the map ffs....

    Good luck.
     
  5. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    when I close the map I get two possible clues in the log, I don't know if they are the problem.

    2803.96868|E|BNGBase::JsonV2::serializeStreamToFile|Failed writing serialized data: /levels/generic_city//main.forestbrushes4.json

    3024.80138|I|GELua.extensions|unable to unload module /levels/generic_city/mainLevel: not loaded

    The first one is forest related for sure.
    As the forest loads and saves changes when I add or remove items, I guess this is not too serious. Its only the data for storing the brushes if I understand correctly.

    What seems odd is the // between generic_city and main.forestbrushes4.json

    As the main.forestbrushes4.json is directly in the generic_city folder I would expect it to read like

    "Failed writing serialized data: /levels/generic_city/main.forestbrushes4.json"
    and not
    "Failed writing serialized data: /levels/generic_city//main.forestbrushes4.json"

    Its like it thinks its in an unnamed folder inside the generic_city folder or something. I'm not a programmer so I have no clue if that is whats going on.

    The second one is the script for turning the lights on at night. The lights function as intended but I don't know if there is something else wrong causing issues.

    This is the code for the lights if anyone can see a problem with it
    Code:
    local M = {}
    
    local function setAllLightsEnabled(group, value)
        for i = 0, group.obj:getCount(), 1 do
            local id = group.obj:idAt(i)
            local obj = scenetree.findObjectById(id)
            if obj and obj.obj:isSubClassOf('LightBase') then
                obj.obj:setLightEnabled( value )
            end
        end
    end
    
    local lastValue = nil
    
    local function onUpdate()
        local tod = scenetree.tod
        if not tod then return end
    
        local value = false
        if tod.time > 0.21 and tod.time < 0.77 then
            value = true
        end
    
        if lastValue == value then return end
        lastValue = value
    
        if scenetree.dynamiclights then
          setAllLightsEnabled(scenetree.dynamiclights, value )
        end
    end
    
    M.onUpdate = onUpdate
    
    return M
    That's as much info as I have gathered but I don't know what to do about it.
     
  6. raomak

    raomak
    Expand Collapse

    Joined:
    Jun 21, 2019
    Messages:
    73
    10 minutes of long loading( I hope you will do it more quickly
     
  7. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    what CPU do you have? amd or intel?
    The map loads for me in 1 minute 30 seconds, including time to start the game and pick a spawn point.
    I am keen to find a solution to the reported loading problem.
     
  8. Smapy

    Smapy
    Expand Collapse

    Joined:
    Apr 3, 2020
    Messages:
    3
    前述のように、マップをロードできません。

    PC構成
    CPU Intel Core i5 9400F
    DRAM 32GB
    GPU GTX1060 6 GB
     
  9. RobloxFan2

    RobloxFan2
    Expand Collapse

    Joined:
    Aug 28, 2019
    Messages:
    811
    Yes, it loads, BUT. I have to restart my game, then it works. I hope WhyBeAre reviews it like he did with the old version
     
  10. Nylando

    Nylando
    Expand Collapse

    Joined:
    Jun 6, 2020
    Messages:
    1
    Ryzen processor here! Apphang while loading Forest... Not able to load map at all.
     
    • Agree Agree x 2
  11. RobloxFan2

    RobloxFan2
    Expand Collapse

    Joined:
    Aug 28, 2019
    Messages:
    811
    Try this: close game and restart and lets see how that goes ;)
    It worked for me
     
  12. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    When I first started to update the map it wouldn't load unless I cleared the cache first. After I started clearing up bloat and fixing the errors in the log it became more stable and now rarely crashes for me.
    Oh dear, another ryzen cpu not liking it. That's interesting. Seems I might not have a fix for a while. I will have to see if any intel users respond saying it wont load.
     
    • Agree Agree x 1
  13. RobloxFan2

    RobloxFan2
    Expand Collapse

    Joined:
    Aug 28, 2019
    Messages:
    811
    Also, offtopic, but do you have any plans on bringing your other removed maps back? Or is this the only map?
    OT:
    Is this supposed to be like this?
     

    Attached Files:

    • AAAAAAA.jpg
  14. Somethingrio

    Somethingrio
    Expand Collapse

    Joined:
    Apr 8, 2020
    Messages:
    445
    hi, I have a ryzen 3 3200G with a GTX1050 (2GB) and 8GB of corsair ddr4 ram I think the issue is with AMD CPU's or maybe this is a stretch the ''DRIVE'' it's on EG. HDD or SSD or M.2 Idk :(also the mod looks great can't wait to use it

    .CPU RYZEN 3 3200G (quad core)
    .GPU NVIDIA GTX 1050 (2GB)
    .RAM CORSAIR DDR4 RAM (8GB) DUAL CHANNEL SPEED(?)
     
    #14 Somethingrio, Jun 6, 2020
    Last edited: Jun 6, 2020
  15. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    If it behind a building away from the road then probably. I haven't changed the terrain since years ago. There are janky bits like that everywhere. There wasn't the align to mesh tool back then.
    If it turns out to be a cpu problem Its unlikely I can fix it without getting a dev to fix the game it's self. I have no control on how the map talks to the CPU :( I hope its just a mistake I made in the map that can be fixed if I can.
     
  16. SubaruSTI07™

    SubaruSTI07™
    Expand Collapse

    Joined:
    Sep 26, 2017
    Messages:
    3,714
    This version loads faster.
     
    • Agree Agree x 1
  17. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    I updated this map. It was called Road land island place map. I changed it to bendy road not to be confused with Bendy Hill.
    https://www.beamng.com/threads/bendy-road.71049/
    Its weird, the more I load the map the faster is seems to load. When I first stated working on it again it took ages. Now its a minute and a half. It does have issues still I'm sure.
     
  18. den_chik

    den_chik
    Expand Collapse

    Joined:
    Dec 12, 2019
    Messages:
    877

    Attached Files:

    • 2020-06-07at00-57-00.png
    • Agree Agree x 3
  19. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    My I7 2600k seems to have 5 threads active while loading, but total usage never goes above 35% the whole time. (I have 8 threads)

    I have sent a pm to a moderator in the hope they can enlighten me.

    As for the image of it stuck on the barn, its the exact same barn model that's in Bendy road. If you can load that then I can't see whats different here. The only difference is the file path to the materials. I will double check it just in case something went wonky.

    Edit: Nothing went wonky with the barn.
     
    #19 jammin2222, Jun 7, 2020
    Last edited: Jun 7, 2020
  20. den_chik

    den_chik
    Expand Collapse

    Joined:
    Dec 12, 2019
    Messages:
    877
    This thread version was loaded for 19 min for me.
     
  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