https://linen.dev logo
Join Discord
Powered by
# lime
  • o

    orange-van-60470

    09/10/2022, 2:59 PM
    but it compiles!
  • p

    plain-portugal-5564

    09/10/2022, 9:37 PM
    I'm looking through this article https://ashes999.github.io/learnhaxe/animated-gifs-in-haxeflixel.html, and one of the steps says
    Update Project.xml and add . This will tell lime to process your gif files as binary, so you can load them via Assets.getBytes.
    . However the stuff that's supposed to go in the XML is missing. Does anyone know what this attribute is?
  • b

    bulky-exabyte-6537

    09/10/2022, 9:46 PM
    <assets path="assets">
    maybe?
  • p

    plain-portugal-5564

    09/10/2022, 9:51 PM
    That doesn't process them as binary though
  • b

    bulky-exabyte-6537

    09/10/2022, 9:52 PM
    <assets path="assets" type="binary">
    perhaps?
  • b

    bulky-insurance-39338

    09/11/2022, 9:26 PM
    thats interesting...
  • m

    mysterious-oil-14535

    09/13/2022, 1:44 PM
    Is there anyway to disable graphical window on a Lime app?
  • m

    mysterious-oil-14535

    09/13/2022, 1:44 PM
    To keep it as console-only?
  • e

    elegant-twilight-61392

    09/13/2022, 1:55 PM
    why are you using lime in the first place if you just want the console?
  • m

    mysterious-oil-14535

    09/13/2022, 1:59 PM
    Compiling
  • m

    mysterious-oil-14535

    09/13/2022, 2:04 PM
    Okay sorry had to solve something and couldn't proper detail
  • r

    rhythmic-wolf-50922

    09/13/2022, 2:04 PM
    it's probably possible to hide the graphical window, but it would still be created. I don't think there's a way to disable its creation entirely.
  • m

    mysterious-oil-14535

    09/13/2022, 2:05 PM
    I'm using Lime as it is so far the only thing able to compile properly. Tried to setup hashlink but gcc doesn't seems to be a fan of it for some reason
  • b

    bulky-insurance-39338

    09/13/2022, 2:05 PM
    you could try this:
    Copy code
    haxe
    package;
    
    import lime.app.Application;
    import lime.ui.WindowAttributes;
    import lime.ui.Window;
    
    class Main extends Application 
    {
        public function new () {
            super ();
        }
        
        override public function createWindow(attributes:WindowAttributes):Window
        {
            trace("Hello World");
            return null;
        }
    }
  • m

    mysterious-oil-14535

    09/13/2022, 2:05 PM
    I currently have something like this, it's working
  • m

    mysterious-oil-14535

    09/13/2022, 2:05 PM
    yet this is the output I'm having
  • m

    mysterious-oil-14535

    09/13/2022, 2:06 PM
    For context my code(basically same as the one semmi sent)
    Copy code
    hx
    package;
    
    import lime.ui.WindowAttributes;
    import lime.app.Application;
    
    class Main extends Application {
        public function new() {
            super();
            trace("Init");
        }
    
        public override function createWindow(attributes:WindowAttributes) {
            return null; //* Should never create window
        }
    }
  • m

    mysterious-oil-14535

    09/13/2022, 2:06 PM
    Had the "Attempt to create window!" trace on the createWindow function but removed it
  • m

    mysterious-oil-14535

    09/13/2022, 2:07 PM
    My question is if it would be able to disable the SDL integration or if I'd be better of trying to figure out a way to make hashlink work
  • b

    bulky-insurance-39338

    09/13/2022, 2:09 PM
    i recommend to use
    tink_cli
    and together with the poor haxe-parts of your application
  • b

    bulky-insurance-39338

    09/13/2022, 2:09 PM
    (so that graphical and console-one is sharing the pure haxe-code)
  • a

    ambitious-knife-25690

    09/13/2022, 2:10 PM
    do you just want to run something in headless mode?
  • m

    mysterious-oil-14535

    09/13/2022, 2:10 PM
    Will give it a try, hopefully will work
  • m

    mysterious-oil-14535

    09/13/2022, 2:10 PM
    Yeah, the idea is for this to be a TCP Server
  • a

    ambitious-knife-25690

    09/13/2022, 2:10 PM
    ah okay, you don't really need lime then
  • a

    ambitious-knife-25690

    09/13/2022, 2:10 PM
    just use standard cpp or hl
  • m

    mysterious-oil-14535

    09/13/2022, 2:10 PM
    Deploy target will be a docker container(yet don't think it's that much of a required info)
  • a

    ambitious-knife-25690

    09/13/2022, 2:10 PM
    you could even use node if you really wanted
  • m

    mysterious-oil-14535

    09/13/2022, 2:11 PM
    My objective is to drive away from Node
  • m

    mysterious-oil-14535

    09/13/2022, 2:11 PM
    The current code is running on pure Node.JS(typescript actually) but performance is starting to become a issue, even with optimizations
1...293031...138Latest