Loading...


bookmark - I Want To Create A PHP Text Based Web Game

I Want To Create A PHP Text Based Web Game

 
 Discussion by kc8ual with 24 Replies.
 Last Update: December 4, 2010, 4:54 pm
 
bookmark - I Want To Create A PHP Text Based Web Game  
Quickly Post to I Want To Create A PHP Text Based Web Game  w/o signup Share Info about I Want To Create A PHP Text Based Web Game  using Facebook, Twitter etc. email your friend about I Want To Create A PHP Text Based Web Game Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

I am new to programming and although HTML and it's similar forms I already know, I would like to learn PHP but I have no clue where to start.

I have been playing this game online for over a year now, and I have yet to find anything similar, so I want to take a jab at creating it. The game is Kings of Chaos and in my mind it just rocks, but when you only get 1 turn every 30 minutes the time between turns i get bored and have tried several other game that are similar but they in no way caompare, if anything they look like hacked up copies of KoC and with lots of bugs too.

I would like to try to make my own game similar in the general format but my own style and ideas and and well in no way shape or form similar to the game other than the way in which you interact with it. I know this sounds confusing but I am hopeing that someone can understand what I am trying to say and maybe point me into the right direction to start my quest.

Thanks in advaced,
Nick

Please feel free to email me at bwb@europe.com
(this is my spam mail account but i check it regularly and use it on forums so that i don't have to worry about spam in my main account)

   Thu Mar 30, 2006    Reply         

Seeing as your interest in making a huge interactive text game, i believe starting out with PhP/MYsql combination would set you on the right track the fastest. Let's see, to get the hang of PhP i erally recommend this tutorial.

It gives a prime look at PhP and it has a section on MySQL as well. Starting out with that, i believe you might just get to programming a text-based web game.

Good luck with your programming.

(i will also be able to help out with some stuff if you ask me)

The things that will be hard, is how to test the things without a remote host... I recommend you get Bizzar server if you are running windows 2K/XP as it is great, and runs Apache/PhP/mysql and comes with the PhPMyAdmin tool.





   Thu Mar 30, 2006    Reply         

QUOTE (kc8ual)


I would like to try to make my own game similar in the general format but my own style and ideas and and well in no way shape or form similar to the game other than the way in which you interact with it. I know this sounds confusing but I am hopeing that someone can understand what I am trying to say and maybe point me into the right direction to start my quest.

Link: view Post: 74198


Well, first of all, you can go to where frenz pointed and learn PHP/MySQL. From what you said, it seems like you have a general idea of how you want the game to be and all that, but it is always good to put it in writing and have a design document. That way, may be more than one can work on it and it would result in a game with richer experience.

If you are interested, I would be happy to put in some of my thoughts, if you already have a game design in your mind.

   Thu Mar 30, 2006    Reply         


Juat use phpbb with ADR. www.phpbb.com and www.adr-support.com is the way to go. You don't really need to know much about php or sql but it helps. It's quite easy, really. The installation is the hardest part but that's just getting the hang of things. PHPBB is for sure the best route though, no matter what type of rpg you want.

   Thu Apr 27, 2006    Reply         

I used to play Kings of Chaos, but only for a few months then it became too repetitive. ADR is useless for Kings of Chaos I presume. Just learn PHP and start experimenting and you should be able to make the game in a few months.

   Thu Apr 27, 2006    Reply         

FUN Text Based RPG!
I Want To Create A PHP Text Based Web Game

If you like roll playing games, I have enjoyed playing Awakened Lands. Many ins and outs to the game, and it is always changing, as opposed to 'resets'.

The community is great. Check it out. (or not) ;)

Awakenedlands.Com

-reply by AL Addicted

   Sat May 17, 2008    Reply         


more advanced phpI Want To Create A PHP Text Based Web Game

