Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halberds aren't unique right now. #3528

Closed
Alkenix opened this issue Aug 1, 2021 · 9 comments · Fixed by #3540
Closed

Halberds aren't unique right now. #3528

Alkenix opened this issue Aug 1, 2021 · 9 comments · Fixed by #3540
Assignees

Comments

@Alkenix
Copy link

Alkenix commented Aug 1, 2021

Fix in items.xml (line: 20730 & 20733):
<item id="12046" article="a" name="halberd" /> <item fromid="12047" toid="12048" name="halberds" /> <item fromid="12049" toid="12050" article="a" name="heavy weapon rack" /> <item id="12051" article="a" name="halberd" />

@Zbizu
Copy link
Contributor

Zbizu commented Aug 1, 2021

use the template next time

see "files changed" section of this pr to see how to fix that: #3508
(the solution is using itemid instead of string for monster loot)

@Alkenix
Copy link
Author

Alkenix commented Aug 1, 2021

w8 w8 w8.. All i did was placing an zombie on my map on an uptodate tfs 1.3 server (incl. EPuncker's latest fix).

@EPuncker
Copy link
Contributor

EPuncker commented Aug 1, 2021

lets blame forceMonsterTypesOnLoad to only work with monsters that are on map, and since I have no monster on my map I forgot this :D will fix it soon

@EPuncker EPuncker self-assigned this Aug 1, 2021
@Alkenix
Copy link
Author

Alkenix commented Aug 1, 2021

Same with grave flowers (vamps). ^^
Line: 35897

@Zbizu
Copy link
Contributor

Zbizu commented Aug 2, 2021

I'd blame using strings in loot honestly.

Identifier's (id's) purpose is to make things possible to (as the name suggests) identify. Using strings is counterintuitive.

Considering that most of the duplicated loot can be resolved by parsing the first occurrence, I suggest stopping the search on first pickupable item. Alternatively the display of the warning can be a config value.

@nekiro
Copy link
Member

nekiro commented Aug 2, 2021

As I said some time ago, we should drop names support for items everywhere, loot is one of the things. Name is not unique. Id is.
Or like above mentioned, print a warning that there is more than one item with the same name and that server is gonna pick the first occurence.

@Zbizu
Copy link
Contributor

Zbizu commented Aug 2, 2021

What about allowing some setting to disable warnings? eg about empty spawns or ambiguous item names with a simple true/false?

@Alkenix
Copy link
Author

Alkenix commented Aug 2, 2021

Gonna need to correct this issue..
There are MANY as HELL items doubled in items.xml.
I have no clue why for example an arrow or power bolt needs 2 IDs, but i corrected () all of them for me right now.^^

If someone knows how to change monster loot to ID instead of the name, I'm gonna start that for mine soon.

@Alkenix
Copy link
Author

Alkenix commented Aug 12, 2021

#3540

@Alkenix Alkenix closed this as completed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants