Solarus-Games English Forum

Solarus => Development => Topic started by: Christopho on March 15, 2016, 10:49:12 PM

Title: Solarus 1.5 development snapshot
Post by: Christopho on March 15, 2016, 10:49:12 PM
Here is an updated snapshot for Windows because you were a lot to ask!
http://www.solarus-games.org/downloads/solarus/win32/

This is a development version, so take extra precautions, backup your files, etc. The format of some data files has changed between previous development snapshots and this one, so if you have syntax errors in data files, don't worry, I will help you on this thread.
Title: Re: Solarus 1.5 development snapshot
Post by: Diarandor on March 15, 2016, 10:56:40 PM
Thanks a lot Christopho!!!
(Since I am not making maps yet there will be no problem.)
Title: Re: Solarus 1.5 development snapshot
Post by: MetalZelda on March 15, 2016, 11:12:32 PM
Oh that's cool, I was expecting this to be released next week, thanks a lot !

I did see some slight performance increase compared to 1.4.5 and yet no errors
Did this development version include the new camera ? (Edit : Yes it does)
Title: Re: Solarus 1.5 development snapshot
Post by: Diarandor on March 16, 2016, 04:43:41 AM
But Christopho has not added most of the functions of the camera yet, so we have to be patient.
This is the link on github where he keeps track of the remaining work for the camera:
https://github.com/christopho/solarus/issues/762
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on March 16, 2016, 08:53:48 AM
Yes, the work on the camera is still in progress. The camera entity exists, but its functions in the API are not all implemented yet.

