Unicorn Overlord Save Editing

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
here is some information on save editing this game. It includes item ids, item structure and character structure in save. A lot of this information also applies if you want to memory edit.


if you want to open spreadsheet in it's own page click discord user code - archive then click unicorn overlord

Turtle-insect is working on a save editor you can do the following with it
*Edit renown
*Edit money
*Edit/add items
*All current items 999
*Character import/export/insert
*Edit characters level
*Edit characters exp
*Edit characters dew stats
*Edit characters class
*Generate bond sections upon character insertion
*Edit bonds
*Multi language EN, JP and CN
*Added zenoirian flag
*Added recruited names for identification

https://github.com/turtle-insect/UnicornOverlord

You might need to install NET Desktop Runtime to use save editor
https://dotnet.microsoft.com/en-us/download/dotnet/8.0

Below is a zip with chararcter dumps from Zanmatoxxx save. You can use the dumps to import characters

Addresses for
gold is 00000020
renown is 00000024
True zenoiran difficulty 004DA39E
(On = 4040 off = 0000)

Item id of honor is 03 00

First character starts at 002AF40 each character section is 1D0 in size then next character starts so second character at 002B110 and next is +1D0

Character structure
05 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00
01 00 00 00 00 00 00 00 02 00 00 00 02 00 00 00
01 00 00 00 FF FF FF FF 01 09 09 00 01 00 00 00
01 00 FF 04 02 00 00 00 3F 42 0F 00 03 00 27 00
F1F2 F3 F4 F5 F6 F7 F8 F9 FA 00 00 02 00 00 00

05 character slot order
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00
01 00 00 00 00 00 00 00 02 00 00 00 02 00 00 00
01 Could be what team they are in
00 00 00 FF FF FF FF 01 (this doesn't have FFs if its a hired character)
09 class
09 00 01 00 00 00
01 effects portrait/sprite range is 01-02 (seems to be 01 is before promotion and 02 is after portraits/sprites)
00 change variant of portrait/sprite stays 00 if its a hired character (changing this will get you recruited characters portrait based on class )
FF 04 combat voice/ animation sounds (always starts with FF if recruited but not if hired)
02 00 characters name
00 00
3F 42 0F 00 exp
03 level
27 health
00
F1 Dew of Vitality
F2 Dew of strength
F3 Dew of protection
F4 Dew of knowledge
F5 Dew of warding
F6 Dew of Skill
F7 Dew of acuity
F8 Dew of Keeness
F9 Dew of Parry
FA Dew of Agility
00 00
02 00 00 00 weapon (not a Id but points to weapon in item storage)

start of empty character slot
FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00
FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00
FF 00 00 00 FF FF FF FF 00 00 00 00 00 00 00 00
02 00 FF 00 00 00 00 00 00 00 00 00 01 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

the game takes into account characters name and class so changing sprite and portrait can be tricky.
Adding a character doesn't work game crashes when you gain any rapport. Replacing an existing character dose work. What you want to do if you missed recruiting a character is hire new character and have a save with the character you want so you can extract that characters section.
In your save find your hired character and in the other save find the character you want. from where the character slot order is you want to copy the third and fourth line and paste those over the hire characters third and fourth line of character section. look at the character structure above.

Characters in save are in the order you obtained them

Quick way to find last character is search for FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 FF FF FF FF
and go back 1D0

I have added classes text file with ids and the addresses where first 100 characters slots start and class addresses

Item structure

empty item slot
00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF 00 00 00 00

usable item
YY YY YY YY VV VV 00 00 XX XX 00 FF FF FF FF FF 04 00 00 00

unequipped weapon or shield
YY YY YY YY VV VV 00 00 00 00 00 FF FF FF FF FF 05 00 00 00

unequipped Accessory
YY YY YY YY VV VV 00 00 00 00 00 FF FF FF FF FF 03 00 00 00

YY YY YY YY item id (little endian)*
VV VV Item order (little endian)*
XX XX quantity (little endian)*

The value after the FFs is type
03 accessory
04 and 02 usable items
05 weapon or shield
I have just been using 05 when I added accessory, weapon or shield so game doesn't seem bothered if you don't use right item type

*little endian means the byte are reversed. So 9999 in hex is 27 0F but in little endian hex it's 0F 27. in spreadsheet ID for Divine shard is 00 00 00 05 but in save it's 05 00 00 00

It's easier to buy loads of the same equipment (use tomswitch memory code for shop so they don't run out of stock). Search for equipment either by searching for id or just search for empty slot and go back as last items you acquired should be what you just bought.

