Scrapbook photo 1
Adam Hayek
Attended University of Illinois at Urbana-Champaign
Lived in Urbana, IL
3,512 followers|246,767 views


Adam Hayek

commented on a video on YouTube.
Shared publicly  - 

Adam Hayek

Shared publicly  - 
If I play a game enough it inevitably leads to code. Finally I reached that point with G+ Crime City. This utility helps me keep track of how much stamina I have and tells me if I have enough to do 10% to the various bosses:

- Compute how much stamina to spend to do 10% on the boss.
- Keep track of current stamina as it refills 1 every 3 minutes; I don't have to load up the game to find out how much I have.
- Track multiple accounts (limited by how big you can make the window).

If anyone is interested in running it yourself, the code (VS 2010 project) and compiled exe can be downloaded here (link good for 7 days, supposedly):
I run it in windows 7 and it requires .NET 4.0. Might/should work in other versions of windows as well.

"User Guide" for those who try to run it:
The fields you need to enter are:
Name - whatever
Level - current level
Skill - Attack skill in Profile->Skills tab.
Attack - Mafia Attack
Defense - Mafia Defense
Building Def - Total of all defense values from buildings in your hood.
Sta Max - How much stamina you have when full.
Stamina - How much stamina you have now.

Colors for the boss cost:
Green - You have enough to do 10% even if all shots are for minimum damage.
Blue - You have enough to do 10% if all shots do max damage (not likely)
Red - Need to wait for more stamina to regenerate.
Gold - Can do 10% if you use all current stamina plus use full stamina refill.
Gray - Can't do 10% even with current stamina plus full refill.

Clicking on the stamina cost of the boss will decrease your current stamina by the max stamina cost for that boss. If the current stamina gets out of sync for other reasons, just type in the correct value.
Raquel González's profile photoRakib Rahman's profile photoConstantine N Jeromnimon's profile photoAdam Hayek's profile photo
+Constantine N Jeromnimon I have another post that details the formula for taking the inputs that you put into this program and gives the amount of damage done to the different bosses.  It would be pretty easy to enter that formula into a spreadsheet, and you could do whatever you wanted with it from there.
Add a comment...

Adam Hayek

Shared publicly  - 
Kids ready for Tae Kwon Do tournament.
Dan Dan's profile photoOLYER Bera's profile photoScott Whitsitt's profile photo
Not long before they can kick your arse mr. Hayek
Add a comment...

Adam Hayek

Shared publicly  - 
Posting my own to continue another discussion about copyright, since I don't want to upset people in their own threads.

I think copyright is immoral because it goes against something which is a fundamental part of human nature and which is our primary means of elevating ourselves and our civilization, namely the communication of ideas.

I think the belief that ideas can and should equal dollars is a poison, and that our institution of copyright and patents brings far greater harm than any good it could ever foster.

If someone can (and they do) make a living putting their ideas in the public domain (software, music, writings, knitting patterns, whatever) then I'm happy for them but that doesn't mean I think myself or anyone or everyone else should be able to make a living that way and I certainly don't think the threat of law enforcement should be brought to bear in order to guarantee any such potential outcome.
Daetrin Ungashak's profile photoAdam Hayek's profile photoIvar Songe's profile photoAsteroth Rin's profile photo
The second major failing of the patent system is the case of abuse through the use of a big legal team and the use of industrial espionage.
Those living in the US will know legal proceedings can stretch for years and require hefty resources, against predatory megacorp, it is a situation of david vs goliath where david doesn't get the chance to win.
Add a comment...

Adam Hayek

Shared publicly  - 
[Crime City public post]

There's a gun in the store, Night Vision MAR, that has absurd stats, and cost 0 gold. Don't know how many people have done it already, but I just got attacked by someone with 500 of them. Guy had 70k some defense.

Hope the bugfixes don't take as long to come around as this update itself did.
Tamer Barakat's profile photoAdam Hayek's profile photoLisa Antunes's profile photoSalman Mir's profile photo
Add a comment...

Adam Hayek

Shared publicly  - 
Find people in crime city that have some of the special buildings to protect.
Find buildings to protect in Crime City.
Zvonimir Vaško's profile photoTherese Hilger's profile photo
Since a couple of folks asked me offline - "protect" a building when you visit a neighbor. If you see a shield above a building, you can "protect" that building.
You benefit - you get cash that seems to go up based on your level, you also may get some extra (I see +25) energy, and if the building has a 'collection', you have a chance to get an item too.
The only guarantee is the cash.
Your neighbor benefits - if that building comes under attack (someone tries to rob it), you aid in defending that building.
Since only money buildings can be robbed - only money buildings can be defended.

Many of these buildings are required for different tasks / jobs / quests.
Lower level players will have to attack someone's laundry, sport's bar, and basketball courts. Basketball is a gold building, so there are a lot fewer of them around.

Also, when someone robs a building - there seems to be a 'bug' maybe it is intentional. Each successful robbery takes 20% of the building payout. One building can be robbed twice. BUT, when you collect from that building, you get less than the 60% you expect - usually I see 50% or even 40% .

So it really helps your neighbor if you protect a building with them. Especially the "special" buildings like Adam has listed. Most of them are Gold -bought, and/or have a special payout like a really neat weapon.

I think Gary Fung wrote about this - if I remember, only 10 people can stack up protection on a building. After that, new neighbors won't see a shield available.

The protection seems to last exactly 24 hours. On those "special" buildings where only a few exist - like french restaurants, hotels, and office parks.. anyone who does get in to defend will probably set a timer so they go back in exactly 24 hours to 'camp' on that building.

