Hitman Silent Assasin

How to translate the files of a game
anil523
Posts: 46
Joined: Tue Nov 13, 2018 5:10 pm

Hitman Silent Assasin

Post by anil523 »

Hi!

How to posibbly exract/repack these files?
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Hitman Silent Assasin

Post by Delutto »

Hitman: Contracts .LOC Tool v1.1
By Elbereth
Download
KederliLahmacun
Posts: 9
Joined: Tue Jan 01, 2019 6:51 pm

Re: Hitman Silent Assasin

Post by KederliLahmacun »

Hi, I was wondering something about this LOC tool. How are we going to actually export or import Hitman's text files with this tool? There is a some sort of web site that tells me how to do it but I can't even understand a single word. http://hitman.gram.pl/viewpage.php?page_id=303 This is the site I'm talking about. If you can somehow help me about this "export and import" thing, I'd be glad. Thank you.
Scofield_TR
Posts: 99
Joined: Wed Dec 03, 2014 12:44 pm

Re: Hitman Silent Assasin

Post by Scofield_TR »

KederliLahmacun wrote:Hi, I was wondering something about this LOC tool. How are we going to actually export or import Hitman's text files with this tool? There is a some sort of web site that tells me how to do it but I can't even understand a single word. http://hitman.gram.pl/viewpage.php?page_id=303 This is the site I'm talking about. If you can somehow help me about this "export and import" thing, I'd be glad. Thank you.


Export command
loctool.exe x mainmenu.LOC mainmenu.xml

Import command
loctool.exe c mainmenu.xml mainmenu.loc

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<HitmanLOC>
  <MainPart name="AllLevels">
    <Item name="Actions">
      <Item name="Activate">Activate</Item>
      <Item name="Basement">Basement</Item>
      <Item name="CallAgency">Call agency</Item>
      <Item name="CallElevator">Call elevator</Item>
      <Item name="ChangeClothes">Change clothes</Item>
      <Item name="ClimbOverWall">Climb over wall</Item>
      <Item name="ClimbThroughWindow">Climb through window</Item>
      <Item name="Close">Close</Item>
      <Item name="CloseDoor">Close door</Item>
      <Item name="Deactivate">Deactivate</Item>
      <Item name="DeactivateLaser">Deactivate laser</Item>
      <Item name="Drag">Drag</Item>
      <Item name="DropBody">Drop body</Item>
      <Item name="DropItemDownChute">Drop item in chute</Item>
      <Item name="FirstBasement">1st basement</Item>
      <Item name="FirstFloor">1st floor</Item>
      <Item name="Holster">Holster</Item>
      <Item name="NotEquipped"/>
      <Item name="Open">Open</Item>
      <Item name="OpenDoor">Open door</Item>
      <Item name="PeekHole">Look through keyhole</Item>
      <Item name="PickLock">Pick lock</Item>
      <Item name="Pickup">Pick up %s</Item>
      <Item name="PlaceBomb">Place bomb</Item>
      <Item name="PlaceItem">Place here</Item>
      <Item name="PlaceX">Place %s</Item>
      <Item name="PoisonTarget">Poison target</Item>
      <Item name="PoisonWater">Poison water</Item>
      <Item name="PressButton">Press button</Item>
      <Item name="RunToggle">Toggle running</Item>
      <Item name="SecondBasement">2nd basement</Item>
      <Item name="TakeClothes">Take clothes</Item>
      <Item name="ToggleGenerator">Toggle Generator</Item>
    </Item>
KederliLahmacun
Posts: 9
Joined: Tue Jan 01, 2019 6:51 pm

Re: Hitman Silent Assasin

Post by KederliLahmacun »

Oh, okay. I was kinda busy so I couldn't reply. Thanks for the info.
KederliLahmacun
Posts: 9
Joined: Tue Jan 01, 2019 6:51 pm

Re: Hitman Silent Assasin

Post by KederliLahmacun »

Everything went as it should for MainMenu.LOC and InventoryMenu.LOC files but, in other files like C0-1__LOAD.LOC or C0-1__MAIN.LOC some kinda error started to pop-up from the command prompt. It was something like this:

Exception EJclSimpleXMLError in module loctool.exe at 0002463A.
Invalid Document: Unexpected text in file prolog.

I don't know what it means. But seems like something recoverable, I hope?
KederliLahmacun
Posts: 9
Joined: Tue Jan 01, 2019 6:51 pm

Re: Hitman Silent Assasin

Post by KederliLahmacun »

Ah, never mind. I think I got it.