Jump to content

some issues

Closed 1.0.6

fuscazo
fuscazo

Posted (edited)

hi, just bought the plugin. i have configure only green and blue maps, and i'm testing them and have run into some issues. idk if it's me doing something wrong or if it's a bug, so i will ask.

this is my config file so far

1) even though i have set scrap at 100% probabilty ("Probability": 1.0) for both maps, a lot of times i don't get scrap in the chests. and its the only item with 100% chance... the rest all have "Probability:" 0.1 OR "Probability:" 0.2

2) the chest sometimes spawns is extremely awkward places. for example inside or right outside of the outpost, which makes it impossiblo to loot since the spawned NPCs will shoot you but you cant kill them.

3) is there a way to spawn blueprints of an object? 

4) also, can maps drop from any container? i havent seen one droping from a barrel even thought i've set it in the config. maybe its only from lootable and not from breakable prebabs? EDIT: i actually looted 1 map from a barrel today, so i answer myself. took my close to 1000 barrels, i guess i gotta raise the percentage, i had 3% on all barrels tho, so feels like too little 1 out of 1000 but idk.

thx for your help!

TreasureMaps.json

Edited by fuscazo
forgot something
copcopekcro

Posted

Hey there..all worked so far just fine !
I tested now that 1.0 for scrap with some other items (my config)
It worked just fine ! from 20 boxes in all 20 boxes i got scrap .

About spawning chests ,,yea they can spawn now in safe zones...i will update that ,i will add check for safe zone !

Bp items no for now ,but maybe i add that in same update with that safe zone check ...

About drop rate for maps in prefabs ... its from  1 to 100 % ... yea you can put just bigger number than 3 %, and it should be just fine !
If you have loottable plugin ,,you can just add there maps ,their drop rates ...If that works better for you ...

Anyway i will try to improve all that !

{
      "CustomStackSize": 10,
      "ItemDisplayName": "Green Map",
      "ItemShortname": "xmas.present.large",
      "SkinID": 3073615238,
      "SpawnedPrefabChest": "assets/prefabs/deployable/woodenbox/woodbox_deployed.prefab",
      "SpawnedPrefabSkin": 1818868472,
      "MinItemPerChest": 1,
      "MaxItemPerChest": 5,
      "LootTable": "greenmap",
      "LootTables": {
        "greenmap": [
          {
            "DisplayName": "",
            "Shortname": "scrap",
            "SkinID": 0,
            "MaxItemAmount": 50,
            "MinItemAmount": 25,
            "Probability": 1.0
          },
          {
            "DisplayName": "",
            "Shortname": "stones",
            "SkinID": 0,
            "MaxItemAmount": 1000,
            "MinItemAmount": 750,
            "Probability": 1
          },
          {
            "DisplayName": "",
            "Shortname": "wood",
            "SkinID": 0,
            "MaxItemAmount": 2000,
            "MinItemAmount": 1250,
            "Probability": 0.5
          },
          {
            "DisplayName": "",
            "Shortname": "lowgradefuel",
            "SkinID": 0,
            "MaxItemAmount": 60,
            "MinItemAmount": 30,
            "Probability": 0.2
          },
          {
            "DisplayName": "",
            "Shortname": "cloth",
            "SkinID": 0,
            "MaxItemAmount": 60,
            "MinItemAmount": 30,
            "Probability": 0.2
          }
        ]
      },
      "NPCSpawns": [
        {
          "NPCPath": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_roam.prefab",
          "SpawnCount": 0,
          "SpawnRadius": 5.0
        }
      ],
      "Spawns": [
        {
          "PrefabPath": "assets/bundled/prefabs/radtown/crate_normal_2.prefab",
          "SpawnChance": 100.0
        }
      ],
      "SpawnBradley": false,
      "BradleyHealth": 5000,
      "MinCratesToSpawn": 10,
      "MaxCratesToSpawn": 10
    },
This config worked just fine ,without any issue .

copcopekcro

Posted

I updated bp items ,,,you will be able to give bp item in chest ...and i fixed spawning in safe zones ...
It will be later tonight...i will probably add more things .

fuscazo

Posted

26 minutes ago, copcopekcro said:

I updated bp items ,,,you will be able to give bp item in chest ...and i fixed spawning in safe zones ...
It will be later tonight...i will probably add more things .

wow man thx so much, great job!

 

