Discussions
Sign In
Forum rules
- please read before posting.
urgent bug: Crafting freezes Unity
dude
March 2017
in
Engine development
u5.4.4p4, ac.156c
Crafting freezes Unity
My game uses Unity UI but it also freezes in the 2D demo with the AC Menu
http://mindart.de/crafting-freeze-unity.mp4
Tomorrow I have another tester over.
Do you have an idea for a quick fix in the code?
Comments
ChrisIceBox
March 2017
Recreated, but it's not clear why this is occuring. Will get back to you when I know more.
ChrisIceBox
March 2017
In MenuInventoryBox, find line 785:
while (AreAnyItemsInRecipe ())
replace with:
while (AreAnyItemsInRecipe (newItemList))
then find line 850:
private bool AreAnyItemsInRecipe ()
replace with:
private bool AreAnyItemsInRecipe (List<InvItem> _itemList)
and line 852:
foreach (InvItem item in items)
replace with:
foreach (InvItem item in _itemList)
dude
March 2017
It works again :-)
I'm sure this was a tough one!
Thank you!
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.6K
All Categories
66
Official news
1.5K
Engine development
10.6K
Technical Q&A
337
Games showcase
151
Extending the editor
229
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
while (AreAnyItemsInRecipe ())
replace with:
while (AreAnyItemsInRecipe (newItemList))
then find line 850:
private bool AreAnyItemsInRecipe ()
replace with:
private bool AreAnyItemsInRecipe (List<InvItem> _itemList)
and line 852:
foreach (InvItem item in items)
replace with:
foreach (InvItem item in _itemList)