header YouTube
Clonk Livestream auf Twitch.tv!

Clonkspot

LegacyClonk [333] is here! (Community Update for Clonk Rage)

LC (short for LegacyClonk) is a fan project based on Clonk Rage.
LegacyClonk continues to receive updates and ensures compatibility with existing Clonk Rage content.

The goal is to fix as many bugs and inelegances as possible and to add nice-to-have features while not to impact the gameplay we’re all used to.
Ideas and features can be proposed here.

Installation

In order to install LegacyClonk, the original Clonk Rage or an older version of LegacyClonk must be installed already.
The update changes some of its files, which leads to the original Clonk.exe not longer being functional after the update. Those wanting to keep both versions should install Clonk Rage a second time.

You can update to the newest LC version from every LC version as well as from Clonk Rage itself. However, if you update from LC [330], you have to change the language from LE to normal english. The Language.c4g, which got installed for LC [330], may then be deleted.

If you update from Clonk Rage, you’ll either have to set all settings again or copy them manually.

In order to update to LC, download the desired version (see links below) and follow the below listed installation instructions.

If any version of LC is installed, you can use the integrated update method via the “Info” menu. Note that it currently uses HTTP only. Those who want to feel really confident need to download and install the update manually.

Manual installation

Caution: Following version [332], it might be necessary that the update process has to be run twice in order to run without errors due to changes to c4group.

Windows

Operating System Requirements:

Warning: Some anti virus programs might report a false positive concerning Clonk.exe or warn due to it being unknown. The source code is available here.

Open the downloaded update file with a double click. Administrator rights might be required depending on the installation directory.

lc_windows_updater_xxx.bat (see downloads below) might be of help with installation problems. Save the bat file and the matching (same version number) update file (c4u) into the Clonk directory and execute the bat file. If Clonk has to be run with administrator rights, so does the bat file.
Thanks to @Funni, who made the improved version of the bat file starting with version [332].

In order to apply Clonk Rage’s configuration to LegacyClonk, the registry path HKEY_CURRENT_USER\Software\RedWolf Design\Clonk Rage shall be copied to HKEY_CURRENT_USER\Software\LegacyClonk Team\LegacyClonk.

Linux

Operating System Requirements:
The prebuilt engine gets compiled on Ubuntu 18.04 (bionic). The following packages (or similar ones on other distributions):
zlib1g libgl1-mesa libjpeg libpng libssl libglu1-mesa libglew libsdl1.2 libsdl-mixer1.2 libfreetype6 freeglut3 libxpm

In order to install the downloaded update, open a terminal and switch to Clonk’s directory:
$ cd clonk-directory
Then you have to install the update with Clonk:
$ ./clonk update-file.c4u

If a 64bit installation is present, be aware of the differences listed below. Following update from LC to a newer version can be installed without paying attention to those.

  • In order to install the update, you have to use ./clonk64 instead of ./clonk.
  • In LC, the update for 32 and 64bit are separated. Therefore, there’s no more differentiation between clonk and clonk64 as well as c4group and c4group64. For that reason, existing links and similar stuff has to be updates in oder to point to clonk / c4group.

In order to apply Clonk Rage’s configuration to LegacyClonk, you have to copy ~/.clonk/rage/config to ~/.legacyclonk/config.

Mac

Due to missing expertise, there’s no working update package for Mac, although compiling Clonk for Mac per se is functioning.
If you’re interested in one, please contact DerTod in the IRC or post a corresponding reply here.

Downloads

Most important changes

A complete list of all changes can be found in the git-log.

[333]

Fixes for Windows

  • /alert is working again
  • the problem of only having a white/gray screen after restoring the Clonk window experienced by some users has been fixed
  • Window’s “Ding” sound is eliminated for some Alt-shortcuts
  • the crash happening when quitting Clonk is fixed, although Windows showed the crash dialog only for the first time
  • from now on, i.e. with an already installed version of [333] or above, c4group.exe will be updated whenever the update is applied using Clonk.exe (double clicking the update-file or using the bat-file also uses Clonk.exe internally)

/script can now be used in any scenario in single player mode

Until now, /script in single player games was only allowed for scenarios that were made by the player themselves although when using the network mode it could be used with any scenario.
This limitation has been removed.

/nodebug as client

/nodebug can be used as a client again, e.g. to hinder hosts with cheating.

LoadScenarioSection can now reload the current section

LoadScenarioSection can now reload the current section by specifying the name of the currently active section.
Previously, this only triggered a warning that the section is already current.

(Rare) crash in script function SetLength fixed

Thanks to @Bratkartoffl for revealing

[332]

Better fullscreen and windowed mode

The mouse can now be used without problems with activated scaling. Also, notifications - e.g. Windows 10’s toasts - or firewall dialog windows can be viewed and operated correctly. /console works properly too.

New script callback InitializeDef

protected func InitializeDef(string section): Gets called in every definition before the scenario Initialize call and at a section change, but before objects get created. As an example, it can be used to set static variables.
section contains the new section - if 0, the main section gets loaded.

Color coding

The scenario list doesn’t show unparsed color markup any more, which however gets now displayed correctly in the loader’s title.

Search function

There’s now a search function for the scenario list.

[331]

New fullscreen and windowed mode

In fullscreen mode, the currently set resolution always gets used. Also, minimizing and restoring should now work better and faster.
In order to ensure that the image doesn’t get too small on higher resolution, there’s now a scaling option instead.

