Jump to content

cstTextProc


YomiPlays

Recommended Posts

A'ight this is kind of a pain but I think I figured it out. You'll need to install 2 things if you don't have them already:

Go language compiler - https://golang.org/doc/install

Git - https://git-scm.com/downloads

 

For the first part you'll need to run the following commands in cmd:

go get github.com/regomne/eutil/codec

and

go get github.com/regomne/eutil/textFile

These two libraries are required for building/running the cst.go file. If you open the file in a text editor you'll see they're imported at the top of the file.

 

Then in cmd navigate to the folder that has cst.go in it. PATH/TO/chinesize/CatSystem/cstTextProc. Then you can build the .go file like this:

go build cst.go

That should drop an exe file called cst.exe in the same folder which you run through cmd by inputting its name. It says that to extract text you use the -e argument. So to extract a script you'd write this:

cst.exe -e nameOfScriptFile.cst

EDIT: The above extract command is WRONG. See @Shinya's reply on April 1 2019 for the correct syntax. All other steps are correct.

Edited by tahu157
Link to comment
Share on other sites

  • 3 months later...
On 2018/12/13 at 5:21 AM, tahu157 said:

That should drop an exe file called cst.exe in the same folder which you run through cmd by inputting its name. It says that to extract text you use the -e argument. So to extract a script you'd write this:


cst.exe -e nameOfScriptFile.cst

The final step didn't work.

It looks like this: 

C:\Users\SYSMKW>cst.exe -e OP01.cst
Usage of cst.exe:
  -cp string
        the code page used in txt (default "932")
  -cst string
        specify the cst name
  -e    extract cst to txt
  -o string
        output file name(txt or cst)
  -p    pack txt to a cst
  -txt string
        specify the txt name(used in pack)

But did't take out txt.

Link to comment
Share on other sites

@Shinya now that I read the instructions you pasted, I see that it doesn't say that you need to supply a string value (the name of the file you want to unpack) for the -e command like it does for all the other commands. Maybe try just inputting

cst.exe -e

/without/ anything else following it. With any luck the script is just meant to unpack any/all .cst files that are in the same folder as the exe.

Link to comment
Share on other sites

2 hours ago, tahu157 said:

@Shinya now that I read the instructions you pasted, I see that it doesn't say that you need to supply a string value (the name of the file you want to unpack) for the -e command like it does for all the other commands. Maybe try just inputting


cst.exe -e

/without/ anything else following it. With any luck the script is just meant to unpack any/all .cst files that are in the same folder as the exe.

Nothing changed··· still the same message.

Is there a problem with the program I exported, or something else?

Edited by Shinya
Link to comment
Share on other sites

1 hour ago, tahu157 said:

Not sure honestly. I never had a .cst file to try to open so I guess I've never verified that it works for myself. If you can find a way to send me the file I can see if it works on my end.

This is the exe exported.

https://mega.nz/#!PYJBUQBK!zf1wfrrkW6YsSUtsgmamy60jWJTe08Dyry5e3QZlTK0

This is a cst.

https://mega.nz/#!nIJzhK6R!6Imy_pG5-9MIiQXobwbg3NDx9Jqt9FYlqaYYEw2ISEg

Edited by Shinya
Link to comment
Share on other sites

  • 2 years later...
  • 2 years later...

@Haoren After an arduous quest (I'm not a programmer so it took me a couple hours of pain) of browsing forums and installing and uninstalling different versions of Golang and creating folders manually and moving files of different versions of Golang and more things (I had your same issue, it's because newer versions than 1.16 do not accept "go get", but that was just the first issue I had of several), I managed to build the goddamn .exe 😅🤩, I'm sharing it here:

https://mega.nz/file/pVMlEQCI#ilBRsYLQpsscovaWnWLT3-RNSSLHihw5VWRV119QI0E

Just place the .exe in the folder where you extracted the .cst files and it will work with the following command the creator wrote in their PDF guide:

for %f in (*.cst) do cst -e -cst %f -o %~nf.txt

I tried it with Grisaia no Kajitsu: https://prnt.sc/wGHFm5pqKec7

In the following hours I'll try to repack it to see if there are other issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...