Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 07-22-09   #1 (permalink)
Overclocker in Training
 
intel nvidia

Join Date: Jul 2006
Posts: 254

Rep: 4 66gto Unknown
Unique Rep: 4
Trader Rating: 0
Default Help identifying lanuage used.

I am looking screw around and make something similar to MafiaWars on Facebook and I was just wondering what you think it was coded in?

Is it PHP + MySQL? For some reason I don't think it is, but prove me wrong.

If you've never played MafiaWars, it's like this:

You start with energy and do jobs...doing jobs gives you money. Every few minutes your energy is increased, allowing you to do more jobs if the amount of energy you build up allows it.

Ideas?

*edit*

The main thing I want to figure out is the adding energy every 'x' minutes. Is that something you can do with MySQL or PHP or is there something else going on in the background?
__________________
System: Beast
CPU
Core 2 Quad Q6600
Motherboard
DFI DK P35
Memory
OCZ 4GB DDR2 800
Graphics Card
BFG Tech 9600GT 512MB
Hard Drive
320GB Seagate 7200rpm
Sound Card
SB Live! 24bit
Power Supply
OCZ SilentXStream 600w
Case
NZXT TRINITY STEEL ATX
OS
Vista x64
Monitor
Samsung 2443BWX 24"

Last edited by 66gto : 07-22-09 at 10:20 PM
66gto is offline   Reply With Quote
Old 07-22-09   #2 (permalink)
4.0 GHz
 
amd ati

Join Date: Apr 2009
Posts: 76

Rep: 7 mikeml Unknown
Unique Rep: 7
Trader Rating: 0
Default

its either php or asp
__________________
System: Dęmon
CPU
AMD Phenom 2 X4 940
Motherboard
GIGABYTE GA-MA790X-UD4P
Memory
2x2gb Mushkin 1066
Graphics Card
HIS Radeon HD 4770
Hard Drive
640Gb Western Digital Caviar Black
Sound Card
onboard
Power Supply
Silverstone ST50F 500watt
Case
Antec 300
CPU cooling
stock
GPU cooling
stock
OS
Windows 7 64 bit
Monitor
Asus VH222H 21.5 in
mikeml is offline   Reply With Quote
Old 07-23-09   #3 (permalink)
4.0ghz
 
Coma's Avatar
 
intel nvidia

Join Date: Jun 2007
Posts: 7,479

Rep: 455 Coma is a proven memberComa is a proven memberComa is a proven memberComa is a proven memberComa is a proven member
Unique Rep: 328
Trader Rating: 0
Default

Or neither, considering it's a Facebook plugin.

You should just look up what Facebook plugins are written in, instead of asking here... that seems to be the obvious course of action...
__________________
System: Akiyama Mio
CPU
E6420 @ stock, 0.98v
Motherboard
Asus P5N-E SLI
Memory
2x1GB OCZ Platinum @ 800MHz 4-4-4-12 1T, 1.9v
Graphics Card
BFG 8800GT 512MB
Hard Drive
WD 250GB, 320GB SATA/3, 16MB Cache
Power Supply
Corsair 520HX
Case
NZXT Apollo Black
CPU cooling
Stock
OS
Ubuntu 9.04 x86 & XP x86
Monitor
Asus VW222U
Coma is offline Overclocked Account   Reply With Quote
Old 07-23-09   #4 (permalink)
Overclocker in Training
 
intel nvidia

Join Date: Jul 2006
Posts: 254

Rep: 4 66gto Unknown
Unique Rep: 4
Trader Rating: 0
Default

I don't necessarily want to do it for Facebook, so I guess I want to ask what the best way to do it as a standalone website would be.
__________________
System: Beast
CPU
Core 2 Quad Q6600
Motherboard
DFI DK P35
Memory
OCZ 4GB DDR2 800
Graphics Card
BFG Tech 9600GT 512MB
Hard Drive
320GB Seagate 7200rpm
Sound Card
SB Live! 24bit
Power Supply
OCZ SilentXStream 600w
Case
NZXT TRINITY STEEL ATX
OS
Vista x64
Monitor
Samsung 2443BWX 24"
66gto is offline   Reply With Quote
Old 07-23-09   #5 (permalink)
Linux Lobbyist
 
Territorial's Avatar
 
amd nvidia

Join Date: Jul 2009
Location: Laval
Posts: 61

Rep: 17 Territorial Unknown
Unique Rep: 12
Trader Rating: 0
Default

the best way to do this would depend on the platform you use on the server... for most configurations PHP/Mysql would be the best bet, though writing a server in C is also possible for example... just a tad more complicated
__________________
System: Dawn
CPU
Phenom 9500
Motherboard
XFX Geforce 8200
Memory
4GB
Graphics Card
XFX Geforce 9600 GSO
Hard Drive
750GB
Sound Card
realtek hd sound
Power Supply
650W
Case
custom
OS
Vista 64bit/Arch Linux(dualboot)
Monitor
19" 4:3
Territorial is offline   Reply With Quote
Old 07-23-09   #6 (permalink)
Linux Lobbyist
 
Territorial's Avatar
 
amd nvidia

Join Date: Jul 2009
Location: Laval
Posts: 61

