Hacking [Release] Freedom Wars OPS Agent NPC Mod

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
Burkina Faso
1542419834-2017-07-15-121102.png

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.

121718426-2017-06-19-012123.jpg

3620195115-2017-06-19-012229.jpg

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
1077678159-2017-06-19-045852.jpg
  • 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.
1787919080-2017-07-15-122820.png

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.

WARNING!
Do not abuse this (const.lua) file. Don't blame me if you get a banhammer oky.

All variables are set to default values. The risk is yours if you want to change the value. Also not everything has been tested. Some may not work as intended.

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,

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
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/
 

AlternativeZero

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
257
Trophies
0
XP
767
Country
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.
 

Xandrid

Well-Known Member
Member
Joined
Mar 27, 2016
Messages
1,034
Trophies
0
XP
1,773
Country
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
 

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
Burkina Faso
Getting the error 0x80af5022 upon installation.
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.

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
Glad to know there are still people playing the game. Been a while since I've played online.
 

Xandrid

Well-Known Member
Member
Joined
Mar 27, 2016
Messages
1,034
Trophies
0
XP
1,773
Country
Nigeria
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.
So we can't have the 1.22 update?
 

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
Burkina Faso
So we can't have the 1.22 update?
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.
 

71r3n

Well-Known Member
Member
Joined
Sep 24, 2011
Messages
138
Trophies
0
XP
469
Country
Germany
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.
I did what you said. But the NPC wont show up. Im on Patch 1.22.
Tryed vpk and datacopy, but it wont work. :/
 

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
Burkina Faso
I did what you said. But the NPC wont show up. Im on Patch 1.22.
Tryed vpk and datacopy, but it wont work. :/
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
 

71r3n

Well-Known Member
Member
Joined
Sep 24, 2011
Messages
138
Trophies
0
XP
469
Country
Germany
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
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,

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
Burkina Faso
I don't know why it won't with your copy. Is your copy pcsa00147 and dumped with either vitamin or maidump?
 

71r3n

Well-Known Member
Member
Joined
Sep 24, 2011
Messages
138
Trophies
0
XP
469
Country
Germany
I don't know why it won't with your copy. Is your copy pcsa00147 and dumped with either vitamin or maidump?
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
 
  • Like
Reactions: Roah

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
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.

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.
Did you fix the problem yet? Make sure you have the same file structure as I've said above.
 
  • Like
Reactions: Xandrid

Roah

Well-Known Member
OP
Member
Joined
Sep 30, 2016
Messages
206
Trophies
0
Age
31
XP
393
Country
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, "[email protected]: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.
 

YugiSenpai

Well-Known Member
Member
Joined
Jan 3, 2017
Messages
238
Trophies
0
Age
20
XP
248
Country
Canada
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, "[email protected]: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.
Could you unlock it or something? That boss after Abel is really annoying.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • mthrnite @ mthrnite:
    praise be to gabe
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    It do be quite nice
    Gift
  • mthrnite @ mthrnite:
    i'll have to be content to play marioland on my BRAND NEW USEFUL FUNCTION MULTI GAME EMBODIED chinese trash
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    Great for emulation, and runs PC games better than my GPD Win 3 lol
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    Which I suppose I should get rid of at this point
    Gift
  • mthrnite @ mthrnite:
    i keep evertying till it's one big blue piece of battery crust
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    Yummy, that's the best part
    Gift
  • Gift
  • gudenau @ gudenau:
    I love how GBATemp randomly
    logs me out.
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Take the hint, man
    Gift
  • KenniesNewName @ KenniesNewName:
    @Tom Bombadildo, upgrade the SSD init?
    Gift
  • KenniesNewName @ KenniesNewName:
    Apparently we have ancestors called Homo erectus
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    It was quite literally the first thing I did with it, never even turned it on with the stock 64GB lol
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And several species of human existed, only sapiens survived
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    Nabbed 512GB for like $70
    Gift
  • KenniesNewName @ KenniesNewName:
    Ye I see them on eBay for about$60 but all are refurbished can't be that bad to get refurbished ones off eBay
    Gift
  • KenniesNewName @ KenniesNewName:
    Plan on getting a m.2 drive and 512gb SD card for roms
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    I've been looking into designing a small casing in the back of it actually, trying to integrate another 2230 M.2 slot along with as small a USB-C dock I can find to sort of make a plug and play M.2->USB expansion myself
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    Expand the storage with faster NVMe, and also have charging and maybe a micro HDMI port
    Gift
  • Tom Bombadildo @ Tom Bombadildo:
    But haven't had a whole lot of time to actually finish anything
    Gift
  • KenniesNewName @ KenniesNewName:
    Let me know if you managed anything I've thought about that being possible as well it would be nice to have that and maybe a built in mini HDMI port with 4 usbs
    Gift
  • KenniesNewName @ KenniesNewName:
    But freaking valve pushed my order to July even though I pre-ordered two days after release :angry:
    Gift
  • KenniesNewName @ KenniesNewName:
    I'll review it :tpi:
    Gift
  • KenniesNewName @ KenniesNewName:
    Won't be long before freaking china floods AliExpress with attachments
    Gift
  • smurgburglar @ smurgburglar:
    how do i get rid of or change the text underneath my username?
    Gift
    smurgburglar @ smurgburglar: how do i get rid of or change the text underneath my username?