|
|
I Want To Create A PHP Text Based Web Game | ||
Discussion by kc8ual with 24 Replies.
Last Update: December 4, 2010, 4:54 pm | |||
![]() |
|
|
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)
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.
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.
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
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
This is a example.
CODE
<?phpecho 'Hello World';
?>
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??
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.
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!
i think that you should start creating your game,and learn in the mean time...
i did first web page only with
CODE
<phpprint '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
He will probably get 23 replies someday. However, today, he only has 12 replies, my own one being not a real 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
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 lolGood 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
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?
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.
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.
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!
QUOTE (GJoe)
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.
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!
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
phpmysql_query("SELECT * FROM items WHERE userid=1515");
The inventory system is coming soon so keep an eye out for it.
Similar Topics:
Which Is The Best Squad Based Game?
New Text Based Game Maker
Help With Making A Textbased Game
C++ Game Programming Books For Beginners? (8)
|
(42) Site To Create Your Own MMORPGs
|
HOME 






