Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Oomek

Pages: [1] 2
Scripting / How to destroy a variable or an object in Squirrel?
« on: March 22, 2017, 09:50:43 AM »
I'm struggling to find a way to destroy an object or a variable.
when I make for example

Code: [Select]
local myText = fe.add_text()
How can I get rid of it from the screen apart from writing

Code: [Select]
myText.msg = ""

Scripting / Is there a way to save layout config from the script?
« on: March 20, 2017, 03:14:12 PM »
I can't believe  there is no alternative to get_config() like set_config().
Is there any other way of storing a permanent value from the script which can be recovered next time you run AM.

General / Nightlies link dead?
« on: March 19, 2017, 10:02:31 AM »
Is it only me or the site with nightlies dead to everyone?

Themes / SILKY Theme v0.5 beta
« on: March 13, 2017, 01:00:34 PM »
SILKY Theme v0.5 beta

- silky smooth animation ( stuttering on the video is caused by the recording software )
- adapts to all horizontal resolutions with pixel perfect positioning
- configurable number of snaps in Layout Options
- rewritten animation module from scratch
- rewritten conveyor from scratch ( I use my carrier.nut module )
- custom dialogs
- configurable colour scheme in Layout Options
- colour randomizer ( assign a button to "Custom1" in AM Controls )
- I used genre icons from Game Station theme. I hope the autor doesn't mind. I was inspired by his work anyway. Only the genre displaying function was taken from his code.

Note: Colour randomizer scheme is overriden on launching AM by the colours set in Layout Options. If you want the scheme to be permanent, leave Colours blank in Options, or copy the values given by the randomizer to Layout Options.


- the latest Attract Mode nightly build
- snaps and videos on the SSD for smooth scrolling
- set selection_speed_ms  51 in attract.cfg



21/03/2017 - Initial Release

Please download the latest nightly build of Attract Mode


Scripting / Text alignment in AM is completely off [SOLUTION]
« on: March 12, 2017, 07:51:49 AM »
Is there any way to make text alignment in AM more coder friendly?
Setting Align.Left does not make the text to be aligned to the left. The y offset is wrong too. What's even worse the gap changes depending on the font type used, so it's practicaly impossible in AM to make a neat theme which scales to various resolutions. I need to compensate the gap and vertical alignment manually in pixels which destroys scalability.

Scripting / Subpixel positioning
« on: March 05, 2017, 08:05:23 AM »
How to make AM to position object with subpixel accuracy?
When I move an image the content moves with subpixel filtering, but the frame of a picture is snapping to pixels.
The same happens with text boxes

Run this code and see. It will jump in 1 pixel increments instead smoothly transitioning across the X axis.

Code: [Select]
local test = fe.add_text( "", 0, 0, 32, 1080)
test.set_bg_rgb( 200, 200, 200 )

fe.add_ticks_callback( "tick" )
function tick( tick_time ) {
    test.x += 0.01

I'm working on a new conveyor like module which is very simple but optimized for speed and animation smoothness. What's forced me to write it? Conveyor freezes all other animations while transiting, which was unacceptable for me. I need your advise first. I went with type 2
It will look like this:

What padding works for you best of those 3? Or shall I make paddings configurable like: tile padding, carrier padding, selector padding?


First beta version released

I need some detailed information of those two callbacks. Apart from the negated var value are there any other differencies? What is the purpose of separating them? What is the order of those calls?

Scripting / Animate module BUG: linear tween not so linear
« on: February 28, 2017, 01:33:57 PM »
There is a bug in the linear tween of the Animate module. When you run the following code you will see that it's "easing in" it's like it's speeding up for some reason. I recorded it on the 400fps camera and its clearly showing nonlinearity of that mode. the first 3 or 4 frames have very small delta.

Code: [Select]
fe.load_module( "animate" );

local rect = fe.add_image("white_square_32x1080.png")

local move_rect = {
    when = Transition.ToNewSelection, property = "x", start = 0, end = 1920 - 32, time = 75, tween = "linear"
local anim_rect = PropertyAnimation( rect, move_rect )
animation.add( anim_rect )

I'v spent 2 days trying to figure out why my scrolling is so jerky, I now I know...

Scripting / Animation property does not accept variables for start and end?
« on: February 28, 2017, 10:37:12 AM »
I found out that the properties used in animation module do not accept variables as a value for start and end for example:

Code: [Select]
when = Transition.ToNewSelection ,property = "y", start = 200 * direction, end = 0, delay = 0, time = 500
When the variable "direction" changes it does not affect the starting position of the animation, is it by design or a bug?

General / Borderless 1 pixel frame on the top and left side of the screen
« on: February 28, 2017, 09:03:32 AM »
Can you fix the borderless mode please as it is still showing a 1 pixel border on top and left side of the screen. It can be fixed with an app WindowdBorderlessGaming.
I'm running it on Windows 10

General / Animation stuttering on every mode but fullscreen
« on: February 28, 2017, 08:47:12 AM »
AttractMode is not properly waiting for vblank and it's stuttering in every window mode except fullscreen. I'm most interested in windowed (no border) but can not use it as it stutters.

Scripting / Conveyor transition is freezing other animations?
« on: February 27, 2017, 03:52:50 AM »
Is it normal for Conveyor module to freeze all the other animations while it's animating, or did I screw something up?
Here is a video showing the problem:

I slowed down all the animations for debugging purposes.

Scripting / Transition.StartNavigation ?
« on: February 25, 2017, 06:26:29 PM »
I'm looking for a way to play an animation (game list slide-in) but just once when the key/joy is pressed and held.
The event Transition.EndNavigation works fine for slide-out, but I cannot find any equivalent event to do the fade-in.
Is it possible to do with the current api or I would need some new Transition.StartNavigation event to do that?

General / How to change listbox scrolling acceleration?
« on: February 25, 2017, 04:45:59 AM »
I'm struggling to find a way to disable/decrease that crazy acceleration when the joystick is kept in one direction. Any hints?

I would also like to add a way to cycle through letters using two buttons. Is anyone willing to help?

Pages: [1] 2