Google Earth Hacks Forums  

Go Back   Google Earth Hacks Forums > Google Earth > Google Earth Applications > GEwar > Questions/Problems

Questions/Problems If you are having issues with the game or don't understand how a particular feature is supposed to work, you can post your question in here.

 
 
Thread Tools Display Modes
Old 09-24-2005, 07:11 PM   #1
sinner
Member
 
sinner's Avatar
 
Join Date: Aug 2005
Location: Canada ... BUT NOT TORONTO!!!
Posts: 65
Default Scripts...

Soooo how do you write scripts to do all these neat things that people are complaining about...


(Not that I would ever do something like that. )
sinner is offline  
Old 09-24-2005, 08:35 PM   #2
Timmetie
Senior Member
 
Join Date: Sep 2005
Posts: 665
Default

one waits for this red fellar with some peculiar spikes on his head, and you sign some contract.

it worked for me.
Timmetie is offline  
Old 09-25-2005, 03:04 AM   #3
sinner
Member
 
sinner's Avatar
 
Join Date: Aug 2005
Location: Canada ... BUT NOT TORONTO!!!
Posts: 65
Default

George W?
sinner is offline  
Old 09-25-2005, 08:25 PM   #4
Timmetie
Senior Member
 
Join Date: Sep 2005
Posts: 665
Default

I do not think so, id say W is only a minion.
Timmetie is offline  
Old 09-26-2005, 05:13 PM   #5
swooby
Junior Member
 
Join Date: Sep 2005
Posts: 17
Default

What do you want to accomplish with a script?
Collect jewels?
Monitor resources?
Wage war?

Well, since this web site is called "Google Earth Hacks"...

Learn how the KML files in GE work, and especially what a NetworkLink is.
Use the "Ethereal" network sniffer to see what goes on when GE refreshes a KML NetworkLink.

For jewel collection, break down what you do when you manually hunt jewels:
  1. When start to hunt jewels you get your first city name from either a refreshed KML or HTML
  2. You type in the city in to GE
  3. GE searches for the city (this ends up hitting Google Maps...)
  4. Google Maps returns a KML with the city coordinates
  5. GE flys to those coordinates
  6. When the map stops moving, GE refreshes the main jewel KML file tells the GEWar server the bounding box (BBOX) of the GE view.
  7. The GEWar server calculates if you are near the city
  8. If you *are* near the city then the GEWar server returns a KML with a jewel icon and a URL to an HTML page
  9. If you are *not* near the city then the GEWar server returns a KML that continues to tell you the city name that your jewel is in (return to step #5)
  10. You click on the jewel icon and browse to the HTML page
  11. You enter the obfuscated code
  12. GEWar gives you the jewel and tells you where your next jewel is
  13. Return to step #2

Now, write an application that automates as much of that as possible.
(All but #11 are automatable...just sniff your network traffic and then get creative about how to reproduce that)
None of this actually requires you to "Log In" to the GEWar web site.
However, once you figure out how to write an app that can log in to the GEWar site, you can automate a lot more functionality.
You can scrape information from the web pages (Regular Expressions are your friend!) and you will be able to monitor cities, armies, resources, etc.

NOTE: NEVER EVER SWAMP THE GEWAR SERVER WITH AUTOMATED NETWORK REQUESTS! ALWAYS play nice and induce at least a 2 second delay in in between any network request you send to GEWar.

For my app, I wrote it in C#.
I will not be responding to inquiries (except from admins) about the app until it becomes more stable.
I honestly don't know how other people accomplish their "scripting", or what they even have their scripts do.
My gut feel from the game is that less than a dozen people use "scripting".
swooby is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.