Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TFS Revscriptsys][input] Add input support for TFS Revscriptsys #84

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Tibia OT Monster Converter is a tool for converting monster files between the va

| Format | Input % Complete | Output % Complete | Notes |
| - | - | - | - |
| TFS XML | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-XML-Input-Status) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-XML-Output-Status) | - Most common OT Monster format which has been around for over a decade |
| [TFS XML](https://github.com/otland/forgottenserver) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-XML-Input-Status) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-XML-Output-Status) | - Most common OT Monster format which has been around for over a decade |
| [PyOT](https://bitbucket.org/vapus/pyot/) | [0%](https://github.com/soul4soul/ot-monster-converter/wiki/PyOT-Input-Status) | [80%](https://github.com/soul4soul/ot-monster-converter/wiki/PyOT-Output-Status) | - This format can be consider dead as PyOT development has ceased. Unless development is picked back up support for this format is unlikely to be completed. |
| TFS revscriptsys | [0%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-revscriptsys-Input-Status) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-revscriptsys-Output-Status) | - Very new OT monster format that was theorized many years ago. In the future there is a good chance it will replace TFS XML completely. This is likely the output type that most users of this program will use. <br/> - Opentibiabr RevScriptSys format is not completely compatible with TFS RevScriptSys format |
| [TibiaWiki](https://tibia.fandom.com/wiki/Main_Page) | [85%](https://github.com/soul4soul/ot-monster-converter/wiki/TibiaWiki-Input-Status) | [90%](https://github.com/soul4soul/ot-monster-converter/wiki/TibiaWiki-Output-Status) | - Helpful for keeping monsters up to date with cipbia<br/> - See The [Infobox Creature Template](https://tibia.fandom.com/wiki/Template:Infobox_Creature) for information about TibiaWiki Format <br/> - Monsters created from TibiaWiki will require corpse id, looktype, and spells to be created manually |
| Cip Mon | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/Cip-Mon-Input-Status) | [0%](https://github.com/soul4soul/ot-monster-converter/wiki/Cip-Mon-Output-Status) | - Format is for input purposes to easily generte monsters as they were in the 7.7 days |
| [TFS revscriptsys](https://github.com/otland/forgottenserver) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-revscriptsys-Input-Status) | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/TFS-revscriptsys-Output-Status) | - Very new OT monster format that was theorized many years ago. In the future there is a good chance it will replace TFS XML completely. This is likely the output type that most users of this program will use. <br/> - Opentibiabr RevScriptSys format is not completely compatible with TFS RevScriptSys format |
| [TibiaWiki](https://tibia.fandom.com/wiki/Main_Page) | [85%](https://github.com/soul4soul/ot-monster-converter/wiki/TibiaWiki-Input-Status) | [90%](https://github.com/soul4soul/ot-monster-converter/wiki/TibiaWiki-Output-Status) | - Helpful for keeping monsters up to date with cipbia<br/> - See The [Infobox Creature Template](https://tibia.fandom.com/wiki/Template:Infobox_Creature) for information about TibiaWiki Format <br/> - Monsters created from TibiaWiki will require some information to be added manually |
| Cip Mon | [95%](https://github.com/soul4soul/ot-monster-converter/wiki/Cip-Mon-Input-Status) | [0%](https://github.com/soul4soul/ot-monster-converter/wiki/Cip-Mon-Output-Status) | - Format is for input purposes to easily generate monsters as they were in the 7.7 days |

## Graphical User Interface

Expand Down Expand Up @@ -49,7 +49,7 @@ Options:
otherwise flat folder structure is output
-h, --help show this message and exit

Input Formats: TibiaWiki, TFS XML, Cip Mon
Input Formats: TFS RevScriptSys, TibiaWiki, TFS XML, Cip Mon
Output Formats: TFS RevScriptSys, TibiaWiki, TFS XML, pyOT
Item Id Formats: KeepSourceIds, UseServerIds, UseClientIds
```
Expand Down
31 changes: 31 additions & 0 deletions app/MonsterConverterTfsRevScriptSys/LuaGlue/MockTfsGame.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using MonsterConverterInterface;
using MonsterConverterInterface.MonsterTypes;
using MoonSharp.Interpreter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonsterConverterTfsRevScriptSys
{
/// <summary>
/// The purpose of this class is to immitate the `Game` TFS class used to create monsterTypes that are used to register monsters
/// </summary>
[MoonSharpUserData]
class MockTfsGame
{
static Queue<Tuple<Monster, ConvertResultEventArgs>> convertedMonsters = new Queue<Tuple<Monster, ConvertResultEventArgs>>(1);

public static Queue<Tuple<Monster, ConvertResultEventArgs>> ConvertedMonsters
{
private set { ; }
get { return convertedMonsters; }
}

public static MockTfsMonsterType createMonsterType(string name)
{
return new MockTfsMonsterType(name);
}
}
}
Loading