The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> BID AGENT
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1137012272

Message started by annetappe on 01/11/06 at 21:44:32

Title: BID AGENT
Post by annetappe on 01/11/06 at 21:44:32

Could you point me to a location that explains 'Bid Agent' & 'Increase My Max Bid' in detail.

I am experimenting/testing a scenario now and it seems that when I enter my initial maximum bid (using Bid Agent) it is possible for another bidder to drive my 'maximum bid' to 'maximum bid' PLUS 'bid increment' - which is of course more than my 'maximum bid'.

I can not tell if this is the way 'Bid Agent' works or not because I do not totaly understand 'Bid Agent' as used in eAuction.


Title: Re: BID AGENT
Post by gscotty on 01/11/06 at 23:37:11

Similiar problem. Example: User 1 bids 10.00 dollars. Increment on item is 5.00 dollars. Starting bid is 5.00. Item now shows high bid 5.00 bid minimum 10.00. User 2 now using bid increment bids 29.00. Item now shows current bid 15.00 next min. bid 20.00. So far so good.
User 1 now bids 31.00. Current bid now shows 34.00 next min. bid 39.00. Current bid is 3.00 higher than User 1 wanted to pay. User 2 comes back and bids 50.00. Current bid now shows 36.00. Next min. bid 41.00. 36.00 is 5.00 higher than actual last highest bid but looks like only a 2.00 increase from the 34.00.

Bid History

Bidder Date - Time Bid
user2 01.11.06 - 16:34:26 $36.00      
user1 01.11.06 - 16:33:34 $34.00      
user2 01.11.06 - 16:32:43 $15.00      
user1 01.11.06 - 16:31:39 $5.00


Hope you could follow that. Any help appreciated.
Thanks


Title: Re: BID AGENT
Post by Dieter Werner on 01/12/06 at 13:32:00


annetappe wrote:
I am experimenting/testing a scenario now and it seems that when I enter my initial maximum bid (using Bid Agent) it is possible for another bidder to drive my 'maximum bid' to 'maximum bid' PLUS 'bid increment' - which is of course more than my 'maximum bid'.


No, nobody can drive the max. bid of a bidder up to an amount that is > the max. bid.
The max. bid is stored and each other bid  > max. bid will beat the proxy-bidder. (even if the increment is, let's say, 5.00 and the difference between the proxy bid and the higher bid is just 1.00).

See the code of: sub proc_bid

Title: Re: BID AGENT
Post by Dieter Werner on 01/12/06 at 13:43:45


gscotty wrote:
Bid History

Bidder Date - Time Bid
user2 01.11.06 - 16:34:26 $36.00      
user1 01.11.06 - 16:33:34 $34.00      
user2 01.11.06 - 16:32:43 $15.00      
user1 01.11.06 - 16:31:39 $5.00


The proxy-bid of user1 has been stored at: 34.00
The high-bid was: 15.00
The increment is: 5.00

user2 bids: 36.00
36.00 is > 15.00 + 5.00 (so the bis is valid)

The proxy-bid (34.00) is > 15.00 + 5.00 (so it is valid too)
Both of them are > 15.00 + 5.00 and so both of them are valid but 36.00 is > 34.00 and so the bid of user2 beats the proxy-bid of user1.

See the code of: sub proc_bid

Title: Re: BID AGENT
Post by annetappe on 01/12/06 at 17:42:58

I tried to follow the 'code' referenced and everything seems to work ok with my scenario/test as long as I do not have a RESERVE.

When there is a RESERVE... when bidding approaches the RESERVE it seems to grab the RESERVE as the 'last high bid' instead of the true 'last high bid' and it is not accurate after that point.

I will try to run several scenarios and document it.  I have done about five this morning and they are do the same thing when it approaches the RESERVE.  I can not determine 'what' it is doing or where the problem is but it is changing the intended process.  It seems to be grabbing the RESERVE instead of true 'last high bid' and adding the 'bid increment' to it as the 'high bid' which is several dollars more than the current bidder bidded.

I am wondering if the other board member 'GSCOTTY' posted here had a RESERVE in the example he/she posted.  That scenario is what I am finding IF there was a RESERVE.

Thanks for your help.

Title: Re: BID AGENT
Post by Dieter Werner on 01/12/06 at 22:44:24


annetappe wrote:
When there is a RESERVE... when bidding approaches the RESERVE it seems to grab the RESERVE as the 'last high bid' instead of the true 'last high bid' and it is not accurate after that point.


Yes - if there is a RESERVE and the proxy bid is higher as the RESERVE is, then the (stored and displayed) bid is equal the RESERVE.

P.S.
I did the proxy bidder as a picture of a 'real' auction - but everybody can change the code in order to make it met his own ideas.

Title: Re: BID AGENT
Post by annetappe on 01/12/06 at 23:37:28

Your code is fine!  I would not know how to change it anyway.  I just did not find your 'description' of Bid Agent and did not want to make an assumption.

I just needed to fully understand so I could describe to bidders so there would be no problems.

Thanks for looking into it!

Title: Re: BID AGENT
Post by Dieter Werner on 01/13/06 at 00:23:23


annetappe wrote:
Your code is fine!  I would not know how to change it anyway.  I just did not find your 'description' of Bid Agent and did not want to make an assumption.

I just needed to fully understand so I could describe to bidders so there would be no problems.

Thanks for looking into it!


Don't get me wrong ...
You  are welcome  :)
I like to discuss the code and the ideas behind the code.
Discussions are the best way to exchange ideas and to improve code.