Windowed mode can be selected in the options as well. The window’s size can also be changed, however the content only resizes itself during a running game or on a dialog change.

White chat and timestamps

Both white chat and timestamps can now be enabled for lobby and timestamps.

The white chat for running games can still be enabled via the game menu, for white chat in the lobby and timestamps there’s an option in the menu.

Checkbox for gamma

In the troubleshooting options in the “Graphics” tab, there’s the possibility to disable gamma.

Resource progress display for the lobby

The lobby now displays how much the other clients have already loaded of the game content.
This display only works if a direct connection to the client exists (indicated by a shown ping). Otherwise, no resource progress will be displayed.

[330]

Fix some desyncs between Linux/Mac and Windows

Backport OC’s ready checkbox for the lobby (also displays whether a client supports this feature or not).


Comic Universe uses the official engine which doesn’t support this functionality.
Tod’s Laptop is not ready yet and Tod’s Laptop2 ist already ready.
The readines display is only a support for the host; he can still start if not all clients are ready.

An option to color ingame messages white


The option for the white chat can be found in the ingame player menu unter Options -> Display -> White chat (doesn’t have its own icon yet).

A restart buttons for hosts in the “Abort round?” dialog (which gets displayed on [Escape])

neustart-esc

A restart buttons for hosts in the game over dialog, and another button for SetNextMission, if used. Continuing to play is now always possible.


As the first tutorial gets played, all four buttons are visible.
If SetNextMission isn’t used, only 3 buttons get shown.

New credits screen (dynamically generated instead of a static background image)

Preparation for automatic updates

Only OpenGL

LC now only supports OpenGL (no more DirectX) because we don’t have someone who can maintain DirectX. It might be readded in future updates if OpenGL creates too many problems.

Have fun playing!

Concerning problems, uncertainities or questions, contact me (DerTod) or Fulgen in the IRC in #legacyclonk or here in this forum (an answer might take longer though).
Please note that we might not have time or be offline in the IRC (in the latter case we are set to away), we usally answer in the later afternoon or later. In any case, wait longer than just a few minutes.
Please report bugs in the bugtracker and other things in the forum (you may notify us in the IRC so that we can notice it faster), so that bug information and other things are visible for all parties.

Concerning the icon: Right now, LC only has a temporary makeshift logo:
lc
Proposals for icons are welcome. The finished icon should also fit to a new logo (the one in the main menu and in the middle of the UpperBoard). As we’re using the original game content, the original graphics are displayed ingame.

Now, I’d like to thank @AniProGuy, @Alx and @Peder, who were a great help for testing the Windows version and found some bugs.
I also want to thank @Luchs , who supports us with Clonkspot.

Naturally, I also want to thank matthes and the former developer team for the creation of Clonk and additionally matthes for making the entire code open source.

At the end, I want to thank the OpenClonk team, as they did a lot of work which help us at cleaning up code and also created some features / commits which we backported.

This update is made available to you by the LegacyClonk team, consisting of @Jan, @Fulgen, @Kanibal and @Der_Tod at the moment.

FAQ

Does OpenGL introduce any disadvantages?

Under Windows and Mac, there’s no difference, as OpenGL gets always used there.

Under Windows, the OpenGL implementation got notably ameliorated with [332], however, it might still behave differently than you’re used to.

Also, OpenGL enables a cool undocumented feature which is also present in the original engine and can be enabled in the registry under (HKEY_CURRENT_USER\Software\LegacyClonk Team\LegacyClonk\Graphics) under the name “ColorAnimation”. The option “Shader” has to be activated as well. With this feature, liquids get animated. Try it out!

It lags a bit constantly with 30 FPS on average

This seems to appear with some GPU drivers if VSync is activated in their settings. The solution is to deactivate VSync either globally or only for Clonk. We think it synchronizes twice with activated VSync, as Clonk does this separately, causing 30 FPS at a 60 Hz monitor.

Crash on startup

If @Jan’s resource progress display is used, which works by replacing fmod.dll, LC crashes on startup with the following message:

The modified fmod.dll only works for the official CR engine. For that reason, you need to use the original fmod.dll for LC. Note that you don’t need this modification anymore, as the feature was implemented in [331].

Known bugs

[330] - [333]

  • On linux it may be not possible to change player portrait images.

Only [332]

  • Some users experience only a white or gray screen after restoring the Clonk window.

[331] - [332]

  • /alert doesn’t work on Windows.

Only [331]

  • With activated scaling, the area which the mouse cursor can be used in is limited.
  • With activated scaling, /console doesn’t work properly.
1 Like

First i wanna say thanks for the scale feature. Finally i can play clonk with normal resolution, and not suffer from extremely small objects. But i faced two problems after update:
First problem is “undefined” text on all new features in options. This problems applies only on new “LU” language, on old language everything is fine, so its not really huge problem, but i still wanna know what causes her. And the second problem with scale. When i changing it, my cursor captured in much smaller area inside of the window, so i cant move it properly. Its almost impossible to use mouse with that.

I’m glad you like it.
You can just use the normal english language.
LU was only needed for the previous version (LC [330]).
Unfortunately, I haven’t had time yet to write the english version of the update info, but it will be written in the next few days I hope.

I will have to look into the mouse capture. Probably I have overlooked to adjust it to the scaling.