Skip to content

Releases

Lota 0.8.0

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 17:23

Added

  • lota path/to/file.rb runs that Ruby file in the place of main.rb, from its folder, as love path/to/file.lua does, and lota takes a game given as a file:// URI.
  • lota reads LÖVE's options --fused, --console, --game PATH, --renderers LIST, and --excluderenderers LIST anywhere among its arguments, as love does, and gives the game its arguments without them; --renderers and --excluderenderers win over conf.rb's, and --console changes nothing yet.
  • The fuser, an app that makes a .lota opened with it, or given to its program after --build, into an app of its own, with no Ruby on the computer, through Fledge's fledge build --from (Lota::Fuser); rake "fuser[GEM]" builds it from a clone of Lota.
  • Each release also publishes Lota's extension prebuilt for each iOS slice and Android ABI beside the engines, as lota-extension-ios-arm64.tar.gz and the like, built against them and the phone Ruby of the Fledge lota fuse builds with, and pinned beside them. A phone build from the release's source gem links it and compiles only its three-line entry point, so it needs neither Rice nor CMake. A gem whose files differ from the extension's compiles the extension, and a phone Ruby of another ABI stops the build, saying to name the Fledge the extension was built with or to pass --with-rice-dir, with which the build compiles the extension for that Ruby.
  • Each release also publishes, for each desktop, Lota's app, which plays a .lota opened with it or dropped on its "no game" screen as LÖVE's app plays a .love, and the fuser, which makes a .lota into an app of its own; each as an archive and an installer, such as Lota-arm64-darwin.dmg and Lota.Fuser-x64-mingw-ucrt-setup.exe, carrying the release's version and listed in its SHA256SUMS, so neither a player nor a developer needs a clone of Lota to have them

Changed

  • lota fuse builds with Fledge 0.16.0, was 0.14.0; Fledge's changelog says what changes in an app.
  • A fused Linux app is about 69 MB smaller unpacked, since Fledge 0.16.0's runtime carries its static libruby without debug information.
  • An Android app built as the phone guide says carries the NDK's shared C++ runtime, libc++_shared.so, about 1.4 MB in each ABI, with its licence in notices/libc++_shared.txt, and Lota's extension links it, where it linked a static copy of its own.
  • Breaking: Lota::Event.restart runs the game again in its process on every platform, as LÖVE's restart does, where it replaced the process with exec: a game on iPhone, iPad, or Android restarts where it ended, a game in the macOS App Sandbox restarts where macOS 15 killed it, Lota::Boot#call runs the game again where it returned, and on Windows the process keeps its id. What a game changed outside its own files, such as a built-in class or a gem it loaded, stays from one run to the next.
  • Breaking: Lota::Boot#restart? and Lota::Boot#restart_value are gone: Lota::Boot#call now returns only once the game quits, so there is no restart for them to report.
  • Breaking: lota path/to/game runs a game, as love path/to/game does, and lota run is gone. lota alone prints its usage and shows the no-game screen, where it printed its usage, so the game in the current folder runs with lota ., and -v and -h are gone, as love has only --version and --help, which print LÖVE's usage with Lota's names.
  • Breaking: Lota::Boot.new(nil, arguments) takes the game from its arguments, as the lota program does, where nil named the current folder; given a folder, it reads LÖVE's options among the arguments and leaves them out of the game's.
  • lota given a path that holds no game, or a file that is not a .lota, prints its usage and opens a window that shows the error, as love does with a path it cannot load, where it printed the error and exited before opening one.

Fixed

  • Lota.filedropped receives the file dropped on the window, or opened with a fused app on macOS, as a Lota::Filesystem::File, as LÖVE's love.filedropped does, where handling the event raised RuntimeError.

Lota 0.7.1

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 07:42

