[Release] Freedom Wars OPS Agent NPC Mod

Discussion in 'PS Vita - Hacking & Homebrew' started by Roah, Jun 18, 2017.

  1. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    [​IMG]

    A simple Freedom Wars mod. Adds a new NPC character that can do many things. Requires 1 piece of Non-Existent Non-Resource which can be found on the lower levels of the Citizen Promenade and Cell Garden.

    The Play Music is not persistent. If you exit hub the BGM will stop. However, this feature is very useful online specially while waiting for co-op partners.

    Mod tested with the US and JP versions.

    Installation
    This mod requires the latest patch per version. The US requires Patch 1.22 while the JP version requires Patch 1.23 and the ENPatch (refer to the downloads section).

    US
    To install simply extract archive using WinRAR or 7Zip and copy the extracted files to ux0:app/PCSA00147/patch_v0121.

    JP
    • First you have to download the ENPatch. Check the download section for the link.
    • Extract ENPatch using WinRAR or 7Zip
    • Copy the extracted files to ux0:app/PCSC00054/patch_v0120
    • Once copying is finished, delete the following files:
      • patch_v0120_cmn.eaf
      • patch_v0120_jpn.eaf
      • patch_v0120_rgn_japan.eaf
    • Next is to install the OPSAgentMayo mod, extract and copy the mod files to the same location ux0:app/PCSC00054/patch_v0120. It is very important that you overwrite the existing files.
    Installation for the JP version is a bit complicated compared to the US version. To install the mod you first have to download the ENPatch or it wouldn't work simply because the game will always prioritize the EAF (archived file) over the loose files which this mod is composed of. The latest patch for JP is 1.23 and the folder patch_v0120 contained a file called cmn.eaf. A CMN is like a master file so pasting the mod file into that folder won't work. Like I said, the game will always load the EAF file (if the file exist in the archive) over the loose file.

    Also, for those wondering why the need to delete the 3 EAF file. The answer is, all the files contained within the 3 EAFs have been extracted and compiled as one big loose files. Sorry if this is not coherent, english is not my first language.

    EU
    I don't know about EU. I don't have that version so I can't test it. The game will always prioritize the EAF files over the loose files so unless I can check the EU file structure I can't say for certain that this mod will work.

    NPC Location
    The OPS Agent NPC can be found in the Warren Hub (front of the billboard). NPC is also available online co-op where Jiro is located and pvp, right next to the Percy Propa statue.

    [​IMG]
    [​IMG]

    Config
    Mod can be configured to some extent.

    If you want to change how Sinner's idle animation in the title screen for example.

    Code:
    MAYO_INI_TITLE_IDLE = "Idle4"
    MAYO_INI_TITLE_IDLE_ROUSE = "Hello" --When you start the game
    See config.lua for details.

    Idles
    • Idle - Default standing position
    • Idle1 - ???
    • Idle2 - Hands on the back (kinda shy) Female, ??? (male)
    • Idle3 - Shy (female), Proud (male)
    • Idle4 - OPS Agent standing, one hand on the hip (female), crossed arms (male)
    • Idle5 - Praying (female), ??? (male)
    • PTplus - Annoyed (Ann style)
    • Shrug - Ditto
    • Funny - Ditto
    • Joy - Ditto
    • Anger - Ditto
    • Sorry - Ditto
    • Hello - Ditto
    • LowTalkStart - Talking (low), with lips animation
    • LowTalkEnd - Talking (low), with lips animation (short ver)
    • TalkStart - Talking, with lips animation
    • TalkStartEnd - Talking, with lips animation (short ver)
    • Monitor_A - In deep thought
    • BewareStart - In full alert
    Features
    Translation
    • Translation fix mostly Carryable Ammo and Clip Size
    • Shortened materials description when modifying weapons, now with highlights and icons
    [​IMG]
    • Added NPC weapon names and also arranged some weapon names so that each can be sorted properly
    • Arranged weapon description. Smaller fonts but less scrolling now.
    [​IMG]

    Mod Functions
    • Custom title screen
    • Percy Propa Weekly
    • Simeon's Rank 1 Weapons
    • NPC Weapons (Melee Types and Pistol Types)
    • Combat Items Munitions and Medical Supplies
    • Augmentations
    • Resources
    • Key Items
    • Citizens
    • Play Music (Not persistent but useful online)
    • Percy Propa Lottery
    • Entitlement Points
    • Reputation Checker
    • Shackle (Useless)
    You can choose how many items, personnels, retributions or entitlement points you want to claim.

    Const.lua Configuration
    The lua file can now be configured. By using the lua file you can override the default values defined either on the savedata/eboot.

    Let's be clear here. The mod is clean and the const.lua is set to its default value so both are safe to use offline and online. What can get you banned is if you start messing with the const.lua. Like if you change variables for the PVP's GDPP scoring and you set it so that you can receive 9,999,999 for one match only? Great scott! Pray that the match log is not recorded on the PSN server.

    You have been warned.

    See const/script/const.lua for details.

    NOTE
    I never planned on releasing the decrypted const.lua because it's just too OP when you want it to. But the ENPatch for the JP version forced my hand, mostly because of the huge difference in file structure between the EN and JP patch. Since ENPatch also have const.lua script included (because the developer included the PVP update with 1.20) then people would just decrypt it later on so why not just release it. I never use it myself except when I'm testing to verify if script can affect the NPCs or players on online co-op (host or not host), etc..

    The consequence now is that you might notice some differences when playing online. You might encounter a player who can sever an abductor limb like wielding butter knife under a second or you might encounter teleporting pvp player, not the pvp teleporting glitch when the pvp update was first released but real teleporting players because they boosted their run speed. The DLC Cheat is nothing compared to this script. Nothing I can do about it but I suggest kicking those players from the room and listing their PSN usernames so that you can avoid playing with them in the future.

    Changelog

    0.0.4 - 2017/07/07
    • Fixed the looping #10 SE that persist in any map, a huge annoyance
    • Minor revision to reputation, entitlement and percy propa lottery
    • Added new icons and some minor revision to 'MayoCheckRequirement' function description
    • Fixed all weapon names so each can be sorted or arranged as intended. Also, added the missing NPC weapon names.
    • Arranged weapon description. Used the box's full potential so no more scrolling but the text will appear smaller. No problem, who reads it anyway?
    • Rearranged weapon descriptions. The text are just too small for some entries.
    • Added const.lua
    0.0.4 R1
    • Removed text/format because it disables the JP's font DF-Renga-W9.ttc which is very distinctive
    • Fixed text/lang/EN.lua special characters for the NPC weapon names
    • Julien's Notes can only be claimed after you finish your sentence (note: with propa confirmation). Sorry, just tested JP and can't find resource. Maybe bad RNG but... weird because when I used { Scenario.RemoveItem, "KEY_2023", 1 } the resource actually appeared on 1-E020! I guess the flag is only raised when you pick it up. I could add the flag but too troublesome so this change is implemented instead.
    • Fixed a UPD_MNT.lmsg dialogue. Instead of printing the word "Sinner" JP displays it as the player's name.

    Downloads
    Bugs
    Please report any bugs or grammar, spelling errors. English is not my first language. Thanks.

    Credits
    rouji4256 at reddit for the JP dump. Thanks to the dump I finally managed to test the mod with the JP version.

    Contact
     
    Last edited by Roah, Jul 15, 2017
  2. AlternativeZero

    AlternativeZero GBAtemp Regular

    Member
    146
    64
    Apr 7, 2017
    Can't download, it keeps asking me to login.

    Also is it possible to improve the AI of the other NPCs?
     
    Last edited by AlternativeZero, Jun 19, 2017
  3. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    I granted public access when I got back home and should be viewable now.

    It is possible to improve abductor AIs but NPC sinners? I don't know. I don't see any folders containing human AIs. It was defined in a list though:

    Code:
    ai/custom/behavior/android/
    ai/custom/behavior/human/
    ai/custom/behavior/machine/
     
  4. AlternativeZero

    AlternativeZero GBAtemp Regular

    Member
    146
    64
    Apr 7, 2017
    Awesome, I can't wait to try out your mod.

    As for the NPCs aren't there under human?

    I'm asking because that was the only thing that made Freedom Wars suck for me and that was the had ally AI since if they were smarter then it would be a blast to solo the game.
     
  5. 71r3n

    71r3n Advanced Member

    Newcomer
    72
    19
    Sep 24, 2011
    Germany
    Getting the error 0x80af5022 upon installation.
     
  6. Xandrid

    Xandrid GBAtemp Advanced Fan

    Member
    579
    200
    Mar 27, 2016
    Nigeria
    This is awesome, I'm happy that someone made a mod for my (currently) favorite game on the Vita, can't wait to try it
     
  7. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    Ah seems like you were trying to install the vpk using the latest vitashell or ms. You should use a lower version of vs like v1.42 perhaps or simply download the zip file and copy files to patch_v0121.

    Glad to know there are still people playing the game. Been a while since I've played online.
     
  8. Xandrid

    Xandrid GBAtemp Advanced Fan

    Member
    579
    200
    Mar 27, 2016
    Nigeria
    So we can't have the 1.22 update?
     
  9. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    The US latest patch is 1.22 but the patch doesn't have 1.22 folder (i think it only updates the eboot) so you have to extract mod to 1.21. Thanks for the heads up, I'll update the readme.
     
  10. 71r3n

    71r3n Advanced Member

    Newcomer
    72
    19
    Sep 24, 2011
    Germany
    I did what you said. But the NPC wont show up. Im on Patch 1.22.
    Tryed vpk and datacopy, but it wont work. :/
     
  11. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    Just in case, the structure should be:

    Code:
    ux0:app/PCSA00147/patch_v0121/server/
    ux0:app/PCSA00147/patch_v0121/situ/
    ux0:app/PCSA00147/patch_v0121/text/
    ux0:app/PCSA00147/patch_v0121/config.lua
    ux0:app/PCSA00147/patch_v0121/patch_v0121_eng-us.eaf
    ux0:app/PCSA00147/patch_v0121/patch_v0121_fra.eaf
    ux0:app/PCSA00147/patch_v0121/patch_v0121_spa.eaf
     
  12. 71r3n

    71r3n Advanced Member

    Newcomer
    72
    19
    Sep 24, 2011
    Germany
    Didnt work either.
    Used the new Files, got the same file structure, but its like the game ignores them.
    EDIT: I didnt saw it at first. But the Patch_v0121_eng* _fra* and _spa* .eaf Files arent there.
    What did i do wrong?
    EDIT2: My Bad. My update.vpk was for the EU version, so it wasent installed to the right folder.
     
    Last edited by 71r3n, Jun 20, 2017
  13. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    I don't know why it won't with your copy. Is your copy pcsa00147 and dumped with either vitamin or maidump?
     
  14. 71r3n

    71r3n Advanced Member

    Newcomer
    72
    19
    Sep 24, 2011
    Germany
    Worked after i used the right patch for the right version.
    As i stated, i used the eu update for the na version. ^^
    But now it works with the na update. Thanx for Mayo m8 :D
     
    Roah likes this.
  15. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    Didn't see your edits but im glad you got it working.
     
  16. ThomasRobertWade

    ThomasRobertWade GBAtemp Regular

    Member
    164
    20
    Oct 13, 2012
    I copied all the files to the p+v1021 folder (it took me a while to find where the folder was located), but the NPC isn't showing up.
     
  17. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    Updated, added augment and proofs of op non-failure, refer to the update section for details.

    Done, this is the final update as I have fully searched all the functions available in the game, I think. Some works while others only works based on the current map ({ UI.OpenModuleEditMenu}) or I don't know. Maybe I'll go research and decrypt the lmsg to properly name the NPC weapons... or not.

    Did you fix the problem yet? Make sure you have the same file structure as I've said above.
     
    Xandrid likes this.
  18. YugiSenpai

    YugiSenpai GBAtemp Regular

    Member
    231
    56
    Jan 3, 2017
    Canada
    nice work!
    suggestion: can you make it give better/higher rank weapons?
     
  19. Roah
    OP

    Roah Advanced Member

    Newcomer
    83
    36
    Sep 30, 2016
    Burkina Faso
    The function to give weapons is not used by the game so there is no example that I could use to better understand how the function works.

    I suppose I could blind test it and see if I get lucky,

    Like,
    Code:
    { Scenario.AddWeapon, "ID", count, level, rarity }
    Or,
    Code:
    { Scenario.AddWeapon, "ID@count:level:rarity" }
    I don't think the two will work.

    However there is another option, there's a hidden resource called shungite that can raise a weapon's rarity level.
     
  20. YugiSenpai

    YugiSenpai GBAtemp Regular

    Member
    231
    56
    Jan 3, 2017
    Canada
    Could you unlock it or something? That boss after Abel is really annoying.