The original IdleRPG sources (see http://idlerpg.net) unfortunately use several PHP shorttags and many application entry points due the age of the original IdleRPG. In an effort to tackle the future, Darkmyst have tried to make a version of the IdleRPG web frontend that has the same functionality as the old frontend, but uses no short-tags, does not mix HTML and PHP code outside of views, and uses object hydration to make IdleRPG's data more accessible everywhere within the application.
The sources you see here are a first sloppy attempt at that - please feel free to fork the source as necessary and adjust it to something less catastrophic.
- a map file (PNG format)
- PHP GD (for world maps)
- Apache with
mod_rewrite
If you don't have a PNG map file, you can use the original IdleRPG map (see http://idlerpg.net/worldmap.php) or create one from scratch. If you do create one from scratch, note that the labels on the map will need to be roughly in the same place as in the original, unless you also change the events file of your IdleRPG bot - the IdleRPG bot will generate quests that refer to the places (and their approximate coordinations) on the map.
- Clone into a web directory on your server.
cp config.ini.dist config.ini
- Adjust contents of
config.ini
- That's probably it. Enjoy!
You can find a live example of this code at https://idlerpg.darkmyst.org/.
Please join #dataclaw
on irc.darkmyst.org
if you want assistance with this code in particular - #dataclaw
is primarily an OOC channel for roleplayers, but the person who hacked this source code together hangs out there as well and if online at all is very happy to help you out. :o)
Yep! That's why we put this onto GitHub. It's genuinely just meant to be a slight improvement over the original code. It's not like the idea is ours, or anything like that. This is just our way of saying thanks for IdleRPG.