Getting error when using Trigger Script Editor

 ALiAS


Joined:  09/01/2010
Posts: 101
Gönderildi 14/02/2014 - 22:58
Trying to copy some triggers from one map to another using [You must login to view link]

But I get an error when compiling. Someone educated in java want to tell me what it means?
Code:
Error reading trigger java.lang.StringIndexOutOfBoundsException: String index ou t of range: 0 java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at scriptreader.read(scriptreader.java:32) at scenario.write(scenario.java:147) at scripteditor.main(scripteditor.java:100) error in writing file java.io.FileNotFoundException: triggers.hex (The system ca nnot find the file specified) java.io.FileNotFoundException: triggers.hex (The system cannot find the file spe cified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at scenario.write(scenario.java:153) at scripteditor.main(scripteditor.java:100)


the .txt file im trying to compile into a .scx file is attached
Eklentiler:
old.txt (dosya boyutu: 490.47 KB)
Bağlantı | Yanıt | Alıntı
 _Rectum_Ranger_


Joined:  11/08/2013
Posts: 189
Gönderildi 15/02/2014 - 09:13
You could probably get more help from [You must login to view link] than from Voobly.
Bağlantı | Yanıt | Alıntı
 syssouffle


Joined:  20/01/2011
Posts: 242
Düzenlendi15/02/2014 - 09:20 tarafından syssouffle
It is because there are empty lines in the input file. Empty lines come generally from display instruction where you typed "enter", remove them and it will runs fine. It's a bug from the program...

Or you can just search in the output file where are empty lines using notepad++.

BTW in the link that you gave you have your answer lol
Bağlantı | Yanıt | Alıntı
 ALiAS


Joined:  09/01/2010
Posts: 101
Gönderildi 15/02/2014 - 14:26
syssouffle wrote:
It is because there are empty lines in the input file. Empty lines come generally from display instruction where you typed "enter", remove them and it will runs fine. It's a bug from the program...

Or you can just search in the output file where are empty lines using notepad++.

BTW in the link that you gave you have your answer lol

Yeah you're right, I should have scrolled down a bit lol.

Thanks all fixed and running. ;flowers


Bağlantı | Yanıt | Alıntı
[1]
1 4 arasından ilk 4 - 0 görüntüleniyor
Foruma Git:
1 Kullanıcı(lar) Bu sayfaya bakıyor (30 dakika içinde)
0 üye, 1 ziyaretçi

Most active threads in past week: