32bit linux now works again using pas2c.

A bit of history. With Hedgewars 0.9.23, we shifted to SDL2. While there were a fair # of SDL2 related issues that had to be addressed, there was one we didn't notice. Unbeknownst to us, FreePascal had an alignment bug. This was triggered by a CPU feature detection in SDL2 which could not be disabled, causing instant crashes.

It took a while for us to be aware of this since there aren't many 32 bit linux users, and many of them were on a long-term stable like Debian. Eventually they caught up and the error report feedback flooded in, this year in particular with 0.9.24.
I did reply to many of these feedbacks, but Google tends to send my emails to the Spam folder (which GMail users never check), so I got few responses.

With 0.9.25, we reenabled pas2c. What is pas2c? It was a tokeniser written in Haskell long ago by unc0rr to support the emscripten toolchain. At the time it went something like this. Pascal source —(Haskell tokeniser)→ C sources —(Clang)→ LLVM —(Emscripten)→ Javascript.
This worked, and we got an actual playable hedgewars in web browsers. Unfortunately the project has not been maintained.

Fortunately, pas2c still exists, so after some tweaking of the source code and fixing a few errors, it was usable once more for build purposes. You can use it to target any platform clang supports, extending the supported platforms for distros quite a bit.
We also attempted to force-enable it in CMakeLists.txt for 32 bit linux - you can see that here:

The upshot is that Haskell is now a required dependency for 32 bit linux builds. The good news is that clang is a bit better at optimisation than FreePascal, so in general things load and run faster if you build using pas2c.

Hedgewars 0.9.25 released!

Hooray, version 0.9.25 is here!


  • Complete overhaul of Continental supplies
  • Can adjust weapon start and crate probabilities in Balanced Random Weapon
  • Lots of smaller tweaks for existing weapons
  • Remove rubber duck
  • Rework team rankings
  • Tied teams now rank equally
  • Help button in main menu
  • 19 new hedgehog taunts
  • Many new Lua API features
  • Bugfix: Functionality of controllers restored
  • Bugfix: Fix at least 2 crashes
  • Bugfix: Fixed some awkward network bugs which caused games to come to a standstill
  • Bugfix: Many bugs related to the wrap world edge fixed (but not all)
  • Bugfix: Sudden Death always came exactly 1 turn later than planned

There are many other smaller changes as well (mostly bugfixes)! Smile
See the changelog.

See the Download page to obtain Hedgewars.

Follow this link to read more

Hedgewars 0.9.25-RC1

It's that time of the year again! The next Hedgewars release is in the works. Smile

Release Candidate 1 for version 0.9.25 is here!
This is not the official 0.9.25 release yet, just a preview version for testing, especially if the Windows build works OK. Please give feedback!

The next version is mostly bugfixes (a LOT of bugfixes!), but has a few new features as well, including a bit of overhaul of existing game styles, more taunts, and a couple of other things.

Read the preliminary changelog here! It's pretty long.

For Windows users
Download 0.9.25 Release Candidate 1: Hedgewars-0.9.25-RC1.zip

GNU/Linux users:
As always, see Building on GNU/Linux, which should still apply. But it is strongly recommended to run:

cd ~/hg/hedgewars/trunk;hg pull -u;hg up efa901b04bad;cmake .;make install

To make sure you are in sync with the Windows version.

String freeze for 0.9.25

Frozen hog! Hello, hedgewarriors!

The next release (version 0.9.25) is moving closer. And closer … Smile

And we have gotten to a point in developent, the “string freeze”, where we will not change any of the translatable text strings until the next release.

This means we need people to translate those texts into various languages so that people around the world can enjoy Hedgewars in their preferred language!

Our translation system sadly is still a bit complicated, but there's a guide for new translators for that.

As this can be a daunting task, we strongly recommend translators (and those who want to be) to talk to as in the chatroom, this will make things go much smooother. Chatroom: https://hedgewars.org/chat

Of course, every translator will be credited.

In other news, the next version will have a few new taunts as well. Expect your hogs to be amazed by great shots, scared of grenade, swearing at their own stupidity, and more.
See here for a list: https://hedgewars.org/kb/Taunts

BehindTheHedge: Working under the hood

In the BehindTheHedge series we provide brief glimpses into what's going on at the development side of the game.

In this episode I talk about development for the next version 0.9.25 and future plans.

Syndicate content

User login

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