tag:blogger.com,1999:blog-505451803840494512009-02-20T21:38:10.134-08:00PBBG Tutorial<p align="center">Step-by-step tutorial on creating a PBBG</p>Richardnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-50545180384049451.post-87960871757973460252009-02-01T08:31:00.000-08:002009-02-01T08:32:45.280-08:00Found a homecheck it out here <a href="http://www.wdxdesign.com/ls/ebook">Introduction to PBBG</a><br />for the time being it will be open to all. Later I may incorporate a login (as long as the publisher is ok we'll see).<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-8796087175797346025?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-74422715196079793412009-01-30T05:50:00.000-08:002009-01-30T06:31:18.935-08:00Cause of delayHi all, ok. there are TWO reasons for delay<br /><br />small reason: blogger.com is HORRIBLE at allowing me to post source code (without having to modify the html, which is just annoying). So am currently thinking of where would be most convient to continue the tutorial.<br /><br />B I G R E A S O N<br />I STOPED to finish the game. While a little buggy, it can be checked out here<br />http://www.wdxdesign.com/ls<br />I have a few goofy bugs Im cleaning up but its done for the most part.<br /><br />That will be what the tutorial is on. Yes I know my original idea was a fantasy based, but seeing so many of them I decided to take an alternate route. Plus this program encompasses all aspects of php programming which I feel is good to bite your teeth on.<br /><br />Thank you for those that have emailed me requesting the source code. It is NOT available. Sorry. Many many hours have gone into this (over 35+ pages and 10,000 lines of code so its compact and effecient). This tutorial will show you how to build it. We all know it will spread once its downloaded, so I think its best if YOU write it, then spread it around. However, you'll find that when your done, you'll have quite a bit of pride in what you created and may not be so quick to share it either. So with that in mind -<br /><br />FAQ for source code:<br /><br /><ol><li>I don't want to sell it!<sup>1</sup> (due to piracy)</li><li>If you just HAVE to have it, $249.00<sup>2</sup> - so it by some "mysterious" way it ends up all over the net, there is at least some compensation.</li><li>If you have the "WTF!!" attitude see FAQ #1</li></ol>Bottom line, don't ask.<br /><br /><span style="font-weight: bold;">ABOUT THE GAME</span><br />Ok, as mentioned, I did not want to make a fantasy since there were too many already, and it seemed the top PBBG's were mobster type or money type, So I came up with this:<br />Takes place in the future (post apocalyptic).<br /><ul><li>Players move about scrounging for possible good items, from car and machinery parts, jewelry to rare clothing in good condition.</li><li>Sell items to various stores in the area. If not satisfied with the offer, players can haggle. If the haggle fails, players are flaged at that store. More than 5 flags and player is banned (this is set by the webmaster).</li><li>Players can train their stats for improvement with the money they get.</li></ul>check here http://wdxdesign.com/ls/help.php for more instructions about the game.<br />Bear in mind at the time of this witting there are a few bugs I'm squishing, wont take long.<br />(NOTE: this is not the final version, just for display purposes, so anyone can log on and explore it, but as you can see its very close)<br /><br /><hr /><br /><sup><i>1. Some exceptions<br />2. When I created this, I made an installer so it would be easy for me to test it on different servers. So those of you who want to get the source, it will come with the installer. There is a disclaimer you'll have to agree to as well. Also as I update the files, you'll get the updated ones as well.<br /></i><br /></sup><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-7442271519607979341?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-60126912756125639522009-01-01T00:04:00.000-08:002009-01-01T00:16:01.253-08:00Still Here pt2Happy New Year!!!<br />Well I'm revamping all of the mmo site. For those of you who may be wondering "... why not post the completed mmo for demo'ing?" reason: I gave my Tower System to my son to give to my youngest, and of course out of excitement, tore into it and replaced it all with his "cool" software. It wasnt until after a bit writing here I reaslized the reason I was unable to find it, was because it wasnt here - sooooooo, im doing it literally ALL from scratch. So while I have many of the pages done, so as to write it here, my excitement in recreating the mmo, has taken over. But since I ALSO just realized - you dont know what this particular MMO is about and its features, well, here ya go:<br /><br /><ul><li>Players start out as a drifter (nobody). as they level then can allocate skill points to one of 4 jobs: Duelist(tank/warrior), Magus(magic-user), Recluse(monk, hand-to-hand) and Ranger(ranged weapons). Putting points in these job skills will give them acess to the special abilities associated with these jobs. They can opt to put them all into one and become very powerful in THAT job or spread them out.</li><li>Questing - or grinding (focus on questing with a storyline)</li><li>Speed Chat - For those of you not familiar - see http://www.wizard101.com, http://www.toontown.com for examples. Reason? To eliminate spam and bad languge and to make sure the chat is role playing (incase many of you have forgotten, mmoR P G is ROLE PLAYING not hack and slash. So if players wanna talk smack and spam - they can use their chat program of choice - not ingame.</li><li>Professions, Skyping, Mining (skyping is my ingame prfession, you can do anything you want)</li><li>Many features found in most large scale MMO's Character sheet, Map, Inventory, Skill sheet and much more.</li><li>Wandering Mobs</li><li>Interactive NPC's</li><li>Much more...<br /></li></ul>The skeleton MMO that I am teaching here will allow you to expand to just about any type of game genre you imagination can take you.<br />So Bear with me... I'll be back shortly.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-6012691275612563952?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-44927135064594223042008-12-30T05:54:00.001-08:002008-12-30T05:59:43.783-08:00Still hereMost of the last few days I have been working on a main page action.php (and Im playing a ton of R.O.M. lately as well). It is one of the biggest sections of the game. It handles NPC (whether the player is talking to one or not), combat, message of the day, profession etcc). It is a huge section and I am recoding it to happen on one page.<br /><br />Just some food for thought while your waiting. PHP pages can be thought of as routines in themselves. Each page you call is like a separate routine. :-)<br /><br />Another thing you may be wondering is why I'm not using session variables. I will. At the time this game was designed, it was all url based. So for the ease of teaching, I thought it would be good to see how those are tossed around. Later I'll show you how to use session varibles and clean up your code.<br /><br />Anyways - when i get back from finishing this part up (its huge) I'll post.<br />Welcome all comments.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-4492713506459422304?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com1tag:blogger.com,1999:blog-50545180384049451.post-19882020703416354132008-12-25T00:26:00.002-08:002008-12-26T18:48:17.095-08:00Login (Part III) RegistrationOk if you want people to play your game, they need to have an account, and to have an account they need to register. I'll show you a simple registration, that makes use of the table we created earlier.<br /><br /><div style="text-align: center;">registration.php<br /></div><center><div style="padding: 4px; overflow: auto; width: 395px; height: 200px; background-color: rgb(160, 255, 255); color: rgb(0, 0, 0); font-family: arial; font-size: 12px; text-align: left;"><br /><!-- PUT PROGRAMMING CODE HERE THIS IS USED FOR BLGSPOT FOR DISPLAYING CODE W/O IT EXECUTING IT. --><br /><br /><br />echo '<br /> <center><br /> <table border="1" width="60%" cellspacing="3" cellpadding="20"><tr><td><br /> <table><tr><td width="30%"><br /> <form name="register" action="reg2.php" method="POST"><br /> <tr><td>Username:</td><td><input type="text" length="20" name="username"></td></tr><br /> <tr><td>Password:</td><td><input type="password" length="20" name="pw1"></td></tr><br /> <tr><td>Again:</td><td><input type="password" length="20" name="pw2"></td></tr><br /> <tr><td>email:</td><td><input type="text" length="20" name="email"><br /> <p><br /> <!-- // ### USE AN INCLUDE HERE FOR A FANCY VERIFCATION<br /> // ### CODE. -><br /> </td></tr><br /> <tr><td><input type="submit" value="Submit"></td><br /> <td><input type="reset" value="Reset"></td></tr><br /> </td><br /> </form><br /> <br /> </td></tr></table><br /> <td valign="top" width="70%"><font face="arial" size="2"><br /> <div align="justify"><br /> .:: Registration -<br><br /> Must have a valid email - information will be sent to this address<br /> for verification.<br /> </div><br /> </td><br /> </td></tr></table><br /> </center><br />';<br /><br /></div></center><br />sorry the formatting doesnt come up nice - you can thank blogspot for that. This is the best trick i could fine to display the code, otherwise it tries to execute it.<br />anyways.....<br /><br />This is just a simple form to get some simple information for our simple game. will look similar to below<br /><br /><center><br /> <table width="60%" border="1" cellpadding="20" cellspacing="3"><tbody><tr><td><br /> <table><tbody><tr><td width="30%"><br /> <form name="register" action="reg2.php" method="post"><br /> </form></td></tr><tr><td>Username:</td><td><input length="20" name="username" type="text"></td></tr><br /> <tr><td>Password:</td><td><input length="20" name="pw1" type="password"></td></tr><br /> <tr><td>Again:</td><td><input length="20" name="pw2" type="password"></td></tr><br /> <tr><td>email:</td><td><input length="20" name="email" type="text"><br /> <p><br /> <br /> </p></td></tr><br /> <tr><td><input value="Submit" type="submit"></td><br /> <td><input value="Reset" type="reset"></td></tr><br /> <br /> <br /> <br /> </tbody></table><br /> </td><td valign="top" width="70%"><span style=";font-family:arial;font-size:85%;" ><br /> <div align="justify"><br /> .:: Registration -<br /><br /> Must have a valid email - information will be sent to this address<br /> for verification.<br /> </div><br /> </span></td><br /> </tr></tbody></table><br /> </center><br /><br />When a user clicks the submit button, it will send them to a reg2.php to check stuff out.<br /><br /><div style="text-align: center;">reg2.php<br /></div><br /><center><div style="padding: 4px; overflow: auto; width: 395px; height: 200px; background-color: rgb(160, 255, 255); color: rgb(0, 0, 0); font-family: arial; font-size: 12px; text-align: left;"><br /><!-- PUT PROGRAMMING CODE HERE THIS IS USED FOR BLGSPOT FOR DISPLAYING CODE W/O IT EXECUTING IT. --><br /><?php<br />require("serverconfig.php");<br /> $valid_acct=1;<br /> $username=$_REQUEST['username'];<br /> $userpw=$_REQUEST['pw1'];<br /> $userchk=$_REQUEST['pw2'];<br /> $useremail=$_REQUEST['email'];<br /> <br /> <br /> if ($username ==""){<br /> echo '<font color="red">Please enter your desired username</font><br>'.<br /> '<a href="registration.php">Click Here</a> to continue...';<br /> }// ### END DATA ENTRY CHECK<br /> <br /> // ### CHECK TO SEE IF PASSWORDS MATCH<br /> if ($userpw != $userchk){<br /> echo '<font color="red">Passwords do not match<p></font><br>'; <br /> $valid_acct=0;<br /> }<br /> <br /> // ### CHECK TO SEE IF A VALID NAME IS ENTERED<br /> // ### ONE THAT IS NOT USED<br /> $result = mysql_query("SELECT * FROM accounts WHERE playername='$username'");<br /> while($row=mysql_fetch_array($result)){ <br /> echo '<font color="red">Name is already Taken<p></font><br>'; <br /> $valid_acct=0;<br /> }<br /> <br /> <br /> // ### CHECK TO SEE IF EMAIL IS NOT TAKEN <br /> $result = mysql_query("SELECT * FROM accounts WHERE email='$useremail'");<br /> while($row=mysql_fetch_array($result)){ <br /> echo '<font color="red">Email is already in use.<p></font><br>'. <br /> $valid_acct=0;<br /> }<br /> <br /> //<br /> if ($valid_acct){<br /> // ### CONVERT PW TO MD5<br /> $pw3=md5($userpw);<br /> $sql="INSERT INTO accounts (<br /> playername,<br /> password,<br /> email)<br /> VALUES (<br /> '$username',<br /> '$pw3',<br /> '$useremail'<br /> )";<br /> if (!mysql_query($sql)){<br /> die ('Error: '.mysql_error()); <br /> } <br /> echo 'You are all set '.$username.' feel free to log in and play now.';<br /> echo '<br>Good luck<P>'; <br /> echo '<a href="index.php">Click Here</a> to begin playing...'; <br /> }else{<br /> // ### IF VALID ACCOUNT = 0 THEN HAVE THE USER GO BACK<br /> // ### AND ENTER A VALID INFO<br /> echo '<a href="registration.php">Click Here</a> to continue...';<br /> }<br /> <br />?><br /></div></center><br /><br />Ok there looks like a lot going on, but its actually simple (thats how programming is, you write alot to do somehting simple).<br />As you can see, the familiar "require" is shown as well as valid_acct (I just like it so i stick with it througout the software). Next we put everything into variables that we are going to check, username,userpw,userchk and email<br /><br />Next, check to see if user forgot to put something in. If so, tell them and go back to the registration page.<br /><br />Once done, make sure the password check matches. if not, back to the registration page.<br />Then make sure they havent picked a name that is already used, if not back to the registration page.<br /><br />check the email. same thing. Getting the hang of it? Not so bad is it?<br /><br />now to be safe, we turn the pw into a md5 hash. very secure for the most part because its not reversable. So if you ever see websites that "reset" your pw, or send you a temp, most likely they are using this method. You just cant get it back if you loose it.<br /><br />Once that is complete, shove everything into the table - you did make your table right??<br />If for some reason the valid_acct is still 0, that means there was something wroing and they have to do it all over again.<br /><br />Give them a link to go back and log in with their new id/pw. Note - get creative, have the program email them and verify they are who they say they are. You can also add a "gotcha". That is a random picture or alpha/numeric numbers that they have to type in to verify they are human. Buuuttttt, I dont think you have to worry about any of this right now. But have fun with it. That is how you learn.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-1988202070341635413?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com2tag:blogger.com,1999:blog-50545180384049451.post-39235156517947378462008-12-25T00:26:00.001-08:002009-01-04T12:38:17.602-08:00Login (Part II) Validation NEW UPDATE!Firs this that needs to be done (with this step) is we are going to add a table to your (wyvern) database. Call this "<span style="color: rgb(204, 0, 0); font-weight: bold;">accounts</span>" (original). This table is different/separate from another table we'll make called "<span style="color: rgb(204, 0, 0); font-weight: bold;">characters</span>". Accounts will hold information about players, while characters will hold information about the character(s) "players" create. - confused? Don't be, it'll become clear later.<br /><br />Here are some of the info we're going to put into this table:<br />(note this will change as we go along - we only need something to get it functional)<br /><br /><ul><li>id - just a counter to keep track of the acct in question.<br /></li><li>playername - duh</li><li>password - uhm ? (jk)</li><li>email - for sending registration too and for recovering pw</li><li>admin - will this user have admin privalages (will let you program that part)</li></ul>So go ahead and make a new table with those 5 items. Again, sorry, not making a Navicat tutorial, but will answer any questions anyone has. For those of you who just wanna move on with the guide you can use the following sql dump and have it done automatically, then you can look at it.<br /><br /><center>ACCOUNTS.SQL<br /><br /><div style="padding: 4px; overflow: auto; width: 395px; height: 200px; background-color: rgb(160, 255, 255); color: rgb(0, 0, 0); font-family: arial; font-size: 12px; text-align: left;"><br /><!-- PUT PROGRAMMING CODE HERE THIS IS USED FOR BLGSPOT FOR DISPLAYING CODE W/O IT EXECUTING IT. --><br />SET FOREIGN_KEY_CHECKS=0;<br />-- ----------------------------<br />-- Table structure for accounts<br />-- ----------------------------<br />DROP TABLE IF EXISTS `accounts`;<br />CREATE TABLE `accounts` (<br />`id` int(10) NOT NULL AUTO_INCREMENT,<br />`playername` char(20) DEFAULT NULL,<br />`password` char(100) DEFAULT NULL,<br />`email` char(50) DEFAULT NULL,<br />`admin` int(10) DEFAULT NULL,<br />PRIMARY KEY (`id`)<br />) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;<br /><br />-- ----------------------------<br />-- Records<br />-- ----------------------------<br /></div><br /></center><br /><br />If you notice from part I, once the submit button is clicked, it will send the user to "checklogin.php" What this guys job is to simply check to see if the login is good and send them to the character selection page, where they can select one of their characters that they have made to play, alert of a bad pw/Id or both, or to a registration page.<br /><br />Lets take a look at a simple "checklogin.php" file:<br /><br /><br /><center><div style="padding: 4px; overflow: auto; width: 395px; height: 200px; background-color: rgb(160, 255, 255); color: rgb(0, 0, 0); font-family: arial; font-size: 12px; text-align: left;"><br /><!-- PUT PROGRAMMING CODE HERE THIS IS USED FOR BLGSPOT FOR DISPLAYING CODE W/O IT EXECUTING IT. --><br /><?php<br /><br />require("serverconfig.php");<br />$valid_acct=0;<br />$username=$_REQUEST['username'];<br />$userpw=$_REQUEST['password'];<br />$userpw= md5($userpw);<br />$result = mysql_query("SELECT * FROM accounts WHERE playername='$username' AND password='$userpw'");<br />$row=mysql_fetch_array($result) ;<br />if ($row){ $valid_acct=1; }<br /><br />if ($valid_acct){<br /><br /><br />echo '<meta http-equiv="refresh" content="0; url=main.php?acct='.$row['id'].'">';<br /><br />}else{<br />echo '<font color="red">Bad Login</font><br>';<br />echo '<a href="index.php">Click here</a> to try again';<br />}<br />?><br /></div></center><br /><br />Pretty simple (change as you like). the first line "require" is giong to be your buddy. He actually has a brother called "include". Both work the same way with one difference. REQUIRE will stop the page if there is an error. while INCLUDE will show you the error, but attempt to make the page display. Me personally, I rather just have the train stop and see who's messin around before i continue on.<br /><br />Next we set a dummy variable (boolean) valid_acct to false. then we take the information we got from the form (username and userpw) and see if there is a match. if there is, change the valid_acct to 1.<br /><br />If it is a valid account, load up the getcharacter.php page (there are a couple ways to force a page, I found this one to be the best, note it may not be supported in all browsers).<br /><br />If it is not valid, shows them an error, and allows them to click back to the login screen to try again.<br /><br />EDIT: There has been a change - the "getcharacter.php" has been replaced with "main.php"<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-3923515651794737846?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com1tag:blogger.com,1999:blog-50545180384049451.post-90646153625041192442008-12-24T17:37:00.000-08:002008-12-25T00:25:24.439-08:00Login (Part I) - Login ScreenThe login page will be your first big project. While long in explanation, it is designed to do a few simple things:<br /><br /><ol><li>Get id/pw</li><li>Validate</li><li>Register</li><li>Reset PW</li></ol>There are a BILLION differnt sites you can go to (just google "login source code php") and all will have a different method. Im hoping the method I use here will be simple, and a "little" secure (I wouldn't worry a whole lot about the security of your game yet until 1. its done and 2. its popular. But at the end of the tutorial, I will show you a few ways you can make sure that game is secure - for all you worry warts out there, this is NOT the same as securing your PC. this is just o people cannot alter the address bar and hop into someone elses character. I'll show you what I mean later. But for simple game design purposes this will do).<br /><br />Open CE and make a new file called INDEX.PHP<br />and put this in it (don't forget the "<?php and the >")<br /><p><center><br /><div style="padding: 4px; overflow: auto; width: 500px; height: 200px; background-color: rgb(160, 255, 255); color: rgb(0, 0, 0); font-family: arial; font-size: 12px; text-align: left;"><br /><!-- PUT PROGRAMMING CODE HERE THIS IS USED FOR BLGSPOT FOR DISPLAYING CODE W/O IT EXECUTING IT. --><br />// ### SHOW LOGIN<br />echo'<br /><center><br /><h1>Wyverns Tear</h1><p><br /><FORM action="checklogin.php" method="POST"><br /><table><br /> <tr><br /> <td>Login ID:<br><br /> <input type="text" length="20" name="username"><br /> </td></tr><tr> <br /> <td>Password:<br><br /> <input type="password" length="20" name="password"><br /> </td></TR><TR><br /> <td><br /> <input type="submit" value="Login"><br /> </td><br /> </tr><tr><br /> <td> <br /> <a href="registration.php">Register</a><br /> | Forgot Info<br /> </td><br /> </tr><br /></table><br /></form><br />';<br /></div></center><br /><br />Most of this is just basic html. Notice the "echo" command. I kinda cheat and make a open quote and then shove all my html before the last '; at the bottom. So lets see what we have. Basically there are 2 input boxes. One for ID and one for PW. To get the PW box to show up as dots to hide the typing, simply use the "type" as PASSWORD. We name the id "username" and pw as "password". Pretty self explanitory. Feel free to tinker with this one. If you're really good at html this should be pretty easy.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-9064615362504119244?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-88308328888421722422008-12-24T16:51:00.000-08:002008-12-24T17:26:59.348-08:00Start your engine (connecting to the SQL server)<div style="text-align: justify;">If you haven't already, get WINAMP up and running. You don't need to put it online just yet. We'll be doing that later. Now first and foremost, I'll not be getting too heavy into php and mysql programming. A good site to go for this if you get a little lost is W3 Schools. Just absolutely phenomenal for learning most web based languages. So yes, a little knowledge of programing PHP will be a must. But I will do my best to explain in detail what each line of code is doing.<br />Also keep in mind, you can name your files what ever your heart desires, however for the sake of this tutorial, you may just want to keep what I have listed, and if you are feeling adventourous, just make another directory with what you are working on and keep them separate, that way you can go back .<br /><br />First thing you want to do, it run navicat and access your MySql server (if you get stuck here lemme know - I dont wanna make a tutorial on how to use Navicat). Make a new database called<br /><br /><div style="text-align: center;">wyvern<br /><br /><div style="text-align: left;">Thats it for now. Just minimize it, or close it.<br /></div></div><br />Start up Crimson Editor(CE for future reference). First file we're gonna make is<br /><br /><span style="color: rgb(0, 0, 102); font-style: italic;">SERVERCONFIG.PHP</span><br /><blockquote style="color: rgb(0, 153, 0);"><ol><li><?php</li><li> $servername = "localhost";</li><li> $serverID = "root";</li><li> $serverPW = "root";</li><li> </li><li> $connect = mysql_connect($servername,$serverID,$serverPW);</li><li> if (!$connect){</li><li> die ('Could not connect: '.mysql_error());</li><li> }</li><li> mysql_select_db("wyvern",$connect); </li><li>?></li></ol></blockquote>OoooK! Some of you first timers might get a little confused on this. Thats ok. Thats what this blog is for. To all you pro's - this doenst need to be fancy, I am aware there are a lot of other ways to do this. But I want it simple. Remeber this blog is for a simple online game thats borderline skeleton in its design.<br /><ol><li>Line # 1 and 11: All php pages have to start with this (there are some exceptions).</li><li>Line # 2 Since you are testing this on your own pc (for awhile anyways) set this to LOCALHOST. You can also use 127.0.0.1 which is the same thing. If you are going to use your computer as a server, you can just leave this as is. If for example you are going to use YAHOO! you change that line to MYSQL (original huh?).<br /></li><li>When you installed MySQL Server (v5 right?), it defaulted a user to ROOT. That is fine again if you use YAHOO! it will be what your ID is there. Get the idea. So for now, just leave it to ROOT.</li><li>Same as above, but its the password (which if you've been following along) which is ROOT as well. so you have ID:ROOT and PW:ROOT.</li><li>Just for neatness</li><li>This line is how you connect to your database. In the following order must be servername (localhost), ID (root), and PW(root). the command mysql_connect() is what does the connecting to the database SERVER (we haven't connected to a database yet)<br /></li><li>Using the variable "$connect" (php variables all start with a "$") make sure that it does. If your id, pw server or any of the above are out of whack,<br /></li><li>this line will let you know by using the die command which basically shuts down all operations of your litlle program.</li><li>Once we're connected, select a database we want to work with. In this case its called "wyvern" using the command mysql_connect_db(database name,[optional variable])</li></ol>Keep in mind, as I go along in this blog, I wont ALWAYS be this descriptive. If you get stuck, by all means just post me a note and I'll do what I can to answer it. As always, suggestions are welcome or add a few tips of your own to help the noobs!! :-)<br /><br />Also, if you're stuck, visit <a href="http://www.w3schools.com/php/default.asp">W3 Schools</a> Just an incredible site for learning any language for the web.<br /><br /><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-8830832888842172242?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-20605798395762072522008-12-22T14:35:00.000-08:002008-12-25T06:07:20.427-08:00Building your toyboxWell everyone needs to start somewhere - so guess what. We're gonna start from absolutely scratch!!! First and foremost, you'll be working on your laptop (what? dont have one, its a good investment, sits on your lap better than a tower does when your bored at the doctors office or waiting for a train/bus) But seriously, you never wanna put anyting on the net, unless its working.<br /><br />There really is never a reason, that I can think of, to reinvent the wheel. There are many tools available that will make your job easy. So here is a list that you need to get - If the following sounds confusing - good, that means your gonna learn something and all your questions will be answered in the order of appearance, if not, perfect, help answer some of the questions that the noobs ask.<br /><br /><a href="http://www.navicat.com/download.php?id=1">NAVICAT</a><br />this tool is used to navigate around your database. Installing this is straight forward.<br />::<span style="font-style: italic;">Please note!! You do not need to look for a hack/crack or key for this. I see a lot of that around the net and youtube. Just get the Lite version. It doesn't expire and does everything you need to do when working with databases.</span> Don't reinvent the wheel.<br /><br /><a href="http://www.wampserver.com/dl.php">WAMP</a><br />We are gonna turn your system into a local server. I know many of you who are familiar with this prefer XAMP. But I've tried both, WAMP is noob- proof. Don't need to do anytihng. When its done, run it, then test it by typing "localhost" (w/o quotes) in your browser and if it was installed correectly, you'll see a webpage come up.<br /><br /><a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads">MYSQL v5</a><br />DO NOT UNDER ANY CIRCUMSTANCES if you have vista/ vista 64 (or even xp) get MySQL 6. I've tried several computers, and it will not load correctly. So until it says official release, I would not download it. Its beta, and beta is short for bugs!! when creating your password, use "root" - anything else, and the tutorial will not work - dont worry, your making a local testing site, not a sole can access it.<br /><br /><a href="http://robotics.snu.ac.kr/pds/CrimsonEditor/cedt370r.exe">Crimson Editor</a><br />This is a nice all around free editor. Now if your one of those adavanceed users - there are many PHP editors.<br /><br />Ok, now if your an advance user, there are many nice programs that can simplify some of this, however, I am only catering to those who want to learn. Once you get the hang of this, you can switch to one of those more fancy dancy programs that makes you mt dew and toast while you sit back and wacth it make your next famous Blizzard Killer MMO! :-)<br /><br />Now as I mentioned earlier, I do not want to recreate the wheel. I do not want to use this blog as an instructional text for the above programs, however, I do recommend that you head over to youtube if you get stuck on installation, or post here and I'll do what I can to answer. BTW I run a vista 64. so If I can get it to run, anyone can.~!!<br /><br />That is all for now<br />I'll be back later for setting up your game login.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-2060579839576207252?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0tag:blogger.com,1999:blog-50545180384049451.post-32760484905592817952008-12-22T14:34:00.001-08:002008-12-22T14:34:51.909-08:00Introduction<div style="text-align: justify;">First off - I am not a writer. Period. However, I do know a lot about games as well as programming. This blog is my attempt to mix the two and show how - possibly - a PBBG can be created. I have scoured the net for such a site, and was unable to locate one. How Odd. So I will hopefully solicit some help from readers to complete this guide.<br /><br />What is a PBBG?<br /></div><p style="text-align: justify;">A <b>persistent browser-based game</b> (PBBG) is a computer game that is both <b>browser-based</b> (accessed and played over the <a href="http://en.wikipedia.org/wiki/Internet" title="Internet">Internet</a> only through a <a href="http://en.wikipedia.org/wiki/Web_browser" title="Web browser">web browser</a>) and <b>persistent</b> (able to progress with successive playing sessions).</p><div style="text-align: justify;"> </div><p style="text-align: justify;">PBBGs can provide the depth of experience and <a href="http://en.wikipedia.org/wiki/Sustainability" title="Sustainability">sustainability</a> seen in some <a href="http://en.wikipedia.org/wiki/Application_software" title="Application software">application-based</a> games, but because they don't require any special <a href="http://en.wikipedia.org/wiki/Software" class="mw-redirect" title="Software">software</a> to play, they are more accessible and <a href="http://en.wikipedia.org/wiki/Porting" title="Porting">portable</a> than such games.*</p>So every couple weeks or so, or when the mood strikes me (or if I recieve enough comments) I'll add an entry.<br /><br />*Taken from wikipedia<br /><p style="text-align: justify;"><br /></p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-3276048490559281795?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com2tag:blogger.com,1999:blog-50545180384049451.post-73419717136368780742008-12-22T14:25:00.001-08:002008-12-22T14:31:30.300-08:00RedoOk. Redoing this whole blog. One, cuz I cant stand Sci-fi mmo's. and 2, It would be better to do this again from the start. For those of you who were following - thank you for your comments. Now on with the show.<br /><br />IM doing a fantasy one. A genre that is not only popular but they are easier to write than most. This will be a work in progress, so as I create a section, so shall you. If it doesnt work, guess what...<br /><br />your's wont either lol. Ok, jk. anyways, I've taken a couple years off and played just about every MMO out there (the free to play, and english ones) to get a general Idea of what works, and what doesnt. You'd be surprised. To see my game playing history (which is not inclusive since I beta test a lot of mmo's and they are not listed) you can see my profile at <a href="http://www.xfire.com/profile/amorac/">http://www.xfire.com/profile/amorac/</a> and click on all games. Most I never played more than an hour for various reason. But the end result was the same. It was "not it".<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/50545180384049451-7341971713636878074?l=pbbgtutorials.blogspot.com'/></div>Richardnoreply@blogger.com0