Quantcast

Jump to content

» «
Photo

[Suggestion] Easy XML Editor with merge functionality

4 replies to this topic
Bluscream
  • Bluscream

    Player Hater

  • Members
  • Joined: 24 Apr 2017
  • Germany

#1

Posted 24 April 2017 - 09:23 PM Edited by Bluscream, 24 April 2017 - 09:48 PM.

Hello, i use OpenIV since two years now for GTA IV and V and have to say it's an awesome editor.

What i'm missing is a non-text based XML Viewer/Editor. As far as i have seen most GTA XML's follow the same format

<?xml version="1.0" encoding="UTF-8"?>
<MainElement>
  <SubElement>
    <Item>
      <ItemData>AIRTUG</ItemData>
    </Item>
  </SubElement>
</MainElement>

So i thought i can't be that hard to write a proper generic editor for that. I came up with this design (in .NET) https://github.com/G...GTA-XML-Editor/

 

ToYbMvF.png

 

Xv3Uw18.png

 

You may wonder why i ask this in the OpenIV forum. Simply because i think OpenIV is the best multi-(editor/tool) for GTA and i would prefer having this XML Editor in it instead of a different file. If the OpenIV devs won't answer to this or say no, i will repost this to a more generic mod forum :)


Bluscream
  • Bluscream

    Player Hater

  • Members
  • Joined: 24 Apr 2017
  • Germany

#2

Posted 24 April 2017 - 09:30 PM Edited by Bluscream, 24 April 2017 - 10:01 PM.

Regarding the merge functionality:

 

Let's say this is the original file:

<?xml version="1.0" encoding="UTF-8"?>
<CEventDataManager>
    <eventResponseTaskData>
        <Item type="CEventDataResponseTaskGunAimedAt">
            <Name>RESPONSE_TASK_GUN_AIMED_AT</Name>
            <Face id="1"></Face>
        </Item>
    </eventResponseTaskData>
    <eventDecisionMakerResponseData>
    </eventDecisionMakerResponseData>
    <eventDecisionMaker>
    </eventDecisionMaker>
</CEventDataManager>

and this the file i want to merge into it:

<?xml version="1.0" encoding="UTF-8"?>
<CEventDataManager>
    <eventResponseTaskData>
        <Item type="CEventDataResponseTaskGunAimedAt">
            <Name>RESPONSE_TASK_NONE</Name>
        </Item>
    </eventResponseTaskData>
</CEventDataManager>

the end result should be:

<?xml version="1.0" encoding="UTF-8"?>
<CEventDataManager>
    <eventResponseTaskData>
        <Item type="CEventDataResponseTaskGunAimedAt">
            <Name>RESPONSE_TASK_NONE</Name>
            <Face id="1"></Face>
        </Item>
    </eventResponseTaskData>
    <eventDecisionMakerResponseData>
    </eventDecisionMakerResponseData>
    <eventDecisionMaker>
    </eventDecisionMaker>
</CEventDataManager>

Edit: Feature Request filed at http://openiv.com/bugs/view.php?id=461


GooD-NTS
  • GooD-NTS

    OpenIV Lives

  • Members
  • Joined: 03 May 2008
  • Russia
  • Best Tool 2016 [OpenIV]
    Best Tool 2012 [OpenIV]
    Major Contribution Award [Mods]

#3

Posted 30 April 2017 - 04:47 PM

I think it is better to make this separated from OpenIV.
And since you already done something you better to move this topic into Tools section. (I think you can report your own first post and ask moderators to move the topic)

Bluscream
  • Bluscream

    Player Hater

  • Members
  • Joined: 24 Apr 2017
  • Germany

#4

Posted 30 April 2017 - 11:47 PM

Why would you want us to different tools for everything if OpenIV claims to be the R* MultiTool? Too lazy to build it or do you got a real argument why the current way of manually text editing is better.


GooD-NTS
  • GooD-NTS

    OpenIV Lives

  • Members
  • Joined: 03 May 2008
  • Russia
  • Best Tool 2016 [OpenIV]
    Best Tool 2012 [OpenIV]
    Major Contribution Award [Mods]

#5

Posted 01 May 2017 - 07:28 AM

Because you talks about general XML editing not specific for GTA V or something.
And we don't have time for this, we better spend it to make support for more GTA V formats and tools.
  • blace90 likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users