Twee files and Visual Studio Code

OldSailor

Newbie
Sep 11, 2021
48
18
First of all, hello. I am new to coding and so I might not know some things. I'm currently making an HTML game and I want to analyze other people's games. For this I downloaded a Twee File Splitter and I split the .twee files into snippets, resulting in a .tw file. But the problem is that when I open this file in Visual Studio Code I don't see a snipped game. It's exactly the same as the HTML file. Am I making a mistake somewhere?
 

guest1492

Member
Apr 28, 2018
329
274
It may be a problem with the Twee File Splitter. Or you may be using it improperly. Or there might be no problem at all and it just doesn't work as you expected.

What game are you using it on?
 

OldSailor

Newbie
Sep 11, 2021
48
18
It may be a problem with the Twee File Splitter. Or you may be using it improperly. Or there might be no problem at all and it just doesn't work as you expected.

What game are you using it on?
Well, different games. Like Incubus city, Small Town, Lustful Insinity etc.
 

guest1492

Member
Apr 28, 2018
329
274
According to the description of the , all it does is split a large twee file into multiple smaller ones. It should not alter the contents of the files.

This is an example of a passage in twee for Incubus City:
Code:
:: churchGirlEnd {"position":"1400,8200","size":"100,100"}
You sigh deeply. To not raise any further suspicions, you quickly mumble a made-up story about how you were just testing her faith.
<<if $hypnoXP.level()>2 >>
<<pass hypno >>You get ready to leave, but you hear her furiously masturbating in her booth. Maybe all is not lost?

<<image "images/in2/booth/masturbation.webp">>

Remove the panel and [[Stick your dick through.|churchGirlSex]]

Nah, just [[go home.|churchGirlSurprise]]
<<else >>
<<fail hypno >>She's delighted to hear that you're proud of her for passing your "test" and that such strong faith is rare these days. You swear that your balls almost doubled in size from all the unused sperm.

Frustrated, you're left with no choice but to [[Go home.|nightFall]]
<<token salvation >><</if>>
 
  • Like
Reactions: osanaiko

OldSailor

Newbie
Sep 11, 2021
48
18
According to the description of the , all it does is split a large twee file into multiple smaller ones. It should not alter the contents of the files.

This is an example of a passage in twee for Incubus City:
Code:
:: churchGirlEnd {"position":"1400,8200","size":"100,100"}
You sigh deeply. To not raise any further suspicions, you quickly mumble a made-up story about how you were just testing her faith.
<<if $hypnoXP.level()>2 >>
<<pass hypno >>You get ready to leave, but you hear her furiously masturbating in her booth. Maybe all is not lost?

<<image "images/in2/booth/masturbation.webp">>

Remove the panel and [[Stick your dick through.|churchGirlSex]]

Nah, just [[go home.|churchGirlSurprise]]
<<else >>
<<fail hypno >>She's delighted to hear that you're proud of her for passing your "test" and that such strong faith is rare these days. You swear that your balls almost doubled in size from all the unused sperm.

Frustrated, you're left with no choice but to [[Go home.|nightFall]]
<<token salvation >><</if>>
I don't quite understand what you mean.
 

guest1492

Member
Apr 28, 2018
329
274
If the tw files you end up with look similar to the code in my last post, then it means everything is working properly.

If not, what does it look like instead?
 
  • Like
Reactions: osanaiko

guest1492

Member
Apr 28, 2018
329
274
I suspect that you tried to split an HTML file instead of a twee file, which is how you ended up with .tw (a twee file without any filename).

To extract a twee file from the HTML using the Twine program:
1723070342258.png

To extract a twee file from the HTML using something like Tweego, you can use:
Code:
"E:/tweego-windows-x64/tweego.exe" -d -o source.txt original.html
where E:/tweego-windows-x64/tweego.exe is the location of my tweego executable, source.txt is the resulting twee file, and original.html is the original HTML file. Note that source.txt and original.html are relative to the current directory.

BTW, most Twine games are written by people who aren't familiar with coding. Incubus City is fine, but SmallTown is not very good. I have not taken a look at Lustful Insanity.

Other Twine games I've taken a look at which I think might help you:
Accidental Mind
Battle Quest (I feel not quite as well done as above)

There are a couple other ones which I think are very good too, but they make heavy use of JS so not very beginner friendly.
 

OldSailor

Newbie
Sep 11, 2021
48
18
I suspect that you tried to split an HTML file instead of a twee file, which is how you ended up with .tw (a twee file without any filename).

To extract a twee file from the HTML using the Twine program:
View attachment 3909215

To extract a twee file from the HTML using something like Tweego, you can use:
Code:
"E:/tweego-windows-x64/tweego.exe" -d -o source.txt original.html
where E:/tweego-windows-x64/tweego.exe is the location of my tweego executable, source.txt is the resulting twee file, and original.html is the original HTML file. Note that source.txt and original.html are relative to the current directory.

BTW, most Twine games are written by people who aren't familiar with coding. Incubus City is fine, but SmallTown is not very good. I have not taken a look at Lustful Insanity.

Other Twine games I've taken a look at which I think might help you:
Accidental Mind
Battle Quest (I feel not quite as well done as above)

There are a couple other ones which I think are very good too, but they make heavy use of JS so not very beginner friendly.
Okay. Now I have a txt file. What do I do with it?
 

guest1492

Member
Apr 28, 2018
329
274
Now you can open it up in VS Code and analyze it.

If you want, you can use the Twee File Splitter to split it into smaller files first.