Added

  • Each release publishes LÖVE's engine prebuilt for each iOS slice and Android ABI beside its gems, as lota-engine-ios-arm64.tar.gz, lota-engine-ios-arm64-simulator.tar.gz, lota-engine-android-arm64-v8a.tar.gz, and lota-engine-android-x86_64.tar.gz, with their checksums in its SHA256SUMS. A phone build fetches them without --with-lota-source: from the release's source gem, lota-VERSION.gem, which each release now also publishes and which pins that release's engines in ext/lota/phone/engines.txt, or from a clone of trunk, where CI pins the newest release's after each release.

Lota 0.7.0

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 06:18

Fixed

  • Lota::Font::TrueTypeRasterizer.new, Lota::Font::Rasterizer.new, and Lota::Graphics::Font.new check the hinting mode before the DPI scale and the font, as LÖVE does, where a font file that could not be read, or a DPI scale of the wrong kind, raised first; Lota::Graphics::Font.new given a font and no size ignores the settings, as LÖVE does, where it raised TypeError for one of the wrong kind.
  • Lota::Filesystem.mount_full_path and .mount_common_path read an append that is not true or false as false, as LÖVE does, where they took its truthiness.
  • Lota::Filesystem.mount mounts a File that open_native_file opened or Lota.filedropped received, by its filename, as LÖVE means to, and reads an append that is not true or false as false, as LÖVE does, where it raised; mount and unmount raise TypeError for any other archive that is neither a String nor a Lota::Data, where they raised NoMethodError.
  • Breaking: Every setter LÖVE reads with luax_checkboolean raises TypeError for a value that is not true or false, nil included, as LÖVE does, where it took any value's truthiness: Lota::Mouse.visible=, grabbed=, and set_relative_mode; Lota::Keyboard.key_repeat= and text_input=; Lota::Joystick.background_events= and Joystick#sensor_enabled=; Lota::Window.set_fullscreen and display_sleep_enabled=; Lota::Graphics.color_mask=, depth_mode=, which checks the flag before the compare mode, and wireframe=; Lota::Audio.set_output_spatialization, set_mix_with_system (and so t.audio.mixwithsystem), and Source#looping= and #relative=; Lota::Filesystem.symlinks_enabled=; and Lota::Physics::Body#active=, awake=, bullet=, fixed_rotation=, and sleeping_allowed=, Shape#sensor=, World#sleeping_allowed=, Contact#enabled=, and the motor_enabled= and limits_enabled= of RevoluteJoint, PrismaticJoint, and WheelJoint.
  • Lota::Physics::World.new lets Bodies sleep when given nil for sleep, as LÖVE does, where it took nil as false.
  • Lota::Filesystem.identity= and t.appendidentity read an append that is not true or false as false, as LÖVE does, where they took its truthiness.
  • Lota::Physics::Body#apply_torque and #apply_angular_impulse take whether to wake the Body after the amount, as LÖVE's applyTorque and applyAngularImpulse do, where they raised ArgumentError for it.
  • Lota::Video::VideoStream#sync= given something it cannot keep time by says what it expected in LÖVE's words, "Source or VideoStream or nil", where it listed them with commas.
  • Lota::Filesystem.lines given something other than a String raises TypeError saying it "expected filename.", as LÖVE does, where it raised the binding's own message.

Lota 0.6.0

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 01:52

