Just Adventure News : Addon: Endless Space: Disharmony will hit Steam on 26th of June Promotion: Her Interactive: Father's Day Weekend Sale Beta: Final Fantasy XIV: A Realm Reborn Beta Phase 3 Starts Today On PS3 & PC Press Release: First-ever early gameplay footage released for World of Diving Press Release: Master Reboot is now on Steam Greenlight! Press Release: MAGRUNNER DARK PULSE, a Lovecraftian screenshot and an exclusive early access Press Release: NeocoreGames Announces The Incredible Adventures of Van Helsing II Press Release: The Age Of Free-To-Play Has Dawned On Rift Gold: Jack Haunt - Pulp Mystery Point and Click Adventure released Press Release: DICE Heralds The Return Of Mirror's Edge
Home - Forum Home
Welcome Guest, please Login or Register!
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Topic: Text Adventures Programming

    Page 1

All Forums : [Adventure Games Forum] : Developers' Zone > Text Adventures Programming
22 DEC 2002 at 10:44am

psychomodo

Intergalactic Janitor
Intergalactic Janitor



Posts : 10
Joined: 22 DEC 2002

Status : Online
Do u know any sites that have tutorials and code about creating text adventures (IF) in C,C++ or pascal? I am basically interested in making the parser (user typing commands like LOOK and the game responding) It would be great if u could mail them to me at
psychomodo@operamail.com
Thanx..

If there is one thing u could say about mankind, there is nothing kind anout man&&------------------------------------------------------&&Tom Waits-Blood Money

Profile Search


22 DEC 2002 at 12:38pm

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
I'm not sending it by mail so you return to the forum and may participate in it


This is what I got. It's the homepage of an excellent parser that has extensive tutorials about designing text adventures and the parser itself. I remember there was a document that explained how the parser works. Also the sources of this interpreter can be downloaded and it's programmed in C++.
Be warned though that it's a great deal of job programming a parser from a scratch and there are some good ones for free already.
Hope that helps!

Z-Code Interpreter

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
22 DEC 2002 at 7:31pm

MichalN

Grand Inquisitor
Grand Inquisitor



Posts : 7058
Joined: 14 SEP 2003

Status : Online
While I probably wouldn't recommend it as a starting point for new development, the original Colossal Cave Adventure is available in source code (Fortran, C, Pascal and other languages too). That parser is simple but functional. The entire program isn't very complex at all (under 100K of C source).
I forgot my sig.

Profile Search
23 DEC 2002 at 2:43am

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
Well, I think that's a good starting point
Why do you think it's not? I remember the parser was very limited but it's fine to begin with. You can start with that and then add more complex functions like giving orders to characters, questions system, multiple orders in one single command, etc.

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
23 DEC 2002 at 3:15am

MichalN

Grand Inquisitor
Grand Inquisitor



Posts : 7058
Joined: 14 SEP 2003

Status : Online
Originally Posted By Rael (23 DEC 2002 2:43am)
Well, I think that's a good starting point
Why do you think it's not?

Because I'm sure there are better parsers available. Then again, it may be easier to start with something simple.
I forgot my sig.

Profile Search
27 DEC 2002 at 4:43pm

RootShell

Intergalactic Janitor
Intergalactic Janitor



Posts : 2
Joined: 27 DEC 2002

Status : Online
Man...

Drop all that languages and learn Inform or TADS, why re-invent the wheel? It's a losse of time...

Please try to write IF and not re-invent what has already be invented.

We need more games... not more games languages!

(just my thoughts)


RootShell&&&&

Profile Search
27 DEC 2002 at 5:02pm

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
Well, it's true that Inform and TADS are already awesome parsers but writing one from scratch would be a cool exercise in programming.
Maybe he is intending to add new ideas and more functionality in his new parser, something I encourage to do but, if he only intends to write IF, then I would strongly suggest learning the mentioned parsers.

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
27 DEC 2002 at 11:25pm

psychomodo

Intergalactic Janitor
Intergalactic Janitor



Posts : 10
Joined: 22 DEC 2002