had a look there is 4000 item slots but the game only lets you have 3800 items.
I tried making a repeat write code that could fix item order assuming game will ignore items slots that don't have a item id similar how game will ignore modding exp or dew of empty character slots. unfortunately if it as a item order it's detected as a item even through it's invisible to view in game.

The patcher zip as bat file that if you drop your save on it it will add 1 of every weapon, shield and accessory. The game gives everything a item order so only use once i set the item order to start from 400. i have also included a hex file if you want to do with hex editor just search for 0000000000000000000000FFFFFFFFFF00000000 in your save then copy the other file then paste write. The save file is at beginning of game where i have used the patcher with.
 

Attachments

  • unicornoverlordids.zip
    37.5 KB · Views: 11
  • UCSAVEFILE03.zip
    121.3 KB · Views: 9
  • one of every weapon,shield and accessory start 400.zip
    2.6 KB · Views: 8
  • patcher.zip
    246.1 KB · Views: 9
  • how to use apollo app mac and linux.zip
    4.2 KB · Views: 7
  • memory classes.txt
    3.1 KB · Views: 6
  • CharacterDumps.zip
    13 KB · Views: 8
Last edited by Pj1980,

TheDoctorPHD

Member
Newcomer
Joined
Mar 11, 2024
Messages
8
Trophies
0
Age
27
XP
10
Country
United States
Is there any way to use this to manually add in a character to your army? I missed out on
Gammel and Mandrin
and wanna manually add them into my army.
 

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
Is there any way to use this to manually add in a character to your army? I missed out on
Gammel and Mandrin
and wanna manually add them into my army.
I am not sure how to add them but if someone had a save before and after recruiting them then we could see what changes most stuff in save is static
 

TheDoctorPHD

Member
Newcomer
Joined
Mar 11, 2024
Messages
8
Trophies
0
Age
27
XP
10
Country
United States
Okay I will try and get that save then and will post it here later today,
Post automatically merged:

Okay that was faster and easier than I expected it to be thanks to your original post.

The save files 7-9 may be what you're looking for, as 7 is right before the fight, 8 is just after the fight, and 9 is right after they are considered to have joined the liberation army.


3-6 are just before making the decisions to either set free or execute the two aforementioned and desired units in case for some reason anyone wants to parse out the journal entries and their differences. Save files 1 and 2 are my personal saves.

Looks like even if you miss those two, you get someone for completing that quest any way, so there's 3 new units in case that matters. Let me know if you have any questions!
 

Attachments

  • UO Save.zip
    1.4 MB · Views: 9
Last edited by TheDoctorPHD,

BananaSkin

Member
Newcomer
Joined
Nov 23, 2015
Messages
7
Trophies
0
Age
32
XP
201
Country
Senegal
here is some information on save editing this game. It includes item ids, item structure and character structure in save. A lot of this information also applies if you want to memory edit. the patcher zip as bat file that if you drop your save on will add 1 of every weapon, shield and accessory. The game gives everything a item order so only use once i set the item order to start from 400. i have also included a hex file if you want to do with hex editor just search for 0000000000000000000000FFFFFFFFFF00000000 in your save then copy the other file then paste write. The save file is at beginning of game where i have used the patcher with.

you can add your own codes to bat file. open it as a text file then to add code add this

[code name]
code

If you have experience with save wizard on ps4 then you can use those types of codes as well as BSD format ones
The first line controls what codes are applied and it's in order
so just first code
patcher unicorn.bat 1 savefile

code 2 and 3
patcher unicorn.bat 2,3 savefile

you don't have to drop save on to bat file if you don't want to you can open cmd prompt and just run the codes that way