about the scrap... i dont know what can be causing conflict in my config file, but like 20% of the times i dont get scrap and get 2 different items. i will try to read all the config file again see if i can find anything.

 

by the way, do you know how to put blueprints in the boxes? is it just the normal shortname plus bp at the end? i tried pistol.revolver.bp but it didnt work.

 

thx for the work, iappreciate the quick response ❤️ 

copcopekcro

Posted (edited)

{
            "DisplayName": "",
            "Shortname": "rifle.ak",
            "SkinID": 0,
            "MaxItemAmount": 1,
            "MinItemAmount": 2,
            "Probability": 1.0,
            "IsBlueprint": true
          },
in new update you will have this in config ..you just put true on "IsBlueprint" and you will get bp not item

I didnt look your all config..but if you have more than one item with 1.0 it will look for only 1 for first item ,then it will look again for other items..so it can happend if you have 2 items with 1.0 ,that you get only one of them...
I think i will update that also ..that you always get items with 1.0 in cfg 

Edited by copcopekcro
fuscazo

Posted

this is my last version.

no, all items have 0.1 or 0.2, except scrap which have 1.0 because i wanted the treasures to have a nice guaranteed scrap amount.

i just read the whole config again and can't find what may be causing scrap not to always appear. 🤷‍♂️

TreasureMaps.json

copcopekcro

Posted

1 hour ago, fuscazo said:

this is my last version.

no, all items have 0.1 or 0.2, except scrap which have 1.0 because i wanted the treasures to have a nice guaranteed scrap amount.

i just read the whole config again and can't find what may be causing scrap not to always appear. 🤷‍♂️

TreasureMaps.json 18.19 kB · 0 downloads

i will make fix for that 😉

copcopekcro

Posted

47 minutes ago, fuscazo said:

❤️

I updated version ... i didnt fix that 1.0 to always be inside of loot..will do that in day or two 😉 .... 
Fixed safe zone,added bp of items ..
Added stats for npc (health,dmg,kit,default/custom loot)
Ty for your patience ! 

fuscazo

Posted

8 minutes ago, copcopekcro said:

I updated version ... i didnt fix that 1.0 to always be inside of loot..will do that in day or two 😉 .... 
Fixed safe zone,added bp of items ..
Added stats for npc (health,dmg,kit,default/custom loot)
Ty for your patience ! 

ty for your quickness ❤️ amazing job

fuscazo

Posted (edited)

everything is working fine, except this error when killing a NPC. it's giving random loot instead of the loot i've set in the config.
 

(01:10:20) | Failed to call hook 'OnCorpsePopulate' on plugin 'TreasureMaps v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)

at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0005e] in <77c7c3cb49744ec6a3f31b19ec81dcc4>:0

at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0004f] in <77c7c3cb49744ec6a3f31b19ec81dcc4>:0

at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <77c7c3cb49744ec6a3f31b19ec81dcc4>:0

at Oxide.Plugins.TreasureMaps.OnCorpsePopulate (ScientistNPC entity, NPCPlayerCorpse corpse) [0x0008f] in <b9d4b84fe958487db766d19b4410753d>:0

at Oxide.Plugins.TreasureMaps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ad] in <b9d4b84fe958487db766d19b4410753d>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

(01:10:20) | Treasure Guard[6050665] was killed by Lito[76561198332954876] at (-613.15, 5.31, -965.90)

and this is my config for the NPC part
 

