Urban Assault LDF Reader released

For general topics about Urban Assault and any Urban Assault-related topic that doesn't fit anywhere else. If you're not sure, it probably goes in here.
User avatar
MarcOlle
Bugged Ostwind?
Bugged Ostwind?
Posts: 544
Joined: Fri Apr 09, 2010 8:48 pm
Location: Brazil
Contact:

Re: Urban Assault LDF Reader released

Post by MarcOlle » Fri Apr 23, 2010 5:48 pm

Now works...
I didn't unpacked the file, therefore didn't can't to edit, but this program don't recognize custom files:

Code: Select all

C:\Urban Assault\UALR>java -jar ualr.jar -o multi-xls "C:\\Urban Assault\\LEVELS\\MULTI\\L224224.LDF
C:\Urban Assault\LEVELS\MULTI\L224224.LDF
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at ualr.LdfFile.readFile(Unknown Source)
        at ualr.Main.process(Unknown Source)
        at ualr.Main.main(Unknown Source)
I'm doing something wrong, or is a bug from program?
Trying to do a comeback...
://i529.photobucket.com/albums/dd333/pete_kaboom/SulgogarsUB2.png[/img]
Image
________________________________________________________________________________________
Fra6160 at 29/Apr/2009 wrote:In 2011 we'll discover the plasma creation :D
And still we have not discovered the plasma creation...

GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 861
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Re: Urban Assault LDF Reader released

Post by GoldStar611 » Fri Apr 23, 2010 11:46 pm

Missing a quotation at the end?
Image
Image

User avatar
MarcOlle
Bugged Ostwind?
Bugged Ostwind?
Posts: 544
Joined: Fri Apr 09, 2010 8:48 pm
Location: Brazil
Contact:

Re: Urban Assault LDF Reader released

Post by MarcOlle » Sat Apr 24, 2010 1:26 pm

didn't work too

Code: Select all

C:\Urban Assault\UALR>java -jar ualr.jar -o multi-xls "C:\\Urban Assault\\LEVELS\\MULTI\\L224224.LDF"
C:\Urban Assault\LEVELS\MULTI\L224224.LDF
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at ualr.LdfFile.readFile(Unknown Source)
        at ualr.Main.process(Unknown Source)
        at ualr.Main.main(Unknown Source)
I believe the LDF Reader don't work with custom levels ...
Trying to do a comeback...
://i529.photobucket.com/albums/dd333/pete_kaboom/SulgogarsUB2.png[/img]
Image
________________________________________________________________________________________
Fra6160 at 29/Apr/2009 wrote:In 2011 we'll discover the plasma creation :D
And still we have not discovered the plasma creation...

User avatar
leftylink
Useless Bystander Admin
Useless Bystander Admin
Posts: 799
Joined: Sat Dec 01, 2007 8:41 pm
Location: To your left. No, your other left.

Re: Urban Assault LDF Reader released

Post by leftylink » Sat Apr 24, 2010 3:51 pm

That would mean there is a syntax error in your file somewhere. You forgot to end a section or something.
UA might accept the file because its parser can figure out the correct parse tree, but my parser is slightly dumber and chokes. (Case in point: L6565.LDF)

I can try to make the parser smarter about interpreting files with bad syntax, but this is a project for another day.
~Leftylink, the former Useless Bystander Admin.
Retired from UA since university. May play again someday...

"SERP RUSH KEKEKEKEKEKEKEKE!!!"
"OMG I SAID NO RUSH 15 MINS!!!!!!" *dies*

Proud creator of the Urban Assault Campaign Guides [Resistance] [Ghorkov] [Taerkasten], the Urban Assault LDF Reader, and the Excel maps

GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 861
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Re: Urban Assault LDF Reader released

Post by GoldStar611 » Sat Apr 24, 2010 11:06 pm

Maybe quicker to go through the file and see what it looks like
Image
Image

Post Reply