KrossX's Magical Tools™

Discussion in 'Web development / Programming' started by KrossX, Jun 22, 2011.

  1. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    So, you cannot use the GUI and cannot use the DLL either? Please say the name of the zip file. Also, provide the crash information too.
  2. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    For RegEmu32, is it possible to use relative paths in the ini file so that if the folder moves, everything still works without reconfiguring?
    Also, is it possible to lock the game path and not have it remember the last game played?

    Lastly, does it automatically get rid of the registry entries already present in the registry?
    Last edited: Sep 29, 2014
  3. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    Relative paths on the INI file? That depends on how the program works. You can try and if it works, then it works.

    Lock game path? I suppose it could be possible to make an entry read only. You can try that with the real registry. Once you have some settings, you can change its permissions.

    And no, it does not get rid of anything. It simply redirects some registry functions to a file. That's also why it won't alter how programs use registry entries (relative paths).
  4. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    These were directed toward epsxe in particular.

    Yes, like memory card paths and iso directory paths.

    Yes, like to make it start from the root of the iso directory path folder instead of last game played every time you are searching for a game to play.

    So is it safe to get rid of the original registry entries; will it read from just the ini file now (portable)?


    EDIT: yes relative paths work. but of course if you change memory cards, it will return back to a full path. So is it possible to 'intercept' that and code it to turn it back to a relative path automatically?
  5. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    If the paths work, then just change them from the INI itself. That way the emu won't change your settings again. I dunno if setting the INI file to read only would work.

    Safe to delete registry entries? I suppose. RegEmu doesn't use the registry, just the ini file. Also, keep in mind it's super WIP and a LOT of registry functions ain't implemented.
  6. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    I've made some changes to Regemu32 recently. It's been mostly rewritten so might not work when it previously did.

    Some functionality has been merged, and avoids code duplication. That let me support different functions easily, so more functions are supported.

    Besides that, some passthrough functions have been added to improve compatibility. Though ideally all non-messed-up functions should have a passthrough, that would be quite a lot of typing.

    The patcher itself has been reworked as a command line tool, so it's easier to make batches with it. The zip includes two sample batch files to patch/unpatch all exe and dll files. Fullcheck is disabled, so there's no compatibility check but makes it super fast.

    Some programs might just hit a bug or require a non implemented export / function and won't work. Other programs might require to be unpacked before patching.
  7. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    Do you have a list of programs that this works with? Did you make it just for emus or did you make it with real games in mind too? Currently I only use it for epsxe.
  8. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    I don't have a list, but I've tested it on emus and some games and programs I have. But it can get tricky, as with PJ64 for example, the exe has to be unpacked first.
  9. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    It seems to not like spaces in directory paths which forces me to move everything being done to the root of the c drive.

    The drag and drop element was removed?

    The .bat also tries to patch the regemu32 program itself it seems. Or does that mean that it's just going to do it's thing?

    I keep getting regemu is not an internal or external command.


    Also, what about games like Sims 2 in which has 15 or so exes for each part and a huuuuuge registry section for each part. If one part is missing, then the whole game won't work. So would that mean I would have to patch every Sims 2 exe or just the one in the most recent update?

    Edit: it seems like you don't need the exes when the newest update is in. But you still need the registry entries that only those exes create. But the final update exe only contains it's own entries. So I guess it's impossible to use Regemu with Sims 2. Doh.
    Last edited: Feb 26, 2015
  10. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    I'll check about the spaces. And yes, the sample bat files will try to run the patcher on itself because it lists all dll's and exe's, but regemu ignores itself so it's should all be fine. This files are meant to be run on the same place where the patcher is.

    As for Sims, I have no idea. The program could do anything in order to write things to the registry. Could even load some other file into memory that imports the kernel functions to write directly into it.

    If you really wanna find out, you can try with API monitor and see what part of Sims tries to access the registry.
  11. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    Yeah I just tried Sims2 ep9 exe and it said that it patch successfully but when you put it in its location with the .dll, it says entry point not found. "The procedure entry point AccessCheck could not be located in the dynamic link library REGEMU32.dll."

    Okay, I'll try out that api monitor.

    Edit: Whelp so much for that. Soon as I used it, game no longer works. Noice. Talkin bout invalid d3d calls or something. This game is a pain in the ass to reinstall :p
    Touch one wrong thing and bam, gotta reinstall the whole game.
    Last edited: Feb 26, 2015
  12. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    That's good, it's an incompatibility. An unimplemented function/passthrough.

    Try the new dll and see if still complains.
  13. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    Works, not giving me that error anymore. REGEMU32.ini is blank. It's telling me I have to reinstall the sims 2.
  14. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    Because it's probably reading, not writing to the registry. If you assume the installer wrote the things, then makes sense the application would only read.

    I cannot make your application work. Regemu ain't a user friendly program and will require some work to make it work. Your best chance would be API monitor, and your own registry after a proper installation.
  15. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    Oh ok, I get it. Btw, I see a program on first post called GetFocus. Where's that download at?

    Unrelated: Since you have the typex config thing here, I'd like to ask about the typex emus. On my old machine, the emus with the games work (the ones with the bat files and game files inside their own folder, not the altogether emulator pointing to the roms), they use to work. But ever since I got new hardware and tried to run the games, they don't work anymore. Do those typex games only work for specific hardware or something or is it because it's trying to run at a super low res that my monitor doesn't support? If it's the 2nd one, how do I tell em to use a specific rez and if it is indeed the problem, could you put to be able to configure that in your typex configurator?
  16. KrossX

    KrossX クロスエクス

    Messages:
    4,664
    Likes Received:
    125
    At the bottom of the first post, you'll see some (old) links. GetFocus is in one of them. It had a very specific use case, so beware.

    The typex loader ain't an emu, it's a loader. So the games run as if you had the arcade machine (a PC running Windows) and yes, were meant to work with specific hardware.
  17. shinra358

    shinra358 Member

    Messages:
    1,043
    Likes Received:
    41
    Hey, think you can help out with this?:
    https://github.com/xan105/FFX-X2_LAUNCHER/issues

    At least with the launcher still getting xinput when in the background part (making the launcher initiate multiple times when buttons are pressed) and the launcher fullscreen enhancement part?

Share This Page