banner
Rating
Voted0

Protobuf loader

1
Mod version:1.0
Game version:all
The mod has been successfully tested for the absence of viruses
16049.39K354.13K

Report mod

  • image
modalImage

About This Mod

Why do you need this?

This mod can load records one at a time, rather than overwriting the entire table.


If modders make ".data" mods instead of ".pak" mods, there is a very big chance that they will not conflict with each other.


(This mod doesn't magically remove all conflicts! Even if you install this mod, your old "pak" mods will still conflict).


For modders, you can edit the .data file and reload it at runtime. This saves you time creating a package, debugging, or merging packages for users.


Note:


0.

Press Ctrl+F7 to reload the data files.

In-memory data will NOT be reset before reboot.

But if the data exists in both new and old data files, the new data will be overwritten by the old data.


1.

This mod loads folders in dictionary order. For example, the folder "100_abc" must be loaded before "200_lalla".


We strongly recommend that you refer to folders as [Number]_[Name] if you need to download them in a certain order.

Files in the same dictionary are also downloaded in the order of the dictionary. You can rename them to change the order, but remember that they must start with the original table name.


Files in the CSharpLoader/Mods/ProtobufLoader/Dir1/Dir2/ folder will not be downloaded recursively.



2.

When a record is loaded, if it is not in the in-memory table, it is added to the table.


If it is already present in the in-memory table, the old entry will be completely replaced with the new one.


Means:


Even if multiple data files modify the same table, they will not conflict until they modify the same record.

If they modify the same entry, the last file uploaded will be overridden.



3.NOTE:

If you want to edit multiple records in a table.

Your data file should ONLY contain changed entries to avoid conflicts. (Because that's the point of using this bootloader.)


For example:


Table FUStSuitDesc has 19 costumes.

If you want to change one, you must create a FUStSuitDesc_xxx.data file that contains only one costume.


Thus, when others add a data file to change another suit, it will not conflict with yours.



(If you need the Delete All But This button in DataEditor.


You can wait for the DataEditor author to add it.


Or use my fork Data Editor

.)


4.The following tables are not supported.

Spoiler:

Show



5.

Be careful about items with the same name but different IDs. For example,


A medic may have a prescription item and a drug item in a table of items with the same name, but they are different.


An equip can have multiple entries for each level in the equip table.


A passive force effect can have multiple entries for each level.


Etc.

Similar Mods/Addons

Game Version *

all (ProtobufLoader-709-1-0-1727701852.7z)