firepit - meat added 2x

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

sky
Posts: 86
Joined: Sat May 06, 2006 5:33 pm

firepit - meat added 2x

Postby sky » Mon Aug 07, 2006 11:35 pm

added dung to project (133 grams)
added meat to project (150 grams)

meat (300 grams used of 150 grams needed)
dried dung (133 grams used of 133 grams needed)

ERROR: You need to use -150 grams of meat first.=

and I can't start to cook :(
User avatar
Solutions Maximus
Posts: 300
Joined: Tue Jul 12, 2005 5:18 am
Location: . . . . O .. . . the solar system

Postby Solutions Maximus » Tue Aug 08, 2006 6:20 am

Cancel the project and start it again?
"Turn on, tune in, and drop out."
User avatar
Spillages
Posts: 395
Joined: Thu May 25, 2006 10:33 pm
Location: Spokane, WA.

Postby Spillages » Tue Aug 08, 2006 6:23 am

Projects cannot be canceled when materials have been added.
silence is golden;
DUCT TAPE IS SILVER!
User avatar
Solutions Maximus
Posts: 300
Joined: Tue Jul 12, 2005 5:18 am
Location: . . . . O .. . . the solar system

Postby Solutions Maximus » Tue Aug 08, 2006 6:35 am

Oh, yeah, sorry. Completely didn't even think of that.
"Turn on, tune in, and drop out."
User avatar
marol
Posts: 3728
Joined: Sun Jul 17, 2005 11:45 am
Location: Kraków, PL
Contact:

Postby marol » Tue Aug 08, 2006 6:42 am

Solutions Maximus wrote:Oh, yeah, sorry. Completely didn't even think of that.
LOL, you didn't work for your nick this time, did you... ;)
User avatar
Solutions Maximus
Posts: 300
Joined: Tue Jul 12, 2005 5:18 am
Location: . . . . O .. . . the solar system

Postby Solutions Maximus » Tue Aug 08, 2006 6:44 am

Um... yeah... that is to... keep people from being... jealous of me...?


:oops:


And actually, the story behind the nick...

I originally meant to be Solutious Maximus, which I wanted for hidden comical reasons. But, of course, when I mis-typed (don't understand how I mis-typed so horribly, the different keys are on completely different rows) I decided to keep the nick because my dad says I have the solution to everything.

:roll: of course, he was being a jerk.
"Turn on, tune in, and drop out."
User avatar
marol
Posts: 3728
Joined: Sun Jul 17, 2005 11:45 am
Location: Kraków, PL
Contact:

Postby marol » Tue Aug 08, 2006 6:53 am

When talking about your account details:
Location: 172.0.0.1
Didn't you mean 192.0.0.1?
User avatar
Solutions Maximus
Posts: 300
Joined: Tue Jul 12, 2005 5:18 am
Location: . . . . O .. . . the solar system

Postby Solutions Maximus » Tue Aug 08, 2006 7:06 am

no... actually I meant 127.0.0.1

But, this also has a comedic history.
"Turn on, tune in, and drop out."
sky
Posts: 86
Joined: Sat May 06, 2006 5:33 pm

Postby sky » Tue Aug 08, 2006 8:08 am

Marol , any ideas?

I'm surprised that more meat can be added than the project calls for..... ....... would have thought there would be a restricting code or check for amount used not allowing more than the project requires to be added, something like:
(Pseudo Code)
If addedmeat > projectmeatgramsrequired then
"project only needs 150 grams"
else if addedmeat < projectmeatgramsrequired then
<add>
elseif addedmeat <1 then
"need to add minimum of 1 gram "
and so on.....

Perhaps there is a check like this and there is another reason for the glitch? First time I've seen more meat added than required.
User avatar
marol
Posts: 3728
Joined: Sun Jul 17, 2005 11:45 am
Location: Kraków, PL
Contact:

Postby marol » Tue Aug 08, 2006 8:20 am

Sky, it seems simple for single user system. But in paralel systems two players can simultaneously use meat on project. So imagine such situation:

1. Player A - script checks if there's room for meat in project - yes, there is - continue.
2. Player B - script checks if there's room for meat in project - yes, there is - continue.
3. Player A - script adds 150 meat to the project.
4. Player B - scrpit adds 150 meat to the project.

See more of this probem here: Wiki - Critial Section.
sky
Posts: 86
Joined: Sat May 06, 2006 5:33 pm

Postby sky » Tue Aug 08, 2006 8:26 am

I realize it can be complex.... the 'connection' was slower too so this also may be a factor. I did message Chris the details, should I message you my account details and character?
User avatar
marol
Posts: 3728
Joined: Sun Jul 17, 2005 11:45 am
Location: Kraków, PL
Contact:

Postby marol » Tue Aug 08, 2006 8:54 am

You could have sent the details to me as well... Anyway - I fixed your project.
sky
Posts: 86
Joined: Sat May 06, 2006 5:33 pm

Postby sky » Tue Aug 08, 2006 9:03 am

Thanks Marol :D
Antacid
Posts: 73
Joined: Tue Jun 27, 2006 3:21 pm
Location: U.S.A.

Postby Antacid » Tue Aug 08, 2006 5:40 pm

Something like this happened to me once. I was grilling meat with dung, and I added the dung fine, and then added the meat, but when I went to work on it, it said I still needed to add the meat. I checked the project and it said that no meat was used on the project yet, even though in the events page it logged that I had added the meat. There weren't even any other meat grilling projects at that time. I didn't really care, I just added the meat again, since I had a ton, but it was kind of wierd.
sem
Posts: 147
Joined: Tue May 16, 2006 12:40 am

Postby sem » Tue Aug 08, 2006 11:43 pm

marol wrote:Sky, it seems simple for single user system. But in paralel systems two players can simultaneously use meat on project. So imagine such situation:

1. Player A - script checks if there's room for meat in project - yes, there is - continue.
2. Player B - script checks if there's room for meat in project - yes, there is - continue.
3. Player A - script adds 150 meat to the project.
4. Player B - scrpit adds 150 meat to the project.

See more of this probem here: Wiki - Critial Section.


Can't you lock the project before step 1? so the flow would become something like

1. Player A script acquires lock on project
2. Player A script checks if there's room for 150 meat in the project
3. Player B script waits on lock
4. Player A script adds 150 meat
5. Player A script releases lock
6. Player B script acquires lock
7. Player B script checks to see whether there's room for 150 meat - there isn't.
8. Player B script releases lock.

Or does the database not support transactions?

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest