[Information] It Has Begun
We're building our own MMO! Get in on the ground floor before it goes live on Kongregate!
RE: It Has Begun Posted on: 01/19/2015 8:47pm
Quote Post
TIM the Enchanter
Level: 1
ADR Info

We're not stealing any music from anywhere, not integrating anything flash based.  If we want music at some point, I'll use JS for handling it.  HTML5 does have an audio tag after all.

Tha max is 1600, so going larger won't get you anywhere.  I'm thinking my math is off by 1 when it comes to outer bounds.  I'm not concerned with it at the moment, as we still have a shit load of stuff to get done before going back and optimizing.  I've chatted about this, and I'm pretty sure I posted somewhere about it, but eventually the map won't be "fluid".  Instead of centering on whatever tile you want, it will function in 25x25 tile "quadrants".  This way I can partition the main map table, render fancy images, etc, all based on quadrants.  With the rendered images, I'd be able to display a massive overworld map as well.  Long story short, don't try to abuse it and you'll be fine.

The game does a fuck load of client side rendering.  It's essentially looping through 250 records on every "map refresh", then handling coloring and borders.  The server spits out JSON, your browser parses it into a ton of HTML and CSS.





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: It Has Begun Posted on: 01/19/2015 9:10pm
Quote Post

Can JS scroll a page?
You could optimize the client by rendering once a 3x3 region (9 * the currently visible area) where all but the central square are initially off-screen, then just scroll this and update only the changed tile until the visible area reaches the border of this pre-rendered region. Then repeat.

If JS can't directly cause scrolling - add some CSS and change its padding/margin/whatever through the JS.




I have gone to find myself. If I return before I get back, please hold me here until I arrive.
RE: It Has Begun Posted on: 01/19/2015 9:49pm
Quote Post
Foreign Fanservice

Couple of things:

1.     Has the air combat bonus to Geo Eff been intentionally removed or is a throwback from the < level 50 bonus overwriting the variable?

2.    PvP now generates an error; Message box with something along the lines of "An error happened. Please refresh and try again". Refreshing and trying again just has the same effect. Also tried equipping a different weapon from mercenary tribe (See point 3) in case it was getting confused with no luck. Doesn't seem to be able to receive an attacking success/failure response.

3.    With the timed purchasable techs which return to being purchasable after the time runs out; the bonuses gained from the techs stay allowing for massive stacking (Don't know if this bit is intentional). Things like Mercenary tribe, which allows for the equippable weapon, stays active after it returns to purchasable tech but if unequipped it needs to be re-bought to equip again. I would assume it needs to either be auto-unequipped or changed to a permanent tech.
 




Survival of the fittest? Then why are there so many idiots around...
Point proven.
Listen to many, speak to a few.

RE: It Has Begun Posted on: 01/19/2015 10:26pm
Quote Post
TIM the Enchanter
Level: 1
ADR Info

1) Oops, my bad.  It's working properly again.
2) Fixed!
3) Good catch!  My fucking index wasn't set to unique...  I had to wipe the entire nation-techs table and reset everyone to L0.

Sorry guys.  Hey, that's an Alpha for ya. :P





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: It Has Begun Posted on: 01/19/2015 11:48pm
Quote Post

Just wondering, how do you calculate the probability of a failed land acquisition.
THought at first that it was related to Geo Eff but even at 80%+ I still fail like 1/3

 

RE: It Has Begun Posted on: 01/20/2015 12:36am
Quote Post
TIM the Enchanter
Level: 1
ADR Info
$rand = mt_rand(1,100);
if($rand > ($NATION->calcGeoEfficiency()*100)){ /* Fail */ }


Like that.  If rand > your geo efficiency, you fail.  Otherwise, you succeed.
At 100% Efficiency, the random could, at most, generate 100, which is not greater than 100, so you succeed 100% of the time.

I was using rand functions, as I had totally forgot about mt_rand.  I switched them all to mt_rand today.
mt_rand vs rand info.
http://stackoverflow.com/questions/7808021/whats-the-disadvantage-of-mt-rand
http://en.code-bude.net/2013/01/06/php-rand-vs-mt_rand-what-is-more-accurate-what-is-faster/


FYI, I have end game techs in place.  There's work that needs to be done to generate an actual leveling algo so I don't have to hard-code the values (right now capped out at 380.  If you manage to get that high... holy fuck).

At level 276, you'll have all techs.  This breaks the level up system.  I came up with 4 new techs that are repeatable, and can only be taken at L276 and up. I'm goanna paste them below and see if it works. :P
 

End Game - Helpful Citizens (276)

Made it to the end of the game and ran out of techs to research? Get this to help your population thrive!

attribute_agriculture.png 20 0 0
attribute_counter_attack.png 5 0 0
attribute_counter_defense.png 5 0 0
attribute_economic_eff.png 10 0 0
attribute_energy_production.png 5 0 0
attribute_general.png 2 0 0
attribute_innovation.png 2 0 0

End Game - Off To War (276)

Made it to the end of the game and ran out of techs to research? Go to war!

