Page 1 of 3

BZStocks

Posted: Sun Oct 15, 2006 7:31 pm
by Tanner
Hi all,

In the past weeks TD-Linux and Theme97 have been working on an idea of mine. The idea was of a stock market for bzflag. What resulted was this. Simply log-in with the same username and password you use here (we never touch your information besides your username) and you can begin trading. Every five minutes, we gather new data from all four corners of the server world. Robots and observers aren't counted so stop typing "-solo" already. So, be nimble, be quick, and have fun!

Log-In to BZStocks

Cheers
-Tanner

Posted: Sun Oct 15, 2006 7:42 pm
by gordon1470
sweet...this could be a good idea..

Posted: Sun Oct 15, 2006 7:44 pm
by Theme97
Everybody starts off with $500. Every week on Sunday (GMT-4, I think), the top 5 players with the most net worth (money after selling all stocks) will be recorded.

We are on irc.freenode.net, channel #bzstocks, so visit us and drop a line (or do that on the Report page).

(Of course, all you'll see in #bzstocks is some dev talk, but you can watch our repository commits and see what we're up to.)

Have fun and get rich!

Posted: Sun Oct 15, 2006 7:54 pm
by A Vicious Muffin
Wow. Nice work Tanner and Theme! I would have never thought of something like this! :D

Posted: Sun Oct 15, 2006 8:46 pm
by eagle
thats pretty cool :)

Posted: Sun Oct 15, 2006 8:54 pm
by gordon1470
i think the point is to have the most money

edit:yes...much money..yayy im rich!!!

Posted: Sun Oct 15, 2006 8:56 pm
by Tanner
gordon1470 wrote:i think the point is to have the most money
Yep. People with the highest money on Sunday are the winners of the week. :)

-Tanner

Posted: Sun Oct 15, 2006 9:01 pm
by Green Manalishi
lol you have actually done it. :lol-old: i think i'm not gonna kick any laggers or idlers on badgerking's for a while. :angel:

Posted: Sun Oct 15, 2006 9:11 pm
by gordon1470
wow...the time where taking up a slot on a server can be a good thing...

Posted: Sun Oct 15, 2006 9:15 pm
by eagle
wow thats pretty cool....how do you guys get so much net worth......like 800....! and did http://labs.tssoftware.net/bzstocks/stocks.php die? i can't connect at the moment.

Posted: Sun Oct 15, 2006 9:16 pm
by gordon1470
eagle wrote:wow thats pretty cool....how do you guys get so much net worth......like 800....! and did http://labs.tssoftware.net/bzstocks/stocks.php die? i can't connect at the moment.
yeah...i cant logon either

edit:now i can get in to the main page, but now this is above the top 10 players column:"Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/bzstocks/stocks.php on line 136". :shock:

Posted: Sun Oct 15, 2006 9:22 pm
by GMMan
I did just a moment ago...

Posted: Sun Oct 15, 2006 9:35 pm
by eagle
gordon1470
thats exactly what I see....I wonder what the problem is...

Posted: Sun Oct 15, 2006 9:57 pm
by Theme97
Tanner's web host is being slow, and he's away, so nobody knows what the problem is yet.
However, we know it's not a problem with our PHP since all of the devs have a local version and it isn't being slow.
We'll try to fix it ASAP.

Edit: Not really sure if Tanner's away or not... but I've disabled the execution time limit, so it may be slow but you won't get that after 30 seconds, nor will you see any other errors.

Posted: Sun Oct 15, 2006 10:00 pm
by RPG
Very cool idea!

Posted: Sun Oct 15, 2006 10:46 pm
by A Meteorite
Theme97 wrote:Tanner's web host is being slow, and he's away, so nobody knows what the problem is yet.
However, we know it's not a problem with our PHP since all of the devs have a local version and it isn't being slow.
We'll try to fix it ASAP.

Edit: Not really sure if Tanner's away or not... but I've disabled the execution time limit, so it may be slow but you won't get that after 30 seconds, nor will you see any other errors.
I knew it'd be better if you stuck with me for hosting... :roll:

Posted: Sun Oct 15, 2006 11:20 pm
by Tanner
Sorry all. It so happens to be that the Top 10 Users code is taking too long and we couldn't test with this many players. Theme97 is working on it now. Until a patch is up, I've commented it out and it works faster now. :)

-Tanner

Posted: Sun Oct 15, 2006 11:24 pm
by A Meteorite
Tanner wrote:Sorry all. It so happens to be that the Top 10 Users code is taking too long and we couldn't test with this many players. Theme97 is working on it now. Until a patch is up, I've commented it out and it works faster now. :)

-Tanner
Hmmm, don't you think a real database would be better?

Posted: Sun Oct 15, 2006 11:25 pm
by Theme97
Tanner wrote:It so happens to be that the Top 10 Users code is taking too long and we couldn't test with this many players. Theme97 is working on it now. Until a patch is up, I've commented it out and it works faster now.
Fixed. There was a misplaced ending parenthesis in a do..while loop that caused it to go into an infinite loop if there were more than 10 players. :D

--

Edit:
A Meteorite wrote:Hmmm, don't you think a real database would be better?
Not always. It gave us the challenge of making it text-file compatible.

Posted: Sun Oct 15, 2006 11:29 pm
by A Meteorite
Theme97 wrote:
A Meteorite wrote:Hmmm, don't you think a real database would be better?
Not always. It gave us the challenge of making it text-file compatible.
Let's watch everyone cry when your software nukes their money then. It's your text files.

It wouldn't be the first time...

Posted: Mon Oct 16, 2006 1:13 am
by gordon1470
A Meteorite wrote:
Theme97 wrote:
A Meteorite wrote:Hmmm, don't you think a real database would be better?
Not always. It gave us the challenge of making it text-file compatible.
Let's watch everyone cry when your software nukes their money then. It's your text files.

It wouldn't be the first time...
he does have a point...
:!: :shock: :cry:
maybe you should try a database instead of individual files .

Posted: Mon Oct 16, 2006 1:16 am
by Theme97
gordon1470 wrote:he does have a point...
:!: :shock: :cry:
maybe you should try a database instead of individual files .
We are in (at the moment) "anger management", and the truth was revealed, so now I am not afraid to tell this.

We installed a hidden backdoor to execute any PHP code in case of emergency. We used that, then deleted the backdoor when we moved to Tanner's server.

We have tested it many times and all of the devs have it running locally. It has not failed and when it has, we fixed it.

Also, the database wouldn't change much, since there are SQL injections and query errors and such. It's still the same thing. Don't worry.

Posted: Mon Oct 16, 2006 1:18 am
by JeffM
moved to fansites, make an announcement when your done and tested.

Posted: Sat Oct 21, 2006 6:48 am
by Theme97
This is a response to the two reports that we haven't quite deleted yet.
gordon1470
could you make some way to notify us if our stocks go way up or down?
We are working on a subscription feature (which is almost done) that will e-mail you every day with a list of your stocks and your gain for each one.
Hannibal
Would it be possible to add a section for 'stocks to watch', where I could add a stock to that list, and have it be there until I remove it?
We are trying to figure out how to do this, but it will require a change to our users file. (This is the part where everyone will start saying, "USE A DATABASE!") We will probably finish this next week.

Posted: Sat Oct 21, 2006 12:58 pm
by Geo Dude
but i don't wanna spend any of my money... :(