Title: Re: BID AGENT
Post by annetappe on 01/13/06 at 18:41:19

Help!  I still see a problem and can not understand fully.

====== ORIGINAL - Gscotty above =============
Similiar problem. Example: User 1 bids 10.00 dollars. Increment on item is 5.00 dollars. Starting bid is 5.00. Item now shows high bid 5.00 bid minimum 10.00. User 2 now using bid increment bids 29.00. Item now shows current bid 15.00 next min. bid 20.00. So far so good.
=>>>Note<<<= User 1 now bids 31.00. Current bid now shows 34.00 next min. bid 39.00. Current bid is 3.00 higher than User 1 wanted to pay. User 2 comes back and bids 50.00. Current bid now shows 36.00. Next min. bid 41.00. 36.00 is 5.00 higher than actual last highest bid but looks like only a 2.00 increase from the 34.00.

Bid History  

Bidder Date - Time Bid  
user2 01.11.06 - 16:34:26 $36.00      
user1 01.11.06 - 16:33:34 $34.00      
user2 01.11.06 - 16:32:43 $15.00      
user1 01.11.06 - 16:31:39 $5.00  


Hope you could follow that. Any help appreciated.
Thanks
==== end ==================


==== Dieter Werter reply ====================
The proxy-bid of user1 has been stored at: 34.00
The high-bid was: 15.00
The increment is: 5.00

=<<Note>>= user2 bids: 36.00  
36.00 is > 15.00 + 5.00 (so the bis is valid)

The proxy-bid (34.00) is > 15.00 + 5.00 (so it is valid too)
Both of them are > 15.00 + 5.00 and so both of them are valid but 36.00 is > 34.00 and so the bid of user2 beats the proxy-bid of user1.

See the code of: sub proc_bid
==== end =======================================


==== *My comment: ====
I do not want to be controversal but I still can not understand the process.

Your reply = "user2 bids: 36.00"

I still see a conflict/problem somewhere.  Gscotty states that "user2 physically bids $31.00" - not $36.00.

The script creates a situation that has the user2 bid recorded as $3.00 MORE THAN his intended $31.00 Maximum bid ($34.00).

What am I missing?
==== end ====



Title: Re: BID AGENT
Post by Dieter Werner on 01/14/06 at 12:01:04

Yes, I see ...
sub proc_bid is missing a few lines of code  :'(

