BZStocks

External websites, for and about BZFlag
User avatar
Tanner
Private First Class
Private First Class
Posts: 575
Joined: Sat Sep 17, 2005 3:46 am
Location: Atl, GA
Contact:

BZStocks

Post 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
Tanner - Segway HT i180 Red Owner - Random Map Creator - BZStocks - TS Software

Image
gordon1470
Private First Class
Private First Class
Posts: 18
Joined: Sat Apr 08, 2006 2:26 am

Post by gordon1470 »

sweet...this could be a good idea..
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post 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!
Image
User avatar
A Vicious Muffin
Private First Class
Private First Class
Posts: 534
Joined: Sat Aug 26, 2006 12:25 am
Location: Drury Lane

Post by A Vicious Muffin »

Wow. Nice work Tanner and Theme! I would have never thought of something like this! :D
Image
User avatar
eagle
Private First Class
Private First Class
Posts: 510
Joined: Tue Jan 25, 2005 10:29 pm
Location: Round Hill, VA

Post by eagle »

thats pretty cool :)
Last edited by eagle on Sun Oct 15, 2006 8:57 pm, edited 1 time in total.
~~~~~
I do know everything, just not all at once. Its a virtual memory problem.
gordon1470
Private First Class
Private First Class
Posts: 18
Joined: Sat Apr 08, 2006 2:26 am

Post by gordon1470 »

i think the point is to have the most money

edit:yes...much money..yayy im rich!!!
Last edited by gordon1470 on Sun Oct 15, 2006 9:13 pm, edited 1 time in total.
User avatar
Tanner
Private First Class
Private First Class
Posts: 575
Joined: Sat Sep 17, 2005 3:46 am
Location: Atl, GA
Contact:

Post 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
Tanner - Segway HT i180 Red Owner - Random Map Creator - BZStocks - TS Software

Image
User avatar
Green Manalishi
Private First Class
Private First Class
Posts: 593
Joined: Thu Nov 18, 2004 5:54 pm
Location: Effingham

Post 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:
gordon1470
Private First Class
Private First Class
Posts: 18
Joined: Sat Apr 08, 2006 2:26 am

Post by gordon1470 »

wow...the time where taking up a slot on a server can be a good thing...
User avatar
eagle
Private First Class
Private First Class
Posts: 510
Joined: Tue Jan 25, 2005 10:29 pm
Location: Round Hill, VA

Post 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.
~~~~~
I do know everything, just not all at once. Its a virtual memory problem.
gordon1470
Private First Class
Private First Class
Posts: 18
Joined: Sat Apr 08, 2006 2:26 am

Post 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:
Last edited by gordon1470 on Sun Oct 15, 2006 9:32 pm, edited 2 times in total.
User avatar
GMMan
Private First Class
Private First Class
Posts: 186
Joined: Sat May 13, 2006 9:32 pm
Location: On the time-space continuum

Post by GMMan »

I did just a moment ago...
I haven't touched BZFlag for years, but maybe sometime I'll make a comeback.

I'm on Twitter. And I mess with webOS. This signature is not a blog.
User avatar
eagle
Private First Class
Private First Class
Posts: 510
Joined: Tue Jan 25, 2005 10:29 pm
Location: Round Hill, VA

Post by eagle »

gordon1470
thats exactly what I see....I wonder what the problem is...
~~~~~
I do know everything, just not all at once. Its a virtual memory problem.
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post 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.
Last edited by Theme97 on Sun Oct 15, 2006 10:03 pm, edited 1 time in total.
Image
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

Very cool idea!
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post 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:
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
Tanner
Private First Class
Private First Class
Posts: 575
Joined: Sat Sep 17, 2005 3:46 am
Location: Atl, GA
Contact:

Post 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
Tanner - Segway HT i180 Red Owner - Random Map Creator - BZStocks - TS Software

Image
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post 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?
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post 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.
Image
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post 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...
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
gordon1470
Private First Class
Private First Class
Posts: 18
Joined: Sat Apr 08, 2006 2:26 am

Post 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 .
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post 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.
Last edited by Theme97 on Mon Oct 16, 2006 1:18 am, edited 1 time in total.
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

moved to fansites, make an announcement when your done and tested.
ImageJeffM
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post 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.
Image
User avatar
Geo Dude
Private First Class
Private First Class
Posts: 99
Joined: Sun Sep 10, 2006 11:50 am
Location: zzzzathura...mofo world

Post by Geo Dude »

but i don't wanna spend any of my money... :(
Post Reply