Page 1 of 1
Smash Cars .tbl file
Posted: Sun Oct 23, 2011 1:44 pm
by hunpatrik
Hello everyone!
Is there anyone who can suggest a program for the attached .tbl file or can someone please make a decoder & encoder for it please?
common.rar
Re: Smash Cars .tbl file
Posted: Fri Oct 28, 2011 5:51 pm
by WRS
for some reason my quickbms script wont treat the block names as strings (

) but before i bother writing this up
1 - this is a language file - xentax has a translation section now
2 - try editing one of the strings in a hex editor and testing it. the table index has either a string id or hash
Code: Select all
get SIZE asize
math HASSTRS = 0
for i = 1
get BLOCKNAME long #getdstring BLOCKNAME 4
get BLOCKSIZE long
# print "Block: %BLOCKNAME%\nSize: %BLOCKSIZE%"
if BLOCKNAME == 1129468740 # "DSRC"
# unicode string table
# no point looping, offsets are static
math HASSTRS = 1
elif BLOCKNAME == 1129468749 # "MSRC"
# string info table
get STRS long
get STRUCTSIZE long
if STRUCTSIZE != 12
print "unsupported string info table format"
# language file, so no point skipping data (??)
cleanexit
endif
for s = 0 < STRS
get STRUNKNOWN long # string id?
get STRDUMMY long
get STROFF long
next s
print "processed %STRS% strings"
else
math BLOCKSIZE -= 8 # size of name (4) + size flag (4)
math BLOCKSIZE x 4 # alignment
getdstring DUMMY BLOCKSIZE
endif
savepos POS
if POS == SIZE
print "Done. Found %i% sections."
cleanexit
endif
next i
Re: Smash Cars .tbl file
Posted: Sun Nov 20, 2011 4:11 pm
by hunpatrik
Now i tested the hex editing and it works fine.

So please try to finish this script, thank you so much!
Re: Smash Cars .tbl file
Posted: Thu Nov 24, 2011 3:27 pm
by GARID
hunpatrik wrote:Now i tested the hex editing and it works fine.

So please try to finish this script, thank you so much!
can u tell me how to do that ? do u hex that by one word or .. ?
Re: Smash Cars .tbl file
Posted: Thu Nov 24, 2011 4:34 pm
by hunpatrik
I didn't get what you mean, but i used xvi32 for editing. In the file the chars of a text in every second hex code for example: Options-> O p t i o n s (the spaces are 00 in hex) so i just modified it to A b c d e f g. And it worked, but if you would like to translate it, i didn't recommend this way. Just wait for a tool. Maybe someone help us.
Re: Smash Cars .tbl file
Posted: Fri Nov 25, 2011 7:49 pm
by GARID
hunpatrik wrote:I didn't get what you mean, but i used xvi32 for editing. In the file the chars of a text in every second hex code for example: Options-> O p t i o n s (the spaces are 00 in hex) so i just modified it to A b c d e f g. And it worked, but if you would like to translate it, i didn't recommend this way. Just wait for a tool. Maybe someone help us.
ahh damn i want to translate in to mongolian but by one word its just impossible
