Skip to content

Releases: umineko-project/onscripter-ru

ONScripter-RU r3570

27 Mar 16:19
5d44245
Compare
Choose a tag to compare
untagged-b87158b67d23f44f53d3

ruby should use the full height to align the baseline between words

ONScripter-RU r3569

10 Mar 16:45
Compare
Choose a tag to compare
Add system-offset options

While currently the existing window handling code is technically correct,
on Android opertating sytem certain devices (or SDL on them) behave weirdly.

In the engine we have two types of coordinates, screen and script:
- Screen coordinates are coordinates the game window runs in (needed
  to translate e.g. mouse pointer hover area).
- Script coordinates are coordinates the game runs in (always 1080p).

So, for a 2400x1080 screen, as found in Redmi Note9 Pro in landscape
mode, the following values are set:

- script_width / script_height = 1920 / 1080 (game resolution)
- screen_width / screen_height = 1920 / 1080 (windowed game resolution,
  unused in fullscreen really)
- screen_ratio1 / screen_ratio2 = 1080 / 1080 (native screen height
  / game script height)
- fullscript_width / fullscript_height = 2400 / 1080 (screen resolution
  in game coordinates)
- fullscreen_width / fullscreen_height = 1920 / 1080 (game resolution
  in screen coordinates)
- fullscript_offset_x / fullscript_offset_y =  240 / 0 (offset to game
  on device screen in game coordinates)

What we actually observe on the device is padding of 420 pixels to the
left and 210 pixels to the right with the game width cut to 1770 pixels
wide.  If fullscript_offset_x becomes 0 on a normal device that would
have meant the game would run in the top left corner, but it is absolutely
not what happens on Redmi Note9 Pro. What we observe after the change is
left padding of 180 pixels and right padding of 300 pixels with the game
width being 1920 as normal. I guess, neither is correct, but the latter
is at least useable.

What we concluded from these values is that on this device the game
always runs at 180 pixel offset to the right (420 - 240 = 180) enforced
by some system software (or maybe SDL). This is horrifying but not much
we can do about it. To handle the issue as such and get a perfectly centred
image fullscript_offset_x should be 60 as calculated from (2400 - 1920)
/ 2 - 180. Here 180 is so called system_offset_x.

This patch introduces such a variable and makes it user-configurable
via engine arguments or ons.cfg.

ONScripter-RU r3567

24 Jul 14:38
Compare
Choose a tag to compare
untagged-8e4dfefc27748cd21fb2

Fix compilation with Xcode 11.6

ONScripter-RU r3566

02 Jun 18:36
57fcc70
Compare
Choose a tag to compare
untagged-a3f0d7011620370596f9

Optimise software subtitle rendering by reducing allocations & avoidi…

ONScripter-RU r3565

12 May 15:22
Compare
Choose a tag to compare
untagged-9feb2925f32e6d97661b

Fix rain blending for *d63284

ONScripter-RU r3564

04 May 14:47
9bffdfe
Compare
Choose a tag to compare
untagged-1eaf7e4b8cf644e0b50e

Get subtitles can load fonts from fonts_dir (#6)

ONScripter-RU r3563

28 Mar 07:29
Compare
Choose a tag to compare
Fix accidentally marking all messages as read after quiting game

REF: https://forum.umineko-project.org/viewtopic.php?f=6&t=339

The issue happened due to calling log_reset at *start (1) label after
the episode filled script_h.logState.logEntries with *umi1_op (2) and
beyond.

ONScripter-RU r3560

23 Mar 05:23
9948ab4
Compare
Choose a tag to compare
untagged-9606d07d619633d4a6a8

testing Windows build on linux

ONScripter-RU r3561

23 Mar 06:42
60e5fcc
Compare
Choose a tag to compare
Revert "Update CI configuration to dpl v2"

This reverts commit d3c4a3976292d3e1b8c74b2700c1ee45919ef91d.

ONScripter-RU r3562

23 Mar 08:13
dcda1ed
Compare
Choose a tag to compare
untagged-1806412e8ae9cd83a994

more line break fix