-
Posts
283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Someone
-
I might be able to help on the location part. Made a system that should be adaptable. It is structured as Main location: ie country, star system, realm, planet Sub location: ie state,city, planet Local location: ie city part Sub locations can be setup to have an airport, or portal or something. You can then travel between these sub locations. Same with the local locations, but then by using another traveling method. Player location is currently controlled by three userStat variables. These are sent to a function that calls up the text for the location. Traveling is currently working, but still messing around with how I want it to work. While the player is traveling, the module is locked, so stuff can happen while traveling. Some sample images [ATTACH=CONFIG]834[/ATTACH][ATTACH=CONFIG]835[/ATTACH][ATTACH=CONFIG]836[/ATTACH]
-
Yup I want it stopped, no rush though, I went with another system Good article about it here http://javascript.info/tutorial/settimeout-setinterval It also shows what happened to me, if one call takes to long, it fires off and keeps making new requests, very rapidly. content type, I recall it because it cost me many hours and much hair when I first learned jQuery :) And a bonus is that its helpful when using Firebug.
-
Say you have a oage where you are waiting for something to happen. At the time I was making a traveling script, while walking things could happen, like getting mugged. It was based on time, but when the time is up and player have arrived to his/her destination, I would like the page to stop making ajax calls. a handy thing can also be to allow javascript to be passed back as a result in an ajax call. So you can remove/disable buttons and other things, depending on the result. Another small thin I added to ajax.php before the output header('Content-type: application/json'); Some browsers are sensitive to this, think it was IE7-8
-
It would still be of _some_ value. You save some hours, by just ripping code from it and use in your custom version. Even if its just 10 hours, thats 10$ an hour, for sure your time is worth more than that. For me, just session management or template system would take 10 hours.
-
Man I have struggled with this issue in the past :confused: Valid version of the xhtml you posted. And what browser are you testing with? Does the collation show as utf8 on the table as well, and does the content show correctly in the database <!-- xml version="1.0" encoding="UTF-8" --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Document title</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <?php < here php > ?> </body> </html>
-
LOL Sounds like a sensible wife
-
sweet, posts link to https://justgamingnews.com/zynga-shutdown-11-games-to-cut-costs/ That issues a security warning, for some reason it uses https
-
Your scripts should have sort of variable securing function, probably in includes/functions.php in the lack of that you could use $CovNum = mysql_real_escape_string( $_POST['CovNum'] ); //$credgain also need to be secured All data that comes from a user $_GET and $_POST needs to be secured. If I went to your page and in the browser wrote: pagename.php?creds='###REMOVED### All users would be admins, that was an example, and based on some assumptions about the database.. INSERT INTO payments SET username='$username', keycode='$CovNum', date=NOW(''), creds='$credgain'");
-
I think you need to just get started making your game! The surrounding stuff, is rather minor to change after the game is done. No disrespect, but your concerns seems to handicap you from getting your dream game made.
-
To get to hellpit, you first travel to Lostangles, the menu then changes to Actions>>Hellpit To can change the requirements by editing the Hellpit row in the table arenas. Condition code field should be a code that evaluates to true or false, like if it was in an if() UPDATE `arenas` SET `condition_code` = 'CurrentPlayerLocation() == 2 && $userStats[''Level'']->value == 4' WHERE `arenas`.`id` =2; That example makes the arena available if player location is 2 and level is 4, remove CurrentPlayerLocation() == 2 && if you only want a level check. For more adanced evaluation, you could make a function that returns true or false. To add more arenas, insert a new row in the table arenas Then insert the id of the new arena, and the id of the warriors available in that arena You get the warrior_id from the table npc_warriors, where you can also add new warriors
-
Codeigniter + NWE seems like a good solution for your project then. For now I am sticking with keeping NWE as is in its core, at least while developing the functionality of the game features.
-
As for developing this kind of sites, you are not being paranoid. You will get kids trying to cheat and hack your game. These games are hackors galore On the live version of the game, I will not have anything related to installation of modules. I will simply delete sql files, a user cant see live stats from them, but they can see the structure of the database, pretty helpful if you want to hack something. Been thinking about .htaccess nice that they are there, but apache reads them for every sub folder that it encounters one. A bit of a performance chocker. I will use one, but only in the root modules folder, that will deny all but png/js. I do wish there was a core standard that these files was not at the module locations. Vital files are best kept outside of the public folders. Like on cpanel based servers, kept outside of public_html and then included in. I have never actually done this, but know its possible. Apache does log forbidden access requests. On a site I got attacked, I logged all post/get data sent to all pages, that table got stuffed to the millions pretty quick (did not know much about mysql back then, table was indexed by username aka varchar), something like that could be handy to activate on suspect users though.
-
I use Firefox as well, and the boxes are off. I am also on a wide screen, when I drag it over to my 1280x1024 monitor only the menu is out of position. Try to not rely on fixed position. I would move the menu out of #container (its also missing an ending div), and use a wrapper container. <div id="wrapper"> <!-- set with --> <div id="services"></div> <!-- float right?, margin right? --> <div id="container"> <div id="about"></div> <!-- Use classes instead --> <div id="projects"></div> </div> </div> <html> <link rel='stylesheet' type='text/css' href='i_stylesheet.css'/> <head> Should be <html> <head> <link rel="stylesheet" type="text/css" href="i_stylesheet.css" /> </br> HTML5 <br /> (xhtml) or <br>(html) Not to be specification nazi, but if not following the specifications given in the doctype, each browser will start guessing what you mean, and follow their own rules. Most important is the use of " (HTML5 might allow ' but then HTML5 should be defined as doctype) on attributes. There is a saying that centered text is the trademark of an amateur, I have been avoiding that ever since, don't want to blow the cover.
-
First a few things.... NEVER EVER insert an unsecured variable directly to the database!!!! INSERT INTO payments SET username='$username', keycode='$_POST[CovNum]', date=NOW(''), creds='$credgain'"); $_POST[price] might work as PHP assumes you ment $_POST['price'] if there is no constant named price. But it will run slower and fill up error logs, and kittens will die. Their API does not seem to have a public documentation :( Seems odd that your suppose to use your account password, as anybody working on a site will have access to it. And sending data over http is about as safe as sending a post card. if($_GET['payment'] == true && $_POST['price'] && $_POST['Password'] == "YOURACCOUNTPASSWORD" && $_POST[CovNum']) { Edit: Also note that == "true" is not the same as == true, "true" or 'true' is a string containing the word true, while == true means that it has been set. The variable should also be checked if the exist, in this example you can get away with changing: //if ($_GET[payment] != ""){ if ( isset($_GET[payment]) ){ If that do not work, right after <? } if ($_GET[payment] != ""){ insert echo '<pre>'.print_r($_POST).'</pre>'; echo '<pre>'.print_r($_GET).'</pre>'; That should show you what data is sent back.
-
When using Ajax::UpdateTimer the flood control gets activated. EDIT: I will do more testing, to see if something I do wrong to cause it Edit 2, never mind think I might have caused some bad redirections. although, I am wondering, is there a way to stop Ajax refresh after its started?
-
1) Might be a bug 2) The license is normally not stored in db.php, just a hack I posted to minimize what can go wrong. Id go for the the full version install, just download, unzip and copy the extracted folder to htpdocs
-
The code/html of the avatar image during compat images is at modules/combat/lib.php around line 197 (around becuse I did some changes to test the variables) echo "<img src='{$webBaseDir}modules/combat/avatar.png'>"; It seems like this part is incomplete. As modules/combat/avatar.png does not exist. And uploaded avatar images are at modules/avatar/##userid##.png The incoming $user variable does not contain the user id. It will be best to wait for the developer to make an official update But as a dirty workaround for testing or just funzies Replace this function, add /* before and */ after the old function, so you can easily revert back. function ShowInteractiveInterface ($user, $npc, $buttons) { global $webBaseDir, $userStats, $userId; echo "<table class='plainTable'><tr valign='top'><td align='center' width='1%'>"; ShowStats($user); echo "<br><br>"; if ($buttons) ShowCombatButtons($npc, $user); echo "</td><td align='center'>"; if($userStats['Level']->value < 5){ echo "<img src='{$webBaseDir}modules/avatar/images/{$userId}.png'>"; } else { //This version will be used if levelis above 5 //This example adds a border just for testing, not to be used echo "<img border='10' src='{$webBaseDir}modules/avatar/images/{$userId}.png'>"; } echo "<img src='{$webBaseDir}modules/combat/npc/" . $npc['image_id'] . ".png'>"; if (! isset($_SESSION["combatLog"])) $_SESSION["combatLog"] = ""; // echo $_SESSION["combatLog"]; echo "</td><td width='1%'>"; ShowSecondStats($npc); echo "</td></tr></table>"; } In general, when making a custom version of a module, I would make a copy of the module. As changes will be lost when updating the module. EDIT: as I re-read post title and and the content. I am unsure about what you mean. However echo "<img src='{$webBaseDir}modules/combat/npc/" . $npc['image_id'] . ".png'>"; is the enemy "avatar" image. You could apply the level check above, and have 2 versions of the enemy image, and make the image $npc['image_id'] . "-highlevelversion.png'. The rat image would then be at modules/combat/npc/1-highlevelversion.png
-
Is it by design that user_stat_table do not have auto increment on the column id. Makes it hard(er) to make module installations without having that handled.
-
users table should perhaps have a column for active character as well. Especially if the character can, or the player is limited to a character for some period of time, say the character is in hospital, and you dont want the player to be able to logout and login and select another character.
-
Exactly. You pretty much already knew what todo :)
-
Sure I will, no problem. Cant promise when, but as you said when I think its presentable.
-
How about one main account. That handles email,username,password that user login with. Then get to select character to play with. users table id username password email characters table id users.id character class level etc... Once logged in list characters select * from characters where account.id = users.id a href="index.php?character=character.id"> select character<*/a> Character selected, lets play $sql = select * from characters where account.id = $get.character LIMIT 1 If you are planning on using an existing game engine this can be done with kind of making extra login system. Outside of the current user manager, kind of like you would login twice.
-
JQuery and extensive use of javascript _can_ slow things down. Bootstrap is mostly about CSS. I have to modify/custom write any module I am gonna use anyway, changing a few classes don't take that long, and dont slow the server scripts down. TemplateTableHeader and TemplateLinkButton takes care of most of the changes. I am however looking into using LESS so I don't commit to one framework. Total load times, rendering in browser, on a localhost, with dropdown menu, home page in game Bootstrap theme, with custom <ul><li> generated dropdown menu, xp bar (.progressbar), a few buttons (a links with .btn) Measured with Firebug in Firefox Total load times 281ms (onload: 499ms) 280ms (onload: 476ms) 281ms (onload: 493ms) JS 63ms (onload: 493ms) 187ms (onload: 651ms) 63ms (onload: 471ms) Server side Full engine time: 103 ms 98ms 111ms Medival full menu theme Total 811ms (onload: 6.04s) 796ms (onload: 838ms 764ms (onload: 773ms) JS 47ms (onload: 841ms) 46ms (onload: 794ms) 63ms (onload: 799ms) Server side Full engine time: 100 ms 103ms 120ms
-
We have different opinions then. The NWE html structure is not very well, not bad, not very good. In my opinion.
-
I use xampp myself.... But maybe this will help http://stackoverflow.com/questions/8366976/wamp-error-forbidden-you-dont-have-permission-to-access-phpmyadmin-on-this-s