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

    orange-van-60470

    01/09/2023, 12:24 AM
    I remember stuff like skype used to clash with some haxe libs
  • o

    orange-van-60470

    01/09/2023, 12:25 AM
    The | is to pass the arg to the next command
  • o

    orange-van-60470

    01/09/2023, 12:25 AM
    so search and then kill
  • n

    nutritious-lunch-7063

    01/09/2023, 12:28 AM
    Thanks. Yeah, "port taken" was a problem on my end. I'm still confused about "lime builds X project folder but runs Y project folder" That persisted even after restarting, though it's gone now (for reasons unknown to me)
  • h

    hallowed-ocean-84954

    01/09/2023, 1:43 AM
    fwiw in powershell on windows you can do :
    Copy code
    Get-NetTCPConnection | where Localport -eq 6001 | select Localport,OwningProcess
    
    Localport OwningProcess
    --------- -------------
         6001         33796
    and then take the owning process id and do:
    Copy code
    Get-Process -id 33796
    
     NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName
     ------    -----      -----     ------      --  -- -----------
         41    48.51       9.86     272.28   33796   1 Code
    port 6001 is what vscode uses with hashlink but whatever port it runs on just substitute that
  • h

    hallowed-ocean-84954

    01/09/2023, 1:43 AM
    if I was better at ps I could probably get this to a single command line
  • h

    hallowed-ocean-84954

    01/09/2023, 2:38 AM
    yay ! here's one way
    Get-NetTCPConnection | where Localport -eq 6001 | get-process -id {$_.OwningProcess}
  • s

    square-angle-35096

    01/09/2023, 4:12 PM
    i just restored my pc and for some reason i'm getting the couldn't setup msvc error even when i installed build tools, vs 2019 and the components
  • r

    rhythmic-wolf-50922

    01/09/2023, 5:02 PM
    the original server for X was still running, and it tried to run a new server for Y on the same port. since it couldn't start the server for Y because that would conflict with the server for X, it continued to load X instead of Y.
  • s

    square-angle-35096

    01/09/2023, 6:06 PM
    fixed it, had to install a lot of unrelated components for some reason
  • p

    purple-toddler-22641

    01/11/2023, 4:48 PM
    Hey guys, quick question: What fullscreen mode does Lime use? Exclusive fullscreen, DXGI to a window,...?
  • p

    purple-toddler-22641

    01/11/2023, 4:48 PM
    I'm having trouble with taking fullscreen screenshots and we're trying to debug it over in #165234904815239168
  • a

    able-action-74275

    01/11/2023, 4:50 PM
    can we find this in SDL ?
  • a

    able-action-74275

    01/11/2023, 4:52 PM
    hmmm SDL is
    SDL_WINDOW_FULLSCREEN = 0x00000001,         /**< fullscreen window */
    SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
  • a

    able-action-74275

    01/11/2023, 4:56 PM
    limesetting up the SDL here
  • a

    able-action-74275

    01/11/2023, 4:57 PM
    looks like lime is using windowed mode anyway /shrug
  • a

    able-action-74275

    01/11/2023, 4:59 PM
    @purple-toddler-22641 afaik only a specific version of lime works for consoles, not that you need to get a screenshot from the game running on the actual machine
  • a

    able-action-74275

    01/11/2023, 4:59 PM
    but anyway as an aside, you could dump the screen via game code
  • a

    able-action-74275

    01/11/2023, 5:02 PM
    gives an
    Image
    object which can be saved as PNG
  • p

    purple-toddler-22641

    01/11/2023, 5:03 PM
    The console port is handled by someone else and they already got it running, don't ask me how
  • a

    able-action-74275

    01/11/2023, 5:03 PM
    they probably have the old lime stuffs
  • p

    purple-toddler-22641

    01/11/2023, 5:03 PM
    I'll give readPixels a try, seems like the best solution right now...
  • p

    purple-toddler-22641

    01/11/2023, 5:04 PM
    I take it I use
    readPixels
    to grab the pixels, then
    encode
    to turn them into a png?
  • h

    hallowed-ocean-84954

    01/11/2023, 5:06 PM
    I have some code somewhere that does this
  • a

    able-action-74275

    01/11/2023, 5:07 PM
    something like this
    Copy code
    hx
    // get the data
    var image_pixels = window.readPixels(new Rectangle(0,0,width,height));
    var image_bytes = image_pixels.encode();
    
    // write the bytes to disk
    var file =  sys.io.File.write(file_path, true);
    file.writeBytes(image_bytes, 0, image_bytes.length);
    file.close();
  • h

    hallowed-ocean-84954

    01/11/2023, 5:07 PM
    you need to watch that you do this just before the present call or you won't see all the shader effects
  • h

    hallowed-ocean-84954

    01/11/2023, 5:07 PM
    I wired it into the context3D with a macro to capture just before the buffers were swapped
  • p

    purple-toddler-22641

    01/11/2023, 5:08 PM
    Sounds like a fun time
  • h

    hallowed-ocean-84954

    01/11/2023, 5:08 PM
    I can point you at the code if it in any way helpful
  • p

    purple-toddler-22641

    01/11/2023, 5:08 PM
    Maybe? Worth a try I suppose
1...484950...138Latest