Giter VIP home page Giter VIP logo

Comments (9)

swasher avatar swasher commented on June 18, 2024

I think, there is no need to show all set bonuses. Show set bonuses will lead to readability degradation from screen. But you can specify the membership of a particular set, somethink like this:
image
If user click a set name, IA show all set item which he has.
It will be very convenient!

from iagd.

marius00 avatar marius00 commented on June 18, 2024

Good suggestion.

However, I have no immediate plans on doing the set bonuses.
Time is ever an issue, though hopefully someone else will pick this one up.

from iagd.

marius00 avatar marius00 commented on June 18, 2024

For whomever ends up implementing this, here's some queries to help identify set items:

-- Easy query to find all sets:
SELECT *, (SELECT Name FROM DatabaseItem_v2 WHERE id_databaseitem = S.id_databaseitem) as SetName from DatabaseItemStat_v2 S where Stat = 'itemSetName' ORDER BY textvalue


-- Find name for a given set:
SELECT T.name FROM DatabaseItemStat_v2 S, ItemTag T
WHERE id_databaseitem IN (
	SELECT id_databaseitem FROM DatabaseItem_v2 WHERE baserecord = 'records/items/lootsets/itemset_c001.dbr'
)
AND S.stat = 'setName'
AND T.tag = S.TextValue


-- Combining these two we get:

SELECT *, 
(
	SELECT T.name FROM DatabaseItemStat_v2 ST, ItemTag T WHERE id_databaseitem IN (SELECT id_databaseitem FROM DatabaseItem_v2 db WHERE db.baserecord = S.TextValue)
	AND ST.stat = 'setName' AND T.tag = ST.TextValue
) as SetName, 
(SELECT Name FROM DatabaseItem_v2 WHERE id_databaseitem = S.id_databaseitem) as ItemName 

from DatabaseItemStat_v2 S 
where Stat = 'itemSetName' 
AND SetName IS NOT NULL
ORDER BY textvalue

-- Discover all the stats of a specific set (in this case set 7355112)
SELECT * FROM DatabaseItemStat_v2 WHERE id_databaseitem = (
	SELECT id_databaseitem FROM DatabaseItem_v2 WHERE baserecord = (
		SELECT TextValue FROM DatabaseItemStat_v2 S WHERE id_databaseitem = 7355112 AND stat = 'setMembers'
	)
)
ORDER BY TextValue

A set is much like an item, and IA should be able to render a set roughly as well as it renders an item. A set has triggers, skills etc just like items do.

from iagd.

marius00 avatar marius00 commented on June 18, 2024

The most efficient thing would probably be to pre-compute the sets and set them on initial load, and then simply check if each rendered item is in a set.

If in a set: List the set name, and make it clickable to show other items in the set (and how many of each)

from iagd.

marius00 avatar marius00 commented on June 18, 2024

Thinking something ala:

  • Sets are exposed as JSON to the web ui
  • When rendering an item, ask some service (in JS) if it's part of a set
  • Render which set its in, clickable
  • OnClick => Poll C# for all items owned in this set
  • Render a view of the set, its bonuses and which items are owned / missing.

Polling on click will help with performance (lazy load), and should be a very simple query when its on a specific set basis.

from iagd.

mightyBroccoli avatar mightyBroccoli commented on June 18, 2024

Are there news on this issue? It would be nice to have something like that inside IA

from iagd.

marius00 avatar marius00 commented on June 18, 2024

No more progress just yet.
I am still in the middle of moving cross-continents.

I do intend for there to be progress on this task, though it will come after certain bugfixes and QoL fixes.

from iagd.

marius00 avatar marius00 commented on June 18, 2024

Are there news on this issue? It would be nice to have something like that inside IA

Partially implemented a few patches ago.

from iagd.

marius00 avatar marius00 commented on June 18, 2024

Now longer relevant after the introduction of real item stats

from iagd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.