Miscreated

Miscreated

Miscreated: Workshop
Enhance your Miscreated gameplay using the Steam Workshop! Create, Browse, and Subscribe to mods for Miscreated.
Modding Newbie - Quick Question
Hi all,

I have just starting modding for Miscreated and have a quick question that I hope someone can help with. I'm not asking for someone to build the mods, just some advice.

I am building a mod for my dedicated server and the things I would like to add are:
- No base decay (Bases won't despawn after a few days of being offline)
- No vehicle decay (Vehicles won't despawn after a few days of being untouched)
- More storage slots in vehicles
- Storage boxes in bases can hold more
- Backpacks can hold more
- Better item stacking (Done)
- No loot respawns

I have tinkered around with the scripts and been able to get the stacking to work, so now I can stack car tyres in stacks of 4, rags up to 250 and things like that. No problem there.

I have changed the "capacity" of all the backpacks to double and changed the "capacity" of storage boxes in bases to 100, but when I test these out, they storage remains the same. Boxes still have 40 slots and backpacks are still their original size (rucksack is still 20 slots). My guess is that "capacity" refers to weight, not slots.
I have also tried the same thing with vehicles changing the 5 storage slots to 10 and the UI still shows 5 slots when I check a vehicles inventory.

I did find a property for vehicles called "abandonedTimer". If I set that to 0 will it prevent vehicles from despawning after being abandoned?

If anyone can let me know what scripts I need to change in order to get these changes to work I would greatly appreciate it.

Another thing I am interested in is seeing if there is a way that loot spawns can be a one-off thing. By this I mean that once the world has started and loot is added to the world, it won't add again. So if my friends and I clear out a town from loot, the town will stay empty. I want to add this so we have to be careful with the resources that we gather.

The server that I am running has just a few friends that play casually, so we are not online often and our vehicles and bases sometimes disappear when we are not online for a while. The only way that I have found to stop this is to shut down the server when no one is playing, but then I get phone calls from my friends asking me to start up the server so they can play for a bit. It would be nice if I could just keep it running without the worry of bases and cars despawning.

Thanks in advance,

Drop Bear.
< >
Showing 1-3 of 3 comments
FTMagic 4 Nov, 2021 @ 5:50am 
The Vehicle abandonedTimer will have to be set to a large number that you can calculate exactly to the number of days you want them to stay available, setting it at 0 won't work...

The backpacks and storage, you were correct in changing the capacity number to increase the size, but both the server and the clients will need the mod installed for it to work... (You can't just change the default numbers in the game, you will need it in an actual mod file to implement the changes)

The Vehicle slot number is locked and can not be changed, yet...
Drop Bear 1 4 Nov, 2021 @ 1:15pm 
Thanks FTMagic,

I tried out having the abandonedTimer at 0 and the cars don't spawn at all. I have set them to 21 days which looks to have solved the problem.
Backpacks are working fine now and I have double the slots in them.
The vehicles lots makes sense now, as I changed it the same way as the backpacks, so if the game doesn't allow it, then that explains the reason. I'm guessing base storage boxes are the same. But i just learned that you can stack boxes on top of boxes, so I think I found a good enough work around.

I'll keep tinkering around and see if I can figure out the rest.
TheeMan 17 7 Nov, 2021 @ 8:41am 
Some of what your wanting can't be done or is hardcoded in ways it can not be changed.

- No base decay (Bases won't despawn after a few days of being offline)
Have your friends open and close their doors when they are online to reset the base decay timer is the best thing i can say about "base decay"

- No vehicle decay (Vehicles won't despawn after a few days of being untouched), I have yet to have problem with cars being gone when i get online on my own server.
vehicle abandonedTimer set to an high number, i set my own to an high number like 9999999

Base storage use to be limited when using the old storage which had its own problems it caused which is why limits were in place, sadly the new storage has its own problems but the plus on the new is no limits for the boxes other than baseparts limits

These things can be tweaked better one way or another as far i know, check on uTube and research i'm sure you find what you seek i know i did. :)

- Storage boxes in bases can hold more "if using new storage can't be changed from 40, as far i know tho but limits on storages boxes is only limited by your parts limit now check workshop for mods that add storage upto you tho"

- Backpacks can hold more "this is easy changed but you need to tweak all backpacks you want changed/tweaked.Franny waist packs can be changed the same if so you wish"

- Better item stacking (Done) "this is easy changed"
Last edited by TheeMan; 31 Dec, 2022 @ 4:20am
< >
Showing 1-3 of 3 comments
Per page: 1530 50