attribute_counter_attack.png 3 0 0
attribute_counter_defense.png 3 0 0
attribute_counter_intel.png 3 0 0
attribute_general.png 3 0 0
attribute_guerilla_warfare.png 10 0 0
attribute_intelligence.png 3 0 0
attribute_motivation.png 9 0 0
attribute_personal_combat.png 9 0 0
attribute_persuasion.png 5 0 0

End Game - Intelligence (276)

Made it to the end of the game and ran out of techs to research? Feel like getting smarter? Try this out!

attribute_counter_intel.png 15 0 0
attribute_innovation.png 15 0 0
attribute_intelligence.png 15 0 0

End Game - The Occult (276)

Made it to the end of the game and ran out of techs to research? Get Spiritual Baby!

attribute_agriculture.png 10 0 0
attribute_biowar.png 10 0 0
attribute_persuasion.png 5 0 0
attribute_psionics.png 25 0 0
 


 





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: It Has Begun Posted on: 01/21/2015 4:48pm
Quote Post

Just a question concerning the pvp:

My nation is now 305 squares (lvl6), I phagocyted (i.e. surrounded) a 19 square nation but I seem unable to win any attack against any square of this nation.
Is there any detailed explanation on how the pvp works ?


 

RE: It Has Begun Posted on: 01/21/2015 5:58pm
Quote Post
lamarzeitoun Posted on: 01/21/2015 11:48am

Just a question concerning the pvp:

My nation is now 305 squares (lvl6), I phagocyted (i.e. surrounded) a 19 square nation but I seem unable to win any attack against any square of this nation.
Is there any detailed explanation on how the pvp works ?


 


... That is me you have surrounded.

RE: It Has Begun Posted on: 01/21/2015 6:07pm
Quote Post

What happens to defeated nations? Is it game over for them, or kind of forced "abandon", or whatever?
I've conquered Pennsylvania and Zen, don't see neither of them on the high scores list...

btw. does the abandon button ask for comfirmation? Wouldn't like to click it by accident while changing themes.




I have gone to find myself. If I return before I get back, please hold me here until I arrive.
RE: It Has Begun Posted on: 01/21/2015 6:09pm
Quote Post

send me a couple of virgins (pretty) and I will evac a few tiles to let you escape

RE: It Has Begun Posted on: 01/21/2015 6:11pm
Quote Post
TIM the Enchanter
Level: 1
ADR Info

The PVP is based on your attributes, and a few randomizations.  For example, 1 point in Biological warfare can net you anywhere from 500 to 700 "points" of offense, while 1 point in Agriculture will only net you 10 to 20 "points" of offense.  It's a random "standard".  So, if BioWar for this battle is worth 550/pt, then it's the same across the board.  On next click, it'll roll again.  Psionics is the craziest, at 200-950/pt.  

If you missed out, check the To Do thread.  Documentation is further down the list.  Need to build the game before I spend time documenting everything. :P

Here's the high scores list so you can see where you rank.  https://konghack.com/war-info/high-scores

Low level techs give out small amounts of attributes, and since you're both a low level, it's possible that the person you're attacking has a strenght in something you're more vulnerable against.
 





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: It Has Begun Posted on: 01/22/2015 2:46pm
Quote Post

I don't know if it's a problem on my end or the server is currently being overworked, but I'm getting a lot of lag in the game. Leading to a lot of "You must wait 5 seconds to do another action" errors, even after the bar fuly loaded.

RE: It Has Begun Posted on: 01/22/2015 3:31pm
Quote Post
Whatever!

Does the geo eff affect the win percentage when attacking other players? Other than that, I think this game will be a big hit ;)




Whatever...
RE: It Has Begun Posted on: 01/22/2015 6:12pm
Quote Post
TIM the Enchanter
Level: 1
ADR Info
gamer1024 Posted on: 01/22/2015 9:46am

I don't know if it's a problem on my end or the server is currently being overworked, but I'm getting a lot of lag in the game. Leading to a lot of "You must wait 5 seconds to do another action" errors, even after the bar fuly loaded.


If you're using chrome and you switch tabs, the bar will complete FASTER than the 5 seconds it usually takes.  This is due to chrome's fucked up buggy timer system.
 

Aesis Posted on: 01/22/2015 10:31am

Does the geo eff affect the win percentage when attacking other players? Other than that, I think this game will be a big hit ;)


There isn't a win percentage in PVP.  Your attributes are compared to the opponent's attributes and ran through an algorythm to determine if you win or not.  All of your attributes are multiplied by your geo efficiency.  That means, if you have 100 Personal Combat, but only 75% Efficiency, your Personal Combat score is only 75.  There is a but of randomness in every attack, so while you may lose a couple times, it might just be possible to win.  As a bonus, if you start attacking someone on a diagonal and they lose, you'll probably start lowering their efficiency.  You'll be able to evac, and if they aren't online, they won't be able to fill those holes back in.  Back in the original game, we'd call this "checkering" your opponent.  Hitting on a diagonal opens the most faces dropping their geo efficiency as much as possible on each win, and it would leave their nation looking like a checker board. :P

 





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

RE: It Has Begun Posted on: 01/22/2015 7:38pm
Quote Post
TIM the Enchanter
Level: 1
ADR Info

Forts are done, and I'm half-way through counter attacking. :D





Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez