A tool that converts monster files from the Cip format to Fibula's JSON format.
For reasons**, this tool uses the item names supplied by an IItemTypesLoader.
One implementation for this loader (and the one this tool is using), is ObjectsFileItemTypeLoader.
You don't really have to use this types loader, but since you are converting from .mon
files, a wild guess is that you already have in your hands CipSoft's old objects.srv
files, which is the only input this item loader needs. It's also conveniently in the data folder of this repo.
Anyhow, if you are in fact using this loader, just make sure the right path to this file is being referenced in appsettings.json
.
Something like this:
{
"ObjectsFileItemTypeLoaderOptions": {
"FilePath": "../data/objects.srv"
}
}
** we can probably break this coupling by just passing down a mapping of itemId
->itemName
instead of the abstraction, but for now this works.
- Clone this repo
- Run
dotnet build src --configuration Release
to build the project. cd
to the/src/mon2json/bin/Release/net6.0
folder, and you can run the app from there usingdotnet mon2json.dll
convert <from> <to> [overwrite]