[Site Home] [Forum Home] [Articles] [File DB] [News Archives]

Cybervillage Talk -> land economy! oh noes!


(View original topic)


Red Squirrel - Sep-05-2005 server time
The feature has now been uploaded and is operational!

Red Squirrel - Sep-05-2005 server time
lol well the test map is pretty much gone. I'll restore the DB later. tonight I'll probably upload it all here and it will go live.

Triple6_wild - Sep-05-2005 server time
lol you shoulda bin using your bank then tongue.gif

MikeDB - Sep-05-2005 server time
lol my bank is better then that fre service chang and free transfer charge.

Red Squirrel - Sep-05-2005 server time
Haha most of the land is gone now lol. But remember in the production environment wenever it says you go on probation, you would not be able to access so you'd have to wait. So it won't be as easy as it is on the test server. laugh.gif

Triple6_wild - Sep-05-2005 server time
HIYA DRACO ^^

i think hes mad ><

shouldnt be tho cuz im sure those IC's were stolen from someone anyway nonono.gif

MikeDB - Sep-05-2005 server time
im gonna kill you triple six!

Triple6_wild - Sep-05-2005 server time
lol i got cought and cant bomb for 10 mins ><

im guessing thats a backup of iceteks lol

Red Squirrel - Sep-05-2005 server time
LOL we both bombed at the same time.

Red Squirrel - Sep-05-2005 server time
laugh.gif

Triple6_wild - Sep-05-2005 server time
cut n copy fine print lol

QUOTE
honestly I'm not sure what that means, I just disabled it thinking it will increase security. LOL well the security part worked...)


ya it works lol

Red Squirrel - Sep-05-2005 server time
Should work now. em320.gif I had IPSec Pass Through and PPTP Pass Through disabled on the router.

