Dark Forest Crow Notes - Interactive fiction, text-interactions based and roleplaying games

Friday, October 7, 2016

List of useful tools and resources to improve your English: for writers and game developers (and not only)

This post contains some useful links to resources that will help you to improve your writing. If you are not familiar with English but still want to translate your game or story - this post is for you. Of course, the best solution is to finally learn English or find a professional writer. Sometimes you simply cannot afford it. 


The tools and sites listed below are free to use.

1.) Tool: Reverso

It's a tool for free online translation in French, Spanish, Italian, German, Russian, Portuguese, Hebrew, Japanese, English. Why not Google Translate? Well, Reverso supports translation in context of words, groups of words and idioms and I think that this feature is the most important: Google Translate doesn't provide such amount of examples.

Hola!

2.) Tool: OneLook

OneLook is not only a site where you can find tons of dictionaries: there's also a tool that can help you to find words related to the one you specify, ranked by relevance.

Some synonyms, some assiciations.


"Measure and improve the readability and marketing content of your writing with our exclusive readability and keyword tools!"

I found this tool to be extremly helpful: it can analyze your text snippet or your entire blog article and give you Flesch-Kincaid reading ease, Gunning-Fog score, keyword density, word counts, syllable counts and many other valuable metrics that can help you to improve your writing:

Those stats! Mmm...

Secret tip: clear your browsers' cookies if the site says that your limit of free analysis is exceeded.

4.) Blog: dailywritingtips

"The rise of the information age – with the proliferation of emails, blogs and social networks – makes the ability to write clear, correct English more important than ever."


5.) Blog: caroclarke

Blog by Caro Clarke where you can always find good writing advice, for example, in the beginner's four faults article.




8.) Bonus: words and vocabularies by theme

    8.1.) english-for-students

    8.2.) myvocabulary

    8.3.) englishclub


That's all for now. Of course, tools like Reverso won't instantly turn your writing into a masterpiece, but they will definetly ease your pain.

See you soon.

Saturday, October 1, 2016

DF: Reborn second character revealed + Chad Hines joins our team!


I'm pleased to announce that Chad Hines aka @continuitydrift joins Dark Forest: Reborn crew as a writer. 

So, if you see some crap in our writing (and especially in this blog), it's not him!

Chad helps us to transform DF: Reborn concepts, scenes and dialogs into beautifully written magic of English language. Moreover, as a professional writer and creative guy, Chad not only improves our existing ideas, but also brings tons of new ones. Check out his wonderful novel!

DF: Reborn second character revealed



Her name is Taliet, and she stepped into the Dark Forest: Reborn world from another realm (writing on GIFs below by C. Hines).


Taliet was a part of a secret experiment of high-tech civilization that went terribly wrong. She managed to escape, but at a ruinous cost.


Should you manage to survive her traps and win your way into her presence, her fear may be overcome at last by curiosity, and she will question you eagerly, and inspect with her weird glass fingers everything you carry.

Tuesday, September 20, 2016

Automated testing of choice-based text adventures (ChoiceScript / Selenium example)

If you write something complex and unique (I am sure you do), you need to test your creation. Testing of text-based games is a trivial task for software developer. This article contains some advices for regular writers without programming experience and for users of Twine or ChoiceScript.

Of course, there's an official way of ChoiceScript automated testing using Randomtest or Quicktest. My way is different and includes interactions with browser. 

You can achieve something like this (5 minutes effort)
Interactive fiction or text adventure game is just a combination of states (contexts/levels/zones/rooms) with several choices
(triggers/associations).

What do you need to test? Your game takes user strings or choices as an input and generates some strings as an output. Usually, the only thing you need to test is the behaviour of your game in case of different inputs:

expected input -> expected output + postconditions

Your task is to prepare a set of different inputs and corresponding expected outputs. Your goal is to be able to send an input to your game and check its output automatically. It's very important to be able to check the functionality of your game instantly so if you change something in the middle of your 100 rooms/states and 100000 words before the release, broken transition from state 42 to state 24 will not be a surprise for you and for your players.

Example of abstract test cases


Your game starts with the question 'Do you like apples?' and some choices: 'Yes', 'No', 'I prefer oranges'.

- Choice 'Yes' leads to the state with text 'That's great!' and sets the variable 'PlayerLikes' to 'Apples'
- Choice 'No' leads to 'That's sad. I am going to shoot you down.' and sets the variable 'IsPlayerAlive' to false
- Choice 'I prefer oranges' leads to 'I love oranges too, puddin!' and sets the variable 'PlayerLikes' to 'Oranges'

Possible test cases:

- If player chooses 'Yes', text 'That's great!' is displayed.
- If player chooses 'No', text 'That's sad. I am going to shoot you down.' is displayed.
- If player chooses 'I prefer oranges', text 'I love oranges too, puddin!' is displayed.
- If player chooses 'Yes', variable PlayerLikes contains string 'Apples'.
- If player chooses 'No', variable IsPlayerAlive is equal to false.
- If player chooses 'I prefer oranges', PlayerLikes is equal to 'Oranges'.
- If player chooses 'No', game is finished.

