XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Sep 22, 2017 11:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Krater COllector Edition (PC)
PostPosted: Fri Aug 04, 2017 9:16 am 
Offline
ultra-n00b

Joined: Fri Aug 04, 2017 9:08 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time

Hello everyone,

I went here because I really need help...

Following this topic : viewtopic.php?f=10&t=9084 I try to decompile files in order to translate in french. But, the tool given in this topic (https://github.com/hhrhhr/Lua-utils-for-Krater/tags) isn't working because game use LuaJIT now and decompiling return an error (show page 2, post from lostprophet with screenshot).

I try to modify tools or script but without success...

If any charitable soul is here and want to help me... :cry:

EDIT : I think error comes from this file, especially when we add "c" at the end of file :

Code:
idstring \x04\x00\x00\x00
get filesCount long

for i = 0 < filesCount
  get hash1l long  // low bits
  get hash1h long  // high bits, 64-bit hash of unitName
  get hash2l long  // low bits
  get hash2h long  // high bits, 64-bit hash of resourceName
  get lang long    // language flag, 0-english, 1, 2, 4, 8...
  get nam2 long
  get nam1 long
  get lnk2 long
  get lnk1 long

  if hash1h == 0xA14E8DFA
    if hash1l == 0x2CD117E2
      string name p= "%08x%08x" nam1 nam2
      set dirXX string name
      string dirXX -= -2
//      string path p= "data %s %s" dirXX name
      set path string data\
      string path += dirXX
      string path += \
      string path += name

      open FDSE path 1
      get size ASIZE 1

      goto 21 1
      get name string 1
      string name += "c"    // .lua + c = .luac
      set offset 4
      math size -= 4

      log name offset size 1
    endif
  endif
next i


Am I right?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Krater COllector Edition (PC)
PostPosted: Fri Aug 04, 2017 12:27 pm 
Offline
ultra-n00b

Joined: Fri Aug 04, 2017 9:08 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Hello me,

The first tool extract strings to text from game. Is any way to re-import them after modification without other steps?



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group