How do I fix this Function/Function2/TaffyDB issue?

Get help using Construct 2

Post » Mon Aug 01, 2016 2:37 am

Hi, so I'm not sure if this goes in this forum, but basically I'm at my wit's end trying to figure out this problem. Here's what I'm trying to do:
- I've set up a database with TaffyDB which includes several values for different types of musical works (song, mixtape track, album, mixtape)
- As part of a Listview Template plugin I don't think is available in the store anymore (Easy Module #2), I had to install the Function2 plugin and use it to declare some funcitons
- I also still use the Function plugin because it's easier to declare stuff (for me at least)
- So I configured a bunch of stuff all throughout the different event pages of the game, and with my 'CatItemChartLogic' Function (with 3 levels of sub-events), I try to refine how the published musical works hit the charts based on 1) the number of fans the player has and 2) the quality of the works

For some reason, though, the copy that I have for the popup won't read the list item if I use the second parameter (by quality of the work), but it will work if I set an action on the first parameter (the number of fans). I'm trying to figure out why. See the images below for how I have it set up. The project is WAY too big for me to share because there's a lot to sift through, but hopefully the pictures are indicative of what I'm getting at.

Function2 implementation: https://drive.google.com/open?id=0B9LIFzxsgOw8SnhjWUtKRFBQc28
CatItemChartLogic: https://drive.google.com/open?id=0B9LIFzxsgOw8cTJJckNBZ3g3aVU
In-game outcome of Overlay Copy (see first image): https://drive.google.com/open?id=0B9LIFzxsgOw8eUhtM0FPdFMtZHc
When I change CatItemChartLogic to focus on deeper-level logic: https://drive.google.com/open?id=0B9LIFzxsgOw8eXhzUzdUckVkdDg
In-game outcome of Overlay Copy (same as first image, different oucome): https://drive.google.com/open?id=0B9LIFzxsgOw8cnNwN3BnNEsxYzQ
B
14
S
5
Posts: 37
Reputation: 1,026

Post » Wed Aug 03, 2016 4:42 am

Hey anybody that read this: I figured it out. Basically instead of calling the Rating of the Song from within the TaffyDB Event (the bottom half of the attached image), I used the global 'Compare two values' Event (the top half of the attached image). Works like a charm. I'm just adding my follow up here for posterity, in case anybody else has this issue.

Attached image: https://www.dropbox.com/s/kyil9709y48ptht/Screenshot%202016-08-02%2021.40.05.png?dl=0
B
14
S
5
Posts: 37
Reputation: 1,026


Return to How do I....?

Who is online

Users browsing this forum: stevenode, Yahoo [Bot] and 8 guests