The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Get a List out of Weidu?
Rabain
post Feb 22 2007, 04:33 PM
Post #1


GOD


Retired team member
Posts: 1728
Joined: 14-July 04
From: Ireland




This might be a bit cheeky but can someone tell me and provide code if possible how to get weidu to generate a list with the following criteria.

ItemResRef----ItemName(0x000c)----DescriptionBamResRef (0x0058)

Is this even possible or if somebody already has this would you please send a copy my way?
Go to the top of the page
 
Quote Post
devSin
post Feb 22 2007, 04:50 PM
Post #2





Forum Member
Posts: 53
Joined: 22-March 05




CODE
COPY_EXISTING_REGEXP GLOB "^.+\.ITM$" "override"
PATCH_IF (SOURCE_SIZE > 0x72) BEGIN
  READ_STRREF 0xc name
  READ_ASCII 0x58 bam
  PATCH_PRINT "%SOURCE_RES%----%name%----%bam%"
END
BUT_ONLY_IF_IT_CHANGES
In Mac OS X, I'd simply redirect output to a file (weidu list.tp2 > ~/Desktop/list.txt); for Windows, you may just have to copy from the DOS terminal (assuming it allows copy/paste). Note that if the identified name isn't set, WeiDU will print <Invalid StrRef -1>, and nothing will display for %bam% if the BAM isn't assigned (i.e., there is no description BAM set).
Go to the top of the page
 
Quote Post
Rabain
post Feb 23 2007, 01:01 PM
Post #3


GOD


Retired team member
Posts: 1728
Joined: 14-July 04
From: Ireland




No worries, thanks.

The guys helped me out here : http://forums.gibberlings3.net/index.php?showtopic=9576
Go to the top of the page
 
Quote Post
devSin
post Feb 23 2007, 04:50 PM
Post #4





Forum Member
Posts: 53
Joined: 22-March 05




I saw that. I was still first. :D
Go to the top of the page
 
Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 19th May 2024 - 01:10 AM