Atvaark / FoxEngine.TranslationTool

Fox Engine text and font converter
MIT License
18 stars 11 forks source link

Requsting modification of SubpTool #14

Closed abuali129 closed 7 years ago

abuali129 commented 7 years ago

Hi, As I used the SubpTool.exe for long time know, every issues I encounter with wrong editing format is highlighted by the SubpTool except for one. That is when these two Line <Line Text and <Timing Start has swap positions.

While Editing There's a chance that the order of these two lines will be changed by mistake. Then when encoding the xml to subp it show that there's an error but it's not highlighting which Line number is causing the fault.

That is what it showed

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at SubpTool.Subp.SubpEntry.Write(Stream outputStream, Encoding encoding)
   at SubpTool.Subp.SubpFile.Write(Stream outputStream, Encoding encoding)
   at SubpTool.Program.PackSubp(String path, Encoding encoding)
   at SubpTool.Program.Main(String[] args)
Atvaark commented 7 years ago

You'd have to provide the file that caused that error.

abuali129 commented 7 years ago

https://mega.nz/#!uZtFCJhA!TmDTL5YtB8gO0o8ZhZN36wru0akbuLU1ajKPVt3BnR0

Atvaark commented 7 years ago

Invalid Subp XML-files will now crash in v0.2.5. and the error message will contain the line and position of the issue.

abuali129 commented 7 years ago

Thanks