Page 1 of 1

Can't use drying rack

Posted: Tue Dec 22, 2009 10:52 pm
by redRob
I'm in a town with four drying racks, and three of them appear as "in use". The activities page shows only two racks being used.

Just wondering what happened with the third rack. Is there some kind of invisible project bug?

Posted: Tue Dec 22, 2009 11:19 pm
by Snake_byte
If you created two and not three drying projects, try clicking the "Search" button in the "Activities" page without typing anything in to get all projects in the area. That should make the third show up.
Is that the problem?

Posted: Tue Dec 22, 2009 11:20 pm
by SekoETC
Maybe someone deleted sabotage earlier and forgot to clear the in use status? If the machine object still links into the project id even though the project didn't exist anymore, it will appear in use.

Posted: Tue Dec 22, 2009 11:36 pm
by redRob
Snake- Definitely checked all the activities. I can see how someone could make that mistake....

Seko- That seems to be what's going on.

Posted: Wed Dec 23, 2009 10:50 am
by SekoETC
Hmm, I wonder if this can be right. I checked how many drying racks are in use (1924) and then how many of them are linking to a project that doesn't exist and the answer was 1532. Surely people would notice if there were 1532 drying racks in use without a project? :?

Posted: Wed Dec 23, 2009 4:00 pm
by Cdls
If I remember correctly, there can only be 4 drying racks in one location.

That would equal out to:

1924-1532=392 legit drying racks.

392/4=98 locations with legit drying racks


Now, this is taking into account that each location has the max number of drying racks, so that number can actually be much higher as there are places that only have 2 racks and so on.

That could explain how it is missed?

Posted: Wed Dec 23, 2009 5:29 pm
by Saalko
Maybe the machine say that no project is an invalid project. Could you look how many drying racks are build in total? Maybe this are

1924+1532=3456

If they count no project as invalid, than this could explain it.

Posted: Wed Dec 23, 2009 6:19 pm
by SekoETC
That 1532 was included in the other number. There are 1941 drying racks altogether so maybe linking to a project doesn't necessarily mean that it's appearing as "in use" since otherwise there would be 17 drying racks not in use and that's too impossible to believe. I think it probably just leaves the link to the previous project that was set up for that drying rack, although then I don't know how they would appear in use.

Posted: Thu Dec 24, 2009 2:41 am
by *Wiro
Well Cantr has a stupid system. Projects don't need a specific tool to be started, it just needs *a* tool. So it is possible that through backspacing people made a project from a firepit or whatever on a drying rack so the drying rack got into use... stuff like that.

Posted: Thu Dec 24, 2009 5:20 pm
by redRob
Supposing the drying rack is tied up with some other project that exists....If that project is finished, might the rack be freed up?

Posted: Thu Dec 24, 2009 5:24 pm
by Snake_byte
*tapping his chin thoughtfully* Seem like a sound theory... If yes, then the question becomes: How do you tell which project it is attached to?
Might have to complete everyone - Even completing construction of buildings and such... :(

Posted: Thu Dec 24, 2009 7:56 pm
by SekoETC
If the machine in question was mentioned in the projects table, the reference to the machine got delete at the same time when the project gets deleted so they couldn't be stuck hanging around as ghost projects, but it would mean that it would have to query the projects db when loading the objects page.