https://linen.dev logo
Join Discord
Powered by
# openfl
  • a

    able-action-74275

    04/23/2023, 1:28 PM
    I have never actually paid attention to the .build file but that seems odd
  • d

    damp-artist-60225

    04/23/2023, 1:30 PM
    yeah it seems that way. if I delete the .git folder, the .build file is created again
  • a

    able-action-74275

    04/23/2023, 1:30 PM
    amazing
  • a

    able-action-74275

    04/23/2023, 1:30 PM
    wonder what the thought behind that is
  • d

    damp-artist-60225

    04/23/2023, 1:32 PM
    there's this code in lime's CommandLineTools.hx
    Copy code
    private function getBuildNumber(project:HXProject, increment:Bool = true):Void
        {
            var buildNumber = project.meta.buildNumber;
    
            if (buildNumber == null || StringTools.startsWith(buildNumber, "git"))
            {
                buildNumber = getBuildNumber_GIT(project, increment);
            }
    
            if (buildNumber == null || StringTools.startsWith(buildNumber, "svn"))
            {
                buildNumber = getBuildNumber_SVN(project, increment);
            }
    
            if (buildNumber == null || buildNumber == ".build")
            {
  • d

    damp-artist-60225

    04/23/2023, 1:32 PM
    so basically it seems that the .build file is only created if there's not git nor svn repo
  • a

    able-action-74275

    04/23/2023, 1:33 PM
    I see
  • a

    able-action-74275

    04/23/2023, 1:33 PM
    I feela PR coming on 😉
  • a

    able-action-74275

    04/23/2023, 1:33 PM
    you could make it optional then
  • d

    damp-artist-60225

    04/23/2023, 1:35 PM
    hmm, I'm not sure how I would know how to make it optional
  • a

    able-action-74275

    04/23/2023, 1:35 PM
    maybe a flag in project.xml
  • d

    damp-artist-60225

    04/23/2023, 1:35 PM
    yeah, something like that could work
  • a

    able-action-74275

    04/23/2023, 1:36 PM
    if you used like
    Copy code
    xml
    <haxedef name="keep_build_file" />
    then you can check in code something like
    Copy code
    hx
    var keep_build_file = false;
    #if keep_build_file
    keep_build_file = true;
    #end
  • d

    damp-artist-60225

    04/23/2023, 1:40 PM
    I'm not sure how that works, how would I create the keep_build_file var in the lime code so that I can set it in project.xml?
  • a

    able-action-74275

    04/23/2023, 1:41 PM
    #if keep_build_file
    is only true if the define is in the project.xml
  • d

    damp-artist-60225

    04/23/2023, 1:41 PM
    ah, I see
  • a

    able-action-74275

    04/23/2023, 1:41 PM
    so it never sets the var in the hx to true
  • a

    able-action-74275

    04/23/2023, 1:42 PM
    sorry I should have used different names to separate the concepts
  • d

    damp-artist-60225

    04/23/2023, 1:42 PM
    np, I'll give it a try 🙂
  • d

    damp-artist-60225

    04/23/2023, 2:08 PM
    strange, when I comment out the version control code and rebuild lime tools, the result is the same 😕 it seems either the problem is somewhere else or lime tools aren't being rebuilt correctly
  • d

    damp-artist-60225

    04/23/2023, 2:09 PM
    there are several errors of the following when I rebuild:
    Copy code
    platforms/TVOSPlatform.hx:689: characters 19-32 : hxp.HXML has no field getClassPaths
    platforms/TVOSPlatform.hx:694: characters 18-28 : Class<hxp.Path> has no field startsWith
  • a

    able-action-74275

    04/23/2023, 2:12 PM
    interesting
  • m

    modern-quill-15664

    04/29/2023, 8:32 PM
    when using allow-high-dpi my game only appears in 25% size and in the top left, it works in other games for some reason
  • m

    modern-quill-15664

    04/29/2023, 8:33 PM
    Liquid Retina XDR display 14in (3024x1964)
  • r

    rhythmic-wolf-50922

    05/01/2023, 3:26 PM
    which version of OpenFL are you using? before version 9.2, you were required to manually scale everything to the larger size when using
    allow-high-dpi
    . however, starting with 9.2, it should scale everything automatically (unless you set a particular define that allows you to keep scaling manually, like before)
  • m

    modern-quill-15664

    05/01/2023, 3:27 PM
    Latest version im pretty sure
  • m

    modern-quill-15664

    05/01/2023, 3:28 PM
    Ill check when i get home
  • p

    purple-magazine-64921

    05/09/2023, 9:34 PM
    Will
    .wav
    work on mobile?
  • c

    curved-lifeguard-6743

    05/14/2023, 7:27 PM
    Is there any way to update a Stage3D texture on a bitmap without using something like this?
    Copy code
    width++;
    width--;
  • c

    clever-airline-85054

    05/14/2023, 10:30 PM
    how do i disable alt + return to fullscreen
1...515253...57Latest