Spawning Vehciles?

Discussion in 'Sahrani' started by underground, Mar 10, 2013.

  1. underground

    underground New Member

    Joined:
    Feb 17, 2013
    Messages:
    6
    Likes Received:
    0
    I'm using Stapo's Light Server package, and Sahrani 0.21 and having trouble spawning vehicles. It spawns a couple of them but not very many.
    I also have my pMain function as follows.
    My pSpawn function
    My cleanupOOB
    Also I have my object_classes table set to spawn a MAX of each vehicle at 15 and the chance is set to 9 on each vehicle. And I'm only getting a maximum spawns of 53. I also am not sure if I need a vehicle spawn script or not but I do not have one if I do. Any ideas how to increase the number of spawns? Thank you much for your help.
     
  2. underground

    underground New Member

    Joined:
    Feb 17, 2013
    Messages:
    6
    Likes Received:
    0
    I found it, It's in pMain functions in this line

    I changed 50 to 700 which is around the numbers in the object_classes table.
     
  3. Zeehond23

    Zeehond23 Valued Member!

    Joined:
    Mar 7, 2013
    Messages:
    596
    Likes Received:
    52
    Changed the max of each to 20, and chance to 0.9.
    I chaned the pMain in the database to 700, but still get a max of 50~ vehicles.

    Am I missing something?
     
  4. cen

    cen Valued Member!

    Joined:
    Feb 14, 2013
    Messages:
    816
    Likes Received:
    74
    You need spawn points for all the vehicles. I don't remember how many come with default, but it isn't a ton.
     
  5. Zeehond23

    Zeehond23 Valued Member!

    Joined:
    Mar 7, 2013
    Messages:
    596
    Likes Received:
    52
    The Object Spawns tab has over a 1000 entries. Are these not the spawnpoints of all vehicles?
     
  6. Nonov Urbizniz

    Nonov Urbizniz OpenDayZ Rockstar! Staff Member

    Joined:
    Jan 20, 2013
    Messages:
    798
    Likes Received:
    166
    Yeah there are 1,333 vehicle spawn points in the SQL tables... They are a limited number of vehicles defined there, but obviously that's easily editable to any of our new vehicles... although there are not a ton of spawn points available for all the large planes/heli's, and some of the spawns are for positions that are slightly altered in our version compared to when they were originally done, however it's VERY few.

    We had lots of great ideas for the spawn system to auto randomize but no work ever got done on it.

    It's all available on the github in mission form too, and there are some tools in there that make it easier to convert between .beidi/sqf format for positions...

    With how simple the random spawn logic seems to be I might eventually do the random vehicles spawning too, that was the idea of having so many positions, that you would never know where X car was in X town, it could be in any of the towns in a certain zone...
     
  7. Zeehond23

    Zeehond23 Valued Member!

    Joined:
    Mar 7, 2013
    Messages:
    596
    Likes Received:
    52
    so what do I have to do to up the vehicle count on the server? 53 on an island that large is pretty low considering the number of people living there (or rather, used to live there).
     
  8. Zeehond23

    Zeehond23 Valued Member!

    Joined:
    Mar 7, 2013
    Messages:
    596
    Likes Received:
    52
    so what do I have to do to up the vehicle count on the server? 53 on an island that large is pretty low considering the number of people living there (or rather, used to live there).
     
  9. Nonov Urbizniz

    Nonov Urbizniz OpenDayZ Rockstar! Staff Member

    Joined:
    Jan 20, 2013
    Messages:
    798
    Likes Received:
    166
    You have to execute pMain() a TON of times to get it to spawn more, call it like 20-30 times, restart the server, check the vehicle count, call it again a ton, restart etc... I have no clue why it works like that but it's been that way for every map/mod I ever admined for... it doesn't just look at the max and spawn that many...
     

Share This Page