Rep: 17 Territorial Unknown
Unique Rep: 12
Trader Rating: 0
Default

let me know if you need help to get started on something like this, i don't mind helping out if i have time
__________________
System: Dawn
CPU
Phenom 9500
Motherboard
XFX Geforce 8200
Memory
4GB
Graphics Card
XFX Geforce 9600 GSO
Hard Drive
750GB
Sound Card
realtek hd sound
Power Supply
650W
Case
custom
OS
Vista 64bit/Arch Linux(dualboot)
Monitor
19" 4:3
Territorial is offline   Reply With Quote
Old 07-23-09   #7 (permalink)
Linux Lobbyist
 
Territorial's Avatar
 
amd nvidia

Join Date: Jul 2009
Location: Laval
Posts: 61

Rep: 17 Territorial Unknown
Unique Rep: 12
Trader Rating: 0
Default

Quote:
Originally Posted by DanC View Post
The main thing I want to figure out is the adding energy every 'x' minutes. Is that something you can do with MySQL or PHP or is there something else going on in the background?
there are a few ways to do it. The best way i can think of, is checking every time the page is accessed how much time has passed since the last access, and adjust the values then. Unless you write your own server, I don't see how you could do this in the background at all.
__________________
System: Dawn
CPU
Phenom 9500
Motherboard
XFX Geforce 8200
Memory
4GB
Graphics Card
XFX Geforce 9600 GSO
Hard Drive
750GB
Sound Card
realtek hd sound
Power Supply
650W
Case
custom
OS
Vista 64bit/Arch Linux(dualboot)
Monitor
19" 4:3
Territorial is offline   Reply With Quote
Old 07-23-09   #8 (permalink)
Overclocker in Training
 
intel nvidia

Join Date: Jul 2006
Posts: 254

Rep: 4 66gto Unknown
Unique Rep: 4
Trader Rating: 0
Default

+REP for everyone's input, thanks!
__________________
System: Beast
CPU
Core 2 Quad Q6600
Motherboard
DFI DK P35
Memory
OCZ 4GB DDR2 800
Graphics Card
BFG Tech 9600GT 512MB
Hard Drive
320GB Seagate 7200rpm
Sound Card
SB Live! 24bit
Power Supply
OCZ SilentXStream 600w
Case
NZXT TRINITY STEEL ATX
OS
Vista x64
Monitor
Samsung 2443BWX 24"
66gto is offline   Reply With Quote
Old 07-23-09   #9 (permalink)
4.0ghz
 
Coma's Avatar
 
intel nvidia

Join Date: Jun 2007
Posts: 7,479

Rep: 455 Coma is a proven memberComa is a proven memberComa is a proven memberComa is a proven memberComa is a proven member
Unique Rep: 328
Trader Rating: 0
Default

PHP is probably the easiest to pick up from scratch. It was my first language. You probably won't grasp (or even need to use) stuff like object-oriented programming, but it has that too. It's a good introduction to programming because it takes care of data types and stuff for you.

For example, to add two whole numbers in Java would be (very similar in other languages like C++):

PHP Code:
public static int add(int aint b) {
return 
a+b;

Whereas in PHP it's only:
PHP Code:
function add($a$b) {
return 
$a+$b;

__________________
System: Akiyama Mio
CPU
E6420 @ stock, 0.98v
Motherboard
Asus P5N-E SLI
Memory
2x1GB OCZ Platinum @ 800MHz 4-4-4-12 1T, 1.9v
Graphics Card
BFG 8800GT 512MB
Hard Drive
WD 250GB, 320GB SATA/3, 16MB Cache
Power Supply
Corsair 520HX
Case
NZXT Apollo Black
CPU cooling
Stock
OS
Ubuntu 9.04 x86 & XP x86
Monitor
Asus VW222U
Coma is offline Overclocked Account   Reply With Quote
Old 07-23-09   #10 (permalink)
µaestro
 
RonindeBeatrice's Avatar
 
intel ati

Join Date: Mar 2006
Location: Virginia, USA
Posts: 7,424
Blog Entries: 1

FAQs Submitted: 1
Folding Team Rank: 158
Trader Rating: 50
Default

For anything remotely complicated you'll likely want to use an object oriented language, it helps keep everything neat.
__________________
Quote:
Originally Posted by pow3rtr1p View Post
Can't wait for the completed build. It does look like Pure Action to me. It's tall and dark and thick, and you mounted those very well.
-Overclock.net Professionalism Initiative

System: Those Jones need to stand still
CPU
i7 920 C0
Motherboard
Asus Rampage II Gene
Memory
6GB OCZ DDR31600 CL7
Graphics Card
Sapphire HD4850 1GB
Hard Drive
WD 640GB AAKS
Power Supply
Enermax Infiniti 720
Case
Soldam Windy Altium FC-300 MB "Fireball"
CPU cooling
Noctua NH-U12P
OS
Win 7 RC
Monitor
HP w2408
Overclock.net - 2009 Chimp Challenge Champions 1 Million+ Folding at Home points
RonindeBeatrice is offline I fold for Overclock.net Overclocked Account RonindeBeatrice's Gallery   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 02:40 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.17100 seconds with 8 queries