Fixed

  • Lota::Graphics.draw and .draw_layer given nil in place of the quad, then a Lota::Math::Transform, report the missing quad, as LÖVE does, where they reported the Transform.
  • Lota::Graphics::Buffer.new and Lota::Graphics::Mesh.new with a format of its own report an unknown usage, or mesh mode, before a fault in the format, as LÖVE does.
  • Lota::Graphics::TextBatch#setf checks its wrap limit and alignment before its text, as LÖVE does.
  • Lota::Graphics::Buffer.new raises TypeError for a usage or debugname that is not a name or text, before reading the format, as LÖVE does, where it read them as text after the format.
  • Lota::Graphics.draw_from_shader raises TypeError for a nil count, where it drew nothing, and .draw_from_shader_indirect given a primitive checks its name before its buffer, as LÖVE does.
  • Lota::Graphics::Mesh.new raises TypeError for a usage that is not a name, where it ignored one in the standard form, checks the mode and usage before the vertex format, and raises TypeError for an older format entry whose name or type is nil or a boolean, as LÖVE does.
  • Lota::Graphics::Mesh#set_vertex_map given a Data and no index type, or nil, raises TypeError, as LÖVE does, where it raised IndexError or an unknown-type error.
  • Lota::Graphics.readback_texture and .readback_texture_async raise TypeError for a texture that is not a Lota::Graphics::Texture, before checking the other arguments, as LÖVE does, where they raised NoMethodError.
  • Lota::Graphics::TextBatch#add and #addf raise TypeError for a placement value that is not a number, as LÖVE does, where they dropped it and read the numbers after it in its place.
  • Lota::Graphics.clear(nil) clears to transparent black, and Lota::Graphics.scissor = four nils or an empty Array stops clipping, as LÖVE does, where they raised.
  • Lota::Graphics.set_canvas(depthstencil: target) with no canvases draws to that target alone, and Lota::Graphics.canvas is then empty, as LÖVE does, where it drew to the window again.
  • Lota::Graphics::Texture#replace_pixels takes a Lota::Image::CompressedImageData, and the mipmap of it to copy as a new last argument, as LÖVE does, where it raised TypeError.
  • Lota::Graphics::SpriteBatch#add, #set, #add_layer, and #layer= take a Lota::Math::Transform in place of the numbers, after the quad when there is one, as LÖVE does, where they raised TypeError.
  • Lota::Joystick.save_gamepad_mappings with a file name raises the message of a write that fails, as LÖVE does, where it returned the mappings as if it had written them.
  • Lota::Mouse.down? takes its buttons as one Array, as LÖVE's isDown takes a table, where it raised TypeError.
  • Lota::Event.push raises TypeError for a name that is neither a Symbol nor a String before it reads the arguments, as LÖVE does, where it queued the name's to_s.
  • Lota::Sensor.enabled= raises TypeError when whether the sensor is on is not true or false, as LÖVE does, where it took any value's truthiness.
  • Lota::Audio::Source#set_effect raises TypeError for an on-or-off value that is not true, false, or nil, as LÖVE does, where it set the effect.
  • Lota::Window.set_mode and update_mode raise TypeError for an x or y that is not a number, as LÖVE does, where a String became 0 and other values raised NoMethodError.
  • Lota::Audio::RecordingDevice#start raises TypeError for samples given as nil, as LÖVE does, where it recorded with the device's last settings and dropped the rest.
  • Lota::Audio::Source#queue raises TypeError for something other than a SoundData, and for an offset or length given as nil or as anything but a number, as LÖVE does, where it raised NoMethodError or queued every sample.
  • Lota::Data::ByteData#string= takes a nil offset as 0, as LÖVE does, where it raised.
  • Lota::Mouse::Cursor.new takes a nil hot spot as 0, as LÖVE does, where it raised.
  • Breaking: Lota::Math::RandomGenerator.new(nil) raises TypeError, as LÖVE's newRandomGenerator(nil) does, where it made a generator from the usual seed; leave the seed out for that.
  • Breaking: Lota::Window.show_message_box with an empty Array of buttons raises RuntimeError, as Lota raises every error LÖVE raises with luaL_error, where it raised ArgumentError.
  • Lota::Filesystem.write, append, and File#write given a negative size return nil and LÖVE's message, "Invalid write size.", as LÖVE does, where they wrote nothing and returned true.
  • Breaking: Lota::Math::Transform#matrix= and Lota::Graphics.projection= check the layout before the elements, and raise TypeError for fewer than sixteen elements, as LÖVE does, where they raised ArgumentError for the count first.
  • Breaking: Lota::Image::ImageData#map_pixel checks the rectangle's numbers before the block, and raises RuntimeError with LÖVE's message for one that is not a number, as LÖVE does, where it raised TypeError, and checked the block first.
  • Lota::Image::ImageData.new with a size checks the size and the format before the kind of its bytes, as LÖVE does, where bytes of the wrong kind raised first.
  • t.externalstorage = true puts an Android game's save directory on the app's external storage, as in LÖVE. Lota kept the setting but never passed it to the engine, so the game saved on internal storage.
  • Lota::Sound::SoundData.new(file, buffer_size, type) decodes the file with that buffer size and stream type, and raises ArgumentError for a stream type LÖVE does not know, as love.sound.newSoundData does; it ignored both. A sample rate, bit depth, or channel count given as nil takes its default, as in LÖVE, where it raised TypeError.
  • Lota::Filesystem.write and append take any Lota::Data, such as a ByteData, as LÖVE does, where they took only a FileData.
  • Every texture constructor (Texture.new, Image.new, ArrayTexture.new, CubeTexture.new, VolumeTexture.new and their Image kin), Lota::Graphics::Font.new, Lota::Graphics::ImageFont.new, Lota::Graphics::Shader.new, ComputeShader.new, and Lota::Graphics.validate_shader take a Lota::Filesystem::File where LÖVE does, and Font.new takes any Lota::Data holding a TrueType font with a size, as LÖVE does.
  • Lota::Sound::Decoder.new and Lota::Audio::Source.new take a Lota::Filesystem::File, decoding from the File itself or with :memory from what it reads, and any Lota::Data, as LÖVE does, where they took only a file name or a FileData; Decoder.new takes a nil buffer size as the default.
  • Lota::Graphics::ComputeShader.new takes a second source, as LÖVE's newComputeShader does, which it reads and looks up as Shader.new reads its second and compiles only when the first is nil.
  • A File that cannot be read raises RuntimeError with LÖVE's message in Lota::Font's rasterizers, where it raised TypeError; ImageFont.new checks its image before its spacing and DPI scale, as LÖVE does; and Shader.new passes over a source argument that is neither a String nor a file, as LÖVE does, where it raised.
  • Lota::Filesystem.mount mounts a File that open_native_file opened, by its filename, as LÖVE does, and reads an append that is not true or false as false, as LÖVE does, where it raised; mount and unmount raise TypeError for any other archive that is neither a String nor a Lota::Data, where they raised NoMethodError.
  • Breaking: Lota::Physics::CircleShape.new, RectangleShape.new, and EdgeShape.new check a destroyed Body before they count the numbers after it, as LÖVE does. EdgeShape.new makes a lone edge when its fifth number is nil, and raises TypeError for a missing number, where it raised ArgumentError for fewer than four and IndexError for five to seven.
  • Lota::Physics::Shape#ray_cast chooses its form as LÖVE does, casting where the Body is unless the seventh argument is given and not nil, and takes a nil child as 1; a nil among the extra arguments raised TypeError.
  • Breaking: Lota::Physics::RevoluteJoint.new, WeldJoint.new, and PrismaticJoint.new raise TypeError for an explicit nil reference angle, as LÖVE does, where they left the angle out; FrictionJoint.new and WheelJoint.new no longer read a value after collide_connected, as LÖVE does not.
  • An explicit nil takes the default, as LÖVE's optional numbers do, for Lota::Physics::RectangleShape.new's angle, Lota::Physics::Fixture.new's density, and the child of Lota::Physics::Shape#compute_aabb and #bounding_box; each raised TypeError.
  • Breaking: Lota::Physics::ChainShape.new and Lota::Physics.new_chain_body raise TypeError for a loop that is not true or false, as LÖVE does; they took nil as false and anything else as true.
  • Breaking: Lota::Physics::Body#world_points and #local_points return an odd value left over first, as it was given, then the transformed pairs, as LÖVE does; they returned it last, as a Float. Given fewer than two values, they raise LÖVE's message, "Incorrect number of arguments. Got [1], expected at least [2]".