- Search eAuction.pl for 'sub proc_bid'
- Search the sub for: else { # Bid > Proxy
- Replace the whole else block with the following
Code:
                   else { # Bid > Proxy            
                       $form{'ENABLE_PROXY'} == 0
                           ?   ($agent_bid = $form{'BID'})
                           :   do {
                                   ($form{'BID'} >= $reserve and $reserve > $bid)
                                       ?   ($agent_bid = $reserve)
                                       :   do {
                                               ($form{'BID'} >= $proxy_bid + $inc)
                                                   ?   ($agent_bid = $proxy_bid + $inc)
                                                   :   ($agent_bid = $form{'BID'});
                                           };
                               };
                   
                       $agent_bid = parsebid($agent_bid);
                       
                       ($currentbid[2], $currentbid[3], $currentbid[4]) = ($agent_bid, $form{'BID'}, time);          
                       $bid_record = join '[]', @currentbid;          
                       write_bid_data(\$bid_record);
               
                       disp_bid_confirmation($currentbid[0], $title, $currentbid[2], $currentbid[3]);
                       $outbid_flag = 1;
                   }

Title: Re: BID AGENT
Post by annetappe on 01/14/06 at 18:21:26

Thanks again!

I modified the code segment and it works up to the point of when the PROXY bidding (hidden) begins OR I am still confused.

I will PM you the details and the exact scenario I am using to make this determination using the 'Gscotty' info above.

Thank you for helping me understand this probably 'simple' process.

Title: Re: BID AGENT
Post by Dieter Werner on 01/14/06 at 18:31:00


annetappe wrote:
Thanks again!

I modified the code segment and it works up to the point of when the PROXY bidding (hidden) begins OR I am still confused.

I will PM you the details and the exact scenario I am using to make this determination using the 'Gscotty' info above.

Thank you for helping me understand this probably 'simple' process.

You see - it isn't as much simple  :)
I did the mistake you pointed out.

Title: Re: BID AGENT
Post by copperbayfarm on 02/18/06 at 18:53:27


Dieter Werner wrote:
Yes, I see ...
sub proc_bid is missing a few lines of code  :'(

- Search eAuction.pl for 'sub proc_bid'
- Search the sub for: else { # Bid > Proxy
- Replace the whole else block with the following
Code:
                   else { # Bid > Proxy            
                       $form{'ENABLE_PROXY'} == 0
                           ?   ($agent_bid = $form{'BID'})
                           :   do {
                                   ($form{'BID'} >= $reserve and $reserve > $bid)
                                       ?   ($agent_bid = $reserve)
                                       :   do {
                                               ($form{'BID'} >= $proxy_bid + $inc)
                                                   ?   ($agent_bid = $proxy_bid + $inc)
                                                   :   ($agent_bid = $form{'BID'});
                                           };
                               };
                   
                       $agent_bid = parsebid($agent_bid);
                       
                       ($currentbid[2], $currentbid[3], $currentbid[4]) = ($agent_bid, $form{'BID'}, time);          
                       $bid_record = join '[]', @currentbid;          
                       write_bid_data(\$bid_record);
               
                       disp_bid_confirmation($currentbid[0], $title, $currentbid[2], $currentbid[3]);
                       $outbid_flag = 1;
                   }


I was also having the bid agent problem and replaced the above code in my .pl file, however, now the bid agent isn't working at all - all the bids jump directly to the reserve amount. Any thoughts? Thanks in advance.

Title: Re: BID AGENT
Post by Dieter Werner on 02/19/06 at 12:05:54

Download the latest version.
It contains the needed changes.

Title: Re: BID AGENT
Post by copperbayfarm on 02/19/06 at 15:29:42

Thanks. Will give that a try.

Edited to add:

I downloaded the latest version of 1.6.1 and loaded it and found the same result with a test bid. Bids jumped right to the reserve price. Also, the HTML tags in the item description did not function which was different.

Were there perhaps changes in the config file as well? My auction is ending tonight so I am not really wanting to do a lot of experimentation.

Title: Re: BID AGENT
Post by Dieter Werner on 02/19/06 at 18:14:11

I will check it again ...

Title: Re: BID AGENT
Post by Dieter Werner on 02/20/06 at 10:32:16


copperbayfarm wrote:
I downloaded the latest version of 1.6.1 and loaded it and found the same result with a test bid. Bids jumped right to the reserve price.

If the proxy-bid is > or = the reserve price then the bid is = the reserve price.

Title: Re: BID AGENT
Post by copperbayfarm on 02/20/06 at 17:07:58

Sorry, my fault, I was not clear on my terminology. I used "reserve" incorrectly. Last day auction fuzz...

The bid would jump directly to the high price they entered. For example, if the auction was currently priced at $1000.00 and the bid increment was $25, a bidder would enter a bid of $1200 and click on Bid Agent, and the auction would jump directly to $1200 instead of $1025, even with no other bidders.

In the item .dat file, the high price was entered in both the first and second brackets, for instance []1200.00[]1200.00[]

it should instead have looked like []1025.00[]1200.00[] I believe.

Title: Re: BID AGENT
Post by Dieter Werner on 02/20/06 at 18:02:15


copperbayfarm wrote:
Sorry, my fault, I was not clear on my terminology. I used "reserve" incorrectly. Last day auction fuzz...

The bid would jump directly to the high price they entered. For example, if the auction was currently priced at $1000.00 and the bid increment was $25, a bidder would enter a bid of $1200 and click on Bid Agent, and the auction would jump directly to $1200 instead of $1025, even with no other bidders.

In the item .dat file, the high price was entered in both the first and second brackets, for instance []1200.00[]1200.00[]

it should instead have looked like []1025.00[]1200.00[] I believe.

What's the 'high price' you mentioned?
BTW: are you sure you dowloaded and installed the latest version?

Title: Re: BID AGENT
Post by annetappe on 02/20/06 at 18:38:37

Not To Confuse The Matter
=================

a. I added the suggested code change/modification as directed in [Reply 12 01/14/06 05 01 04]

b. I DID NOT download the current version 1.6.1 because I had made so many changes to my version that I had only downloaded about Dec/05

Result using the same scenario above:
=========================
Works ok as it should and does not jump to 'reserve price'

???Do you think the 'current' version may not contain the 'EXACT' change/modification as referenced in Reply 12 above???

*I am sure the 'tester' above verified that the sub routine was as in Reply 12.

Just my results that may help the two of you - for what it is worth!!!

Title: Re: BID AGENT
Post by copperbayfarm on 02/20/06 at 21:12:37

The high price was the price they wanted the bid agent to bid up to, $1200 in the example I gave.

I downloaded the version directly from the link on the top right of http://www.everyscript.de/ and uploaded the .pl which resulted in the same error and the problem of the HTML not working in the description.

Ah well, my auction is ended and will not come up again for another year so by then I will donate some $$ to you for the 1.6.2 and start from a fresh copy. Thanks for your help in looking at this matter.

Title: Re: BID AGENT
Post by Dieter Werner on 02/20/06 at 21:19:31


copperbayfarm wrote:
Ah well, my auction is ended and will not come up again for another year so by then I will donate some $$ to you for the 1.6.2 and start from a fresh copy.

Sorry, but that part of your reply is a real scrap ...  >:(

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.