Time waster

For general rambling.
Vyrosama
Master Chief Telephone Technician
Posts: 548
Joined: Tue Feb 13, 2007 5:51 am

Post by Vyrosama »

yay we hit 100 now we can improve the roads!!!! Can someone update the links to include transportation?

Now we can continue to grow till 250 to get cops....

or we can try to running the city to the ground with pollution with massive amounts of factories...

guess it depends on what type of theme city you want...but like I said I want to up environment up the wazoo so we can get a flower city level 4 :lol:

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

OMG, we actually need more jobs and better roads!!! One of our people is out of work and two can't get to where they need to go.

I wonder, if we go insane building up transportation if we'll just end up with monorails or something to everywhere or something equally useless.
Have you clicked today? Check status, then: People, Jobs or Roads

Vyrosama
Master Chief Telephone Technician
Posts: 548
Joined: Tue Feb 13, 2007 5:51 am

Post by Vyrosama »

just a random thought, if we had as many visits to our city as this thread...we'd have a decent sized town now 8)

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

If you go to http://schlag2b.myminicity.com/rss you can see a recent history of what's happened without choosing to increase population, industry or transportation. This will help us avoid building 4 factories all at once since you'll know if someone else has done what you were going to do.
Have you clicked today? Check status, then: People, Jobs or Roads

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

Good idea Peijen to put the links in your sig
Have you clicked today? Check status, then: People, Jobs or Roads

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Put 'em on one line or I'll do it for you.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

Awww, I should take down my spider pig avatar in protest!

Hrmmm, I wonder if there's a way to include banner ads in my profile pic or in the sig somehow.
Have you clicked today? Check status, then: People, Jobs or Roads

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

For anyone that's too lazy to check which link to click, you have two alternative options. The first is that you can use IE (I feel dirty recommending IE, but it's lax security can be useful) to open the code below assuming your security settings are not too high. The other option for firefox users is to just save this as an html file and run it locally in your browser. Unfortunately, you can't do cross-domain ajax requests and I haven't figured out how to work around this..

Anyways, all this does is check the city's status and load the right url for what is needed. If someone has a better way to implement this, then I'd be happy to try it out. I did already try to do this in php, but couldn't because my host doesn't allow opening remote files. It's probably for security reasons, so I doubt I could get it changed.

Code: Select all

<html>
<head>
<script type="text/javascript">
var req;
var city = 'http://schlag2b.myminicity.com/';
var target = '';
var ind, tra, sec, env;
var response;

function loadXMLDoc(url) 
{
   try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
   } catch (e) {
    alert("Permission UniversalBrowserRead denied.");
   }
    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    // branch for IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
}

function processReqChange() 
{
    // only if req shows "complete"
    if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
		response  = req.responseXML.documentElement;
		ind = response.getElementsByTagName('unemployment')[0].firstChild.data;
		tra = response.getElementsByTagName('transport')[0].firstChild.data;
		sec = response.getElementsByTagName('criminality')[0].firstChild.data;
		env = response.getElementsByTagName('pollution')[0].firstChild.data;
		if ( response.getElementsByTagName('unemployment')[0].firstChild.data > 0 ) {
			target = 'ind';
		} else if ( response.getElementsByTagName('transport')[0].firstChild.data < 100 ) {
			target = 'tra';
		} else if ( response.getElementsByTagName('criminality')[0].firstChild.data > 0 ) {
			target = 'sec';
		} else if ( response.getElementsByTagName('pollution')[0].firstChild.data > 0 ) {
			target = 'env';
		}
		window.location = city + target;
        } else {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);
        }
    }
}

loadXMLDoc(city + 'xml');

</script>
</head>
<body>
</body>
</html>
Have you clicked today? Check status, then: People, Jobs or Roads

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

George wrote:If we make it to about 200 population, we'll break into the top 100.
not anymore it won't... Anyone remember what rank we started at? Was it around 10,000? There are over 100,000 cities now, but half of those are under 10 people.

We're in the top 2500 now and currently need 44 more people to be in the top 2000.
Have you clicked today? Check status, then: People, Jobs or Roads

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

It would have been cool if we'd captured screen shots along the way so we could see a time-lapse evolution of the city. I was looking at the northeast corner of the city and thinking how it looks just like the entire city when it started.
I feel like I just beat a kitten to death... with a bag of puppies.

Alan
Veteran Doodler
Posts: 2758
Joined: Fri Jul 18, 2003 2:32 am
Location: Where I am
Contact:

Post by Alan »

Our city looks like Buffalo now.
Image

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

The main problem with our city is that it's not near any water except for that small lake to the north.
Have you clicked today? Check status, then: People, Jobs or Roads

Jason
Veteran Doodler
Posts: 1520
Joined: Fri Jul 18, 2003 12:53 am
Location: Fairfax, VA

Re: Time waster

Post by Jason »

quantus wrote:The main problem with our city is that it's not near any water except for that small lake to the north.
What does water have to do with anything?

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

Nothing except that real cities all need a reliable source of potable water and are usually along a body of water. If our city was next to a river or something, I'd bet more people would want to visit it.
Have you clicked today? Check status, then: People, Jobs or Roads

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Re: Time waster

Post by George »

We'll get plenty of tourism once we get higher in the rankings. Of course, every tourist will leave a post like "omg, pls visit my uber-1337 city ImCool, thx wtf rotfl".

We actually got a celebrity visitor recently:
Hannah Montona: Hey boys check out my hot pix
Surprisingly ineffective spam since she didn't give an address, or even spell her name right.

Maybe a better way to improve tourism is to break down that weird blue barrier surrounding out city.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

Well, since there have been hardly any posts all week, I'll announce that we're now solidly in the top 2000 at 289 people. IIRC, we get police at 300. Keep on clickin' people. Use those open access points around you to get more ips to click from per day.
Have you clicked today? Check status, then: People, Jobs or Roads

Jason
Veteran Doodler
Posts: 1520
Joined: Fri Jul 18, 2003 12:53 am
Location: Fairfax, VA

Re: Time waster

Post by Jason »

Update your sigs gentlemen.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

quantus wrote:Use those open access points around you to get more ips to click from per day.
Apparently someone wised up and this doesn't seem to work anymore. Ah well, it was useful while it lasted. I've tried using stealther plug-in (which filters out requests for identifying info) to see if I could get around it, but it just makes the server keep polling the browser. Perhaps this'll bother me enough so that I'll play around a bit more to see if I can get an extension that will let me view the query and edit the browser response.
Have you clicked today? Check status, then: People, Jobs or Roads

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

quantus wrote:
quantus wrote:Use those open access points around you to get more ips to click from per day.
Apparently someone wised up and this doesn't seem to work anymore.
And then again, it must've been the site just not working that day. Switching access points still does work!
Have you clicked today? Check status, then: People, Jobs or Roads

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Re: Time waster

Post by quantus »

We've broken 1600 a day or so ago, but haven't made much progress in the rankings since... I decided to take a look at how other cities were doing by looking at the xml so I didn't add a person. The 3 cities I looked at are a mess with non-0 unemployment and security as well as sub-100 transport... It wasn't by just one or two points either, but like 10 points. The unemployment should be offsetting their population growth, so I'm not sure how they're staying where they are in the rankings... Anyways, if you don't care about all this, just keep clicking and I'll stop posting to remind you!
Have you clicked today? Check status, then: People, Jobs or Roads

Post Reply