Lota 0.5.5

Choose a tag to compare

@Kerrick Kerrick released this 20 Nov 05:02

Changed

  • lota fuse builds with Fledge 0.14.0, was 0.13.0; Fledge's changelog says what changes in an app.
  • lota fuse judges a Gemfile's ruby line by the Ruby of Fledge's runtime as RubyGems names it, 4.1.0.preview1 on macOS and Linux and 4.1.0.dev on Windows, where it judged plain 4.1.0: a line that asks for 4.1.0-preview1 exactly now fuses on macOS and Linux, though not on Windows, and a range whose first bound is a preview, such as ruby ">= 4.1.0.a", "< 4.2", now fuses under Bundler 4.0.
  • When the lockfile has no checksum for its Bundler, the advice lota fuse passes on from Fledge is to run gem install bundler -v VERSION, then bundle lock --add-checksums, where it was bundle install, which wrote no checksum for a Ruby's own Bundler.
  • An Android app carries Lota's engine and extension as a library of their own, libfledgeext.lota.native.so, which Ruby loads on its own thread when the game requires Lota, where Fledge linked them into libfledgeext.so, which the host loaded before Ruby started; rake android:notices names the new file.

Lota 0.5.4

Choose a tag to compare

@Kerrick Kerrick released this 19 Nov 18:07

