HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
42 stars 4 forks source link

Custom scrap spawns but not scanning. #14

Open Roborofler opened 7 months ago

Roborofler commented 7 months ago

So i somehow managed to figure out myself how to add scrap (took way to many attempts due to lack of instructions for new users). Im finding my scrap on the map now but when i hit RMB it does not scans. Other working ok (i think). And i set global spawn rate to 100 for all my scraps but i found only one of them, my bad? Thank you very much!!!

GoblinFiend commented 7 months ago

The other objects in the Testmod have a node on the top left that says ScanNode. Copy that into your prefab and move it accordingly. I'm pretty sure that setting your spawn weights all at 100 makes them all spawn equally as much when they do spawn (often)? but unsure

HolographicWings commented 7 months ago

The other objects in the Testmod have a node on the top left that says ScanNode. Copy that into your prefab and move it accordingly. I'm pretty sure that setting your spawn weights all at 100 makes them all spawn equally as much when they do spawn (often)? but unsure

Thanks you for answering them

Yes, the prefab of your scrap require a ScanNode in his childs as in the templates And it's not a spawnrate, it's a no-ponderous spawn weight, so if you set it to 100, it will compare his spawn weight to the other scraps in the spawnlist, the expansion mod have a settings menu where you can increase the scraps spawn rate of all dungeons.

Roborofler commented 7 months ago

The other objects in the Testmod have a node on the top left that says ScanNode. Copy that into your prefab and move it accordingly. I'm pretty sure that setting your spawn weights all at 100 makes them all spawn equally as much when they do spawn (often)? but unsure

Thanks you for answering them

Yes, the prefab of your scrap require a ScanNode in his childs as in the templates And it's not a spawnrate, it's a no-ponderous spawn weight, so if you set it to 100, it will compare his spawn weight to the other scraps in the spawnlist, the expansion mod have a settings menu where you can increase the scraps spawn rate of all dungeons.

I set max spawnrate in ingame settings and 100 to few of my scraps, but or i unlucky or i cant see other except first in folder. And is there any way to just spawn scrap for test? Thanks

HolographicWings commented 7 months ago

The other objects in the Testmod have a node on the top left that says ScanNode. Copy that into your prefab and move it accordingly. I'm pretty sure that setting your spawn weights all at 100 makes them all spawn equally as much when they do spawn (often)? but unsure

Thanks you for answering them Yes, the prefab of your scrap require a ScanNode in his childs as in the templates And it's not a spawnrate, it's a no-ponderous spawn weight, so if you set it to 100, it will compare his spawn weight to the other scraps in the spawnlist, the expansion mod have a settings menu where you can increase the scraps spawn rate of all dungeons.

I set max spawnrate in ingame settings and 100 to few of my scraps, but or i unlucky or i cant see other except first in folder. And is there any way to just spawn scrap for test? Thanks

No sorry, but you could use the UnityExplorer mod to see if your scraps are spawning in the scene Show me the manifest of your mod too

Roborofler commented 7 months ago

https://fex.net/s/7dyfaxa -- manifest ok much thanks ill try that mod)

HolographicWings commented 7 months ago

https://fex.net/s/7dyfaxa -- manifest ok much thanks ill try that mod)

i meant the manifest in unity, where you added your scraps do update your sdk too

Roborofler commented 7 months ago

зображення_2023-12-14_163533170 This manifest? And how do i update? I need to reopen new SDK as new project and transfer my mod folder? thanks!

Roborofler commented 7 months ago

So i loaded a few times with 10-15 spawn weight and zero custom scrap spawning :(

HolographicWings commented 7 months ago

So i loaded a few times with 10-15 spawn weight and zero custom scrap spawning :(

can you show me the eyeball in inspector ? also it's prefab

Roborofler commented 7 months ago

зображення_2023-12-14_165603707 зображення_2023-12-14_165622269

HolographicWings commented 7 months ago

зображення_2023-12-14_165603707 зображення_2023-12-14_165622269

you still checked Use Global Spawn Rate

can you show me the scannode ?

Roborofler commented 7 months ago

I tried with and without few times wtih 100 values. зображення_2023-12-14_170001137

HolographicWings commented 7 months ago

here is the scan issue, watch how the scannode is made for the templates it's about the mesh and the material Mesh must be the Unity Primitive Cube, the material must be Trigger embed in the LethalExpansion folder and leave the Box Collider size to 1 1 1, change the ScanNode scale instead

uncheck "Use Global Spawn Rate" and try again

HolographicWings commented 7 months ago

Do you have any error in the console ?

Roborofler commented 7 months ago

I had a few errors but i fixed it, scrap wont spawn and moon wont load And one question, why sdk eats so much ram :0

HolographicWings commented 7 months ago

I had a few errors but i fixed it, scrap wont spawn and moon wont load And one question, why sdk eats so much ram :0

Because it's Unity, a game engine use ram it's normal

send me your lem file, i will check

Roborofler commented 7 months ago

No i mean, A LOT of ram. So all my application crashes if i open anything except unity. Never had such issue. So now i see a lot of my scrap eyeball spawning but nothing else. Only first scrap which added.

HolographicWings commented 7 months ago

No i mean, A LOT of ram. So all my application crashes if i open anything except unity. Never had such issue. So now i see a lot of my scrap eyeball spawning but nothing else. Only first scrap which added.

Define "A lot of ram" please

And show me the other scraps in same way as you did for eyeball

Roborofler commented 7 months ago

https://fex.net/s/nnlpsrp -- lem Sorry for such trouble :\ A lot i mean i have opera opened, unity and if i try to open game system frozes for some time( i have 16gigs

HolographicWings commented 7 months ago

https://fex.net/s/nnlpsrp -- lem Sorry for such trouble : A lot i mean i have opera opened, unity and if i try to open game system frozes for some time( i have 16gigs

it's weird, it takes me 6 gb maximum remove the Library folder in the project then restart it may fix

HolographicWings commented 7 months ago

Show me the other scraps Scrap files with spawn weights

Roborofler commented 7 months ago

Yes, one moment. I`ll try to launch last ver. of sdk. Last try was i set spawn weight for all scraps for each planet to 25 without global checkbox and still only first scrap in list spawns.

HolographicWings commented 7 months ago

Make me a zip of your mod folder, i will check on my side, it's simplet than 400 screenshots

Roborofler commented 7 months ago

https://fex.net/s/5lsf11r Thank you very much!

HolographicWings commented 7 months ago

@Roborofler image

Roborofler commented 7 months ago

@Roborofler image

yes i saw and changed that in new version of sdk, tried to build and it crashed(( I will try a bit later and let you updated, much thanks!!

Roborofler commented 7 months ago

Finally, for the love of god, scrap is spawning. TYSM for helping me out! sending smooches :*

Roborofler commented 7 months ago

New question, can i somehow detect player`s buttons or use ingame [Q] button?

HolographicWings commented 7 months ago

New question, can i somehow detect player`s buttons or use ingame [Q] button?

No, the SDK don't support custom interactions yet

Roborofler commented 7 months ago

Ok ty. And can i somehow add scripts to build? I tried to add custom script and if i build my asset and launch game i have warning about missing script

HolographicWings commented 7 months ago

Ok ty. And can i somehow add scripts to build? I tried to add custom script and if i build my asset and launch game i have warning about missing script

no it will be concidered as illegal script and removed i can't leave people add their own scripts, C# allow to get files from computer really easily

Roborofler commented 7 months ago

oh ok ty, looking forward for new updates :)