Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Hy all, first off all, don't yell that i shouldn't start with it, i just want to know how that works...

The thing is, how does the engine of an webgame works. A game like tribalwars, grepolis and forge of empires.

How does that keeping alive work. I mean, a user is building an building, and quit the browser... The building is build even when the session of the user is expired. but the points of the user is updated when the building is finished... So how does that works.

What do you guys think? do they have some kind of cronjob that is fired every second, and that walks throug the database, and search for finished buildings, and update's the stuff? or do you guys think that they do it difrent?!?

I hope that i was clear. -NOTE- i don't need anny code, i'm just intrested in the progress behind the game...

Greetingz Marc

share|improve this question
3  
-1 This question shows very little research effort and is too broad. Learn about the Client-Server model. The things you're talking about happen on the server. The server doesn't care if the client is connected or not for doing things like building a structure. I would be very surprised if a cronjob was used. Google for MMO architecture. –  Byte56 Sep 24 '12 at 19:57
add comment

closed as not a real question by Byte56, Jonathan Hobbs, Jari Komppa, Laurent Couvidou, Martin Sojka Sep 28 '12 at 7:18

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 0 down vote accepted

If I developed a game like that, I would store all info in database and pass deltatime (time since last update) for each user profile to update their status to current time. When the user is logged in, the server will often update or else, it will update next time when the user logs in.

share|improve this answer
    
alright, i understand it... it's not something small... –  TWCrap Sep 25 '12 at 10:45
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.