• Advertisement

Buildings Page Poll

StarBattle related news posted here

Moderator: Jfighter64

What's the best option ?

1. Map style design
13
25%
2. Modern style design
27
52%
3. Same design but with a calculate button
2
4%
4. Same design but calculate the prices on my PC
10
19%
 
Total votes : 52

Buildings Page Poll

Postby Astaroth on Tue Jan 05, 2010 9:05 pm

Starbattle is starting to grow and some serious optimizations are needed in order to keep a normal loading time of the game the Buildings page needs some changes.
The main problem with the Buildings page which uses most of the server's resources is the calculation of the resources needed to upgrade a building to a certain level because the formula used to calculate them is:

Code: Select all
Basic Cost (first level) * Upgrade factor  ^ Building Level

Basic cost = the cost for the first level
Upgrade factor = how many times the cost is increased for each level usually it's 1.4 to 2 depending on the building


This formula is applied to 1-3 types of resources for 17 types of buildings, now imagine how long it takes to calculate that many powers if you have level 40-60 buildings.

I got a few solutions to the problem but that would require a change of the design for the buildings page.

1. Map style design:
You will get a terrain map and some building images over it, when you click on the building you will get all the info you need.
It will look something like this (the design will be much better this is just to make an idea about how it would look)
Image

2. Modern style design
You will get a list with the images buildings, after you click on them you will get the info.
It will look something like this:
Image

3. Same design but with a calculate button
Keep the old design and instead of showing the prices directly you will need to click on a calculate button to see the info.

4. Same design but calculate the prices on my PC
Keep the old design and use JavaScript to calculate the prices automatically on my computer. This option would be the best in case you want to keep the same buildings page but it may slow your browser down.

Other suggestions are welcome.
My last.fm profile
I will not respond to private messages.
User avatar
Astaroth
StarBattle Owner
 
Posts: 1820
Joined: Tue Sep 30, 2008 6:25 pm
Location: 1:1:1

Advertisement

Re: Buildings Page Poll

Postby wayne82444 on Wed Jan 06, 2010 2:50 am

You might consider using 3 and 4 both- just let people choose between the two in the options menu. That said I choose option 1 because I think it would look the best in the end.
wayne82444
Spy
 
Posts: 54
Joined: Mon May 25, 2009 4:37 am

Re: Buildings Page Poll

Postby pwnage on Wed Jan 06, 2010 4:52 am

no. 1 is great cause then I won't have to scroll down to upgrade my bank or upgrade my missile silo, lazy me! :lol:
"Proud Enemy of VE" (They like taking it up the ass)
This message was brought to you be T_4_J(pss... Join it!)
Copyright 2010
pwnage
Destructor
 
Posts: 201
Joined: Mon Aug 17, 2009 1:46 am
Location: In a room, pwning your noobs

Re: Buildings Page Poll

Postby Gormo on Thu Jan 07, 2010 12:43 am

number 2 works well for me. Same as on the new Ogame server.

Gorms
Gormo
Raider
 
Posts: 102
Joined: Fri Sep 18, 2009 12:17 pm

Re: Buildings Page Poll

Postby kocu on Thu Jan 07, 2010 6:08 am

i chosed no 2 ... but copying things from OGame...again...is lame >_>
Image
User avatar
kocu
Conquerer
 
Posts: 768
Joined: Fri Apr 03, 2009 12:08 pm
Location: Sweet Vacation

Re: Buildings Page Poll

Postby Astaroth on Thu Jan 07, 2010 8:47 am

kocu wrote:i chosed no 2 ... but copying things from OGame...again...is lame >_>

No one said that I'm copying, I just want to know which style would work best.
My last.fm profile
I will not respond to private messages.
User avatar
Astaroth
StarBattle Owner
 
Posts: 1820
Joined: Tue Sep 30, 2008 6:25 pm
Location: 1:1:1

Re: Buildings Page Poll

Postby Mistole on Mon Jan 11, 2010 3:48 pm

I dislike 1... the others... I am ok with all three. I currently allow javascripting anyway due to an add on I run for Firefox.
Image
Mistole
Raider
 
Posts: 120
Joined: Fri Sep 04, 2009 6:59 pm

Re: Buildings Page Poll

Postby gumppy on Mon Jan 18, 2010 5:37 am

i choose 1 just because Todd said he didn't like it!
User avatar
gumppy
Miner
 
Posts: 23
Joined: Mon Sep 21, 2009 3:30 am

Re: Buildings Page Poll

Postby Bullet on Tue Jan 19, 2010 3:58 pm

Map is the best it`s cool and original
Bullet
Explorer
 
Posts: 2
Joined: Tue Jan 19, 2010 3:45 pm

Re: Buildings Page Poll

Postby Fatuna on Sun Jan 24, 2010 10:42 pm

why not keep the design the same but in stead of calculating everything every time, simply pre-calculate everything and put all the numbers in a database. Then when a browser loads the info it'll just have to 'look' in the database to get the info. I'm not sure if it is possible but that's the way some processors are made to work faster, by a so called look-up-table.

Good luck with the problem!
Fatuna
Explorer
 
Posts: 1
Joined: Sun Jan 24, 2010 10:37 pm


Return to Announcements

Who is online

Users browsing this forum: No registered users and 2 guests

  • Advertisement