I would also like to leanr more about this to have a go at something simply like Dragons Kingdom - I do know some PHP programming, but I just keep coming across the same old basic stuff like the one linked to in the old post by frenz. Does anyone know where I might some more advanced PHP tutorial, even better if they're aimed and making games?

-reply by Claudia

   Fri May 15, 2009    Reply         

hey guys, do you know facebook or have you heard about mafia wars? it's a text based online game in facebook. we have proposed a game similar to it for out thesis project and we have very little idea on how to create it. Our proposal is a more educational version of the mafia wars. Please help.. thanks.. :(

   Fri Jul 17, 2009    Reply         

Hey. There is a good tutorial at http://w3schools.com/php/.
This is a example.

CODE

<?php
echo 'Hello World';
?>

   Mon Oct 5, 2009    Reply         

Sports Text based app for facebook I Want To Create A PHP Text Based Web Game

http://apps.Facebook.Com/premierfootball/ here is the game I want it like but I have no idea how to make one could someone help please??

   Fri Feb 19, 2010    Reply         

PHP text based web game...I'm not sure about Kings of Chaos; that's the first time I've heard of that one, but look up Tribal Wars (tribalwars.net) for another alternative suggestion to this. In case you haven't heard of it, it's a game where you and other players join and fight each other. I would also say that a MMORPGs (multi-player games) are much more difficult to create.

I would have to rate myself with you, kc8ual, that I am just beginning on PHP (although it comes very easy for me since it's nearly a mix between HTML and JavaScript). It also helps when you can understand SQL and programming logic as well...good luck with that endeavor. I have faith you could do it, but I think in the end you will find this a big more daunting of a task to create on your own than you expected it to be.

   Sun Feb 21, 2010    Reply         

The reason I started learning php and mysql was to also create my own text game, but I have to warn you it took a good few weeks of study before I was able to take on such a large project. The best starting point is an online tutorial called PHP 101 (http://devzone.zend.com/article/627) It's probably the best tutorial I've ever come across. Also before rushing off and getting a web hosting account it would probably be best just to setup Apache, PHP and MySQL on your own computer first, makes it easier to test your scripts.

I'm in the middle of making my own text-based MMORPG at the minute, but believe me, it's a MASSIVE project. I really should get some help in but I'm stubborn like that lol

Good luck!

   Sun Feb 21, 2010    Reply         

He only has 1 post and he already got 23 replies....wow...
i think that you should start creating your game,and learn in the mean time...

i did first web page only with

CODE

<php
print 'Welcome';
?>


and than i downloaded some game scripts which i rewrote...
after that game was running fine until i had no time running it...
i stopped,and now i have nothing except my scripts....my sql database is gone... i contacted my host,but they don't have backups back to 2007/08 when i hosted there...now i am looking at scripts and trying to rewrite my database...;)
you should always backup scripts AND databases ;)

Thanks...Eggie

   Sun Feb 21, 2010    Reply         

QUOTE (Eggie)

He only has 1 post and he already got 23 replies....wow...
Link: view Post: 145167

He will probably get 23 replies someday. However, today, he only has 12 replies, my own one being not a real reply.

   Sun Feb 21, 2010    Reply         

QUOTE (yordan)

He will probably get 23 replies someday. However, today, he only has 12 replies, my own one being not a real reply.
Link: view Post: 145168

yeah,sorry i misread...
it is nice that people here are willing to help,afterall they are getting MyCents for it,so who wouldn't,i think that there are many people who don't know that this kind of getting "money" is around...why don't we get more people here ;)

Thanks...Eggie

   Sun Feb 21, 2010    Reply         

QUOTE (8ennett)

Also before rushing off and getting a web hosting account it would probably be best just to setup Apache, PHP and MySQL on your own computer first, makes it easier to test your scripts.
Link: view Post: 145163


WampServer (or XAMPP) is what you will want for this. Read more on the [a="http://www.astahost.com/Important-Basics-PHP-MySQL-t12198.html"]Important: Basics Of Using PHP And MySQL[/a]

QUOTE (8ennett)

I'm in the middle of making my own text-based MMORPG at the minute, but believe me, it's a MASSIVE project. I really should get some help in but I'm stubborn like that lol

Good luck!
Link: view Post: 145163


The two of you ought to collaborate on this if you're both heading for the same goad and both need assistance.


Oh, and 23 replies isn't as far off now as it was before ;).

   Mon Feb 22, 2010    Reply         

QUOTE (Jonnyabc)

WampServer (or XAMPP) is what you will want for this. Read more on the [a="http://www.astahost.com/Important-Basics-PHP-MySQL-t12198.html"]Important: Basics Of Using PHP And MySQL[/a]
Link: view Post: 145173


Urgh no, Xampp is horrible. It's really just a tool for people who are complete novices at setting up server technology and have no wish to learn further about REAL server configuration. I know many people who use Xampp and are all just web development pretenders. If you want to do it right then you set it all up on a Linux machine and configure the entire lot yourself, not some pre-compiled garbage package!

Well, that's my thoughts on Xampp anyway, any takers?

   Mon Feb 22, 2010    Reply         

About using WampServer or Xampp, I agree that people who use it, really don't know a lot about setting up everything one by one, by installing and configuring Apache, MySQL and PHP.

But when working locally, it's sometimes is just a waste of time, on localhost I don't need anything more than just Wampserver or Xampp, especially on a Windows machine, it's usually pre-configured very well and it saves time, whenever you're reinstalling your OS or installing a virtual machine, I was fed-up with doing it all over again, or while updating, it also was just a waste of time, you can just use Wampserver or Xampp.

But what is funny, there are a lot of tutorials step by step how to install a server locally, but people have problems, also people have problems installing Wampserver or Xampp too, even though all you need is to click next next next..

I remember I used to have a lot of problems with PHP4 on Windows machine, due to my server was a Linux one, but eventually I moved to MySQL all the way and practically don't use files and try to do everything that it would work on any machine. Sometimes it's good to check it somewhere in your script which OS is the script running on. ;)

   Tue Feb 23, 2010    Reply         

MySQL Database Inventory QuestionI Want To Create A PHP Text Based Web Game

hey guys, I've been coding a web-based text-rpg lately using javascript/jquery/php/MySQL andI have a question on how to best do something.

 I guess the question mostly has to do with mysql database setup. I have a table in my database called Players and in this the fields are userName, password, health, energy, strength, money...And so on..

Anyway, now I need every player to have an "Inventory", I can't have "Inventory" be a field in players, as each Inventory field will need to have multiple values (all weapons/items/stuff) that each player owns. My question is what would be the best way to do this database-wise? Will I need to create an Inventory_PlayerID table for every single player that registers? It seems like there should be an easier way to do it. Any insight will be appreciated.

   Fri Aug 6, 2010    Reply         

Its not....I Want To Create A PHP Text Based Web Game

Do you mean like SIMs? As I am also doing something like that but animal based. PHP is usually used as it is dynamic and it doesn't stay the same ! For example, users, they are all different, like ID, it always goes up and PHP changes all the pages with the user or animal, ect. So to make dynamic pages, use PHP. Use HTML and CSS for some bits and bobs and perhaps JavaScript. If I was you I would PM an admin on a SIM or text based game, and ask them what language they used.

And remember this requires deep pockets and time. Its not going to be done within a month, it'll be done perhaps in a few years, so be prepared ;D And good luck!

-reply by Subby

   Thu Aug 19, 2010    Reply         

QUOTE (GJoe)

MySQL Database Inventory Question
I Want To Create A PHP Text Based Web Game

hey guys, I've been coding a web-based text-rpg lately using javascript/jquery/php/MySQL andI have a question on how to best do something.

I guess the question mostly has to do with mysql database setup. I have a table in my database called Players and in this the fields are userName, password, health, energy, strength, money...And so on..

