Shartak is a browser-based RPG that dates back to 2005.
Plans are underway to update the code, rework the interface and potentially make some, perhaps all, of the source available. Whether those plans will actually come to anything remain to be seen.
- can be found at http://www.shartak.com/
- is written using Perl and runs on Apache with mod_perl and MySQL
- was partially reworked to use multi-character accounts back in 2009 ("v2")
- will still be written in Perl but using the Catalyst framework as a standalone application
- will use DBIx::Class
- will use MySQL but hopefully also handle PostgresQL or SQLite as a database
- will have a better User Interface
- will make more use of Javascript
- will handle most of the original urls and redirect to the new ones (e.g /profile.cgi?id=6 would redirect to /profile/6 or whatever the new character profile page is) so that links within the wiki, forum etc continue to work.
- is based on RPGCat from https://github.com/reanimatedprojects/rpgcat
Catalyst based RPG framework
The aim of this application is to serve as a fairly functional base to design your own Browser based RPG. It probably won't be fancy but we hope there is enough to get a basic game up and running quite fast. The actual content (the map for example) is left for you to provide!
This works best if you install a local version of Perl and all associated modules. This can be done as follows:
curl -L https://install.perlbrew.pl | bash
source ~/perl5/perlbrew/etc/bashrc
perlbrew install perl-5.20.1
perlbrew switch perl-5.20.1
perlbrew install-cpanm
cpanm Catalyst::Devel
This next command should output 1.39 (or something more recent)
perl -MCatalyst::Devel -e 'print "$Catalyst::Devel::VERSION\n";'
In github, fork the main rpgwnn/rpgcat repository into your personal repository and clone your repository and install any extra Perl dependencies.
cd ~
git clone [email protected]:YOURUSER/rpgcat.git
cd ~/rpgcat
cpanm --installdeps .
To keep your version in sync with the main repository, configure the upstream repository
git remote add upstream https://github.com/rpgwnn/rpgcat.git
and merge in changes from upstream/master. Full instructions can be found at https://help.github.com/articles/syncing-a-fork/
git fetch upstream
git merge upstream/master
To run the application for development purposes, use the following command:
script/rpgcat_server.pl -r -d --fork
If you don't use --fork, it'll only run a single thread which will cause simultaneous requests to hang until the previous request has finished.
-r causes the server to monitor Perl modules and automatically reload if there are any changes detected.
-d enables debug output which includes timings, headers, etc.
Hopefully your final application will work on PaaS such as Heroku and Flynn without too many changes required.
This program is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
b) the "Artistic License" version 2 which comes with this program.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
You should have received a copy of the Artistic License with this program in the file named "LICENSES/Artistic-2_0". If not, please visit http://www.perlfoundation.org/artistic_license_2_0
You should also have received a copy of the GNU General Public License along with this program in the file named "LICENSES/Copying". If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or visit their web page on the internet at http://www.gnu.org/copyleft/gpl.html