Good news! To provide faster support and grow the community, we'll be changing the forum to "Read Only" and turn to Discord instead for support.
Join here: https://discord.gg/zjNj5zZ

How to save items in a box like Game Rust

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

How to save items in a box like Game Rust

Postby yuuki0118 » Tue Jun 20, 2017 8:36 pm

I would like to save items for each wooden box I placed like Rust
I thought about saving items using bank ui, but the collection will be shared

And I made a wooden box using MyCustomCollection and MyCustomCollectionTrigger
but when I restarted the game the saved items will disappear

MyCustomCollection has a PlayerPrefsCollectionSaverLoader attached

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Tue Jun 27, 2017 11:14 pm

Have you had time to look into this? 

User avatar
jjahuijbregts
Site Admin
Posts: 2091
Joined: Wed Apr 22, 2015 7:25 pm
Contact:

Re: How to save items in a box like Game Rust

Postby jjahuijbregts » Tue Jul 04, 2017 6:25 am

yuuki0118 wrote:I would like to save items for each wooden box I placed like Rust
I thought about saving items using bank ui, but the collection will be shared

And I made a wooden box using MyCustomCollection and MyCustomCollectionTrigger
but when I restarted the game the saved items will disappear

MyCustomCollection has a PlayerPrefsCollectionSaverLoader attached


The collection will be not be saved when using MyCustomCollection and MyCustomCollectionTrigger because the items are moved to the CollectionTrigger when the window is closed. When a new trigger has used the items inside that trigger will be moved to the collection.

To work around this you can use a PlayerPrefsContainerSaverLoader instead. As the items are stored on the trigger (container).

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Wed Jul 12, 2017 2:49 am

The problem of item disappears solved!

Even if you set the Size of MyCustomCollectionTrigger to 20
It becomes 10 at the time of game execution

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Wed Jul 12, 2017 4:53 pm

And I want to change UniqueName when setting a box

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Tue Jul 18, 2017 1:27 pm

Excuse me
Have you had time to look into this? 

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Fri Jul 28, 2017 7:14 pm

Hello :(

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Sat Aug 19, 2017 1:58 am

please help me!

User avatar
PeterBibinin
Posts: 194
Joined: Mon Oct 24, 2016 10:55 pm
Location: Poland
Contact:

Re: How to save items in a box like Game Rust

Postby PeterBibinin » Mon Aug 21, 2017 8:50 pm

You mean when box is loaded on start change uniq name?
Waiting for sunrise
-------------------------------------------
Try make world beter ;]

My Advanced Save System tutorial with screen capture like in The Forest !
Advanced Save System
-------------------------------------------
BAZINGA !

yuuki0118
Posts: 14
Joined: Thu Jun 01, 2017 6:42 am

Re: How to save items in a box like Game Rust

Postby yuuki0118 » Wed Aug 23, 2017 4:40 pm

I want to change the UniqueName when setting the item box on the ground


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest