Page 1 of 2

Introducing the Wiki-Based-RPG

Posted: Fri Jul 27, 2012 9:30 am
by Germanunkol
Edit: For newest version, see this post:
----------------------------------------------------------------------------------------------------------------------------------------

Hi,

I'd like to introduce one of the craziest games I've ever created, the Wiki-Based-RPG. Gameplay is very experimental! .love file has been attached.

Image

The WB-RPG features primates, castles, swords, spaceships and cathedrals. And Olympia, and physics. And everything else that Wikipedia has an Article for, really.

Image

One player is the storyteller (server) and up to for heroes join his story (clients). The server writes the story and the clients reply by doing actions, saying stuff or using things from their inventory. (It's multiplayer only!)
The game randomly chooses wiki-internal-links from Wikipedia articles. The server must choose one of these words and use it in the story. Then this word is again looked up on Wikipedia and, again, random words are chosen from the new article.
This way a story goes through the realms of Wikipedia, and every story is guaranteed to be unique and usually crazy.
It can be modded to be played with pretty much any Wiki out there...

For the full story, how to play and an example story, check out the article on IndieDB: http://www.indiedb.com/games/wiki-based ... -based-rpg

Image

You can play on one PC, if you simply start a server and then connect the client using "localhost" as the IP.

Get the game from IndieDB: [Edit] I also attached the .love file below!
Win, 32 bit:
Image
Win, 64 bit:
Image
Linux, Mac, Source:
Image


The game is of course open source, you can extract the .love and do whatever you want with it. You can also get the code from github.
Disclaimer: This is my first larger Lua/Löve project, so bear with me and my horrible code.

Technical details: For those interested, I use the Lua socket's http and tcp features. The first to download wiki articles from the web and the second to connect the servers and clients. Especially the http feature was very straight forward and pretty simple/fun to implement.

I'd be very happy to get some c&c!

Re: Introducing the Wiki-Based-RPG

Posted: Sat Jul 28, 2012 3:22 pm
by dreadkillz
Wow this game is really out there. Will try!

Re: Introducing the Wiki-Based-RPG

Posted: Sat Jul 28, 2012 7:47 pm
by Inny
Ti01q.png
Ti01q.png (105.57 KiB) Viewed 671 times
I want to pretend I know what I'm doing.

By the by, could you upload a .love file directly to this forum? I had to go through five pages of "downloading starting in..." before I actually got to the zip file.

Re: Introducing the Wiki-Based-RPG

Posted: Sun Jul 29, 2012 9:39 am
by Germanunkol
Haha, Inny, it seems like you're getting the hang of it,yes :)

I attached the .love file.

A question though:
When using the .love file, the Help files are not found. They're inside a subfolder of the Archive, "Help/main.txt" etc.
In the code, I try to open them like this:

Code: Select all

	local helpFile = io.open( "Help/main.txt", "r" )  -- unix
	if not helpFile then
		helpFile = io.open( "Help\\main.txt", "r" )  -- win
	end
	if helpFile then
		helpString = helpFile:read( "*all" )
		helpFile:close()
	end
This works fine in the source version, but as soon as I pack it, the file can no longer be opened. It probably searches for the help folder outside the directory?
It doesn't even work when I move them to the .love's main directory, nor anywhere else in the .love.

How can I open files from within the Help subfolder of the .love archive?


Edit: Sorry, I found out myself. I have to use love.filesystem instead of Lua's io.open functions. I'm updating the .love file above. May take a while though, the connection is really slow right now.

Re: Introducing the Wiki-Based-RPG

Posted: Sun Aug 05, 2012 8:34 am
by Germanunkol
Hi,

I finally managed to upload the file. I was away from home for a while, and it hadn't worked before because I had accidentally packed the work folder, which was larger than the size limit on the forums.
My bad.
The .love is now attached to the first post.

Also, the game was mentioned on indiegames.org. Check out the post here.
After that, I got three times the downloads on indieDB (I'm past 1000 downloads now)... Yay!

Re: Introducing the Wiki-Based-RPG

Posted: Sun Aug 05, 2012 12:47 pm
by Nixola
Is there anyone who wants to try it with me? I'm tired of trying it on my own

Re: Introducing the Wiki-Based-RPG

Posted: Sun Aug 05, 2012 9:57 pm
by Nixola
I'm playing it with a friend, he thought of a "/give" client command sinse he had to give an item he had to a robot
I'd also like a way to import an exported story, since that friend will have to leave soon and we want to continue that story
EDIT: Sorry for the double post, I just noticed the last one was mine :oops:

Re: Introducing the Wiki-Based-RPG

Posted: Mon Aug 06, 2012 7:00 am
by Germanunkol
Importing is a good idea!
I might add that, though it'll be quite a bit of work.
I don't know about the give command.
One can always write:
/do gives the item to the robot /use 1 robot
which should work well enough. If I start adding a give command like that, I'd also have to add other verbs as commands, pretty much anything you can do with an item (which is a lot).

But I do like the importing Idea...

Re: Introducing the Wiki-Based-RPG

Posted: Mon Aug 06, 2012 8:19 am
by Nixola
What if he had to give the item to another player?

You can find that story here, it's daily updated: http://firepx.altervista.org/WikiRPG/Ian-Nix.html

Whenever you see \n you have to consider it as a new line, I don't have a way to do that as server

EDIT: I know we didn't continue the story yesterday, we're continuing it right now

Re: Introducing the Wiki-Based-RPG

Posted: Tue Aug 07, 2012 8:41 am
by Robin
ISO 13407 wrote:The only conspiracy I know something about is the LOVE conspiracy
Haha, nice.