Author Topic: The bug where you lose items you put in a forge/oven.  (Read 1419 times)

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
The bug where you lose items you put in a forge/oven.
« on: October 02, 2006, 01:43:16 pm »
You all know that bug, you're crafting happily and then BAM! the server goes down.
You relogin, and you see that your precious items are gone!

Well, Nunelor asked me if I could try to fix that.
My knowledge of C++/SQL is almost zero, but hey, I could always try :P
So I searched the code to see if I could find the part that loads & saves the containers.
I found nothing usefull really, or I just didn't recognize the code, but I did found this line related to the loading of containers.
So I showed it to Nunelor and he pointed out that the line was trying to load container objects from a non-existant column in the database table.
Nunelor showed me how to correct this typo in the code and I rebuilt my server.
I tested it and the items within containers are now loaded correctly upon server startup, that means that items you put in a forge/oven before a server shutdown/crash will be saved now and restored after server reboot. I put the fix in a bugtracker entry right here. That means that on the next server rebuild, this fix will be in hopefully.

Let's all thank Nunelor;)

edit:

Fixed, server updated and restarted.
 --Acraig
« Last Edit: October 09, 2006, 04:25:02 pm by ThomPhoenix »
We're not evil. We're simply amazing.

peeg

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 560
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #1 on: October 02, 2006, 02:14:48 pm »
 \\o// Great work guys!

BTW: Why isn't this fix mentioned in the CVS-History?
[ PSde ] - Join the german community!
Peeg Chaoswind - Mentor in The Rangers Of Yliakum

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #2 on: October 02, 2006, 02:18:44 pm »
Because it wasn't applied yet, we just found it :P

edit:
Damn that Acraig's fast, he's already applied it and restarted the server  ::|
 :thumbup:
« Last Edit: October 02, 2006, 02:26:13 pm by ThomPhoenix »
We're not evil. We're simply amazing.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #3 on: October 02, 2006, 02:29:27 pm »
Will commit it when I get home.  It was fixed on the server because it was easy to fix but we don't make a habbit of committing stuff from the main server. 
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #4 on: October 02, 2006, 03:34:57 pm »
You mean you normally don't commit stuff to Laanx first and then CVS?

edit:
Okay, this little fix has some bad/good, but expected, effects.

It's like this:
For ages, everything you put in the ovens/forges was saved into the database after a crash/shutdown of the server, but it was never reloaded, so the items disappeared, they were in the DB though. Now we fixed the bug, so items get reloaded, that basically means that after the latest crash the forge/oven got 100000 items loaded into it. Someone probably needs to cleanse the forge/oven from it's items, GM's can't do that. We don't know the exact effects of this side-effect, but we currently think the system has a timer built-in that once every X minute checks for unloaded items, so once every X minutes the forge/oven gets filled again. If you see the forge/oven is filled, just tell the player who owns an item (right-click for the name) that his/her item is back and he/she needs to remove it.

People: take advantage from this, your long-lost items can appear in the forge/oven now!
« Last Edit: October 02, 2006, 04:36:04 pm by ThomPhoenix »
We're not evil. We're simply amazing.

Rolenun

  • Hydlaa Resident
  • *
  • Posts: 52
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #5 on: October 03, 2006, 11:12:43 am »
As an update, the server currently loads lost items to the empty slots in the forge, furnace, stock caster, smith's table, quench tank, etc after a reboot or crash. Due to the number of items already saved by the server, there is still no guarantee what order they load in. In other words, if a crash occurs while you are crafting an item, the item may or may not load back into the game right away.

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #6 on: October 05, 2006, 01:04:00 am »
Update:
Magodra added the ability for GM"s to remove player owned items in public containers
So they can help keep the forge/furnace clean :)
We're not evil. We're simply amazing.

Tarel

  • Hydlaa Citizen
  • *
  • Posts: 390
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #7 on: October 05, 2006, 03:46:26 am »
I saw it was added too, in the CVS-history
But i still have received no information about it yet.
Atm i see no changes ingame for the GM's.

It could be that the command is added somewhere in our regular commands
or it could be that teh server needs to be rebooted first, to run the update.
So all i can do for now is wait and hope we get more information quickly. :)
Greetings,

Tarel Barilele


Quote
Quote from DaveG: I've said it before, and I'll say it again, please don't blame the game when you screw up.

Croconil

  • Hydlaa Notable
  • *
  • Posts: 642
  • <3 Peacer!
    • View Profile
    • Talk Box
Re: The bug where you lose items you put in a forge/oven.
« Reply #8 on: October 05, 2006, 03:50:59 am »
Yesterday I saw a GM standing by Harniquist for a while though. Don't know what they were doing but I assume it is this.

Ralleyon

  • Hydlaa Citizen
  • *
  • Posts: 304
  • Protector in the Survivors of Vaern
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #9 on: October 05, 2006, 03:53:46 am »
Eh... don't mean to sound like a grandma  :) but acraig please don't forget to make the changes to that piece of code in the public cvs version too.
To see the world in a grain of sand
And Heaven in a wild flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
     
   [William Blake - Auguries of Innocence]

Tarel

  • Hydlaa Citizen
  • *
  • Posts: 390
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #10 on: October 05, 2006, 03:58:17 am »
I saw Magodra ingame too, yesterday.
Magodra is not a GM, but a Developer.
All Developers show up in the GM-guild too, ingame as GM8
This is the way, to be able to talk with the developers and see them, when they are around.
Normal GM's are not standing visible ingame for a long time at same spot.
Also the Developers are using red names, instead of dark green/yellow names.
Greetings,

Tarel Barilele


Quote
Quote from DaveG: I've said it before, and I'll say it again, please don't blame the game when you screw up.

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #11 on: October 05, 2006, 07:13:19 am »
For the change to take effect the server will need to be updated & rebooted.

Another issue here is that there is no timer that makes your items public after X minutes, so GM's have to manually remove them.
But Nunelor is working on that right now!

edit:
Nunelor got spammed in-game by users who figured "Hey, that guy coded on the crafting system a bit, he must know how to craft".
Nunelor's response:
"Contrary to popular demand, I firmly believe in roleplay. Sending me tells asking for answers is not roleplay. Have a nice day."
So please DO NOT /tell him in-game.
« Last Edit: October 09, 2006, 04:23:24 pm by ThomPhoenix »
We're not evil. We're simply amazing.

Gurn

  • Traveller
  • *
  • Posts: 13
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #12 on: December 13, 2007, 01:16:19 pm »
Hi, I lost items from furnace during server crash. This thread identifies the problem as fixed, is it? The server crashed while item was in the furnace, upon reboot, I spawned far from the furnace, when I got there item was gone   :o. If problem was fixed, what could have happened? Thanks in advance.

Rongar Elani

  • Hydlaa Citizen
  • *
  • Posts: 329
  • "post count +1" ~~Neko Kyouran
    • View Profile
    • Guild forums of 'The Awakened'
Re: The bug where you lose items you put in a forge/oven.
« Reply #13 on: December 13, 2007, 01:21:34 pm »
Someone could have taken it out, in case he/she relogged quicker than you. Last I checked, the guarding system didn't work after a server restart.

                                                           A w a k e n!

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: The bug where you lose items you put in a forge/oven.
« Reply #14 on: December 13, 2007, 01:36:56 pm »
When you go off-line your items should be kept for half a minute, I think. The problem here might also be that the user spawned far away from the furnace. When you go far away your items also become public. Perhaps something can be done.
We're not evil. We're simply amazing.