"NPCSpawns": [
        {
          "SpawnCount": 2,
          "SpawnRadius": 5.0,
          "EntityDisplayName": "Treasure Guard",
          "Health": 100,
          "RoamRange": 5.0,
          "ChaseRange": 30.0,
          "SenseRange": 20.0,
          "ListenRange": 10.0,
          "AttackRangeMultiplier": 1.0,
          "CheckVisionCone": true,
          "VisionCone": 140.0,
          "HostileTargetsOnly": false,
          "DamageScale": 1.0,
          "AimConeScale": 1.0,
          "Speed": 6.0,
          "MemoryDuration": 10.0,
          "Kit": "treasureguard",
          "WearItems": [
            {
              "ShortName": "",
              "SkinID": 0
            }
          ],
          "BeltItems": [
            {
              "ShortName": "",
              "Amount": 0,
              "SkinID": 0,
              "Mods": [
                ""
              ],
              "Ammo": 0
            }
          ],
          "CustomLoot": true,
          "LootTable": [
            {
              "DisplayName": "",
              "Shortname": "keycard_green",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "syringe.medical",
              "SkinID": 0,
              "MaxItemAmount": 3,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "ammo.rifle",
              "SkinID": 0,
              "MaxItemAmount": 25,
              "MinItemAmount": 11,
              "Probability": 0.5,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "ammo.pistol",
              "SkinID": 0,
              "MaxItemAmount": 25,
              "MinItemAmount": 11,
              "Probability": 0.5,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "grenade.f1",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.2,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "fuse",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
			{
              "DisplayName": "",
              "Shortname": "keycard_blue",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.3,
              "IsBlueprint": false
            }
          ]
        }
      ],

i also attach the whole config file just in case you need it

also i put this picture so you can see how the loot from the guard NPC is absolutely random if you compare it to the one in my config file

also i've noticed something VERY IMPORTANT. for some reason, Treasure Maps is not loading on server start and have to manually load it. its the only plugin doing that in my server. and didnt happen before 1.0.6. Speceially important if your server has daily restart.

i've also noticed that even tho i have chests set to drop 4-5 items, they sometimes drop 2 and 3 items only. i even found only 1 item, the scrap, in this gold map chest, and as you can see in the config is set to 4-5 items. 
https://gyazo.com/35a527968bbe94237f30b59e3e558cb6

 

treasureguardlootisrandom.jpg

TreasureMaps.json

Edited by fuscazo
forgot something
copcopekcro

Posted

are you using this config :
{ "SpawnCount": 2, "SpawnRadius": 5.0, "EntityDisplayName": "Treasure Guard", "Health": 100, "RoamRange": 5.0, "ChaseRange": 30.0, "SenseRange": 20.0, "ListenRange": 10.0, "AttackRangeMultiplier": 1.0, "CheckVisionCone": true, "VisionCone": 140.0, "HostileTargetsOnly": false, "DamageScale": 1.0, "AimConeScale": 1.0, "Speed": 6.0, "MemoryDuration": 10.0, "Kit": "treasureguard", "WearItems": [ { "ShortName": "", "SkinID": 0 } ], "BeltItems": [ { "ShortName": "", "Amount": 0, "SkinID": 0, "Mods": [ "" ], "Ammo": 0 } ], "CustomLoot": true, "LootTable": [ { "DisplayName": "", "Shortname": "keycard_green", "SkinID": 0, "MaxItemAmount": 1, "MinItemAmount": 1, "Probability": 0.5, "IsBlueprint": false },
or :
NPCSpawns": [
        {
          "SpawnCount": 1,
          "SpawnRadius": 5.0,
          "EntityDisplayName": "Treasure Guard",
          "Health": 150,
          "RoamRange": 5.0,
          "ChaseRange": 30.0,
          "SenseRange": 20.0,
          "ListenRange": 10.0,
          "AttackRangeMultiplier": 1.0,
          "CheckVisionCone": true,
          "VisionCone": 140.0,
          "HostileTargetsOnly": false,
          "DamageScale": 1.0,
          "AimConeScale": 1.0,
          "Speed": 6.0,
          "MemoryDuration": 10.0,
          "Kit": "",
          "WearItems": [
            {
              "ShortName": "",
              "SkinID": 0
            }
          ],
          "BeltItems": [
            {
              "ShortName": "",
              "Amount": 0,
              "SkinID": 0,
              "Mods": [
                ""
              ],
              "Ammo": 0
            }
          ],
          "CustomLoot": true,
          "LootTable": [
            {
              "DisplayName": "",
              "Shortname": "keycard_green",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },

 

fuscazo

Posted

4 minutes ago, copcopekcro said:

are you using this config :
{ "SpawnCount": 2, "SpawnRadius": 5.0, "EntityDisplayName": "Treasure Guard", "Health": 100, "RoamRange": 5.0, "ChaseRange": 30.0, "SenseRange": 20.0, "ListenRange": 10.0, "AttackRangeMultiplier": 1.0, "CheckVisionCone": true, "VisionCone": 140.0, "HostileTargetsOnly": false, "DamageScale": 1.0, "AimConeScale": 1.0, "Speed": 6.0, "MemoryDuration": 10.0, "Kit": "treasureguard", "WearItems": [ { "ShortName": "", "SkinID": 0 } ], "BeltItems": [ { "ShortName": "", "Amount": 0, "SkinID": 0, "Mods": [ "" ], "Ammo": 0 } ], "CustomLoot": true, "LootTable": [ { "DisplayName": "", "Shortname": "keycard_green", "SkinID": 0, "MaxItemAmount": 1, "MinItemAmount": 1, "Probability": 0.5, "IsBlueprint": false },
or :
NPCSpawns": [
        {
          "SpawnCount": 1,
          "SpawnRadius": 5.0,
          "EntityDisplayName": "Treasure Guard",
          "Health": 150,
          "RoamRange": 5.0,
          "ChaseRange": 30.0,
          "SenseRange": 20.0,
          "ListenRange": 10.0,
          "AttackRangeMultiplier": 1.0,
          "CheckVisionCone": true,
          "VisionCone": 140.0,
          "HostileTargetsOnly": false,
          "DamageScale": 1.0,
          "AimConeScale": 1.0,
          "Speed": 6.0,
          "MemoryDuration": 10.0,
          "Kit": "",
          "WearItems": [
            {
              "ShortName": "",
              "SkinID": 0
            }
          ],
          "BeltItems": [
            {
              "ShortName": "",
              "Amount": 0,
              "SkinID": 0,
              "Mods": [
                ""
              ],
              "Ammo": 0
            }
          ],
          "CustomLoot": true,
          "LootTable": [
            {
              "DisplayName": "",
              "Shortname": "keycard_green",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },

 

what's the difference between those 2? i can't see any difference apart from the second one having "NPCSpawns": [" at the start, no?

I'm using exactly this one:

"NPCSpawns": [
        {
          "SpawnCount": 2,
          "SpawnRadius": 5.0,
          "EntityDisplayName": "Treasure Guard",
          "Health": 175,
          "RoamRange": 5.0,
          "ChaseRange": 30.0,
          "SenseRange": 20.0,
          "ListenRange": 10.0,
          "AttackRangeMultiplier": 1.0,
          "CheckVisionCone": true,
          "VisionCone": 140.0,
          "HostileTargetsOnly": false,
          "DamageScale": 1.0,
          "AimConeScale": 1.0,
          "Speed": 6.0,
          "MemoryDuration": 10.0,
          "Kit": "treasureguard",
          "WearItems": [
            {
              "ShortName": "",
              "SkinID": 0
            }
          ],
          "BeltItems": [
            {
              "ShortName": "",
              "Amount": 0,
              "SkinID": 0,
              "Mods": [
                ""
              ],
              "Ammo": 0
            }
          ],
          "CustomLoot": true,
          "LootTable": [
            {
              "DisplayName": "",
              "Shortname": "keycard_green",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "syringe.medical",
              "SkinID": 0,
              "MaxItemAmount": 3,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "ammo.rifle",
              "SkinID": 0,
              "MaxItemAmount": 25,
              "MinItemAmount": 11,
              "Probability": 0.5,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "ammo.pistol",
              "SkinID": 0,
              "MaxItemAmount": 25,
              "MinItemAmount": 11,
              "Probability": 0.5,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "grenade.f1",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.2,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "fuse",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.5,
              "IsBlueprint": false
            },
            {
              "DisplayName": "",
              "Shortname": "keycard_blue",
              "SkinID": 0,
              "MaxItemAmount": 1,
              "MinItemAmount": 1,
              "Probability": 0.3,
              "IsBlueprint": false
            }
          ]
        }
      ],

 

fuscazo

Posted (edited)

8 minutes ago, copcopekcro said:

ok,,.will try with your config now ...

ok cool. by the way, don't feel like i'm hurrying you or anything by any means. i'm just reporting the issues to make it easier for you 😉 i understand you have a life and you will fix when you can. so don't feel like i'm pushing you to do it now. i appreciate your work )

Edited by fuscazo
copcopekcro

Posted

2 minutes ago, fuscazo said:

ok cool. by the way, don't feel like i'm hurrying you or anything by any means. i'm just reporting the issues to make it easier for you 😉 i understand you have a life and you will fix when you can. so don't feel like i'm pushing you to do it now. i appreciate your work )

no worries mate ! 
Iam looking rn what is problem ... 

copcopekcro

Posted

btw can you add me in discord ,or join my channel ? 
there we can talk faster 

fuscazo

Posted

11 minutes ago, copcopekcro said:

btw can you add me in discord ,or join my channel ? 
there we can talk faster 

yes, i joined yesterday, name is Navallax

 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.