Game patches (0.9.13)

8 replies [Last post]
agoom
User offline. Last seen 13 years 23 weeks ago. Offline
Joined: 2010-09-02
Posts: 4

Hi guys.
While playing shoppa with a lot of barrels and mines, I noticed that it's not easy to control the rope while there are explosion, because the camera loses the focus on the hog and makes you see the fire.
I didn't like this behavior, so I added a new keyboard shortcut key ('f') that makes the camera always focus on the hog. So every time you press 'f' the camera focuses the hog, and when you press it again, the camera works as usual (the key can be changed in the preferences).

Some people asked me to post this so here is the patch to add this feature (for version 0.9.13). The patch doesn't follow the rules of the hedgewars source code because I had no time for that, but... it just works.

So here are the instructions for Linux/MacOSX:
1) download the source code from mercurial repository
for 0.9.13 you need revision 0973c5af51, so use this:
hg clone --rev=0973c5af51 https://hedgewars.googlecode.com/hg/ hedgewars
2) patch the sources
cp hogfocus.patch hedgewars/
patch -p0 < hogfocus.patch
3) compile (follow the instructions you will find on the forum)

Download the patch at: http://rapidshare.com/files/426435854/hogfocus.patch.zip

Star and Moon
Star and Moon's picture
User offline. Last seen 1 week 3 days ago. Offline
Joined: 2010-04-03
Posts: 718

Um, the patcg you instsalled is already in the game, press H to focus the screen on the Hog. Wink Smiley

agoom
User offline. Last seen 13 years 23 weeks ago. Offline
Joined: 2010-09-02
Posts: 4

The H key doesn't work the same, maybe i've not explained myself correctly.
When you press H while doing nothing the camera focuses the hog, ok.
But if, for example, you have your hog on the upper right side of the screen, and there are barrels that explode on the bottom left of the screen, you are forced to see the barrels explode and the fire that goes down, even while pressing H repeatedly: this way I can't control my hog, and I'm forced to wait until the camera focuses the hog again. If instead, you apply the patch and press 'F', the camera will just focus on the hog and nothing else.
This is a really common problem when you play shoppa with a lot of barrels, mines and 300% damage. Such a mode is kinda unplayable without this patch.

Hope I explained better Smile

Star and Moon
Star and Moon's picture
User offline. Last seen 1 week 3 days ago. Offline
Joined: 2010-04-03
Posts: 718

Oh, i see, this will be fixed in the next release anyway.

wolfmarc
wolfmarc's picture
User offline. Last seen 8 years 30 weeks ago. Offline
Joined: 2010-06-07
Posts: 126

Good Job agoom.

peace,

wolfmarc

The PROT(Fart) team FTW!

thecoa
thecoa's picture
User offline. Last seen 13 years 7 weeks ago. Offline
Joined: 2010-10-25
Posts: 4

what's with these pathes for windows ?? Annoyed

I can't seem to find a precise and accurate answer on how to apply them in windows!
It's really frustrating, especially because win platform is the most used one, and there isn't any easy-to-do patch, or atleast a clean how-to tutorial...

every single post about using patches in win is really confusing

Cairo
Cairo's picture
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

you have to apply it to the source and then compile the source which is apparently really complicated to do on windows. Better to go download Ubuntu. it's much easier to compile on linux.

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

rockachu2
rockachu2's picture
User offline. Last seen 12 years 20 weeks ago. Offline
Joined: 2010-07-08
Posts: 85

compiling on windows is ridiculously hard, but it's M$'s fault.

My favorite sport: nerd sniping.

fcsterea
User offline. Last seen 10 years 26 weeks ago. Offline
Joined: 2013-10-22
Posts: 1

Applying a patch to a cloned repository is actually pretty simple. Using TortoiseSVN for example, you just need to right click the versioned folder, go through the Tortoise context menu and click on apply diff patch. Compiling in Windows is another history, a lot more troublesome actually, specially because the game itself has been developed in some *nix distro. When something is developed under windows compiling on both *nix and windows plataforms is a trivial process, although the same doesn't apply for *nix development.

Hope it helps!

thecoa allegedly wrote:

what's with these pathes for windows ?? Annoyed

I can't seem to find a precise and accurate answer on how to apply them in windows!
It's really frustrating, especially because win platform is the most used one, and there isn't any easy-to-do patch, or atleast a clean how-to tutorial...

every single post about using patches in win is really confusing

Life is too good to care about that! Gotta take a ride to the moon...
-Fernando da Cunha Sterea

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]