I just installed Noplex's liquidtable snippet, fought my way through all the bugs on compile, and everything seemed to work, until I tried to interact with a drinkcon in any way.
Examining, mixing, drinking, etc. All give me a segmentation fault.
I can fill and empty the drinkcons though, strangely enough.
Just curious, are you using the new version posted up at Mudmagic and elsewhere, or an older version of the snippet. After the bugs I encountered before in this before I decided to keep the liquid system stock. I had been meaning to look at the new release of the snippet but as of yet I have not. If you're reporting continued issues with the newest revision, that would be useful information.
I too would like to know which version you used and where you got it because the version now posted on my site and the one on Mudmagic were both taken directly from AFKMud where they are known to work just fine. If this is not the case then I sorta need to know so I can go fix it :)
I wouldn't worry too much about the actual code and such for the snippet. Chances are it's some mistake I made somewhere while installing it. The instructions could possibly be improved a bit? Hehe.
Anyways I'm working on the whole gdb thing now, hopefully it'll shed some light.
Okay, so I've gotten the snippet installed and it's not crashing me anymore...
Two problems though. When I mix two liquids it now empties one drinkcon completely and the other becomes filled with whatever was in the now-empty one.
Example:
I created a mixture called 'martini', one part gin and one part vodka
barrel, full of vodka(19)
wineflask, full of gin(20)
mix barrel wineflask
wineflask is now empty
barrel is now full of gin
Same vice versa.
On top of that, the example mixture included with the file, that of vodka and orange juice, just says 'They don't mix well together."
Dunno what to say without seeing code itself, but you might try something along the lines of checks to see what is in each drinkcon, and then setting it to a 3rd value. I havn't touched code in awhile, so my memory is foggy on scripting itself, but I think that could either fix it or might could get you on your way, and if you have one see if it isn't just using something from empty con con. So, hope that helps
Was wondering if anyone cleared this up? Just tried installing the code and receiving the same problems when mixing. emptying one into the other.
Running into a recurring problem with most snippets, even if the install instructions are good. They never tell you how to use it. Then you have to experiment until you figure it out so you can write a help file for your Imms.
I swear if I ever release a snippet I will also release a log of it in action with it, so people know it's working right. lol.
Are you supposed to make 3?
2 drink_cons and one container with drink_mix to hold the product?