zitem.xml / description and concatenate

Results 1 to 4 of 4
  1. #1
    Apprentice nbno is offline
    MemberRank
    Sep 2009 Join Date
    5Posts

    zitem.xml / description and concatenate

    Hello. How can I correct concat my description with description from zitem.xml? Like this:

    desc="mytext STR:ZITEM_DESC_1"
    or
    desc="mytext+STR:ZITEM_DESC_1"
    or...

    Because after that, game displays the following description:
    "mytext STR:ZITEM_DESC_1"
    and not like (how I want):
    "mytext It has some rust here and there. Once used, it's sure to be difficult to sell." (ZITEM_DESC_1 for example)

    I want to do it without cutting out full description from strings.xml and insert into zitem.xml. It really do?

    Thanks.
    Last edited by nbno; 09-12-10 at 06:58 PM.


  2. #2
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: zitem.xml / description and concatenate

    go to your strings.xml

    and search for ZITEM_DESC_1
    not STR:ZITEM_DESC_1

    and change the value

  3. #3
    Member Aviato is offline
    MemberRank
    Oct 2010 Join Date
    99Posts

    Re: zitem.xml / description and concatenate

    http://forum.ragezone.com/f245/zitem...-1-1-a-510952/

    Use that. Open your zitem with it. rip the strings, save the zitem, and edit the descriptions to what ever you want. Its easier then opening the item and strings.xml's at the same time and going back and forth.

  4. #4
    Apprentice nbno is offline
    MemberRank
    Sep 2009 Join Date
    5Posts

    Re: zitem.xml / description and concatenate

    jur13n, no.
    Aviato, no.

    I know what I want.

    Of course I know about strings.xml. I know about zitem-tools (very slow tool for me, sorry) and I already wrote my own parser. There is another problem. I do not need to edit/rip anything in/from strings.xml.

    Several items used the same description. But with some additions that I need to make in zitem.xml. No need to create new items in string.xml. I need to add it to zitem.xml. Only zitem.xml. This is the first reason. Here are two more:

    reason #2: If you rip (zitem-tools for example) data from some nodes lead to invalid xml-parsing (matchserver/gunz) that data in attributes of zitem.xml. It's true. Therefore, this solution is not stable for me.
    reason #3: Too many garbage in zitem.xml.

    All that I need to know how to correctly (format) add text to @desc attribute in zitem.xml. Of course to already available there (see first post for details).
    Last edited by nbno; 09-12-10 at 09:48 PM.



Advertisement