Hi Guys,
Placed a shop as per tutorial, shop opens fine on interaction, I can navigate to certain items, but then when I have selected the item I want I hit enter (return) (or similarly if I left click) and bang, the game (and editor) just hangs. Whilst in the shop menu, before I have hit enter or left clicked on an item I have noticed that I can move the camera with my left mouse button (using a custom camera controller, which should still be turned off whilst in a shop correct? I have set camera crontroller to none in Game tab of ORK).
Completely reproducible issue
Any help would be much appreciated :)
CPU usage at 25% and memory at 36% when this happens.
Took a look at the unity log, didn't see too much there, and as it freezes can't get anything from the console. let me know if it would help or where to find the ORK log.
Thanks again
You're using the Enter key to buy something?
Suggest you double check,that you followed the tutorial step by step and make sure the item you're trying to buy is sellable.
Not having that issue in my project - you can try using one of ORK's built-in camera controls instead to check if that's the source of the problem.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I can move the view around freely with no problems, going in and out of menu tabs etc whilst moving it. However, double clicking on any base item like health potion, or short sword, or scroll etc at the point of both selling or buying produces this freeze where I have to go cntrl - alt - delete and end task on unity. Having the camera move with left click has also made dragging and dropping abilities to the skill bar impossible. Not sure if the camera is responsible for the freeze but I will have to fix the non disable, for the drop and drag at the very least.
Double checked all items are sellable and have a price set etc.
1. Disabled left mouse for rotate camera so there is no movement of camera whilst in shop (still doesn't technically disable the camera controller though).
2. Gone back over the entire shop tutorial, all settings are exactly the same.
3. Created another shop in a different scene (using the same shop list and shop layout - just different game objects etc) - again exactly the same results
4. I thought it might have been a UI issue as I cant see any quantity buttons. I thought this could be related to some double click check boxes for menus I recently enabled, It always allows me to select the item I want to sell or buy ONCE, but then on the SECOND click (or enter key) I get the hang.
5.Tried running the game in full screen at a higher res (with stretch to fit) to see if there were GUI elements not displaying properly as I cant see quantity buttons, again didn't help. I have noticed what is potentially a description box cutting through the inventory/shop layout (does it in both), this is weird, not sure if its related - (Can post vid)
6. Perhaps I will try running a shop in a new project to see what that produces.
Just one of the last bits of functionality I need (lol imagine a world without shops.....)
Would it help you if I put up my settings?
Do you use the mouse to select an item to buy?
I get to the same exact stage as the screen shot in the "lets add a shop" tute, at the bottom of the tute. Yep, I use the mouse to double click to buy (at least thats what I thought, i've never actually been successful at buying lol). It also happens if I use "enter" key once item is selected.
More things I tried...
1. Just to update further, I removed my custom camera and character control scripts and used the ORK ones. No change :( issue occurs exactly on cue.
2. The drag and dropping abilities and items to the skill bar works fine and did all along, I just thought it was broken as I expected there to be a visual cue for what I was dragging, I guess I thought the button would move down in line with the motion of my curser, this doesn't happen, but If I keep the left mouse down (pretending there was something I was dragging) and release over the slot it appears there so... sweet!!!. Just the shop now.
As always thanks heaps :)
In your Shop settings did you check Block Control for each shop? That might be part of your problem with things working that shouldn't.
All your items have 100% chance of buying them?
Block control is selected in the shops settings
And chance is 100% for buying each of the items in the shop.
Thanks Cata
Multi
No check
No check
Default
Default
No check
No check
Name Box
Check Show Name
My GUI Box there -- I use Legacy Gui is called Shop Info
Check Show title
Message Text
%n
Buy/Sell Box
Check Show Buy/Sell
Gui box there is called Main menu
Check Show Backgrounds
Not checked
Both
None
Not checked
Button 0
Button Type Buy
Name Buy
Button 1
Button Type Sell
Name Sell
Button 2
Button Type Exit
Name Exit
Type Box
Checked Show Type
GUI Box here Menu Small
Not checked
Both
None
Not checked
checked Add Back
checked First Element
Sort By Name
Not checked
List Box
GUI Box here Menu Big
Not checked
Not checked
Both
Info
Not checked
Not checked
Sort by name
Not checked
Not checked
Not checked
Not checked
Description Box
Show Description checked
Gui Box Menu Info
Not checked
Checked
Checked
Checked
Not Checked
Info Box
Gui Box Gold Info
Not checked
Not checked
Then here I added some pages
Information Page 0
Not checked
Not checked
Not checked
Create HUD
Add Information element
Information element 0
#currency.name0# #currency.inventory#0 currency.name1#: currency.inventory1#
Text formatting
2
Left
Bottom
Gold (Font)
Checked
Default Shadow
1 1
Open Sans Bold
0 (I'm on mobile--must be 0) You put your type size or nothing will show on pc)
Normal
Not checked
Not checked
Not checked
Not checked
X0 Y 0
W800 H80
Not checked
Not checked
Name Lavender Rose's Jewelry Shop
Icon of shop
Simple Layout (what I did up top)
Currency Gold
Block control checked
Not checked
Not checked
Not checked
Not checked
Not checked
Add item type:
Finery
Own background
Add background
Background image
Not checked
Stretch to fill
Checked
0
Not checked
Armor 0
Besinnung's Ring
1
100
Not checked
Not checked
Not checked
And so on to add all the rings and necklaces she sells.
maybe your problem is in here-
Buy+Sell
Gui box here is Itemback
Not checked
#text.color2##text.bold%n#
Decrease Button
<
Shops have always worked for me since ORK1.