1 year ago

HAHAH!
Changed how I'm doing my Crafting Lookups!


Originally I had extra data slots in my Item Database, which was huge and unwieldy, and having null data for things you couldn't craft. It also meant holding all that data in memory constantly.

Then a while back a reworked it so the game would run a script that would make a temporary DS_Map and swap the Item Index for the Product Index, this works great but DS_Maps are volatile and can be removed from memory randomly. They're also why I have so much trouble with Carpets...

But I'm now using the same system I built for my Item Effects!
It's just a simple script with a State Machine inside, insert the Item Index, and it outputs the Item Product, the Amount that will be Crafted and also the Amount needed! (not currently used)

Wooo!



2 comments

Loading...

Next up

Welp, I ended up working on the Save file system instead I got it updated to work with the Converter Devices update...but getting it to work with the NPC/Player changes is being difficult For some reason it's not applying the values >:/

Edit...wait it is?

I think this is the Crafting Menu redone? Unless I forgot something. Also no particles...

It defaults to auto selecting a stack based on your setting, but you can override if you have enough of an alternative.

Now I eat.

[uses temp value 6 to store the data]

ERROR, value cleared by placing Building.

[uses temp value 5 to store the data]

GAME CRASH, value used for valid Building placement indicator.

[uses temp value 4 to store the data]

You now can't confirm Item selection

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Ok I lied, I kept working on it and added some basic particles.

It's not perfect,but I'm happy!

If I can figure out how to get more of a [SWOOSH] effect that would be cool...But now, I'm gonna go sleep. Take care everyone, please look after yourselves. 💚

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Urmmm

I think next I should do the Enchanter UI.

I never really did a proper one, just enough to to test the system out. Probably have to do a rework of that too... dang it X'D

but now? slep

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

ok gonna sleep

I think I've got the Crafting System UI set up so it will match with how I want the Building System UI. Just need to do that next.