( That's what I think I know... corrections, comments are welcome!)
Add a comment...

Adam Hayek

Shared publicly  - 
Snow on the last day of spring break.
Add a comment...

Adam Hayek

Shared publicly  - 
[Crime City post]

Finally, I think I've deciphered an approximate formula for the amount of damage done to bosses. The relevant stats are:

- Mafia attack (atk)
- Mafia defense (def)
- Building defense (BD)
- Level (L)
- Attack skill (AS)
- Boss Bonus (B)

Each boss has a different bonus (B):

Snake = 830
Natty = 450
Diablo = 900
Payne = 1990
To get the maximum damage (Dmax) from one stamina (not power shot), use the formula:

Dmax = L + AS - 10 + (atk + def - BD) / 6.045 + B

To get the minimum damage (Dmin) from one stamina use the formula:

Dmin = Dmax * 0.95

The forumla for Dmax only works for combined atk + def values over a certain minimum, probably close to the value of B for whatever boss. I'm not able to test at low enough levels to determine exactly where this formula kicks in, but mostly it doesn't matter because at those low levels it would be tough to beat the boss anyway (hundreds and/or thousands of sta required for 10%).

The above formula is not what the game actually uses, but gives a value within 10 of what is actually seen in game at all levels I have tested. It is a bit uncertain also whether the L and (AS - 10) values in the formula should be as I have them or if they should be scaled by 6.045 as the mafia attack and defense parts are. It makes very little difference either way.

Using those values you can calculate a quite reliable minimum and maximum number of stamina required to do 10% to each boss, and how much to increase combined mafia attack + defense in order to lower the amount of stamina required.

One notable conclusion is that though spending skill points on attack does have a measurable effect, it's so virtually useless that it would be funny if it weren't such a tragic waste. Spending skill points on attack does NOT raise the displayed mafia attack value of your character. I suspect spending skill points on defense might have the same effect on boss damage as spending on attack (like mafia attack and defense both effect boss damage) but I wasn't willing to waste a skill point to test it.

The other thing of note is that although mafia defense from items does increase boss damage (to the same degree as mafia attack, no less), defense from buildings does not.
Adam Hayek's profile photoCXh maneep's profile photoJoshua Taranow's profile photo
which one?
and what attack how many times?
Add a comment...

Adam Hayek

Shared publicly  - 
Something I've been meaning to write for a while now myself. Post to the Game Stream as Public.
How to use the Gamestream Function without annoying the Hell out of others
an Observation/Learning-Experience by me to others (who dont want to end up being Blocked^^). a TL;DR is at the bottom :>

When i started using Google+ when it was internal Beta and the Games started appearing, i had couple Circles (Like CC for Crimecity, GW for Global War and whatnot).

Since i dont want to annoy People while playing (aside from crushing my Victims in the games of course harhar) i carefully used the "Share" Button inside games only with the Circle of the Game i was playing.

So when i was playing Global Warfare and i posted those "need help with whatever" Sharefunction i only selected the GW circle. For Crimecity the CC circle and so on.
I thought when i play GW, i dont want to annoy the CC ppl with my GW shit they prolly dont play.

Later i figured out that it was just too much work and not needed (or Google+ evolved enough that it got better).

Just post all your Stuff as "public" and Public ONLY. Why?

The Stuff you post only gets posted to the "Gamestream". So all the People you got in your Circle who dont Play Games or are just reading trough their Stuff wont get bothered with your hundreds of Notifications.

For the ones doing some Games they have a Nice Gamestream they can "work trough".

If you keep posting your stuff using limited Circles this only causes unneccessary "... shared a Post directly with you" notifications that can get really annoying for some People (me... as example).

I prefer to read trough notifications that matter like when i get mentioned, +1, commented on stuff i do on this Google+ Thing.

Having like 50 notifications where 46 are just another "Help me with that Boss" and maybe missing out the important ones are not a good Experience.

Iam sure others think the same. So please stop using "...shares a post directly with you", just post to public and "everyone" is happy :P

If you dont.. well then you might end up getting blocked if you keep doing it and annoy the hell out of me (and iam usually nice enough and ask nicely before i block).

Thanks... At some later time i might rewrite this whole thing so it actualyl is a better nice to read guide. Or if youre annoyed with the same issue and can write much better Guides: Do it and post it, so the annoyed ones can just link to that Post so i dont have to write my ass off every day repeating the same thing over and over to "that new Guy who joined me in the game"

- Use the Ingamesharebutton on setting "Public" or you cause Annoyance with unneeded "...shares a Post directly with you". If you dont --> expect to be blocked sooner or later. I doubt you want this Effect :P
Adam Hayek's profile photoFanny Fishfinger's profile photoKai-Stephan Trienke (xtrapas)'s profile photo
na.. the +1 is ok.

i was confuzed on beginnign why ppl kept upvoting for no apparent reason

but then i saw the logic

also.. this post is old
#gamestream <--click there, find other posts from me.. you see when you found what i mean :P
Add a comment...

Adam Hayek

Shared publicly  - 
If you circled me for Crime City and I have not circled you back, let me know here. Or anywhere really.
Adam Hayek's profile photoAmar Kahlon's profile photoSHASANK MATURI's profile photoRamesh Sampath's profile photo
add me please
Add a comment...

Adam Hayek

Shared publicly  - 
I've been sick the last couple days and last night I slept way too long and had a nightmare about Crime City. In my dream I had a fight that looked like a boss fight, but was actually against another player. I lost the fight and of course the penalty for losing a fight (this is a nightmare remember) is that you lose a percentage of your gear. All my best items were gone and I woke up drenched in sweat. Crappy colds, crappy nightmares. =)
Alex Chan's profile photoOLYER Bera's profile photoAdam Hayek's profile photoKlum Heidi's profile photo
Add a comment...

Adam Hayek

Shared publicly  - 
First Madame Payne loot. And last for a while until the quest comes up to unlock her. =)
Adam Hayek's profile photoMichael Treutler's profile photoAngelo Franchesco Ocampo's profile photo
Super thanks for your help Adam!
Add a comment...
Programmer, Game Developer
  • University of Illinois at Urbana-Champaign
    Computer Science, 1991 - 1995
Basic Information
Other names
Computer Programmer
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Urbana, IL - Austin, TX - Dallas, TX - Bellevue, WA - Culver City, CA - Warrenville, IL