avatar
abyssplus
REGULAR
1Issues
0Score
  • Completely agree with this! I dont think they realise just how many community server are severely messed up right now, my Chernarus one included

  • I have the opposite problem, 3 storms in 4 hours, 40 mins long each

  • Hey, adding more info here since this is still broken for us and it's a big deal for console servers.


    We run a few PS4 community servers on Nitrado. Our main Chernarus server has around 13,300 rocks, trees, bushes, grass and ivy placed through objectSpawnersArr using p3d paths (DZ\rocks\..., DZ\plants\..., DZ\plants_bliss\...), spread over 56 of our custom spawner files. That's years of work. Since 1.30 none of them show up for players, but they're still there. You can't see them but you can hit them, I crashed straight into one of my own rocks earlier today. Everything placed by class name in the same files (buildings, walls, props) still shows fine, and the server doesn't log any error for the p3d ones, so as far as the server is concerned they spawned.


    I think I found why. In scripts/3_game/objectspawner.c, SpawnObject():


    1.29.163709:

    object = g_Game.CreateStaticObjectUsingP3D(item.name, vector.ArrayToVec(item.pos), vector.ArrayToVec(item.ypr),scale);


    1.30.164078:

    object = g_Game.CreateStaticObjectUsingP3D(item.name, vector.ArrayToVec(item.pos), vector.ArrayToVec(item.ypr),scale, true);


    The 5th parameter of CreateStaticObjectUsingP3D in game.c is createLocal. So every p3d object from the object spawner now only gets created on the server and never gets sent to clients. That's exactly what we're seeing: server side collision, nothing on screen. That extra argument is the only change to the p3d branch between 1.29 and 1.30, and OnGameplayDataHandlerLoad only runs on the server, so nothing ever creates them client side either. It's still the same in the 1.30.164200 scripts you put up in dayz-script-diff.


    What we tried before posting this:


    - Switched the paths to the matching config classes (Static_rock_monolith1, TreeHard_t_PiceaAbies_3f, BushSoft_b_betulaHumilis_1s etc). We tested all 186 rock/tree/bush classes our files would need on our test server and every single one failed with:

    ENTITY (E): Type 'TreeHard_t_PiceaAbies_3f' must be inherited from class 'ObjectTyped'

    Object spawner failed to spawn TreeHard_t_PiceaAbies_3f

    StaticObj_ classes in the same file (StaticObj_stone4_sand, StaticObj_Roadblock_CncBlocks_short) spawned fine, so the class name route just isn't open for vegetation.

    - Went through every cfggameplay.json setting and every field the spawner json reads (name, pos, ypr, scale, enableCEPersistency, customString). Nothing touches this.

    - On console we can't use init.c or mods, so there's no way around it on our end. The only natural looking stuff that can be spawned by class is the small sand stones, fallen beech trees and stumps, and a couple of embankment pieces. That doesn't come close to replacing what we had.


    Possible fixes:


    1. Easiest by far: take the true back out (go back to the 1.29 call). It's one argument, and it's exactly how it worked in 1.29.

    2. If creating them locally was on purpose (performance?), please make it optional. A per-object flag in the spawner json like enableCEPersistency (something like "createLocal": false), or a setting in cfggameplay.json, would keep your default and let us opt out.

    3. Or make the rock/tree/bush classes creatable through the class name branch, so we can convert our files over.


    Option 1 or 2 fixes it for every console server that built with p3d paths, and on console the object spawner is the only way we have to place trees or rocks at all. Right now a lot of console communities have invisible walls all over their maps that players keep running and driving into.


    Happy to test anything on our test server if it helps.


    Thanks

  • Please sort this as soon as possible. 1000s of community servers are affected by this.

    Thanks