I have added codes for max exp and max dews for for first 50 characters if that's not enough change the 32 in code.
each dew is 1 byte so each FF is a max dew so if max is too high for you then change each FF.

The patcher program was made by Bucanero who also makes save tools for the different playstation consoles

Character structure
01 00 00 00 FF FF FF FF 01 09 09 00 01 00 00 00
01 00 FF 04 02 00 00 00 3F 42 0F 00 03 00 27 00
F1F2 F3 F4 F5 F6 F7 F8 F9 FA 00 00 02 00 00 00

01 00 00 00 FF FF FF FF 01
09 class
09 00 01 00 00 00 01 00 FF 04
02 00 characters name (might be just 1 byte if less than 255 names in game)
00 00
3F 42 0F 00 exp
03 level
27 health
00
F1 Dew of Vitality
F2 Dew of strength
F3 Dew of protection
F4 Dew of knowledge
F5 Dew of warding
F6 Dew of Skill
F7 Dew of acuity
F8 Dew of Keeness
F9 Dew of Parry
FA Dew of Agility
00 00 02 00 00 00
For the one that add all equipments, I dont know if its because I play the game for a while and get lots of equipments so when I add the cheat in lots of equipments are bug, when I choose to equip it turn to a complete different equipment.
 

sath

Member
Newcomer
Joined
Apr 5, 2021
Messages
5
Trophies
0
XP
578
Country
Germany
i messed around with the save file a bit and every character entree has this structure
when you change the highlighted byte it will change the characters sprite (not stats/equipment etc)

1710178714863.png


roughly this area seems to be everything related to a character and each have their own similar looking lines of code

1710179031314.png


don't now if it's helpful to anybody but i thought i might as well post it since i change this to edit characters
 

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
For the one that add all equipments, I dont know if its because I play the game for a while and get lots of equipments so when I add the cheat in lots of equipments are bug, when I choose to equip it turn to a complete different equipment.
You probably have more than 400 individual pieces of equipment and items before using it.
Post automatically merged:

Okay I will try and get that save then and will post it here later today,
Post automatically merged:

Okay that was faster and easier than I expected it to be thanks to your original post.

The save files 7-9 may be what you're looking for, as 7 is right before the fight, 8 is just after the fight, and 9 is right after they are considered to have joined the liberation army.


3-6 are just before making the decisions to either set free or execute the two aforementioned and desired units in case for some reason anyone wants to parse out the journal entries and their differences. Save files 1 and 2 are my personal saves.

Looks like even if you miss those two, you get someone for completing that quest any way, so there's 3 new units in case that matters. Let me know if you have any questions!
i have extracted those characters from save you can add them to your save by finding a empty character slot you will need to change the first byte so its a character slot order number that hasn't been used just look at your last characters slot order number in your save and use higher one for these characters. you might be able to just change an existing characters class and name to these characters
G class 18 name 82
M class 14 name 83
 

Attachments

  • m&g.zip
    382 bytes · Views: 15
Last edited by Pj1980,
  • Like
Reactions: BananaSkin

TheDoctorPHD

Member
Newcomer
Joined
Mar 11, 2024
Messages
8
Trophies
0
Age
27
XP
10
Country
United States
Wow awesome, thank you so much for your help! Hopefully this saves others and not just me considering this has probably happened to other people as well. This is amazing work.

What program do I open this with and how do I inject it into my save? The patcher file from the original post never opens for me. I have exactly 40 units so I assume I add the 05 from the hex to have it be 45 and 46.

If it is too complicated to explain I have attached my save. The number 1 slot should be the one to edit (standing right outside the Coliseum).

You've already done too much for me though so I will try and figure this out on my own as well!
 

Attachments

  • SavetobeEdited.zip
    554.9 KB · Views: 10

Ephemeral9

Well-Known Member
Newcomer
Joined
Mar 13, 2022
Messages
78
Trophies
0
Location
Transient
XP
320
Country
United States
Thank you so much for this! Hex edited myself a bunch of Onyx Pendants. Surprised that there's no checksum issues with just raw editing, I remember that was a real issue editing emulator saves in the past.

