Jump to content
MakeWebGames

Someone

Members
  • Posts

    283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Someone

  1. Admin panel has the admin_language_editor module In the menu if logged in as admin you can use the bottom link "Enable Text Editor" and edit text directly as you browse the game. And there is also the translation file at language/en.xml What I have not figured out yet, is how to add more languages. Only setting Ive found is the main language setting.
  2. As you can see from the output, the variable $r['wlevel'] is not set properly, its blank. And therefore always less than 4. There correct echoed result then be should be: if (12 > 4)Item Chainsaw equipped successfully. You need to backtrack to where $r['wlevel'] is suppose to be set, $r is usually a query result, search your code for $r = Most likely you will find a query of some sort. $db->query("SELECT * FROM ... WHERE") or mysql_query("SELECT * FROM ... WHERE"); Either add a or die(mysql_error()) to the query, or echo out whats between the " " then run that in phpmyadmin I have not touched mccodes in years, dont recall exactly how that system is built. EDIT: You can also do a print_r($r); To see if the data has been retrieved correctly from the database
  3. Apparently $ir['level'] is for some reason never higher than $r['wlevel'] I suspect there is something wrong with one of the variables. echo 'if ('.$r['wlevel'].' < '.$ir['level'].')'; // should show clearly if there is anything wrong with the vars if ($r['wlevel'] < $ir['level']) { echo "You are not at a high enough level to equip this."; $h->endpage(); exit; }
  4. Looking forward to see them over the holidays then :)
  5. Thanks that works fine
  6. If it is core updates/additions to the engine, or its core modules, modules that you have to pay for. I would PM Alain or you could, post what you have added. I don't think the engine owner mind some code to be exposed. Like this File location and name: At line: Code added: Replace line numer with etc If its good and secure, I am pretty sure he will add it to the existing code. If you write stand alone modules, you submit them to the market place. For details about that see: http://www.nw-engine.com/wiki/index.php/Marketplace
  7. Thanks for sharing, looks interesting
  8. Would like to request a change in libs/ajax.php:238 and libs/template.php:158 so that the button can be returned and printed. This feature is available for LinkButton but as far as I can see not for Ajax::Button and ButtonArea. Can add it myself, but it would be a hassle during updates.
  9. LOL for sure I meant bath :) Any hows, I'll dig into it a bit and try to see what causes this. It has happened a few more times. The path type seems to have nothing to do with it anyways.   EDIT: This is the explorations table record, causing the problem id: 7 type id: 2 description: Translate("You found %d !Currency !",$v) code: $v=rand(2,10)*1;/*rnd*/$userStats["!Currency"]->value+=$v; EDIT 2 The bug is also present in the demo of the game Also noticed an error in the bottom of pages in the engine demo Fatal error: Call to undefined function error_get_last() in /www/new_worlds/demo/libs/common.php on line 1147
  10. If looking for a framework, and not a turn key operation, I too can vouch for the NWE engine. Been checking it out the last days, and its really a solid framework. The amount of hours saved by using this framework I imagine is in the hundredS, that is if I even could think up all the backed features and structure that have went in to it.
  11. Like the simplicity of the theme you use. Cant help but recommend that you enable perma links in wordpress, it helps alot in ranking in the search engines. in control panel go: Settings → Permalinks Check the post name setting, if your version does not have that, check the custom one, and enter %postname% More details here http://codex.wordpress.org/Using_Permalinks (If the blog is old and ranking well in search engines, you might not want to do this)
  12. Good one, clever spamming though. Sort of on topic forum, enter a lot of related keywords and not to greedy (only placing one link).
  13. Error: Undefined variable: v HINT: You should always declare your variables before using them. However this error could be triggered as well if you made a typo in the variable name or you missed to call the global $var_name command. Error in evaluated code: ResultMessage (Translate("You found %d !Currency !",$v),false); Error in "F:/xampp/htdocs/nwe/libs/common.php(1140) : eval()'d code" Line 1 Error in F:\xampp\htdocs\nwe\libs\common.php Line 1140 Error in F:\xampp\htdocs\nwe\modules\explore\content.php Line 108 Error in F:\xampp\htdocs\nwe\libs\common.php Line 554 Error in F:\xampp\htdocs\nwe\index.php Line 316 Please help us to improve the game by providing as much information regards any bugs. ----############################ Error: Undefined variable: v HINT: You should always declare your variables before using them. However this error could be triggered as well if you made a typo in the variable name or you missed to call the global $var_name command. Error in evaluated code: ResultMessage (Translate("You found %d !Currency !",$v),false); Error in "F:/xampp/htdocs/nwe/libs/common.php(1140) : eval()'d code" Line 1 Error in F:\xampp\htdocs\nwe\libs\common.php Line 1140 Error in F:\xampp\htdocs\nwe\modules\explore\content.php Line 108 Error in F:\xampp\htdocs\nwe\libs\common.php Line 554 Error in F:\xampp\htdocs\nwe\index.php Line 316 Please help us to improve the game by providing as much information regards any bugs. -----###################################   1st time I went to explore in the welcome page, went to a bath, clicked choose another path (path 2), and clicked on the big rock on the map. 2nd time I did the same, digging on the map worked 3 times, beofre the error came up. I have not modified the explore module in any way
  14. Think urban mafi is on to something there. In general when debugging. It can be useful to do something like this   function drinking_check() { $thug = mysql_query("SELECT `drinking_lvl`,`drinking_exp`,`drinking_expneed` FROM `users` WHERE (`userid`=".$_SESSION['userid'].")"); echo "SELECT `drinking_lvl`,`drinking_exp`,`drinking_expneed` FROM `users` WHERE (`userid`=".$_SESSION['userid'].")"; $s = mysql_fetch_array($thug); print_r($s); $s['drinking_expneeded']=(int) (($s['drinking_lvl']+1)*($s['drinking_lvl']+1)*($s['drinking_lvl']+1)*2.2); if($s['drinking_exp'] >= $s['drinking_expneed']) { echo '$s[\'drinking_exp\'] >= $s[\'drinking_expneed\'] is true'; $expu=$s['drinking_exp']-$s['drinking_expneed']; $s['drinking_lvl']+=1; $s['drinking_exp']=$expu; $s['drunk_max']=+15; mysql_query("UPDATE `users` SET `drinking_lvl`=`drinking_lvl`+1,`drinking_exp`=$ex pu WHERE (`userid`=".$_SESSION['userid'].")"); echo "UPDATE `users` SET `drinking_lvl`=`drinking_lvl`+1,`drinking_exp`=$ex pu WHERE (`userid`=".$_SESSION['userid'].")"; // or do // mysql_query("UPDATE `users` SET `drinking_lvl`=`drinking_lvl`+1,`drinking_exp`=$ex pu WHERE (`userid`=".$_SESSION['userid'].")") or die(mysql_error()); } }
  15. Kickstarter is a funding platform for creative projects. Everything from films, games, and music to art, design, and technology. Kickstarter is full of ambitious, innovative, and imaginative projects that are brought to life through the direct support of others. http://www.kickstarter.com
  16. The pretty url to me would be neat, but a must. It has no value other than looking better and perhaps take away a bit of the feel of browsing the web. If I really really wanted to have this I suppose I could just make a template where the game is inside the a frame, the url would then remain the same to the user.
  17. If module developers plan for it, this could be used /mines/bb5e994f726ece014504f45bf30fc56f/1 The first positions in the url array is system reserved for token and module name. Or they could be configured as part of the config.xml system, and perhaps auto assigned to $_GET['mine'].   Or less pretty, but should work fine and not effect existing modules /mines/bb5e994f726ece014504f45bf30fc56f/?mine=1   Something I wrote sometime ago .htaccess RewriteRule ^(.*) test/index.php?first=/$1   Then in test/index.php I did $rq_pices = explode('/',$_GET['first']); if( $rq_pices[2] == 'backend' ){ //Ajax request if($rq_pices[2] == 'backend' && in_array($rq_pices[3], $pages_bc)){ include 'backend/'.$rq_pices[3].'.php'; die; }else { echo 'Aouch not a proper rear entry'; die; } }
  18. Pretty links suggestion   http://localhost/game/index.php?p=explore&token=ec7beaacbabc8c843951d021ab132cbb   becomes   http://localhost/game/explore/ec7beaacbabc8c843951d021ab132cbb
  19. Aha And your abselutely right, those should be userstats
  20. Yup, no more errors :)
  21. Doing some testing to get a grip of how the engine works. content.php   <?php SetUserVariable('attack', 1050); TableHeader("Player Stat"); echo 'Attack: '.GetUserVariable('attack').'<br />'; echo 'Defense:'.GetUserVariable('defense').'<br />'; echo 'Speed:'.GetUserVariable('spvvveedfff').'<br />'; TableFooter(); ?>   This outputs Player Stat Attack: 1050 Defense:1050 Speed:1050 spvvveedfff is not a real variable at all but it returns the attack value. Here is the config.xml that is used for this module <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.nw-engine.com/modules.xsd"> <module name="Abilities" version="0.1" author="Someone" description="blah" /> <variable name="attack" /> <variable name="defense" /> <variable name="speed" /> </configuration>   And how do I set a default value for uservariables
  22. Yes that was in send money. Unless the $_POST data is validated in another place, like in a functions.php your script is vulnerable to mysql injections. Open includes/functions.php and search for $_POST hopefully there is something that checks each entry in the array.
  23. Update modules from admin panel. I can like that Now there are only the 2 about the theme_table Description Resource Path Location Type cvc-complex-type.2.4.a: Invalid content was found starting with element 'image_upload'. One of '{theme_table}' is expected. config.xml /NWE/modules/npc_discussion line 25 XML Problem cvc-complex-type.2.4.a: Invalid content was found starting with element 'image_upload'. One of '{theme_table}' is expected. config.xml /NWE/modules/combat line 25 XML Problem
  24. https://flippa.com/buy A site that earns at least 30£ a month, then you can make a new topic next year about an 360£ item :) And the next year a 720£ item
×
×
  • Create New...