[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Viewing Package Contents  XML
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Author Message
Continuum

Wicked Sick!
[Avatar]

Joined: 03/09/2005 05:20:36
Messages: 479
Location: Indianapolis, Indiana
Offline

Ive been working on a little program that will create the upl files for a skin and was wondering if anyone would know of a way to list the contents of say a texture file (basically wanting to Browse, Pick a UTX, then be able to select a texture or shader from it and then return that to a textbox)

Only been working on it a couple of days but here is a link if you want to get a rough idea of what I'm attemting.



http://forums.beyondunreal.com/showthread.php?p=2004587#post2004587




Current WIP:
Skins:
[Email]
Continuum

Wicked Sick!
[Avatar]

Joined: 03/09/2005 05:20:36
Messages: 479
Location: Indianapolis, Indiana
Offline

Been working on this off and on, anyway I got stuck on adding some extra stuff (file data) into the table.

1. I can parse out all the fields from the upl and get them into a table with no problem but I can't seem to find a way to insert the file name (actually correct filename) Ive tried everything I can think of as far as inserting the row item and assigning the value to the string but nothing seems to get it 100% right. About half of the rows show the incorrect file.

2. I'm also getting a lot of rows that only have the filename in them which makes me think it is related to the first problem but I cant seem to find it.

I am almost sure it will work if I get a couple things in the correct locations but I ran out of places to move things around (or I'm overlooking the right one)

If you would like to look it over here is a link for some of the source code.
http://continuumspage.50megs.com/UT2004/uplGenerator.html








Current WIP:
Skins:
[Email]
KohanX

Godlike

Joined: 03/04/2006 13:40:23
Messages: 350
Offline

What do you mean by filename?
Continuum

Wicked Sick!
[Avatar]

Joined: 03/09/2005 05:20:36
Messages: 479
Location: Indianapolis, Indiana
Offline

The filename

to be specific the file part of the path associated to particular file.. i.e. Y:\UT2004\System\xaplayers.upl would be the path, xaplayers.upl would be the filename.

Anyways not having trouble actully getting the path/filename just getting it in the correct loop or part of the loop so it's value is that of the file being read from.

hmm I'm confusing myself now its hard to explain some things...

If you look at the screenshot youl notice the 2nd colum (UPL Name) is filled with Rush.upl when actually there should be at least 4 different ones.





Current WIP:
Skins:
[Email]
Anonymous



Okay, so you mean you are getting all of the files and their data, but the loop it's in only remembers the last one accessed, and so all of them say they're from rage.upl?

If that is the case, when setting all of the attributes of one of the spreadsheet rows, set the file to the one currently opened as well, and not after the loop is done. You may want to post a bit of code relating to the problem.
KohanX

Godlike

Joined: 03/04/2006 13:40:23
Messages: 350
Offline

^Me.
Continuum

Wicked Sick!
[Avatar]

Joined: 03/09/2005 05:20:36
Messages: 479
Location: Indianapolis, Indiana
Offline

Link for code (cant find attachments and its sort of a long loop)
http://continuumspage.50megs.com/UT2004/uplGenerator.html


Yeah I am pretty sure the string gets the currently open file and the row is added to the column while that file is still open. I'm guessing its something simple that I'm not seeing but its got me stumped.

Also it does input for than 1 upl file (not all file entries are the same) but I just cant see a pattern as to how a file with 5 entries gets only 3 of the correct files and the other 2 get the next files name entered (did notice if there was only 1 entry that it appears to do it correctly).





Current WIP:
Skins:
[Email]
KohanX

Godlike

Joined: 03/04/2006 13:40:23
Messages: 350
Offline

Well, because that language looks like Greek when I've only taken the first semester, I can't say too much about it. However, it seems there's a good amount of inefficiency. Is there an 'or' command or a 'not' command? If so, replace your big loop with the following (translate for me, it's C++ style):
Code:
if ( t=="DefaultName"||t=="Race"||...... )
 {
   if ( !Table.Column.Contains(t) )
   {
     Table.Columns.Add(t);
   }
   Rows.Item(t) = s;
 }

I don't think that will change anything, however, this piece of code:
Code:
oRows.Item("UPL Name") = strFileName

Seems to be in the wrong spot... it just seems so out-of-the-loop... I dunno, take another look at it.
 
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Go to: