Giter Club home page Giter Club logo

webrpg's Introduction

webrpg

a simple Online RPG for PHP newbies. The goal of the project is to see if it is possible to create an RPG with simple sourcecode.

installation

  1. download the script from github
  2. unzip eg in C:\webrpg
  3. a) start php built-in webserver

php -S localhost:8080 -t C:\webrpg\public

or define the folder public as document root

b) change the path to your local php.exe in local-server.bat and run the local-server.bat

  1. copy config/database.example.php to config/database.php
  2. create a database and import the install.sql
  3. apply the database configs
  4. open http://localhost:8080 click on "create dummy user" button
  5. login

#contribute

Please check the issues

webrpg's People

Contributors

blackscorp avatar dc-magnus avatar maller86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webrpg's Issues

registration page

we have a link to a registration page, but there is no registration form, we need one, email activation is not required tho

No Login

Successfully created user test with password test when clicking on Create User Dummy.

However nothing happens when I login with details.
U: test
P: test

Something stupid

Hey guy,

there is something stupid. I like this type of programming but you has a critical bug inside your game.

If a character stands on a position like 5/5 and a map is changed, the character stands on the new map on the same position. This is not the right way. I think you must be check the map and save the type of map where char is standing.

bildschirmfoto 2019-01-10 um 13 46 49

Receiving 404 error

Sessions,
Database all working.
but I receive a 404 error when pressing creating dummy user

XAMPP easy running

Enable the possibility to let the project run on XAMPP and co.

Best case scenario, just copy the folder content into htdocs/webrpg and by opening localhost/webrpg everything should work

Testing

Using MySQL there was a few errors like index length greater than 1000..
Changed
username varchar(112) NOT NULL,
password varchar(254) NOT NULL,
email varchar(112) NOT NULL,

Username and Email to 112 to suit.

Also Receiving many errors that,

Parse error: syntax error, unexpected '[' in ipg.brcadmin/webrpg/source/functions.php on line 59

Parse error: syntax error, unexpected '[' in /hermes/bosnaweb17a/b633/ipg.brcadmin/webrpg/source/bootstrap.php on line 25
& each of the basic events..

Layout

The Bootstrap theme doesn't look like a game.

something similar to this http://lpc.opengameart.org/ would be awesome maybe anyone will provide a nice layout?

newCharacter

Issue 4 is still happening..

On new character creation.
I can input name.
choose a class, but when i press select. Nothing.

webrpg.brissyriders.com/index.php
u: test
p: test

Event constants

It would be nice to have constants for events so i dont have to remember everytime the name of the event

logging

we need a logging function to log runtime information + error logs

logInfo($message,$context);
logError($message,$context);

and so on, according to PSR-0 ofc

Add gettext to error messages

there are many error messages which are not passed through gettext function, we have to translate error messages as well later on

On log in

I hope you don't me posting the errors I get as i see them.

On login for test I get error in header

Something went wrong, got exception with message 'Undefined offset: 0'
Array
(
[character] =>
[characters] => Array
(
)

)

This is before character create.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.