Edit: Enemy classes are available to have in the party. Hex value of 40 is Possessed Dreadnaught. It is as hilariously OP as you can imagine.
 
Last edited by Ephemeral9,

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
Wow awesome, thank you so much for your help! Hopefully this saves others and not just me considering this has probably happened to other people as well. This is amazing work.

What program do I open this with and how do I inject it into my save? The patcher file from the original post never opens for me. I have exactly 40 units so I assume I add the 05 from the hex to have it be 45 and 46.

If it is too complicated to explain I have attached my save. The number 1 slot should be the one to edit (standing right outside the Coliseum).

You've already done too much for me though so I will try and figure this out on my own as well!
i add them to your save works out save keeps track of how many characters you have at 00063984 so i had to increase value there by 2
 

Attachments

  • UCSAVEFILE01.zip
    160.6 KB · Views: 11

esserius

Active Member
Newcomer
Joined
Sep 11, 2009
Messages
29
Trophies
1
XP
75
Country
United States
Hey there. I'm aware this is a very specific request, but could you add a patcher option for max Coliseum Coins (or like, 8000 of them or something)?

Would be hugely appreciative!
 

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
Hey there. I'm aware this is a very specific request, but could you add a patcher option for max Coliseum Coins (or like, 8000 of them or something)?

Would be hugely appreciative!
It would be difficult to make a code because the item order is a few bytes after id it might not be same for everyone so you would only be able to use the item id to search. The id for coins is 0400 then you have item order then quantity. Quantity is in little endian which means bytes are reversed so if you had 9999 in hex its 27 0F but you have to reverse that to 0F 27.
 

TheDoctorPHD

Member
Newcomer
Joined
Mar 11, 2024
Messages
8
Trophies
0
Age
27
XP
10
Country
United States
i add them to your save works out save keeps track of how many characters you have at 00063984 so i had to increase value there by 2
Thanks so much!!!! This is perfect.

I will point out that it seems this might have broken their ability to rapport with any of the army characters but I have not tested it in combat yet. But honestly I don't really care about that since rapport has such minimal stat bonuses and I can always find their rapport conversations online later on if I really cared enough lol.

Combined with the item injector I am able to play as if I did not mess up recruiting them! I am very appreciative and hope this post somehow helps someone else who messed up and cares as much as I did!
 

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
Thanks so much!!!! This is perfect.

I will point out that it seems this might have broken their ability to rapport with any of the army characters but I have not tested it in combat yet. But honestly I don't really care about that since rapport has such minimal stat bonuses and I can always find their rapport conversations online later on if I really cared enough lol.

Combined with the item injector I am able to play as if I did not mess up recruiting them! I am very appreciative and hope this post somehow helps someone else who messed up and cares as much as I did!
Probably should have recruited 2 characters then replaced them then there would of been a rapport section for them
 

TheDoctorPHD

Member
Newcomer
Joined
Mar 11, 2024
Messages
8
Trophies
0
Age
27
XP
10
Country
United States
Probably should have recruited 2 characters then replaced them then there would of been a rapport section for them
Ah that makes sense a replace would be more seamless than an injection. Here's a save where I got 2 mercs, a hunter and a thief, so the unit placement ID should be the same as before since it's a replace now.

Also if it's at all possible, could the bow unit have the following items? I tried injecting them into my game via the original post but have tried for several hours and failed miserably.
 

Attachments

  • UOSaveData.zip
    389.4 KB · Views: 14
  • image.png
    image.png
    106.9 KB · Views: 12

Pj1980

Well-Known Member
OP
Member
Joined
Jan 3, 2016
Messages
204
Trophies
0
XP
1,091
Country
United Kingdom
Ah that makes sense a replace would be more seamless than an injection. Here's a save where I got 2 mercs, a hunter and a thief, so the unit placement ID should be the same as before since it's a replace now.

Also if it's at all possible, could the bow unit have the following items? I tried injecting them into my game via the original post but have tried for several hours and failed miserably.
I added them to your save. I tested giving them gifts and it didn't crash.
 

Attachments

  • UCSAVEFILE01.DAT.zip
    153.3 KB · Views: 8

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Lol rappers still promoting crypto