Added

  • lota fuse reads Bundler's with and without settings as Bundler reads them for the game's folder (its .bundle/config, BUNDLE_WITH and BUNDLE_WITHOUT, then your own), where it read only your own: a group in with, such as bundle config set --local with development, ships in the app, which still leaves out the development and test groups by default.

Changed

  • lota fuse builds with Fledge 0.13.0, was 0.12.0; Fledge's changelog says what changes in an app.

Fixed

  • lota fuse builds a game with the Bundler that bundle runs in the game's folder, wherever you run it from. It took the Bundler that the lockfile in the folder it ran from, or in a folder above it, named, so one game could be locked by another Bundler, or refused by Fledge, depending on that folder.
  • On Ruby 4.1, reading four or more values at once (Lota::Graphics.color, background_color, scissor, Lota::Image::ImageData#pixel, Lota::Math::Transform#matrix, Lota::Graphics::Mesh#vertex, a ray cast's hit, a shape's points, and the like), polling a message of four or more values such as a mouse move's, and a physics callback's four or more arguments no longer set off major garbage collections: each such Array now holds its values inline, with no buffer from malloc, which Ruby 4.1 counts toward an oldmalloc major collection. A frame that read the color 1,000 times ran 17 of them in 10,000 frames, and now runs none.
  • Lota::Graphics.color=, Lota::Graphics.background_color=, and Lota::Graphics::SpriteBatch#color= allocate only the Array their values arrive in, as in 0.3.1; since 0.4.0 each call allocated a second.
  • A phone app built from a clone of Lota at a release's tag, by the iOS kit or by hand, has that release's Lota::VERSION, where it had 0.0.1.dev: rake phone:gem, which lays out the folder a phone project names as its lota gem, stamps it in.

Lota 0.5.3

Choose a tag to compare

@Kerrick Kerrick released this 15 Nov 09:24

Changed

  • lota fuse stops before it writes anything when an --exclude pattern would leave out the file the game's Gemfile reads its Ruby version from (ruby file: ".ruby-version"), or its folder, as it stops for conf.rb and main.rb, where Bundler stopped later, as it locked the project's gems.

Lota 0.5.2

Choose a tag to compare

@Kerrick Kerrick released this 14 Nov 10:52

Added

  • lota run game.lota plays a game in one file, its folder zipped, as love game.love plays a .love: Lota::Filesystem reads the archive, which is its source, and the game saves under the archive's name, while its Ruby runs from a copy unpacked once into the system's cache folder, so require, require_relative, __dir__, and File work as from the folder, in a Lota::Thread::Thread of one of its files too. An archive with an entry that would land outside the folder, match another but for case, take a name Windows forbids, hold native code, be a symbolic link, or, on Windows without long paths, need a path longer than 259 characters, is refused, naming the entry.

Lota 0.5.1

Choose a tag to compare

@Kerrick Kerrick released this 14 Nov 00:39

Fixed

  • A Lota::Thread::Thread made from a file runs its code under the file's real path, so __FILE__, __dir__, require_relative, and backtraces name the file, as LÖVE names a thread's chunk for its file, where they named the file as the game knows it, relative to the working directory.

Lota 0.5.0

Choose a tag to compare

@Kerrick Kerrick released this 13 Nov 23:09

Added

  • Deprecation notices are drawn over the frame, as LÖVE draws them: the newest four, in a dark band at the bottom of the window, for 20 seconds after the latest, while Lota.deprecation_output? is true.
  • love.thread: Lota::Thread, which boot opens unless t.modules.thread is false, and lota.thread; Lota::Thread.channel; Lota::Thread::Channel (new, push, supply, pop, demand, peek, count, read?, clear, perform_atomic), which carries any of Lota's objects as itself and hands back a fresh copy of each message, its Strings, Arrays, and Hashes unfrozen; and Lota::Thread::Thread (new, start, wait, error, running?), whose code runs in a Ractor of its own. lota.graphics and lota.window are nil in a thread's code, as in LÖVE, and the user data and World callbacks one thread sets raise Ractor::IsolationError in another.
  • Lota::Graphics.capture_screenshot takes a Lota::Thread::Channel, which gets the frame as an ImageData once it is presented, as love.graphics.captureScreenshot takes a Channel.
  • Lota.threaderror(thread, error), called when a thread's code raises; its default raises the error in the game, as love.threaderror does.
  • A Ractor other than the main one may call Lota's modules, holding wrappers of its own for the engine objects it reads, but Lota::Graphics and Lota::Window raise ThreadError there, as on any thread but the main one.
  • Lota::Window.show_file_dialog, translating love.window.showFileDialog: it shows the system's dialog for opening files, opening a folder, or saving, and calls its block or callable with the chosen paths, the chosen filter's name, and any error when the event queue is next pumped after the player chooses.
  • Lota::Graphics.clear takes an Array of components for each canvas being drawn to, as love.graphics.clear takes a table for each, with an empty Array or nil leaving a canvas as it is.
  • A phone build fetches LÖVE's engine and its libraries prebuilt for its iOS slice or Android ABI from the release that ext/lota/phone/engines.txt names, checked against the SHA-256 it pins, unless bundle config build.lota passes --with-lota-source, which builds them from source as before; --with-lota-engine-url names a mirror and --with-lota-engine-cache the folder they are kept in.

Changed

  • Breaking: A Lota::Data is no longer Ractor.shareable?: each Ractor holds its own wrapper of an engine object, as each of LÖVE's Lua states holds its own userdata, so a release in one ends only that one's use. Pass a Data, or any of Lota's objects, to another Ractor through a Lota::Thread::Channel or a thread's arguments, which carry it as itself.
  • Breaking: Requires Ruby 4.1 (preview or later); Ruby 4.0 is no longer supported. Each precompiled gem accepts Ruby 4.1's previews and releases, and the Windows gems are built on the head build of RubyInstaller that Fledge keeps, since RubyInstaller publishes no 4.1 preview; another day's head build need not load them.
  • lota fuse builds with Fledge 0.12.0, whose runtimes are Ruby 4.1, was 0.10.0.
  • Lota's loop allocates fewer objects calling a game's callbacks: two a call, the arguments and the callback's Method, where it allocated five to seven, so a game with an empty update(dt) and draw costs 7 objects a frame instead of 14.
  • Lota::VERSION is a release's version only in that release's gems; a clone of the repository, and a gem built from one, is 0.0.1.dev, which sorts before every release.

Fixed

  • An object a game releases while another thread's call still uses it is let go as that call ends, rather than when Ruby collects its wrapper.
  • A game that releases an object and still holds it no longer stops Ruby at the next garbage collection with "[BUG] object allocation during garbage collection phase".
  • On 64-bit Android, a new engine object, such as a SoundData or a Shader, no longer comes back as an older object of the same class or another that lay close by in memory, which released the new object and made SoundData#sample= raise "Attempt to set out-of-range sample!" and Shader#send "Shader uniform ... does not exist." on most launches.
  • t.gammacorrect in Lota.conf prints LÖVE's deprecation notice, replaced by t.graphics.gammacorrect, as love.conf's does.