Anyway, now I need every player to have an "Inventory", I can't have "Inventory" be a field in players, as each Inventory field will need to have multiple values (all weapons/items/stuff) that each player owns. My question is what would be the best way to do this database-wise? Will I need to create an Inventory_PlayerID table for every single player that registers? It seems like there should be an easier way to do it. Any insight will be appreciated.
Link: view Post: 147811


I had a hard time deciding on my inventory system, but I found the following to be the best way.

Decide on the size you want a users inventory to be and create a new table called inventory with the rows ID, USER, ITEM. In your php select all their inventory SELECT * FROM INVENTORY WHERE user=USERID, to get the amount of inventory slots used use mysql_num_rows(QUERY) so:

CODE

$invsize = 10;
if (mysql_num_rows(mysql_query("SELECT * FROM INVENTORY WHERE user=USERID")) < $invsize){
echo 'You still have inventory space';
}
else {
echo 'Your inventory is full!';
}


Hope that helps you!

   Thu Aug 19, 2010    Reply         

Trust 8ennett hes a pro at this stuff lol, yes it's very hard to start off making games and i have to say that mccodes is just horrible i hate it its impossible to do anything decent with it and anyways 8ennet has started releasing a tut so i would go check his out

   Thu Aug 26, 2010    Reply         

QUOTE (8ennett)

I had a hard time deciding on my inventory system, but I found the following to be the best way.

Decide on the size you want a users inventory to be and create a new table called inventory with the rows ID, USER, ITEM. In your php select all their inventory SELECT * FROM INVENTORY WHERE user=USERID, to get the amount of inventory slots used use mysql_num_rows(QUERY) so:

CODE

$invsize = 10;
if (mysql_num_rows(mysql_query("SELECT * FROM INVENTORY WHERE user=USERID")) < $invsize){
echo 'You still have inventory space';
}
else {
echo 'Your inventory is full!';
}


Hope that helps you!
Link: view Post: 147983

This might be the best way to implement an inventory system. You can also make a friend system this way.

But for inventory, you should have a table for users and a table for items (by ID). Then you create a new table named inventory or something, with an ID column, then USERID (foreign to the userid column in user table) and itemid (foreign to the itemid column in the item table).

Then if you want to retrieve the inventory for user 1515, you just query the table items like this:

CODE

php
mysql_query("SELECT * FROM items WHERE userid=1515");

   Sun Sep 12, 2010    Reply         

If you want an example of a working inventory system, i'll be showing you in-depth how to construct one in my latest series of tutorials where by the end of them you will have a fully functioning text based web game.

The inventory system is coming soon so keep an eye out for it.

   Sun Sep 12, 2010    Reply         

I want to create my own game too. But not text game. Just a number game. Could it be simpler? Is there a place to download a basic script to work on?

   Sat Dec 4, 2010    Reply         

Quickly Post to I Want To Create A PHP Text Based Web Game  w/o signup Share Info about I Want To Create A PHP Text Based Web Game  using Facebook, Twitter etc. email your friend about I Want To Create A PHP Text Based Web Game Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Which Is The Best Squad Based Game?

i think that the conflict series was the best but Full Spectrum Warrior is the most realistic ...more

   25-Apr-2005    Reply         

New Text Based Game Maker

Hello everyone, I just wanted to stop by and invite you all to try out my new Text Based Game Engine I am currently developing. The engine is being released for free with the source code distributed along with the engine. The game engine is called the TBG Engine Suite and will run text based games o ...more

   13-Jan-2007    Reply         

Help With Making A Textbased Game

hey i really want to make a web text based game like www.hattrick.org i really want it and i have a host .... i want to know where i can find a tutorial for it or what programs i need to use and.... plz help me thanks ...more

   02-Jul-2008    Reply         

C++ Game Programming Books For Beginners?    C++ Game Programming Books For Beginners? (8) (42) Site To Create Your Own MMORPGs   Site To Create Your Own MMORPGs