Also, check the list of Lua API incompatibilities in the changelog here: https://github.com/christopho/solarus/blob/dev/changelog.txt
Title: Re: Solarus 1.5 development snapshot
Post by: MetalZelda on March 16, 2016, 12:49:42 PM
Yes, I know, I got some error related to the camera movement (callback not called, bad argument#2), but I am mostly working on it for the future so everything would be already ready.
By the way, is there a way to apply a movement on the hero if the game has been suspended, I got the sprite and entity to work when the game is suspended but movement is not started (simple straight movement)
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on March 16, 2016, 01:03:40 PM
No. Maybe this should be a feature request.
In the meantime, here is a workaround: create a movement and start it on a table, not on the hero. That table represent coordinates and gets updated according to the movement (see the doc). In movement:on_position_changed(), you can do hero:set_position(xy) from the info of that table.
Title: Re: Solarus 1.5 development snapshot
Post by: MetalZelda on March 16, 2016, 01:10:31 PM
Right, I didn't though about a menu at first, thanks  ;)
Title: Re: Solarus 1.5 development snapshot
Post by: zutokaza on March 27, 2016, 07:52:05 PM
Grid options!!! The best!!!!!  :D

(http://s9.postimg.org/xansvc6j3/Selection_001.png)
Title: Re: Solarus 1.5 development snapshot
Post by: MetalZelda on March 27, 2016, 10:18:54 PM
Hmmm, does the crystal switch works in the snapshot ? I got a crash without any errors when I place a crystal switch in a map
Title: Re: Solarus 1.5 development snapshot
Post by: Diarandor on March 28, 2016, 07:02:50 AM
I confirm the crash reported by MetalZelda: if you put a crystal switch in the map, the game crashes.
(Maybe this has something to do with the new sprite functions added to all entities?)

@MetalZelda: since you found the bug, you should be the one who has the privilege to report it on github. :P
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on March 28, 2016, 11:29:05 AM
Fixed: http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160328-win32.zip
Title: Re: Solarus 1.5 development snapshot
Post by: GameboyArda on March 29, 2016, 10:47:41 PM
It happend in my Video at 1.40
https://www.youtube.com/watch?v=VBhkJ62FGEc (https://www.youtube.com/watch?v=VBhkJ62FGEc)
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on May 11, 2016, 03:06:19 PM
New 1.5 snapshot! http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160511-win32.zip
Title: Re: Solarus 1.5 development snapshot
Post by: MetalZelda on May 23, 2016, 09:25:22 PM
Hmmm, the progress so far are good but I am facing strange things with the new snapshot

- On Windows 7 64 bits, it is incredibly laggy (might be related to my programs in the background but I'll just let this here while investigating, it runs perfectly on Windows 7 32 bits)
- When you freeze the hero to display some kind of animation and pause the game with the regular pause, the animation isn't paused (EDIT : it was related to one of my scripts)
- Placing a build in bomb over a "hole" tile makes the bomb act as if it is placed on a normal tile
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on May 23, 2016, 09:48:54 PM
Please report bugs, especially if these problems were not present in previous versions.
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on June 20, 2016, 03:50:19 PM
New snapshot! http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160620-win32.zip
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 12, 2016, 03:40:47 PM
And here is a new one! http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160712-win32.zip
Title: Re: Solarus 1.5 development snapshot
Post by: froggy77 on July 13, 2016, 01:47:52 AM
Merci Christopho!

I encountered a small problem with the last snapshot and I would like to share to the community how I solved it.
I worked on an old snapshot of Solarus v1.5 ( "solarus-1.5.0-snapshot-20151107-win32") and I wanted to use the last version (solarus-1.5.0-snapshot-20160712-win32).
Impatient as a child discovering a new toy, I started the project to test new functionalities 8)  (http://forum.solarus-games.org/index.php/topic,676.0.html) . When the map was loading, ouch!!!  :'(
Quote
[Solarus]Error: Failed to load map: ...5.0-snapshot-20160712-win32/solarus/data/maps/memory.dat:1: bad argument #1 to properties (Bad field 'min_layer' (integer expected, got nil))

I think you will  not have this problem if your previous version was a v1.4 or a not too old snapshot of v1.5.
If you have that kind of error:
- Just edit your quest.dat and change 'solarus_version = "1.5"' into 'solarus_version = "1.4"'.  Of course, save  quest.dat.
- Then execute "solarus-quest-editor" to start the upgrade; your *.dat of your maps will be modify automatically.
- In your *.dat, you will see new lines in the properties:
Code: [Select]
  min_layer = 0,
  max_layer = 2,
Title: Re: Solarus 1.5 development snapshot
Post by: Satoh on July 13, 2016, 01:54:39 AM
Merci Christopho!

I encountered a small problem with the last snapshot and I would like to share to the community how I solved it.
I worked on an old snapshot of Solarus v1.5 ( "solarus-1.5.0-snapshot-20151107-win32") and I wanted to use the last version (solarus-1.5.0-snapshot-20160712-win32).
Impatient as a child discovering a new toy, I started the project to test new functionalities 8)  (http://forum.solarus-games.org/index.php/topic,676.0.html) . When the map was loading, ouch!!!  :'(
Quote
[Solarus]Error: Failed to load map: ...5.0-snapshot-20160712-win32/solarus/data/maps/memory.dat:1: bad argument #1 to properties (Bad field 'min_layer' (integer expected, got nil))

I think you will  not have this problem if your previous version was a v1.4 or a not too old snapshot of v1.5.
If you have that kind of error:
- Just edit your quest.dat and change 'solarus_version = "1.5"' into 'solarus_version = "1.4"'.  Of course, save  quest.dat.
- Then execute "solarus-quest-editor" to start the upgrade; your *.dat of your maps will be modify automatically.
- In your *.dat, you will see new lines in the properties:
Code: [Select]
  min_layer = 0,
  max_layer = 2,

I had a few errors like that with 'height and width' properties being omitted for entities.

After going back to the previous snapshot, the maps still failed to load with the same error... I don't know what happened there.
It seems like a weird error in general. (was too busy playing with new functions to worry about it though.)
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 13, 2016, 08:28:05 AM
The problem of width/height of custom entities is normal if you had a previous 1.5 snapshot. Here is how to fix it (same thing as what froggy77 said):

- Make a backup of your quest.
- Manually set solarus_version to "1.4" in quest.dat with a text editor.
- Open your quest in the quest editor: the editor will convert to 1.5 again to the correct format.
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 17, 2016, 01:25:22 PM
New snapshot: http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160717-win32.zip
Fixes the custom entity width/height data file conversion that did not worked in all cases.
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 18, 2016, 04:46:31 AM
(https://i.imgflip.com/17k5gq.jpg)
And again a new snapshot! http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160718-win32.zip
Directional resizing is now implemented (see https://github.com/christopho/solarus-quest-editor/issues/111).
The result is awesome. And it combines well with smart resizing (resizing a full room at once).
I can't wait to make more maps in my games now :)
Title: Re: Solarus 1.5 development snapshot
Post by: Zefk on July 18, 2016, 05:17:05 AM
I do love it!  :D

This is why I tell people Solarus is the best free ARPG Game Engine. I do not think I encounter an engine where there was an ability to resize a full room at once
Title: Re: Solarus 1.5 development snapshot
Post by: Satoh on July 18, 2016, 08:51:21 AM
Aha! You fixed the behavior I felt was far too petty to really bring up!
That will almost certainly be useful to me in the future. Its not really so much that it does something new... but it makes something existing, much faster to work with.

(something some other devs I know don't seem to understand. Why can't they be more like you, haha)

...If I might suggest a similar tweak... Moving assets into folders?
Sometimes I end up deciding to organize things into new folders after I've created too many of them to manage. Being able to move a sprite into a folder without having to copy/cut/paste/edit the storage data manually, etc would be a boost to efficiency...
Though, its not something I'd want you to take time from more important features to work on...
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 18, 2016, 12:04:50 PM
You can move a resource to a folder to another folder by changing its id. Not very handy I know, and it only works for one resource at a time.
Title: Re: Solarus 1.5 development snapshot
Post by: Nate-Devv on July 22, 2016, 08:02:12 PM
Not sure if this is the right place to post this but... For the editor, what do you need to pass to the SOLARUS_GUI_INCLUDE CMake flag? Trying to test if an error with QGtkStyle in 1.4.5 still applies in 1.5 (and also get ready for 1.5 release packages soon).
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 22, 2016, 09:39:23 PM
If you installed Solarus in a standard location like /usr, then SOLARUS_GUI_INCLUDE_DIR should be auto-detected (for me, to /usr/include).

Otherwise, it should be /path/to/solarus/gui/include.
Title: Re: Solarus 1.5 development snapshot
Post by: Christopho on July 26, 2016, 03:46:25 PM
Here is a new windows snapshot!
It should be very close to the final one.

http://www.solarus-games.org/downloads/solarus/win32/solarus-1.5.0-snapshot-20160726-win32.zip

Please confirm that there is no warning when starting the quest editor and that File > New quest works correctly.
Title: Re: Solarus 1.5 development snapshot
Post by: Nate-Devv on July 26, 2016, 05:49:47 PM
Got a snapshot for Ubuntu as well. Solarus is publishing, and the quest editor is on it's way. https://launchpad.net/~nate-devv/+archive/ubuntu/solarus-dev