don't click here

CPKREDIR - loading and combining mods for Sonic Generations

Discussion in 'Engineering & Reverse Engineering' started by Korama, May 9, 2012.

  1. Joe T.E.

    Joe T.E.

    All life form data, successfully copied! Member
    142
    0
    0
    At my home in Florida
    Big the Cat in Sonic Generations, High-Res HUD for Sonic Lost World, Metal Sonic Lost World (Version 1.0,) Sonic Generations: Episode Metal (Version 3.0.)
    [​IMG]
    So yeah, as seen in this screenshot, the updated cpkredir actually seems to be ignoring any external files that aren't in the "root directory" of each cpk.

    And this doesn't seem to be exclusive to Lost World either. I also tested the new cpkredir update within Generations, and it suffers from the same problem. The mod I tested in Generations had none of its files from the "languages" and "voices" folders loaded, while the numerous files that weren't in any sub-folders of each cpk loaded properly.

    I have no way of knowing if this is an actual issue with cpkredir, or if it's just something happening only on my PC.
     
  2. Twilightzoney

    Twilightzoney

    Tech Member
    353
    0
    16
    Elgin, IL And Hampshire
    Unleashed and Generations Stuff and Custom Works
    From what I know putting it on the sonic2013_patch_0 usually makes it work and override it. But then again I'm not sure about that whole Generations side of things so maybe there is something wrong? Weird.
     
  3. Korama

    Korama

    Tech Member
    272
    2
    0
    Maybe the CSB files have something to do with it. Those contain lots of parameters for sound/music.


    Thanks for testing, I'll look into it. Did you double-check if the settings in the mod.ini are correct?
     
  4. Joe T.E.

    Joe T.E.

    All life form data, successfully copied! Member
    142
    0
    0
    At my home in Florida
    Big the Cat in Sonic Generations, High-Res HUD for Sonic Lost World, Metal Sonic Lost World (Version 1.0,) Sonic Generations: Episode Metal (Version 3.0.)
    Yes, the settings in both the Lost World and Generations mod.ini files are "correct."

    And for the sake of example, here's the mod.ini for my Lost World Mod.
    [Main]
    IncludeDir0="."
    IncludeDirCount=1

    [Desc]
    Title="Metal Sonic Lost World"
    Description="Play through Sonic Lost World as Metal Sonic!"
    Version="0.5"
    Date="11/XX/2015"
    Author="JoeTE"
    URL="http://www.youtube.com/user/JoeTEStrikesBack"
    It's basically the same as the one used by the Generations mod I tested, but with the various description texts changed. The Generations mod has not had its mod.ini changed since last month, and had all of its files loaded perfectly before I placed the new cpkredir.dll into my Generations folder. Files that aren't in each cpk's root folder began failing to load after placing the new cpkredir.dll into my Generations folder.

    I also just tested the Unleashed Project with the new cpkredir.dll, since it uses additional .ini files to load specific files, and it too isn't having the files from its Languages folders loaded.
     
  5. Korama

    Korama

    Tech Member
    272
    2
    0
    Indeed. It was a dumb mistake on my part. Just before release I changed a bit of code for debugging purposes, and forgot to change it back again.
    Should work again now, please get the fixed cpkredir.dll from the download.
     
  6. Shade Vortex

    Shade Vortex

    The Black Vortex Member
    567
    40
    28
    USA, WA.
    Twitch Streams
    So after a lot of trial and error, I fixed the problem I was having with this (that I mentioned in the Lost World PC hacking thread). To give a summary of my experience... I'll just say do not use Avast antivirus or pretty much none of Korama's programs work correctly. Seems Avast doesn't like programs coded in Delphi.

    Now for me to wait for the Lost World modding scene to take off so I can make more use of the modloader I use (which is the hacked version of GMI, since I was having trouble with this program).
     
  7. Atendega

    Atendega

    Lesser Sea Sponge Member
    577
    0
    0
    Comfy couch
    Collecting insults
    Huh, I use Avast, and it never game me any problems with this. Antivirus is weird, sometimes.
     
  8. Korama

    Korama

    Tech Member
    272
    2
    0
    Avast has a known bad track record with Delphi applications. It appears to detect false positives for all of them once every year or so (some examples: 2009, 2013 a, 2013 b, 2015). However, in Shade Vortex' case, the issue was much weirder. Avast didn't show any warnings (and according to virustotal.com it didn't even detect any false positives), but somehow "choked" on my programs, preventing their execution while keeping them dead in memory until the next reboot.
     
  9. Amnimator

    Amnimator

    Member
    224
    0
    16
    It's definitely Avast. My desktop crashed when I tried to update cpkredir, but here's a quick solution:
    Right click avast on your taskbar, hover over Avast shields control, then click turn off for ten minutes. In this time patch the Lost World exe with cpkredir.
    Zoney's GMI edit was crashing for me but for some reason it works now as well after I updated cpkredir and added an exclusion for Lost World's folder (not sure if adding an exclusion made the difference). So if GMI or cpkredir isn't working for you, try that.
     
  10. Arcieo

    Arcieo

    Member
    15
    0
    0
    Adabat Adventure Pack mod
    On some PCs, if you use new cpkredir with SonicGMI 1.1 and in mod.ini file you list "IncludeDir0="./mods/*mod folder*" instead of IncludeDir0=".", then the game refuse to load a lot of files, including #Application.ar.00. If you want, I can contact you and provide needed info.