UpperLowerProper

Home Forums Projects UpperLowerProper

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #3119
    DeVaultSetter
    Keymaster

      This is for games that run on Unix and SteamDeck system, see Arthmoor’s post.
      Repo is no more or less currently resident at UpperLowerProper. 🙂

      #3127

      Still need to log in to GitHub but a C++ version doesn’t appear to be too difficult with few dependencies, especially with the filesystem library being added circa 2018. May take a stab at it and see if things start coming back to me as it’s been a good while since I did coding and I have been in the mood for more than just thinking up algorithms. 🙂

      Essentially, we can do with addition and subtraction with the ASCII values, going character by character in the string. For proper case, we’d also check each substring, delimited by a space, and compare that to the word list for proper case. Another option is to use the transform function on the string and combine it with the toupper() or tolower() functions to do the whole string in one go and add it to to the new path list. Finally, we’d take our collection of paths and apply the rename function on them. Sorry if the algorithm is pretty rough, I’m pretty out of practice 🙂

      #3164
      DeVaultSetter
      Keymaster

        A C++ job to emulate a cmd console when prompting for input might be fun as well, along with the additional “Proper” case task for an extra sugar hit? It’s possible an old Dossite can be convinced after all! 🙂
        It’ll want testing, thus the next step is to cautiously broach the bounds of temerity of any willing tester over at AFKMods. 🙂

        #3167

        Console input is pretty straightforward, you just need to include the input/output library. Here’s an example:

        #include <iostream>
        int main() {
        	int x;
        	std::cout << "Enter a number: ";
        	std::cin >> x;
        	std::cout << std::endl << "You entered: " << x;
        	return 0;
        }

        Command-line arguments would also be handy but the language only has rudimentary support for them by default. There are third-party libraries that help to fill in the gaps with them, though.

        For storing the set of proper case keywords, a set may be the best container to use. In the rename loop, check the word to see if it’s in the set using the contains member function. So I think I just inadvertently wrote the entire program here. Only thing missing is the actual code 😛

        Using the built-in types like this would also make it completely cross-platform 🙂

        Sounds good 🙂

        #3353

        There’s also the getline function: https://en.cppreference.com/w/cpp/string/basic_string/getline

        Forgot about it but it reads console input into a string until the end of the line instead of skipping the delimiters like the other operator. Similar functions exist for files as well 🙂

        #3458
        DeVaultSetter
        Keymaster

          A console application would be fun, and as we are dealing with file/folder names – (after Bill Gates) one line should be more than enough. 🙂
          Another milestone in either case is knowing what the filesystem is, thus not providing support for FAT volumes under Windows which contain only upper case file/folder names.
          And detect UNC paths, as renaming files or running batch files from such media will require leaping through more hoops:

          call :isUncPath C:
          if %errorlevel% == 0 echo C: is on UNC
          exit /b

          :IsUncPath
          ::: param1 – drive letter with colon, ex Y:
          ::: @return exitcode 0 – drive is network mapped
          net use %~1 >nul 2>&1
          EXIT /B %errorlevel%

          A welcome invitation to any players of a lightly modded Fallout NV install that wish to try out how the game performs on Linux, exists to sample delights of the lower case filename and xEdit rename utilities at the first opportunity. 🙂

          #3509
          DeVaultSetter
          Keymaster

            1.1 fixes a few bugs and logging, there’s also an explanation on Github of why cmd isn’t real good with anything but lower case. Using such languages is a bit like operating vintage cars:

            A welcome invitation to any players of a lightly modded Fallout NV install …

            RSVPs for such auspicious occasions are still under construction. 🙂

            #3513

            Sorry, still haven’t managed to get New Vegas working over here. 🙁

            One issue I just thought of is when a plugin relies or refers to another one. How do the game engines consider cases in the plugin files? Does it treat them as case sensitive or insensitive? If the former, then the file name in said plugin would also need to be updated

            #3520
            DeVaultSetter
            Keymaster

              Ah, yes you mentioned that last month, in that case try Fallout 3 instead? Rename that and try it on on the Linux. not sure the best way to get it all setup there in the first place, Proton, Wine, or an RDP based exercise like WinApps for Linux or WinApps.org (site doesn’t exist 😛 ). At least FO3 doesn’t have GFWL any more. 🙂
              The xEdit script checks for all that in Windows, but yep, what happens in Linux when setting or even creating a mod with GECK? If everything is already lower case there shouldn’t be an issue, unless the game or creation engines do something nice like converting things to proper case, for instance.

              #3565

              While I do have Fallout 3, it’s on disc and I don’t have an external optical drive and would need to buy it again 🙁 I suspect there will be similar problems with 3, though, since New Vegas is mostly a modded 3. I do plan on picking up Fallout 4 at some point but that depends on a sale 😛

              Right now, I’m not going to be able to be all that helpful with the Fallout games. 🙁

              Sorry for the late response!

              #3568
              DeVaultSetter
              Keymaster

                Thanks for the H/U. 🙂
                Once in a blue moon you might find a local Office Solutions company eagerly and beaverly bending over backwards in offering a disk/file copying service, thus once done & dusted, and armed with the shiny new copies in hand, creating ISOs is not one breathe less – nor greater than – a cool summer breeze. Not to gainsay the possibility of monetary gain by instead purchasing the game through the outlets of today cannot – and will not – be underestimated! 😛
                Fallout aside, we’ll always have Paris Morrowind. Meanwhile, back at the ranch, the cobwebs, mould, and gathering dust found on the free Morrowind distro acquired -er- just yesterday are currently undergoing a thorough Formula 409 makeover! 🙂

                #3570

                Yeah, I’ll keep an eye out. Did an ISO conversion once using the built-in tools on Windows when I was having some issues with the CD drive twenty-years ago as requested by tech support to test out the drive. Turned out to be a failing drive at the time and the process wasn’t pretty. Had to use a weird xcopy command 😛

                Sounds good. I’ve had my copy for a while and there’s always OpenMW as well. Haven’t tried it myself yet 🙂

                #4688

                Linux doesn’t support Batch files but Shell syntax is similar: https://www.gnu.org/software/bash/manual/bash.html

                Most of the basic commands have similar versions on Linux, too. May not be too difficult to put together a Shell script, as well? 🙂

                #4692
                DeVaultSetter
                Keymaster

                  Ah, yes, it has to be run on a Windows based system before copying the game over to Linux. Not sure about Windows Server – will it run on Wine?

                  #4712

                  It looks like you can use wine cmd <batchfile>.bat to run it under wine but I don’t currently have Wine installed.

                  Should run the same on Windows server as it does on regular Windows. Just a thought: any plans on a PowerShell version? It looks like Microsoft is trying to replace the batchfile language with PowerShell scripts.

                  Sorry, been busy with trying to figure out how to proceed with MWEdit. The installer business has kind of thrown me for a loop.

                  #4716
                  DeVaultSetter
                  Keymaster

                    They have been doing that for years now – and yep – should have coded it in PS. It’s yet another one to learn, along with the more Pythonesque AHK v2 – plus a bazillion other things such as Pascal for XEdit scripts.
                    Haven’t received any feedback on it via NexusMods at least – one is always wont to ride under the banner of no news is good news – even though it could turn out to be a rather bumpy journey. 😛

                  Viewing 16 posts - 1 through 16 (of 16 total)
                  • You must be logged in to reply to this topic.

                  Home Forums Projects UpperLowerProper