Page 1 of 1

SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Sun Jun 01, 2014 2:05 pm
by MertKilic
Hi guys! I want to translate SpongeBob SquarePants - Light Camera Pants (PC) game to my language.
But I can't open .sbt file. I don't know how can I unpack and pack again.

I've added a file as an attachment.
I'm waiting for you guys. Help me please. :P

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Sun Jun 01, 2014 4:04 pm
by MertKilic
Okay, I don't know it's important or not, but I just want to share it.
I opened game file (sb_lcp.exe) with Resource Hacker. And I just found something like this.
But still I don't know how can I unpack text, or see that box for real.

Picture:
http://s7.directupload.net/images/140601/7engm6gd.png

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Sun Jun 01, 2014 7:31 pm
by Thief1987
it's just xored with 0x30, for unpack you can use this quickbms script

Code: Select all

log MEMORY_FILE 0 0
get name basename
get strings short
for i = 0 < strings
	get str_size short
	for j = 0 < str_size
		get data byte
		math data ^ 0x30
		put data byte MEMORY_FILE
	next j
	put 0x0a0d short MEMORY_FILE
next i

string name + ".txt"
get size asize MEMORY_FILE
log name 0x00 size MEMORY_FILE

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Sun Jun 01, 2014 10:46 pm
by MertKilic
Thank you so much! It worked!
I know I asked a lot of questions but how can I pack the file? :P

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Mon Jun 02, 2014 8:08 am
by Thief1987
need to do script for pack, i do it some of these days

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Mon Jun 02, 2014 8:02 pm
by MertKilic
Thief1987 wrote:need to do script for pack, i do it some of these days
I'm waiting. Thank you. :)

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Thu Jun 05, 2014 9:48 pm
by Thief1987
sorry for delaying, i'm forgot about it :)

Code: Select all

log MEMORY_FILE 0 0
get name basename
put 0x00 short MEMORY_FILE
get size asize
set i = 0
for i
	savepos TMP
	getct str string 0x0D
	strlen str_size str
	goto TMP
	put str_size short MEMORY_FILE
	for j = 0 < str_size
		get data byte
		math data ^ 0x30
		put data byte MEMORY_FILE
	next j
	get dummy short
	savepos offset
	if offset = size
		break 
	endif
	
next i
goto 0x00 MEMORY_FILE
math i + 1
put i short MEMORY_FILE

string name + ".sbt"
get size2 asize MEMORY_FILE
log name 0x00 size2 MEMORY_FILE 
Apply to txt file

Re: SpongeBob SquarePants - Light Camera Pants (.SBT File)

Posted: Thu Jun 05, 2014 10:56 pm
by MertKilic
It worked! Thank you so so much! :)