Bugfix release 1.4.2

A bugfix version of Solarus was just released!

This is version 1.4.1 1.4.2. It fixes some important problems including a crash with doors or chest using an equipment item as opening condition, and some problems in the quest editor when resizing maps or when copy-pasting entities. Thanks for your feedback!

And as always, here is the full changelog.

Changes in Solarus 1.4.2

  • Fix crash with doors whose opening condition is an item (#686).
  • Fix the size of custom entities supposed to be optional (#680).
  • Fix the hero’s sprite reset to default ones when changing equipment (#681).
  • Fix animated tiles freezed when running a quest a second time (#679).
  • Fix saving empty files.
  • Print an error message when there is no font in the quest.

Changes in Solarus Quest Editor 1.4.2

  • Fix crash when copy-pasting both tiles and dynamic entities sometimes (#24).
  • Fix crash when creating a map when no tileset exists.
  • Fix the view not updated when resizing a map (#25).
  • Fix maps having having an initial size of zero.
  • Fix inversion between generalized and usual NPCs in the entity dialog.
  • Fix the choice of the layer when copy-pasting entities.
  • Fix a precision issue when adding or moving entities.
  • Fix entities remaining visible when adding them on a hidden layer.
  • Fix the entity dialog allowing special characters in the entity name.
  • Fix missing translation of special destination names.
  • Fix closing a file even if unsaved when renaming it.
  • Fix typos.
  • Sprite editor: fix adding a new direction with the plus button (#27).

Enjoy!

Solarus 1.4 released, new quest editor!

A new version of Solarus and Solarus Quest Editor is available: version 1.4!

We have been working hard for the last few months to completely rewrite the quest editor. The new quest editor is now written in C++/Qt. It is faster, nicer and has a lot of new features!

tileset-editor

  • Dialogs editor!
  • Strings editor!
  • Quest properties editor!
  • Options dialog!
  • Ability to run the quest from the editor! (experimental)
  • Multi-selection support in the tileset view!
  • Improved quest tree!
  • French translation!

And a lot more, see the full changelog below.

dialog-editor

There might be some bugs we missed in the new editor since everything was rewritten from scratch. Please report any issue on the bug tracker.

There are not a lot of changes in the engine (mostly bug fixes). The only real change is that fonts are now a resource like maps, tilesets, musics, sprites, etc. Your scripts may need slight adjustements to follow this change. Nothing dangerous, don’t worry, but this is explained in the migration guide.

We hope you will enjoy the new quest editor! Check our tutorials if you want to learn how to create your own quest. We are also currently updating the website to reflect the new change and give up-to-date information and screenshots of the quest editor.

As always, our games ZSDX and ZSXD were also upgraded to give you up-to-date examples of games.

Here is the full changelog.

Changes in Solarus 1.4

New features:

  • Solarus now compiles with C++11.
  • Solarus can now be used as a library in other projects.
  • Add a command-line flag -win-console=yes to see output on Windows (#550).
  • Add unit tests.
  • fonts.dat no longer exists. Fonts are a resource like others now (#611).
  • Fonts are now in a “fonts” directory instead of “text”.
  • Maps: shop treasures have a new property “font”.

Lua API changes that introduce incompatibilities:

  • Text surfaces: the size must now be set at runtime instead of in fonts.dat.
  • Text surfaces: the default font is now the first one in alphabetical order.

Lua API changes that do not introduce incompatibilities:

  • sol.text_surface.create() now accepts a size parameter (default is 11).
  • Add a function sol.main.get_os().
  • Fix sprite:on_frame_changed() called twice on animation/direction change.

Bug fixes:

  • Add mouse functions and events (experimental, more will come in Solarus 1.4).
  • Add a method sprite:get_animation_set_id() (#552).
  • Add a method sprite:has_animation() (#525).
  • Add a method sprite:get_num_directions().
  • Add a method hero:get_solid_ground_position() (#572).
  • Add a method switch:get_sprite().
  • Allow to customize the sprite and sound of switches (#553).
  • Add a method enemy:get_treasure() (#501).

Changes in Solarus Quest Editor 1.4

New features:

  • Solarus Quest Editor was rewritten and is now in a separate repository.
  • Dialogs editor (by Maxs).
  • Strings editor (by Maxs).
  • Quest properties (quest.dat) editor (by Maxs).
  • French translation.
  • Add an options dialogs to configure various settings (by Maxs).
  • Add a toolbar.
  • The quest can now be run from the editor (experimental).
  • New keyboard shortcuts.
  • Map editor: multiple tiles from the tileset can now be added at once.
  • Map editor: improved the resizing of multiple entities.
  • Map editor: show information about the entity under the cursor.
  • Map editor: multiple tiles can be converted to/from dynamic tiles at once.
  • Map editor: tiles whose pattern is missing are no longer removed.
  • Tileset editor: undo/redo support.
  • Tileset editor: multi-selection support.
  • Tileset editor: showing the grid is now supported.
  • Sprite editor: undo/redo support.
  • Sprite editor: showing the grid is now supported.
  • Sprite lists now show icons representing each sprite.
  • Code editor: add a find text feature.
  • Quest tree: organize the view in columns (file name, description, type).
  • Quest tree: show resources whose file is missing on the filesystem.
  • Quest tree: show files that look like resources but are not declared yet.
  • The quest tree now automatically refreshes after changes in the filesystem.
  • Resource selectors now show a hierarchical view of elements.
  • A file to open can now be passed on the command line.
  • Show an appropriate icon in tabs.
  • Show an asterisk in the tab of files that are changed.
  • The editor has an icon now.
  • Add a menu item to open the official Solarus website.
  • Add a menu item to open Solarus documentation.

Bug fixes:

  • Fix encoding of non-ascii characters in project_db.dat with Windows.
  • Fix Ctrl+S shortcut not always working.
  • Fix entities restored to the front when undoing removing entities.
  • Fix entities restored to the front when undoing changing their layer.
  • Fix separators resizing that could allow illegal sizes.
  • Fix jumpers size reset after undoing changing their direction.
  • Fix walls being initially traversable by everything when they are created.

Incompatibilities

These improvements involve changes that introduce a slight incompatibility in the  Lua API regarding fonts. Make a backup, and then see the migration guide on the wiki to know how to upgrade.

Changes in Zelda Mystery of Solarus DX 1.10

Bug fixes:

  • Fix a minor tile issue in dungeon 8 entrance.
  • Fix the feather dialog that could be skipped in some languages.
  • Fix empty line in English dialog describing a bottle with water.
  • Fix empty buttons in savegame menu when changing language (#90).
  • Fix translation errors of two items in German (#98).
  • Dungeon 5: fix a missing door on the minimap (#99).
  • Dungeon 9: don’t allow to skip the boss hint dialog (#93).

Changes in Zelda Mystery of Solarus XD 1.10

Bug fixes:

  • Fix fairy only restoring 1/4 heart in cursed cave (#40).

Solarus 1.3 is out, now with a sprite editor!

UPDATE: a bugfix version 1.3.1 was just released. It fixes an error when opening a newly created sprite, and improves the sorting of resources with numbers in their id in the quest tree.

A new release of Solarus is available: version 1.3!

The main improvement of Solarus 1.3 is the graphical sprite editor integrated in Solarus Quest Editor. You will no longer have to edit sprite sheet data files by hand!

Sprite Editor

Screenshot of Solarus Quest Editor 1.3, modifying the sprite of an enemy in ZSDX.

The sprite editor was primarily developed by Maxs. You can create and edit sprite sheets. A tree shows the hierarchy of animations and direction of your sprite. And below the tree, you can edit the animation and direction that are selected in the tree.

The main changes of this release are in the quest editor. Another important improvement is that tile patterns can now be identified by a string instead of auto-generated integers. This allows to more easily maintain different similar tilesets.

There are also a few new features in the engine and in the Lua API, like more customizable switches, but nothing that breaks compatibility of your scripts.

As always, our games ZSDX and ZSXD were also upgraded to give you up-to-date examples of games. In ZSDX, there is also a new world minimap made by Neovyse.

Here is the full changelog.

Changes in Solarus 1.3

Lua API changes that do not introduce incompatibilities:

  • Add mouse functions and events (experimental, more will come in Solarus 1.4).
  • Add a method sprite:get_animation_set_id() (#552).
  • Add a method sprite:has_animation() (#525).
  • Add a method sprite:get_num_directions().
  • Add a method hero:get_solid_ground_position() (#572).
  • Add a method switch:get_sprite().
  • Allow to customize the sprite and sound of switches (#553).
  • Add a method enemy:get_treasure() (#501).

Bug fixes:

  • Fix the write directory not having priority over the data dir since 1.1.
  • Fix pickable/destructible:get_treasure() returning wrong types.
  • Fix custom entity collision detection when the other is not moving (#551).
  • Allow to call map methods even when the map is not running.

Changes in Solarus Quest Editor 1.3

New features:

  • Add a sprite editor (#135). By Maxs.
  • Add a zoom level of 400%. By Maxs.
  • Add keyboard/mouse zoom features to sprites and tilesets. By Maxs.
  • Add Lua syntax coloring (#470). By Maxs.
  • Add a close button on tabs (#439). By Maxs.
  • Rework the quest tree to show the file hierarchy and Lua scripts. By Maxs.
  • Add specific icons for each resource type in the quest tree.
  • Move the entity checkboxes to the map view settings panel. By Maxs.
  • Allow to change the id of a tile pattern in the tileset editor (#559).
  • Don’t initially maximize the editor window.

Bug fixes:

  • Fix converting quests to several versions in one go.

Incompatibilities

These improvements involve changes that introduce slight incompatibilities in the format of data files, but no incompatibility in the Lua API. Make a backup, and then see the migration guide on the wiki to know how to upgrade.

Changes in Zelda Mystery of Solarus DX 1.9

New features:

  • New world minimap. By Neovyse.
  • Make cmake paths more modifiable. By hasufell.

Bug fixes:

  • Fix direction of vertical movement on joypad in menus (#85). By xethm55.
  • Clarify license of some files.

Changes in Zelda Mystery of Solarus XD 1.9

New features:

  • Make cmake paths more modifiable. By hasufell.

Bug fixes:

  • Fix direction of vertical movement on joypad in menus.
  • Clarify the license of some files.

English tutorial!

More and more people are interested in creating games with Solarus. However, there was a lack of tutorials to explain how to do it.

There is a video tutorial in French, and a written tutorial also in French, but so far there was nothing in English. You guys were expecting it, here it is: the official English video tutorial!

I uploaded chapter 1 today, and more chapters will come in the next few days. The French tutorial has 55 episodes for now (and is not over!) so there is a lot of work! To get the updates, you can follow me on Twitter (@ChristophoZS) or subscribe to the YouTube channel.

We hope that you will enjoy these videos and more importantly, that you will be able to create lots of great games now 🙂

Bugfix release 1.2.1

A bugfix release named Solarus 1.2.1 is available!

It addresses a few issues with recent features that were not working correctly, like custom entities, and a problem of corrupted image when creating a new quest with the editor.

Changes in Solarus 1.2.1

  • Fix entity:is_in_same_region() giving wrong results (#500).
  • Fix custom_entity:set_can_traverse() giving opposite results.
  • Fix custom_entity:on_interaction() not always called.
  • Fix custom_entity sprite collision issues with some entities (#536).
  • Fix a crash in enemy:restart() when the enemy is dying (#558).
  • Fix hero:set_tunic_sprite_id() resetting the direction to right (#511).
  • Fix timer:get_remaining_time() always returning 0 (#503).
  • Fix declaring global variables from a map script (#507).
  • Fix the hero sometimes moving while no keys are pressed (#513). By xethm55.
  • Fix on_joypad events not always working (#519). By xethm55.
  • Add an error when a hero sprite animation is missing (#485). By Nate-Devv.

Changes in Solarus Quest Editor 1.2.1

  • Fix corrupted image in quest created by Quest > New quest (#548).
  • Fix tiles created on invisible layer (#508). By Maxs1789.
  • Fix crash when an NPC sprite does not have 4 directions (#510). By Maxs1789.

Custom entities


Fatal error: Call to private method CodeColorer::performHighlightCodeBlock() from context '' in /home/solarus/www/wp-content/plugins/codecolorer/codecolorer-core.php on line 70