• 231 Posts
  • 6.99K Comments
Joined 2 years ago
cake
Cake day: October 4th, 2023

help-circle




  • No.

    Most games out there are normally played fullscreen, and they are going to be indistinguishable on Linux and Windows.

    I could maybe understand a YouTube channel focusing on game troubleshooting or something like that, where the platforms would differ. Maybe for tweaking an environment for performance or something. But for gameplay itself…I mean, there’s just no difference.



  • I mean, Steam has it flagged as having Linux-native support. Normally, on a Linux system, if there’s a Linux-native binary, Steam will use that, not the Windows version.

    …oh, wait. I did assume that you were running it via Steam, and you didn’t actually specify. Are you starting it from something else? Like, did you get it from GOG? Epic Games? Someone other than Steam?

    EDIT: Ah, EGS is Epic Games. Okay, I’ve never used their store, have no idea how they set this up. Let me try taking a look.

    EDIT2: Based on their store page for the game, they only provide Mac and Windows binaries, so, yeah, it’s probably running a Windows binary.

    EDIT3: Okay, I’m assuming that this:

    https://heroicgameslauncher.com/_next/static/images/heroic_install-eb9d446009e809a8d91cfa31213e27d4.webp

    Is showing the default install path for games that Heroic installs, which looks like it’s under ~/Games/Heroic. Sorry, you did mention that in your post, couldn’t figure out what you were talking about. So if this uses the same convention that Steam does, then it’s probably gonna be that the WINE prefix is the “pfx” directory in there.

    https://old.reddit.com/r/SteamDeck/comments/v58ju3/how_to_find_my_local_saves_made_through_heroic/

    Turned out with the default prefix heroic was saving my games in /home/deck/Games/Heroic/Prefixes/The Witcher 3 Wild Hunt/pfx/drive_c/users/steamuser/Documents/The Witcher 3/gamesaves/

    So the “pfx” will be the WINE prefix.

    On Windows:

    https://steamcommunity.com/app/640820/discussions/0/4029096934194613470/

    The default folder for Windows is C:\Users\[username]\AppData\LocalLow\Owlcat Games\Pathfinder\Kingmaker\Portraits.

    So it’ll be:

    ~/Games/Heroic/Prefixes/<gamename>/pfx/drive_c/Users/<username>/AppData/LocalLow/Owlcat Games/Pathfinder/Kingmaker/Portraits
    

    I don’t know for sure what the “gamename” is, but there should be a pre-existing directory there. I also don’t know what your <username> is in that path, and it depends upon how Epic configures WINE — at my above link, it’s “steamuser”, but that’s using the Epic Games launcher on a Deck, and I suspect that they may always use “steamuser” there. Again, should be a pre-existing directory there, probably be your username on the Linux system.

    Sorry for the confusion there, just hadn’t used Epic Games’ launcher myself, didn’t understand that you were specifying that you were using it.




  • Assuming that this is the game in question:

    https://steamdb.info/app/640820/

    It looks like it has a Linux-native build, which is probably what you are using. Anything under pfx/drive_c is used by Proton, Valve’s WINE build used for running Windows binaries. You can force use of a game’s Windows binary under Proton rather than the Linux-native binary, in which case all of the Windows file paths for game-modifiable stuff will be in a game-specific directory under:

    ~/.steam/steam/steamapps/compatdata/<Steam AppID>/pfx/drive_c/<Windows path>
    

    There can also be game data files in ~/.steam/steam/steamapps/common/<game name>. I believe that that’s just intended for stuff that Steam writes, not stuff that the game might modify.

    If the above-linked game is the one you’re talking about, then its AppID is “640820”.

    The path below that will be the same as for the Windows version of the game; just won’t have a “C:\\” prefix, but the “…/drive_c” prefix.

    But if you’re using the Linux-native build, which I’d guess is most-likely the case, then a game technically could be storing it wherever. It’ll most-likely be under ~/.local (or ~/.config, though that’s not really intended for binary game data) somewhere. Can do:

    $ find ~/.local | grep Portraits
    

    And it’ll list paths containing “Portraits”.

    kagis

    https://old.reddit.com/r/Pathfinder_Kingmaker/comments/mki0sa/portraits_on_linux/

    This guy has:

    ~/.config/unity3d/Owlcat Games/Pathfinder Kingmaker/Portraits/ 
    


  • But the the requirements for a server that “does it all” remains a mystery to me.

    “All” can include anything. I mean, you can include a home parallel compute render farm that will cost millions of dollars.

    You’re going to have to narrow it a bit down. You can have people maybe suggest some of the things that they use their systems for. Maybe it’s hosting services for a cell phone that some people use cloud-based services for. Maybe it’s home automation. Maybe it’s a webserver. Maybe it’s AI image generation.

    EDIT: To put it another way, a self-hosted server is just a computer, often without a monitor and keyboard directly attached, that you have in your physical possession. The range of things that that might be used for and capabilities it might have is really broad. It’s like saying “I want a vehicle. What is a vehicle that can do everything?” I mean, that might be a bicycle or a three-trailer road train, depending upon what you’re going for.


  • FreeCAD exposes a Python console as an end-user feature. It has a macro recording system for automating repetitive tasks, much like MS Office does, it uses Python as a scripting language. Can you show me an API reference for this feature?

    kagis

    https://freecad.github.io/SourceDoc/modules.html

    I want to write a macro that will insert some text into the cell of a spreadsheet I have selected. Click a cell, click the macro button, and it puts some text into that cell. It can do this. There are macros published that do this kind of thing. Show me where in their published documentation the functions necessary to do that are described.

    I don’t use FreeCAD, don’t have any familiarity with this spreadsheet functionality, but let’s look.

    kagis

    They appear to have a Doxygen API reference for their spreadsheets here:

    https://freecad.github.io/SourceDoc/d0/da8/classSpreadsheet_1_1Sheet.html

    setCell() looks like it sets a cell value to me.

    That appears to take a CellAddress, which it looks like is obtained via getCellAddress(). As I said, I haven’t used FreeCAD’s spreadsheets, but I expect that it has some cell-addressing syntax akin to spreadsheets that I’ve used, and that one passes the name in to that, same as one would if referencing the cell in a formula to compute another cell’s value. I’ve no idea if FreeCAD’s syntax is the same as Excel’s, or if it differs, though, and I’m not going to look that up; that shouldn’t be an API-specific issue.

    It also looks like it has a macro-recording feature. It looks like, to my quick skim, that natively generates Python:

    https://wiki.freecad.org/Macros

    You can also directly copy/paste python code into a macro, without recording GUI action.

    And looking at the source of an arbitrarily-chosen macro, it appears to be in Python, rather than some app-specific macro language:

    https://wiki.freecad.org/Macro_Rotate_View

    So I expect that you can most-likely just record yourself performing the operation and the macro-recording functionality will give you the code without you needing to write something.

    EDIT: It sounds like you want to get the selected cells rather than specifying the to-be-modified cell by name, which it looks like SheetTableView::selectedRanges() provides you with; Range objects appear to provide for a selection including many cells, but if you only want, say, the starting cell (which would presumably be the case for a single cell selection), then it looks like Range::from() provides that, since the starting cell would be the same cell as the only cell in a selection if there’s a single-cell selection. That returns a CellAddress as well.


  • Apple didn’t want any buttons on the case.

    They had a legitimate argument in the floppy era, I think.

    The Windows PC had a mechanical eject button on floppy drives, which the OS had no control over. You could corrupt a filesystem by deciding to eject a disk at the wrong time, if the OS decided to start writing to the floppy then. To this day, that’s how 3.5" floppy drives work on Windows PCs.

    Apple said — in my view, correctly — "okay, this is a disaster’. They built their computers without an eject button on the floppy drive. Their floppy drives had a motor to let the OS eject the disk, You had to ask the OS to eject a disk, and the OS would only do so when it knew that it wasn’t going to be writing to the disk. They had a pinhole through which you could push a mechanical eject button if something went wrong with the OS. That was a good call, I think. It did mean that unless you were going to use the pinhole, the drive had to be at least powered.

    By the optical disc era, though, the Windows side of things had fixed things up. What you had was a system where drives had a non-mechanical eject button. The drive had two states that it could be in — the OS could ask the drive to be in a “locked” or “unlocked” state. In an “unlocked” state, the button would activate the motor to do the ejection. In a “locked” state, it wouldn’t, but the OS would receive a message from the drive, and as long as it was functioning, could unmount the thing and eject the CD.


  • Apple’s never made a good mouse.

    I’m fine with lots of their mice for what they were, which is one-button mice sold at a premium price. I think I’ve used every class of pointing device that they’ve produced at some point. I mean, they were okay in my book. The problem is that they kept producing one-button mice for years, which were just not the future of desktop computer use.

    Back in the 1980s, when they were putting together the Mac’s UI, the Apple UI guys had an argument that what people really needed was one-button mice, which were simpler. And, yeah, I remember people, especially older people, who did not understand multiple mouse buttons. My mother used a two-button mouse on Windows for years, and I remember when I told her that the right mouse button brought up a contextual menu — somehow she’d used the computer for years without figuring out what the thing did. She always wanted to be told which mouse button to click in instructions.

    The problem is that that argument was tested and frankly lost. Apple started putting context menus into the UI decades back, with a control click. People figured out multiple-button mice. And Apple kept determinedly sticking with the one-button model. They never actually produced a mouse with two physical buttons, only provided a “multi-touch” right-click once that technology showed up.

    And as an OS vendor, they were in a prime position to change UI to try to teach people to use multiple buttons.

    The round “hocky puck” mouse here was an exception – the ergonomics on that really were not great, and it was easy to grab the thing in a misaligned way, because you couldn’t use the shape to “feel” which way was “up” as readily.