Actually, 'text is displayed' means 'game switched its state/room and performed the first action in that state - displayed some text'.
It's all the same if your game parses text. You always have a limited number of choices (input phrases) and limited number of 
transitions and postconditions (set variable X to Y and so on).

It's not always necessary to write every possible test case - just choose the most important and crucial ones. Your test suite should perform these operations automatically and display a report with each test case's status: success/fail.

Selenium


How to achieve that? I'll show you how to create your automated tests for web-based interactive fiction and text adventures using special set of tools - Seleninum. I will cover the simplest way of writing tests with the help of Selenium plugin for Firefox. You can achieve the same effect using standalone version of Selenium toolset, but it won't be that easy.

Let's rock:

0.) Install Firefox ;) 

1.) Install Selenium IDE plugin. Go to addons.mozilla.org and press the 'Add to Firefox' button.


2.) After the installation process, check 'tools' menu: Selenium IDE field will appear.


3.) Press 'Selenium IDE' to launch test suite.

Launched Selenium window
Let's write some tests? I picked a game I found on the ChoiceScript forumGuenevere. You can use any ChoiceScript game you want: Children of the Gods: The Hero TrialsThe Seven Heirs of Ophaesia, ${your_game_name}.

The main thing you need on the first step is the link to your game.
Fill the fields 'Command' and 'Target' in the Selenium IDE window:


You need to set 'Command' field to 'open' and 'target' to 'link to your game' like on the screen above. Now press the green arrow to launch your first test.


Your first test checks the ability of your game to show its start page.

Recording your actions


Let's add some transitions. Press the record button (red, top right corner). Selenium will start recording your actions. Time to play!


I am pressing random buttons, but you can plan your actions and record the most important or buggy way of playing your game. Press the red button again to stop recording.

Selenium is ready to reproduce recorded actions.

I switched the execution speed to 'slow' and pressed the green arrow button to perform my test:

It's alive!

I guess you understand that now you can actually create a test that goes through the entire game. You can write as many test cases as you want. You may notice a list of strange lines of text on the right side of the Selenium plugin window:


It's the list where you can find every command executed by Selenium. You can add your commands by 'recording' them or you can add them manually. 

Additional test cases


Let's add a command that checks the presence of a particular string on the screen:


Don't forget to save your test:



I described the simplest way to automate testing process of your choice-based interactive fiction.

Here is the list of useful resources:


That's all for now. 

Cheers.

Sunday, September 11, 2016

Combat system in Dark Forest: Reborn

'Well...that geyser of blood emanating from my chest is proof I have high blood pressure.'

'Unfortunately, his spine is now clearly visible from the front.'

Fallout   

This post is a demonstration of Dark Forest: Reborn combat system. Our system is unique and provides user with the 'do whatever you want and still get game reaction' experience

The world of Dark Forest: Reborn is cruel. You will face local conflicts with highwaymen, clashes of criminal groups and even war. Every event in the game tests your abilities. Will you be able to stay Human?

Let us pretend that misterious forces took your poor body and placed it on the battlefield. Your forces are carving towards the centre of enemy army through the infinite waves of mad savages. They surge forward and it seems their strength is infinite. Your rusty sword is the only weapon you have.


John had only one choice
What will you do? 

- You can try to run away.
- You can join friendly forces in their attack.
- You can try to hide.
- You can cry and ask for help.
- You can just wait and do nothing.
- ...


Every choice will give you additional choices. Your main task is to survive, but it is a really difficult task in the world where your allies are dead and the battle is lost. Let's try to help?


As you can see, you have freedom. Do you want to hit his head using your sword? No problem. His arm? Left or right leg? Yes! If you are strong enough, you can even finish him with a single fatal blow. 

Not enough strength? Try to use words or even so called 'green magic', a gift from high-tech civilization.
You should be fast. The world of Dark Forest: Reborn is a living world - your opponent will not wait for your actions and words, he will keep fighting and hitting you until your death.



Will you be able to protect your allies? Will you save your friends, or maybe your decision will be to kill yet another enemy general? Your glory is important as well: if you show yourself as a good warrior, you will gain reputation that will help you in future adventures.

You should understand your strong and weak skills and abilities. Plan your actions. Don't use everything you have on weak enemies. Save something special for their bosses!


Your energy and time are limited resources. Sometimes it's a really good idea to try to find your opponent's weak spots first.



More details about our combat system will be revealed soon. We're also going to discuss other ways of solving your problems in Dark Forest: Reborn. Smashing everything to pieces is fun, but sometimes you don't want or just can't do such things.

Thursday, September 8, 2016

Teaser of an upcoming Dark Forest: Reborn saturday announcement


Dark Forest: Reborn contains a lot of unusual and cool features that you won't find in any text-based game.

Here is the subset of our special strings for an upcoming Saturday announcement that will feature yet another unique game mechanics of Dark Forest: Reborn:

- This is your fatal mistake.
- Die, human fool!
- Your heart is mine!
- Blood! Your blood? Mine blood!
- Enjoy the last few seconds of your life...
- Blood and oblivion!
- I will loot your pathetic corpse!
- This is green magic! You can't!
- I can't see! You coward!
- My face! My eyes! Why!?
- Where are you? Help me! Help!

Basic set contains up to 1000 lines of text, and it's only the beginning.

// Subset given above is also an easter egg for those who love post apocalyptic games ;)

Wednesday, September 7, 2016

Laid Off from the Synesthesia Factory short review

I played hundreds of IF games and actually have something to say about every single one. Of course, you don't need too read every single trash texts that come out of my mind, so I am trying to post here only the most interesting reviews and funny examples I found.

My main focus during the analysis is gameplay, as always.


The fun fact about Laid Off from the Synesthesia Factory is that you can 'play' it without actually doing anything. Just take a look: (blue text is for input words that I type, green is an output of the game)

[Enter an individual word, a short phrase, or a command.]


> Hell

Your first thought: to check your computer. This is in fact your default thought; give it five years and it'll have your cortex and also your amygdala. "Thought" is the wrong word.  Something closer: anymore, your core creature drive.
The original creature drives: hunger, exhaustion, libido. And their modern replacements: refreshing, unplugging, FOMO.

Spoiler: it will display the same text for almost every input string.

[Enter an individual word, a short phrase, or a command.]

> Tomato

Your next thought: How you have managed such disarray in a week's span. You feel as if you have been dropped into a spot-the-difference picture, the kind from a children's whodunnit book, where you are expected to solve the mystery of how you murdered your life.

It didn't even display a typical 'can't parse this shit' error message. So, actually you will not even understand, is a response of this 'game' is a result of your input replics analysis, or is it just a flow of author's mind flying into your face.

> Super Tomato

Proverb from a dubious online repository: I'm A-OK; I dress au fait; I don't stay home like sad Henri.

Statements that apply to you: zero. Optimism: You could make the second apply right now. And the third will come in half an hour. And even the first, if tonight goes well.

> You are shrimp

You consider PR. The problem: to succeed in doing PR for others you must first prove you've succeeded in doing PR for yourself. You must turn all the glop that is you into a tantalizing direct-to-consumer product, call it Aspirational You. Aspirational You is something special. Aspirational You does not evaporate or sweat under heat; she solidifies, like a cake. If she were knifed the blade would come out clean.

Well, seems shrimp is a good nickname for PR folks. Did game manage to understand me? Or maybe it's parser failed? I have no idea.

I entered the word 'Tomato' ten times or so and the game calmly displayed it's content.

Of course I can play as a smart player, writing only things I notice in the game's output and it will probably give me some results, I can also read the instructions...but I don't want to do it. Regular player won't read any instructions. Regular player doesn't care - he/she sees an input field and starts typing immediately expecting good gameplay.

This is a really good demonstration of serious problem in game development. This kind of problem appears when your game pretends that it is smarter than it is. And there is nothing worse in gamedev than failed expectations of a player. To be an author of such game is like to be an unsuccessful magician.

// P. S. After my first attempt I read the rules and followed them. Game appeared to be quite good. It's writing deserves an additional prize.

Sunday, September 4, 2016

Notepad++ custom syntax highlighting tutorial (ChoiceScript example)


I recently noticed that it's not such a rare case when writers of IF (I mean writers, not software developers) use tools like ChoiceScript that have no decent (free) text editors. Those guys can produce 50000+ words per game and it's a pain for them to debug tons of pseudocode without any help from their text editors, even without such simple things like syntax highlighting. 

When I have no time to search for special software for editing texts or code, I use Notepad++.

This tutorial contains two parts:

1.) The first part in which you will just download and install my own style sheet for Notepad++

2.) The second part that will explain you how to create your own style. This part is based on the first one.

You can choose your way of completing this quest ;)

So, let's get started.

1.) Easy way.

1.1.) Download my style file.

1.2.) Open Notepad++ and go to 'Language'.



1.3.) Go to 'Define your own language'.



1.4.) Press 'Import...' button and choose my style file that you downloaded on the step 1.1.


1.5.) Go to 'Keywords List'



1.6.) If everything is okay, you will see something like this:



If everything is not okay...well, unlucky! Try to use the way of pros in the part 2 of this tutorial.

1.7.) Save installed style sheet (I used name 'test123').


1.8.) Choose installed stylesheet here.



1.9.) Your files with ChoiceScript code will look like this:






Congrats!

2.) The way of pros.

- Perform step 1.2 from the part 1: Open Notepad++ and go to 'Language' menu

- Perform step 1.3 from the part 1: Go to 'Define your own language'

- Skip step 1.4 and perform step 1.5: Go to 'Keywords List'

You will see this window with empty fields:



Please, refer to the image above for the additional instructions.
You can add as many ChoiceScript keywords as you want. Press 'Styler' buttons to setup keywords colors.

- Save your style sheet: check step 1.7.

Choose installed stylesheet: step 1.8. That's all!

I hope this mini-guide will help you. If something didn't work, leave a comment!