Waterskin problem

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9797 by JTP
Waterskin problem was created by JTP
I Seem to have a problem with waterskins, when I drink from it one time. Then it says i can’t find it next time I try drink from it. Nor can i fill it or drop it.

cups and barrels have no problem at all..


any ideas ?

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9801 by thomas
Replied by thomas on topic Waterskin problem
Sounds like an old bug resurfacing. There's some code that alters the alias list for drink containers in some situations. Have you tried if "exa skin" or "exa water" works?

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9802 by JTP
Replied by JTP on topic Waterskin problem
None of those works

Only drop all and get all haha

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9803 by thomas
Replied by thomas on topic Waterskin problem
What is the output of "stat skin" before you drink?

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9804 by JTP
Replied by JTP on topic Waterskin problem
 
Attachments:

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9805 by JTP
Replied by JTP on topic Waterskin problem
Poster a screen shot

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9806 by thomas
Replied by thomas on topic Waterskin problem
I think the problem is that:
1) there's only 4 units of drink in the skin. So it will be emptied on first drink.
2) the skin is named in the wrong order. If you look at all other drink containers, you'll see that they have the named of the liquid as the last alias:
#3000
barrel beer~
a barrel~
A beer barrel has been left here.~
#3001
bottle beer~
a bottle~
A beer bottle has been left here.~
#3002
bottle dark ale~
a bottle~
A dark bottle of ale has been left here.~
#3003
bottle firebreather~
a bottle~
A bottle of firebreather has been left here.~
#3035
fountain water~
the large fountain~
A large fountain carved from blue-streaked marble is here, bubbling merrily.~
If you change the alias to "waterskin skin water" instead, it'll probably work.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9807 by JTP
Replied by JTP on topic Waterskin problem
I just tried to redo the order of the names to waterskin water

And also increase capasity to 8 and 8

Still same problem


But not a problems on cups, barrels and jugs

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9808 by thomas
Replied by thomas on topic Waterskin problem
I'm absolutely convinced it's because you have "water" in both your keywords. If you try adding another keyword ("testfoo waterskin water"), you'll highly likely see that the presence of the word "water" as a substring of all your aliases is the problem.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9809 by thomas
Replied by thomas on topic Waterskin problem
I expect your cups are not named "watercup water", but instead "cup water". And thus, they work.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9810 by JTP
Replied by JTP on topic Waterskin problem
Looks what happend when i drink and examine
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9811 by thomas
Replied by thomas on topic Waterskin problem
did you try adding "testfoo" ?

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9812 by JTP
Replied by JTP on topic Waterskin problem
Cups are: cup water or cup coffee

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9813 by JTP
Replied by JTP on topic Waterskin problem
Testfoo ?

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9814 by thomas
Replied by thomas on topic Waterskin problem
Try changing the keywords to "testfoo waterskin water"
Then "drink testfoo" and "stat testfoo".

There is a bit of code that removes the "water" keyword when you empty the container. Apparently it also removes words _starting with_ "water".

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9815 by JTP
Replied by JTP on topic Waterskin problem
Testfoo waterskin water

After drinking it’s still says you cant find it

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9816 by JTP
Replied by JTP on topic Waterskin problem
And only waterskins jesus

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago - 1 year 1 month ago #9817 by JTP
Replied by JTP on topic Waterskin problem
Ok when I just Call it: skin water

Then no problem...but if water is part of the Word like waterskin, then it messes up
Last edit: 1 year 1 month ago by JTP.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago #9820 by JTP
Replied by JTP on topic Waterskin problem
Any idea about why it fails if there is water in the name like waterskin...when i renamed it to skin. Then no problems

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #9821 by thomas
Replied by thomas on topic Waterskin problem
Please make sure you have the newest version of remove_from_string()

github.com/tbamud/tbamud/blob/dceb563a9b...f5/src/utils.c#L1510

I seem to remember this being a problem in an earlier version.

Please Log in or Create an account to join the conversation.

Time to create page: 0.177 seconds