## Introducing the Wiki-Based-RPG

Show off your games, demos and other (playable) creations.
Germanunkol
Party member
Posts: 706
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

### Introducing the Wiki-Based-RPG

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.

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

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

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:  I also attached the .love file below!
Win, 32 bit:

Win, 64 bit:

Linux, Mac, Source:

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!
Last edited by Germanunkol on Sat Sep 08, 2012 8:28 am, edited 4 times in total.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de

Party member
Posts: 223
Joined: Sun Mar 04, 2012 2:04 pm
Location: USA

### Re: Introducing the Wiki-Based-RPG

Wow this game is really out there. Will try!

Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

### Re: Introducing the Wiki-Based-RPG

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.

Germanunkol
Party member
Posts: 706
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

### Re: Introducing the Wiki-Based-RPG

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
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.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de

Germanunkol
Party member
Posts: 706
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

### Re: Introducing the Wiki-Based-RPG

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.
The .love is now attached to the first post.

Also, the game was mentioned on indiegames.org. Check out the post here.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de

Nixola
Inner party member
Posts: 1940
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

### Re: Introducing the Wiki-Based-RPG

Is there anyone who wants to try it with me? I'm tired of trying it on my own
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
li = love.image
lg = love.graphics

Nixola
Inner party member
Posts: 1940
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

### Re: Introducing the Wiki-Based-RPG

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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
li = love.image
lg = love.graphics

Germanunkol
Party member
Posts: 706
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

### Re: Introducing the Wiki-Based-RPG

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...
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de

Nixola
Inner party member
Posts: 1940
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

### Re: Introducing the Wiki-Based-RPG

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
Last edited by Nixola on Wed Aug 08, 2012 8:04 pm, edited 1 time in total.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
li = love.image
lg = love.graphics

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: Introducing the Wiki-Based-RPG

ISO 13407 wrote:The only conspiracy I know something about is the LOVE conspiracy
Haha, nice.