How to play Web Raid with a web proxy

Welcome To Web Raid! Download Global Ranking FAQ News/Blog My Adventures Known Bugs Documentation Proxy Users Preserving A&B Web Raid Mobile in action



Update: Syncing with the global achievement list is currently not possible from behind a firewall. If you experience this problem, please contact me at support@webraid.freehosting.net, and we'll figure out together how to solve this.
 

If you've reached this page, changes are that you are sitting behind a firewall, and your ISP/Employer/... is using a web proxy through which you access the internet.

The symptom you should be experiencing when starting Web Raid from behind a proxy is:

1. Web Raid shows you the level selection screen

2. When you select a level, Web Raid quits; the console shows something like:

 java.lang.NullPointerException
        at de.agsteiner.twitg.Game.newGame(Game.java:182)
        at de.agsteiner.twitg.Game.newGame(Game.java:167)
        at de.agsteiner.twitg.Game.main(Game.java:319)

 

The good news is: you can play Web Raid through a proxy.

The bad news is: it takes a bit of manual tweaking.

 

First Step: Find out your proxy name + port

  • Firefox users might go to the Settings -> Advanced -> Network -> Connection panel. This should show the proxy.
  • MSIE users might go to Tools -> Internet Options -> Connections
  • ... or ask your ISP for that information.

 

Web Raid via a proxy (Windows):

Go to your Web Raid installation folder. You should notice a file "webraid_proxy.bat".

Right-click on this file and select "Edit".

Now you see this:

@ECHO OFF
java -DproxySet=true -DproxyHost=proxy -DproxyPort=8080 -classpath .\Webraid.app\Contents\Resources\Java\bin;.\Webraid.app\Contents\Resources\Java\lib;.\Webraid.app\Contents\Resources\Java\lib\JTattoo.jar de.agsteiner.twitg.Game


Ignore everything here except for the parts that I have painted red. Do the following:

1. replace the word "proxy" with the name of your proxy server. Usually it's just called proxy so there's nothing to change, but it might be called differently.

2. replace the port 8080 with the port of your proxy.

3. Save the file

And henceforth enjoy Web Raid by double-clicking webraid_proxy.bat

 

Web Raid via a proxy (Mac OS X)

Please note: this information is the theoretical way to do this. I have not Mac behind a proxy, so I can't check whether it works. But it really should.

Here you need to do pretty much the same as in Windows (change the Java VM parameters that contol the proxy), but differently, and, unfortunately, more tricky:

  1. Go to your Web Raid installation folder.
  2. CTRL-Click on the Web Raid application icon (that you use to start web raid)
  3. In the context menu that appears, select "Show Package Contents"
  4. In the Finder window that appears, go to "Content".
  5. You should now see a file Info.plist
  6. Use a text editor of your choice (e.g. open a terminal, paste the folder into the terminal window, use emacs) to edit this file.
  7. Search for the text:
    <key>MainClass</key>
    <text>de.agsteiner.twitg.Game</text>
  8. After this text, create new lines that contain
    <key>VMOptions</key>
    <string>-DproxySet=true -DproxyHost=proxy -DproxyPort=8080</string>
    Instead of the proxy host and the proxy port marked red, use the proxy host and port of your proxy.
  9. Save the file.

Afterwards, the Web Raid application should magically use your proxy.