https://linen.dev logo
Join Discord
Powered by
# ceramic
  • b

    bright-gpu-74537

    04/23/2023, 8:34 PM
    i could wrap it in a "no_script" define or something, but feels messy...
  • a

    ambitious-knife-25690

    04/23/2023, 8:34 PM
    yeah
  • b

    bright-gpu-74537

    04/23/2023, 8:34 PM
    i would argue that the
    #if hscript
    is pretty valid, ie, you include the scripting lang, so you get access to a runtime scripted css function
  • a

    ambitious-knife-25690

    04/23/2023, 8:35 PM
    i think so
  • a

    ambitious-knife-25690

    04/23/2023, 8:35 PM
    i'd expect a lib to be added if it is "actually" required
  • a

    ambitious-knife-25690

    04/23/2023, 8:35 PM
    otherwise it should be mentioned in a config file
  • b

    bright-gpu-74537

    04/23/2023, 8:36 PM
    i guess then @billowy-waiter-28954 needs to decide if hscript was intended to be included by default - it looks like it is:
    /** A list of haxe libraryes required to make ceramic runtime work */
  • a

    ambitious-knife-25690

    04/23/2023, 8:36 PM
    here, it seems like ceramic is like "do you want these libs? - they're here if you want"
  • b

    bright-gpu-74537

    04/23/2023, 8:41 PM
    i guess a minimal repro would be:
  • b

    bright-gpu-74537

    04/23/2023, 8:41 PM
    Copy code
    haxe
    #if hscript
        throw "we dont allow hscript in our libs";
    #end
  • b

    billowy-waiter-28954

    04/23/2023, 9:11 PM
    I’ll see if I can restrict hscript inclusion to « only when the script plugin is enabled »
  • f

    faint-toothbrush-51643

    04/24/2023, 3:26 AM
    why is it called ceramic?
  • b

    billowy-waiter-28954

    04/24/2023, 7:15 AM
    Because I needed a name that designate something very common that cannot really be trademarked easily, and I did make ceramics for real for a few years. I do like the idea of Baking a Ceramic, with Clay 😄
  • s

    straight-twilight-37046

    04/24/2023, 8:32 PM
    Bro's a genius.
  • b

    bland-apple-47181

    04/25/2023, 9:00 PM
    How can I make a StateMachine in Entity call the STATES_update/enter/... functions?
  • b

    bland-apple-47181

    04/25/2023, 9:01 PM
    Copy code
    haxe
    package components;
    
    import ceramic.Entity;
    import ceramic.InputMap;
    import ceramic.Component;
    import ceramic.StateMachine;
    import enums.PlayerInputEnum;
    import enums.PlayerStateEnum;
    
    
    class PlayerInput extends Entity implements Component {
    
        var inputMap = new InputMap<PlayerInputEnum>();
    
        @component var stateMachine = new StateMachine<PlayerStateEnum>();
    
        function bindAsComponent() {
    
            bindInputs();
    
            stateMachine.state = PlayerStateEnum.DEFAULT;
        }
    
        function bindInputs() {
            inputMap.bindScanCode(PlayerInputEnum.LEFT, KEY_A);
            inputMap.bindScanCode(PlayerInputEnum.RIGHT, KEY_D);
            inputMap.bindScanCode(PlayerInputEnum.UP, KEY_W);
            inputMap.bindScanCode(PlayerInputEnum.DOWN, KEY_S);
        }
    
        function DEFAULT_update(dt: Float) {
            log.info('DEFAULT_STATE_UPDATE, $dt');
        }
    }
    the DEFAULT_update is never call
  • b

    billowy-waiter-28954

    04/25/2023, 9:16 PM
    Did you assign this
    PlayerInput
    object to another entity? (and did you ensure
    bindAsComponent()
    is called, in reaction to that)
  • b

    bland-apple-47181

    04/25/2023, 9:20 PM
    yes, in the create method of scene

    https://cdn.discordapp.com/attachments/853414608747364352/1100531696471908425/image.png▾

  • b

    billowy-waiter-28954

    04/25/2023, 9:21 PM
    Mmmmh, I'll take a look at that one, might be a bug
  • b

    billowy-waiter-28954

    04/25/2023, 9:48 PM
    The problem happens because you have put your PlayerInput class inside a
    components
    package. As a workaround, rename that package and it should work @bland-apple-47181
  • b

    billowy-waiter-28954

    04/25/2023, 9:48 PM
    I'll still investigate why it fails when the package is named
    components
  • b

    bland-apple-47181

    04/25/2023, 9:50 PM
    renamed and is working now, thnks
  • a

    ambitious-knife-25690

    04/27/2023, 2:39 PM
    Is it intentional for ceramic to take into consideration the window header for resolution? is that togglable?
  • a

    ambitious-knife-25690

    04/27/2023, 2:48 PM
    ahhh, nvm, it might be something to do with my own configuration instead...
  • a

    ambitious-knife-25690

    04/27/2023, 2:52 PM
    confirmed, it was my electron config - solved 😄
  • a

    ambitious-knife-25690

    04/27/2023, 11:58 PM

    https://cdn.discordapp.com/attachments/853414608747364352/1101296291687968868/image.png▾

  • a

    ambitious-knife-25690

    04/27/2023, 11:58 PM
    what could cause this difference in text quality?
  • a

    ambitious-knife-25690

    04/27/2023, 11:58 PM
    I'm doing some general quality control around haxeui ceramic
  • a

    ambitious-knife-25690

    04/27/2023, 11:59 PM
    it is so clear on the left and then blurry on right
  • b

    billowy-waiter-28954

    04/28/2023, 6:52 AM
    Can’t say without more info: - what font are you using - are you using preRenderedSize or not, of so, which value - are you using Filters in those screens - are you setting targetDensity in project settings
1...111112113...124Latest