Page 7 of 7

Re: Video 14

Posted: Thu Aug 04, 2011 8:32 am
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 :)

Re: Video 14

Posted: Wed Apr 18, 2012 11:51 pm
by Zoo
If anyone have CODES till video 14 please insert here... Cuz this link its old and didint work anymore ;/

Re: Browser MMO Video #14

Posted: Thu Feb 28, 2013 8:39 am
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:

Re: Browser MMO Video #14

Posted: Thu Feb 28, 2013 4:13 pm
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.

Re: Browser MMO Video #14

Posted: Wed Mar 06, 2013 7:06 am
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.

Re: Browser MMO Video #14

Posted: Wed Mar 06, 2013 1:47 pm
by hallsofvallhalla
That sounds like a great idea. A game i would play.