(honestly I'm not sure what that means, I just disabled it thinking it will increase security. LOL well the security part worked...)

Red Squirrel - Sep-05-2005 server time
Crap looks like it's only letting me access from my IP. I switched routers because the netgear one is a POS but this one has way less options...


Edit: Try to ping icetekshq.ath.cx and tell me if you get an IP address. The ping will fail, but it should still show an IP (209.196.234.130).

Triple6_wild - Sep-05-2005 server time
ya just times out ><

im sure draco is gonna use that on me so take your time lol

i uh kinda robbed him to pay for my banks lol

Red Squirrel - Sep-05-2005 server time
Crap seriously? What happends it just times out?

Triple6_wild - Sep-05-2005 server time
link does not work?

Red Squirrel - Sep-05-2005 server time
Haha.
Well I think I'll let the test one up for a bit more, here's the link again:

http://icetekshq.ath.cx:443/virsites/iceteks/forums/

user: icetekstest
pass: squirrel

Triple6_wild - Sep-05-2005 server time
take your time on the terrorist stuff red >< i just got set up lol

Furball - Sep-05-2005 server time
Ya, noticed tongue.gif

Red Squirrel - Sep-05-2005 server time
Haha. btw the server was down for a bit, well the router. Stupid netgear crap. I went back to my linksys.

Furball - Sep-05-2005 server time
Oh, I already know who's getting bombed wink.gif . I just wanted to see how the main city looked after a nice big attack (If my buildings were still around, it would look kind of funny tongue.gif

Red Squirrel - Sep-05-2005 server time
Yes it can destroy your own land too. em320.gif

But after an attack all the land you attack is owned by you after, so all you'd have to do is reput the building and set it to point to the business you want. The disadvantage is if you get the probation then someone can buy the land, but at least you can money out of it. tongue.gif So there are risks involved, definatly. My suggestion is to bomb other people's areas. tongue.gif

Furball - Sep-04-2005 server time
blink.gif Wait a sec. If you do a terrorist attack, does it affect your OWN land? Or does it ignore the industries and land you own?

Red Squirrel - Sep-04-2005 server time
It's actually pretty hard to get a successful strike in. So that's good since we don't want TOO many attacks going on. em320.gif

For the test I think I'll disable the probations though.

Red Squirrel - Sep-04-2005 server time
Actually it won't be affected so you can use your other account which already has like 100000000 ICs. em320.gif But I'll boost the other anyway just for fun.

Furball - Sep-04-2005 server time
I made a temp account so that my main char doesn't get screwed over (Probably won't but I'm just taking precautions tongue.gif). Can you temporarily boost my IC's so that I can buy bombs? Username is matti (Of course). sagrin.gif . 200000 ic's should be enough

Red Squirrel - Sep-04-2005 server time
I really want to test this before since if there's any bugs it could lead to a disaster so everyone go here and try it out:

http://icetekshq.ath.cx:443/virsites/iceteks/forums/

Just always double check your address bar to ensure you're on that server as there's a few places where iceteks.com is hardcoded.

Oh and for username and password use:

user: icetekstest
pass: squirrel

Oh and you'll have to login to the forum first as it's a different server. Not everything on the site is functional at that url because of path issues.

Red Squirrel - Sep-03-2005 server time
Well it's almost ready. Just have a tiny mysql/php issue that I had to post at a forum to figure out so waiting for a response but I have a plan B if I can't figure it out.

Red Squirrel - Sep-03-2005 server time
Evil evil evil. scared.gif

CODE

//check to see if you get caught
$number = rand(1,100);
if($number<$caughtchance) //oh noes!!
{
$totaluserfunds = GetTotalUserFunds($userid);

$fine = rand($totaluserfunds/2,$totaluserfunds+($totaluserfunds/2));

AddCash("wallet",$userid,$fine*-1,"0");

echo("<br>Oops!  You got caught and put on a 48 hour federal probation and loose ".$fine." ICs!  But hey, the attack was performed and that's what counts!");

$result = mysql_query("update rtmembers set cybervillage_probation='".(time()+172800)."' where id='".$userid."' LIMIT 1;") or die("<font color=\"red\">SQL Error: " . mysql_error()."</font>");
}


I think I'll stick with that, no removing of items, this will be bad enough. laugh.gif But even with the 10% chance it always hits so there's some tweaking to do with that code to make it more acurate.

Red Squirrel - Sep-03-2005 server time
Ouch... One strike using 500 bombs and 11X11 area strike.

I just realized though I need a way to make it so federal buildings like the central bank and central mall and forum fun can't be destroyed since they're "system" buildings that are not human controlled. I think I'll just hard code some undestructable coordinates in the bombing system.

But yeah the 11X11 blast will be very lethal, but the odds are the persond doing it will loose most of their cash and go on a 48 hour probation so during this time people can steal whatever's left of him. laugh.gif I think I'll make it so the 5 most powerful items also get confiscated, but the odds of that will be half of the odds of getting caught, so for the 3x3 blast and stuff the odds will be slim.

This system will definatly benifit the economy and avoid inflation. That said, good thing I don't run a country. roflmao.gif

Furball - Sep-03-2005 server time
QUOTE (Red Squirrel @ Sep 3 2005, 06:59 PM)
Yeah not a bad idea. Not sure how a monthly fee of ICs could be implimented though. But it would probably be easier to make it so you can buy out land, the person gets a message and has to click a link to decline, so if the person does not show up then the land would be sold automaticly.

But the terrorist attacks will also solve this problem in a semi risky way. em320.gif But I think what I'll do instead of loosing all your items and stuff you'd only loose all your money and get the probation, so a smart thing to do is to buy tons of stuff before performing an attack.

Ya, the terrorist attack will allow you to take a massive amount of land without really paying for it (Well not really because you still have to build stuff). And for those who like to take risks, it'll be fun, kind of like robbing the banks in the cybervillage. Then again, for the people who just wish somebody didn't build that igloo in front of the pathway of their yacht and disappeared for 6 months, will be able to claim the land for themselves

Red Squirrel - Sep-03-2005 server time
Yeah not a bad idea. Not sure how a monthly fee of ICs could be implimented though. But it would probably be easier to make it so you can buy out land, the person gets a message and has to click a link to decline, so if the person does not show up then the land would be sold automaticly.

But the terrorist attacks will also solve this problem in a semi risky way. em320.gif But I think what I'll do instead of loosing all your items and stuff you'd only loose all your money and get the probation, so a smart thing to do is to buy tons of stuff before performing an attack.

Furball - Sep-03-2005 server time
Would be kind of cool to have a land buy out option too. Like, if somebody comes by and buys all of the land in the cybervillage and never goes back on it for about a month, then it should be put back up for sale (Mostly talking about bare land tiles that have been purchased and not necesarily industries or houses). If the person really cares about the land, they should have to pay to keep it. The cybervillage isn't really of use if nobody can buy land because somebody bought all of it and kept it from being sold. It wouldn't have to be much money anyways, maybe like 20 ic's to keep the land for another month. Just my thoughts and ideas about the cybervillage. It would benefit people because land that is just going to waste will be available for use by other people in the cybervillage. Also, people who buy a massive amount of land will have to take care of it or they'll lose it (Hence, the cybervillage would be more active). The cybervillage would also change as well because people who don't pay to keep the land will allow others to build more freely on and around the area. smile.gif

Red Squirrel - Sep-03-2005 server time
Yeah not sure yet about the punishment of getting caught, I don't think I'll make it so you loose EVERYTHING, but it will probably eat out a big chunk. But it all goes by the explosion span. the smaller, then less chance of getting caught. But even if you get caught the terrorist act is performed, assuming you got past the 1/5 chance of getting caught before. em320.gif But getting caught in that sense will most likely just be a fine.

So basically to perform a terrorist act you need the following:
- That the last attack was less then a week ago
- Pass the 1/5 chance of not getting caught.
At this point the attack is performed, but there's a chance of getting caught and loosing allot.

So terrorist acts won't be an every day thing due to the risk, but if well planed can pay off well to the attacker. Also if one of your buildings get's bombed, the business itself is not affected, just the building, so you just buy more land, then associate it with that business.

Right now I'm having an issue with the way land sales are done, not sure why I did it that way, but it goes by ID instead of coordinates, so when land gets bombed there's now way of plugging the ID in the query to change the link without having 2 queries per bomb.

But by tonight I should have it all working and stuff so I'll test it locally then upload the files.

Next project will be to make land value go up/down dynamicly. Right now a terrorist attack makes the land worth 1/5th of it's original value. So you can buy attacked land dirt cheap. tongue.gif

And yeah those graphics will probably be done better, I made those pretty quickly.

Furball - Sep-03-2005 server time
Need to add flames to the terror rubble tongue.gif. The terrorism thing sounds sweet, but losing ALL your money and items? ohmy.gif . Red, you know I have at least 30 millions IC's spread out across 7 banks. That would be massive harsh (And you know I'd bomb people, it's just my style sagrin.gif ). Need to devise a way to protect your land too. Wait a sec, this is starting to sound like Red Alert blink.gif . lol. But from the looks of it so far, it looks wickod. Can't wait to test out the new options sagrin.gif .

Red Squirrel - Sep-03-2005 server time
Hehe getting some progress.

I still have to impliment the federal probation and all that though, since changes of getting caught are big enough and if you get caught you can't access the cybervillage. this gives victims a chance to reclaim their land, but they have to buy it and the money goes to you so it's all good. roflmao.gif

Red Squirrel - Sep-03-2005 server time
Figured an easier way. Don't need an array, well it's more like a virtual array, since it's still a in loop system to keep track of a 2D area but it does it much more efficiently.

But anyway, I'm probably just confusing everyone. tongue.gif

Red Squirrel - Sep-02-2005 server time
Wow did not realize but this system is quite involved. Basically there's different types of areas to strike (the menue shown changed a bit, but gives you an idea)

So I need to create a 2D array of this area, then randomly hit certain spots in that array based on bombs purchased. Now this is the easy part. It's basically a for nexted into another for, that creates an array, where $array[0][0] is the center of the explosion. [0][0] is the coords.

Now I need to calibrate that array with the map based on the entered values, then detect each single array element that has a 1 in it (strike) and do a sql query to modify the map table.

So quite a process. I could make it easy by hard coding every possible type of strike but that would be bad coding as it makes it harder to change the type of strikes in the future.

But this is a fun coding experience. em320.gif

Red Squirrel - Sep-01-2005 server time
Finally got started on the terrorism feature. This should be fun. em320.gif

I'll have to regulate it somehow so it does not get out of hand too much though. I think there will be like a 1 attack per month maximum or something like that, and the same person can't attempt twice in a row.

Red Squirrel - Aug-31-2005 server time
Haha yeah that's something I want to impliment. I would not make it so there's any type of defense since a terrorist attack can happen pretty much no matter how strong a building is. But I'd make it very hard and costly to do, and when you succeed you'd be in federal probation so you can't access the cybervillage for like 24 hours, so someone could potentially take back the land as it would make the value go down. But not 100% sure if I'll in fact use that system or not. I'd have different types of bombs too, like 3X3 area bombs, scattering bombs, etc. You just enter the X and Y position just like battleship and BOOM!

Furball - Aug-30-2005 server time
*PST* (Need bombs to attack places). Ya, seems that the cybervillage has been overun by "takian land". Can't buy anymore land (Or limited land). Need to implement a land overtake section (Like, somebody tries to bomb you and if they are successful, they get the land). It's up to the person to put enough defense into the land to keep it (Kind of like the bank idea). Would be fun to see. Come back from vacation and you're missing some buildings sagrin.gif . I know a few people I would attack biglaugh.gif

Red Squirrel - Aug-30-2005 server time
I forgot that land economy is not implimented yet, land just stays the same price all the time. Eventually I'll make it so land prices fluctuate depending on various factors, or I might just make it completely randomized.

(Showing 50 last posts, newest on top)