Status : Online
Originally Posted By Rael (27 DEC 2002 5:01pm)
Well, it's true that Inform and TADS are already awesome parsers but writing one from scratch would be a cool exercise in programming.


This is what I had in mind at the first place..I found a .doc about Inform that explain several things about the parser which is nice. I would like to see some code of a parser even a lot more simple than Inform and TADS  to get some ideas

If there is one thing u could say about mankind, there is nothing kind anout man&&------------------------------------------------------&&Tom Waits-Blood Money

Profile Search
28 DEC 2002 at 12:07am

Agustín Cordes

Guild Master
Guild Master



Posts : 5696
Joined: 23 OCT 2002
Location: AR, Buenos Aires

Status : Offline
Originally Posted By psychomodo (27 DEC 2002 11:25pm)
This is what I had in mind at the first place..I found a .doc about Inform that explain several things about the parser which is nice. I would like to see some code of a parser even a lot more simple than Inform and TADS  to get some ideas

Follow Michal's advice then and get the source code of Colossal Cave - it's the best you can do!

Slightly Deranged - Cult Cinema And Games!

www.slightly-deranged.com


Profile Search
28 DEC 2002 at 12:24am

psychomodo

Intergalactic Janitor
Intergalactic Janitor



Posts : 10
Joined: 22 DEC 2002

Status : Online
From which URL?
If there is one thing u could say about mankind, there is nothing kind anout man&&------------------------------------------------------&&Tom Waits-Blood Money

Profile Search
28 DEC 2002 at 2:28am

MichalN

Grand Inquisitor
Grand Inquisitor



Posts : 7058
Joined: 14 SEP 2003

Status : Online
Originally Posted By psychomodo (28 DEC 2002 12:24am)
From which URL?

www.google.com - consider that your first task

I forgot my sig.

Profile Search


9 JAN 2003 at 6:58pm

Trumgottist

Intergalactic Janitor
Intergalactic Janitor



Posts : 55
Joined: 3 DEC 2002

Status : Online
Originally Posted By psychomodo (27 DEC 2002 11:25pm)

I found a .doc about Inform that explain several things about the parser which is nice.

Which doc was that? The z-machine specs? Then you should take a look at the Designer's Manual too. Between them you get plenty of details on how Inform does its parsing.

Profile Search
5 FEB 2003 at 10:32pm

Elfstone

Guild Master
Guild Master



Posts : 5892
Joined: 4 NOV 2002

Status : Online
Yes, the Designer's Manual tells you pretty much all you have to know about Inform and how the parser works.
There is a complete set of rules in one chapter which gives you a good idea about the world model.
[b]playing[/b]: Destination Treasure Island (done in two sittings, but it's nice), Syberia (ho-hum), Dracula: Last Sanctuary (on hold)&&[b]reading[/b]: even more study papers&&[b]listening to[/b]: [url=http://www.last.fm/user/Brax82/]this and that[/url], plus [url=http://www.musicovery.com/]Musicovery[/url]&&[b]TV favorites[/b]: (currently) Pushing Daisies, Chuck, Journeyman (cancelled! grrr...), Heroes&&
all-time) 24, Stargate SG1, X-Files, Lost, House

Profile Search
15 MAR 2003 at 6:58am

Spyros

Intergalactic Janitor
Intergalactic Janitor



Posts : 3
Joined: 14 MAR 2003

Status : Online
I got an old DOS program "Adventure Writer" that lets you create simple text adventure games. If you want it I can mail it to you.

Profile Search
15 MAR 2003 at 7:23am

Stammer

Guild Master
Guild Master



Posts : 3894
Joined: 5 JAN 2003

Status : Online
At lease I want it

Resistance is not futile, we're gonna win this thing, humankind is too good, we're not a bunch of under-achievers! We're gonna stand up, and we're gonna be human beings. We're going to get fired up about the real things, the things that matter! Creativity, and the dynamic human spirit that refuses to submit.

Profile Search
All Forums : [Adventure Games Forum] : Developers' Zone > Text Adventures Programming

    Page 1

Jump to:
0 Members Subscribed To This Topic