dayz吧 关注:660,707贴子:6,177,163

小萌新腐竹经验总结。

只看楼主收藏回复

开了小pve服一周了(非宣传贴),遇到了各种问题,最后都解决了,分享一下。


IP属地:江苏1楼2022-07-18 13:59回复
    \DayZServer\mpmissions\dayzOffline.chernarusplus\db里的文件


    IP属地:江苏2楼2022-07-18 14:00
    回复
      2026-06-27 12:46:37
      广告
      不感兴趣
      开通SVIP免广告
      types.xml文件,物品刷新最大最小数量,刷新频率,刷新位置,刷出来的品质,多久被刷掉都在这里修改,萌新走了好多弯路才琢磨出来。
      <type name="MoneyRuble100"> ##物品的名字(游戏里的是和谐名,物品名并不完全对应)
      <nominal>250</nominal> ##最大数量
      <lifetime>7200</lifetime> ##被刷掉的时间,即刷出后在地图上存在的时间,单位是秒,车辆改成3888000可以不被刷掉(这些车辆一般不是服务器初始刷新的,是通过管理员工具刷出来活着商店买的,初始刷的好像不会刷没...)
      <restock>0</restock> ##地图上的物品数量降低到最小值之后,重新刷新至最大值的时间间隔
      <min>200</min> ##最小值
      <quantmin>1</quantmin> ##最小数量,-1值即禁用,一般是子弹啥的数量
      <quantmax>5</quantmax> ##最大数量,同上
      <cost>100</cost> ##不懂
      <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> #物品是否被计数,0为不计入,1为记入。cargo是在车箱内、hoarder是在容器内、map是地板上、player是玩家身上,crafted是被组合活着改动后。简单说就是,如果东西被放进车厢或者玩家身上这个物品就不在计入刷新上限。
      <category name="tools"/> ##物品的类型
      <tag name="shelves"/>
      <usage name="Town"/> ##物品可以被刷新的位置,hunt猎人小屋,town楼房,village平房,如果有value则是刷新级别,不同房屋有不同等级,修改value可以改变刷出的位置限制。
      <usage name="Village"/>
      <usage name="Hunting"/>
      </type>


      IP属地:江苏3楼2022-07-18 14:15
      回复
        event文件,修改动物,车辆上限,移除随机毒区,坠机点等
        <event name="AnimalCow"> ### 动物名字
        <nominal>70</nominal>###重启服务器会刷出来的动物数量
        <min>20</min>###最小数量
        <max>30</max>###最大数量
        <lifetime>180</lifetime>###刷出来后离开玩家200米后存在的时间
        <restock>0</restock>###数量到达最小数量后刷新间隔
        <saferadius>200</saferadius>###靠近后刷新的距离?
        <distanceradius>0</distanceradius>
        <cleanupradius>0</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="1"/>
        <position>fixed</position> ###位置在spawnevent文件里
        <limit>child</limit>
        <active>1</active>
        <children>###刷新的动物种类和数量,不知道概率怎么改
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurusF_Brown"/>
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurusF_Spotted"/>
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurusF_White"/>
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurus_Brown"/>
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurus_Spotted"/>
        <child lootmax="0" lootmin="0" max="1" min="0" type="Animal_BosTaurus_White"/>
        </children>
        </event>


        IP属地:江苏4楼2022-07-18 14:28
        回复
          或许你更新更新怎么打模组比较好,这些太简单了


          来自Android客户端5楼2022-07-18 22:20
          收起回复
            其实吧 XTQ论坛上面 这些都很详细的


            IP属地:广东来自Android客户端6楼2022-07-19 02:09
            收起回复


              IP属地:北京7楼2022-07-19 07:10
              回复
                基本算是摸清了 恭喜你 记得勤备份


                IP属地:日本8楼2022-07-21 14:54
                回复
                  2026-06-27 12:40:37
                  广告
                  不感兴趣
                  开通SVIP免广告
                  芜湖,刚刚解决了让模组车像系统车一样在地图上刷新的难题,迫不及待地分享一波。
                  需要修改的文件types.xml
                  event.xml
                  cfgeventspawn.xml
                  cfgspawnabletypes.xml
                  四个文件
                  types文件用于添加模组车和车的配件,防止车在刷出后无法保存
                  event用于添加模组车的生成规则
                  cfgeventspawn用于添加模组车的刷新位置,即刷车点
                  cfgspawnabletypes是修改车辆生成时带有各种配件的几率


                  IP属地:江苏9楼2022-07-22 16:29
                  回复
                    types.xml文件示例,示例车辆cars模组的jeep车,在模组文件里找到对应types文件,将车辆本体,车门,车轮等依次复制粘贴。3888000是几乎不会刷没的时间。
                    <types>
                    ##以下片段插入到<types></types>之间
                    <type name="Jeep_Wrangler_black">
                    <nominal>0</nominal>
                    <lifetime>3888000</lifetime>
                    <restock>1800</restock>
                    <min>0</min>
                    <quantmin>-1</quantmin>
                    <quantmax>-1</quantmax>
                    <cost>100</cost>
                    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
                    <category name="vehiclesparts"/>
                    </type>
                    <type name="Jeep_Wrangler_Doors_Driver_black">
                    <nominal>0</nominal>
                    <lifetime>3888000</lifetime>
                    <restock>1800</restock>
                    <min>0</min>
                    <quantmin>-1</quantmin>
                    <quantmax>-1</quantmax>
                    <cost>100</cost>
                    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
                    <category name="vehiclesparts"/>
                    </type>
                    <type name="Jeep_Wrangler_Doors_coDriver_black">
                    <nominal>0</nominal>
                    <lifetime>3888000</lifetime>
                    <restock>1800</restock>
                    <min>0</min>
                    <quantmin>-1</quantmin>
                    <quantmax>-1</quantmax>
                    <cost>100</cost>
                    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
                    <category name="vehiclesparts"/>
                    </type>
                    <type name="Jeep_Wrangler_Doors_Hood_black">
                    <nominal>0</nominal>
                    <lifetime>3888000</lifetime>
                    <restock>1800</restock>
                    <min>0</min>
                    <quantmin>-1</quantmin>
                    <quantmax>-1</quantmax>
                    <cost>100</cost>
                    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
                    <category name="vehiclesparts"/>
                    </type>
                    <type name="Jeep_Wrangler_Doors_trunk_black">
                    <nominal>0</nominal>
                    <lifetime>3888000</lifetime>
                    <restock>1800</restock>
                    <min>0</min>
                    <quantmin>-1</quantmin>
                    <quantmax>-1</quantmax>
                    <cost>100</cost>
                    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
                    <category name="vehiclesparts"/>
                    </type>
                    <type name="Jeep_Wrangler_Wheel">
                    ##
                    </types>


                    IP属地:江苏10楼2022-07-22 16:33
                    回复
                      event.xml,用于添加事件,基本复制原本的车辆事件小加修改即可,这里尤其说明一点,那就是事件的命名。
                      <event name="vehicleJeepWrangler">
                      <nominal>2</nominal>
                      <min>1</min>
                      <max>3</max>
                      <lifetime>300</lifetime>
                      <restock>0</restock>
                      <saferadius>500</saferadius>
                      <distanceradius>500</distanceradius>
                      <cleanupradius>200</cleanupradius>
                      <flags deletable="0" init_random="0" remove_damaged="1"/> ##以上基本不用改,min和max是最大最小数量,nominal似乎是重启服务器后会生成的数量
                      <position>fixed</position>
                      <limit>mixed</limit>
                      <active>1</active>
                      <children>
                      <child lootmax="0" lootmin="0" max="3" min="1" type="Jeep_Wrangler_black"/> ##这里的type就用前面types里面的车名字即可,max和min也是最大最小。像增加其他的种类就复制<child>这一行继续续改types
                      </children>
                      </event>
                      最最重要的地方,event想要正常运行,事件的命名必须遵循一定的规则
                      即车辆事件的命名一定要以vehicle开头,同样动物事件是animal开头,其他的如僵尸是zombie开头等,是楼主一直失败的关键原因。
                      错误示例:<event name="JeepWrangler"> ×
                      正确示例:<event name="vehicleJeepWrangler"> √


                      IP属地:江苏11楼2022-07-22 16:39
                      回复
                        cfgeventspawn.xml 添加刷车点
                        可以复制原有车辆的刷车点,也可以自己在地图上根据坐标添加,放个示例
                        <event name="vehicleJeepWrangler">
                        <pos x="3776.952881" z="311.487122" a="9015.839844" />
                        <pos x="6027.444824" z="302.248749" a="7703.151367" />
                        <pos x="2824.836426" z="211.006989" a="5420.395508" />
                        </event>
                        记得event name要和event.xml里面的命名一致


                        IP属地:江苏12楼2022-07-22 16:41
                        回复
                          cfgspawnabletypes.xml 修改车辆刷新时带有配件的几率,很简单,对照修改即可
                          <type name="Jeep_Wrangler_black">
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Wheel" chance="0.80" /> ##车轮,概率为80%
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Wheel" chance="0.80" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Wheel" chance="0.80" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Wheel" chance="0.80" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="CarRadiator" chance="0.60" /> #散热器,60%
                          </attachments>
                          <attachments chance="1.00">
                          <item name="CarBattery" chance="0.60" /> #汽车电池,60%
                          </attachments>
                          <attachments chance="1.00">
                          <item name="SparkPlug" chance="0.60" /> #火花塞,60%
                          </attachments>
                          <attachments chance="1.00">
                          <item name="HeadlightH7" chance="0.40" /> #大灯,40%
                          </attachments>
                          <attachments chance="1.00">
                          <item name="HeadlightH7" chance="0.40" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Doors_Driver_black" chance="0.30" /> #后面几个是车门,引擎盖,后备箱的概率
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Doors_coDriver_black" chance="0.30" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Doors_Hood_black" chance="0.30" />
                          </attachments>
                          <attachments chance="1.00">
                          <item name="Jeep_Wrangler_Doors_trunk_black" chance="0.30" />
                          </attachments>
                          </type>


                          IP属地:江苏13楼2022-07-22 16:45
                          回复
                            导航帖
                            ①types文件各参数说明
                            ②event文件中动物刷新数量修改
                            ③实现用刷系统车的方法在地图上刷新模组车


                            IP属地:江苏14楼2022-07-22 16:47
                            回复
                              2026-06-27 12:34:37
                              广告
                              不感兴趣
                              开通SVIP免广告
                              楼主,我想问一下,我调完配置文件,重新开档,发现只刷车跟僵尸,物资什么的都不刷了,这是什么情况


                              IP属地:北京来自iPhone客户端15楼2022-08-02 22:05
                              收起回复