Browser MMO Video #14

Location of the Videos
Animosity
Posts: 14
Joined: Mon Aug 01, 2011 8:05 pm

Re: Video 14

Post by Animosity »

Thanks friend, yeah I found that the coding makes sense like a language...lol, and the more you look at it, and writing helps, the more it seems to become easier to understand. This helps especially if I run into a problem, but then I am a beginner and while I have watched all the videos I'm still working my way through it all slowly and trying to change a few things as I go to create something different. And Halls really helps, sometimes I have to back track to catch the meaning of something so it helps to pay attention to every little thing :)
Zoo
Posts: 21
Joined: Tue Apr 17, 2012 6:38 pm

Re: Video 14

Post by Zoo »

If anyone have CODES till video 14 please insert here... Cuz this link its old and didint work anymore ;/
User avatar
Kxmode
Posts: 12
Joined: Thu Feb 28, 2013 8:25 am

Re: Browser MMO Video #14

Post by Kxmode »

Hi! I have been watching the video series. I don't mean to necro this thread but I would like to let anyone who has recently watched to know that equipment.php as it appears in the video threw a couple errors for me.

Code in question*

Code: Select all

while ($selectweapon3 = mysql_fetch_array($selectweapon2)) {
	if ($selectweapon3[equip] == 1) {
		$selectweapon3[equip] = "Equiped";
	}
	else {
		$selectweapon3[equip] = "<a href='equip.php?randid=$selectweapon3[randid].'>Equip</a>";
		$randid = $selectweapon3[randid];
	}
* I had to renamed $iteminfo3 to $selectweapon3 to resolve a conflict.

Problems
  • Quote need to be added to each instance of $selectweapon3[equip].
  • The equip link generates parsing errors. To remove the error convert the code into the following: <a href='equip.php?randid=" . $selectweapon3['randid']. "'>Equip</a>";
Working solution

Code: Select all

while ($selectweapon3 = mysql_fetch_array($selectweapon2)) {
	if ($selectweapon3['equip'] == 1) {
		$selectweapon3['equip'] = "Equiped";
	}
	else {
		$selectweapon3['equip'] = "<a href='equip.php?randid=" . $selectweapon3['randid']. "'>Equip</a>";
		$randid = $selectweapon3['randid'];
	}
I hope this helps someone.

P.S. Thank you Halls for you time and effect with these videos! They're still awesome 4 years later! :mrgreen:
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Browser MMO Video #14

Post by hallsofvallhalla »

yeah its funny how much my own coding has changed how much better of a coder I am now. I REALLY want to remake these.
User avatar
Kxmode
Posts: 12
Joined: Thu Feb 28, 2013 8:25 am

Re: Browser MMO Video #14

Post by Kxmode »

hallsofvallhalla wrote:yeah its funny how much my own coding has changed how much better of a coder I am now. I REALLY want to remake these.
I would imagine by the time viewers get to the end of the series they should have a strong grasp on php, mysql, and how to make a browser game (I know I do!). Your new videos would simply be best practices you've learned over the last 3-4 years. We can then take and apply those to the code, database, and so forth. :)

BTW Could you create a video tutorial for http://www.isogenicengine.com/ ? I really want to learn this! What I would like to eventually do is blend the Browsergame with Isogenic Engine. In other words Browsergame sits over the top of the Isogenic Engine providing the UI elements (inventory, quest log, etc), while Isogenic handles the isometic graphics. I'm not there yet but I'm trying to figure out how this can work in my mind.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Browser MMO Video #14

Post by hallsofvallhalla »

That sounds like a great idea. A game i would play.
Post Reply

Return to “Older Browser MMO Videos”