-
Posts
283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Someone
-
Thats a great idea. Module downloading is nice, but it really is just for downloading to development server at the moment. Few if any mods can be directly used/updated from the market place to a live game. Marketplace->Devserver->Live Game should ease the maintenance of a game by a good portion.
-
Sooooooo... Page generated in 0.0108 seconds. :D The issue was with hostname resolving. Connecting with localhost as the server name on windows machines may cause problems. If anybody in the future have long mysql connection time. The simplest will be to use 127.0.0.1 as hostname instead of localhost. Or in mysql config file under [mysqld] section add skip-name-resolve _Before_ doing that, make sure to have added a user with 127.0.0.1 as host. This can be done in phpmyadmin. Seems to be no reason to use persistent connections after all :o
-
Went and checked the profiler at the engine demo, it was 1ms as well, so there must be something slowing my end. Good point on testing outside of NWE. <?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; new mysqli('localhost', 'root', 'PASSWORDHERE', 'DATABASENAME'); $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo 'Page generated in '.$total_time.' seconds.'; ?> Outputs: Page generated in 1.0282 seconds.
-
So 1000ms is not normal then LOL Was looking for similar systems to compare against. When using persistent connections, I do get errors if not logged in though. If I send a bug report, it works again, something in the bug repoeting restores the connection. So its not working 100% just to change the connection type. Profiler info: (mouse over -> expand) Include time: 10 ms DB Conn time: 1 ms Pre process time: 4 ms Load stats time: 45 ms Run libs time: 8 ms admin_game_stats 0 ms avatar 0 ms banner 0 ms clans 0 ms combat 1 ms hospital 0 ms inventory 0 ms jail 0 ms level_handler 0 ms locations 0 ms messages 0 ms ngm_crime 0 ms npc_shop 0 ms personal_log 0 ms quests 0 ms security_token 0 ms speed_puzzle 0 ms validate_values 0 ms Run auto_pre_content time: 112 ms admin_game_stats 81 ms admin_side_panel 11 ms auto_logout 1 ms cron 1 ms flood_control 1 ms game_lock 1 ms lottery_grid 1 ms ngm_crime 1 ms player_class 3 ms player_template 2 ms restore_stats 3 ms tutorial 4 ms Run module time: 92 ms Run auto_post_content time: 109 ms admin_action_log 58 ms inside_menu_boots 43 ms messages_alert 1 ms ngm_stats 1 ms tutorial 1 ms Run finish time: 7 ms Full engine time: 390 ms Queries: 39 Query Time: 207 ms
-
Thats great, glad you got it working :cool:
-
This is on my local windows 7 xampp PHP Version 5.4.7 Do not have much to compare with. The 1000ms was on all pages in NWE (I have not made any new queries outside of content.php files ). What connection time do you get?
-
What exactly did not seem to work? If it was the install.php modification, I think we are down to two things, your server can not connect to nw-engine.com or the key is somehow invalid. To check the key goto: http://www.nw-engine.com/verify.php?l=XXXXXXXXX&sip=::1 Replace Xs with the 10 first numbers/characters of your key. As for connection, you will have to check curl or fopen settings. They might be disabled on your server, especially if using a free server. btw cheap/free hosting accounts will suspend your account the minute you get even a little bit of players.
-
Enabled the profiler, and saw that db connection took about 1000ms on average. A freaking second! Looked into mysqli and changed line 36 in lib/config.php $this->conn = new mysqli('p:'.$host, $username, $password, $dbname); To enable persistent connection. So new connections are not made on each page load. Connection time went down to 2-3ms Persistent connection has other things to think about I am sure, and still learning about mysqli myself. But I will at lest use it while developing. Does make sense to use in a game, where a user is expected to do frequent page loads. Should perhaps be an optional setting? More about persistent connections http://php.net/manual/en/mysqli.persistconns.php
-
Until then you can use this url https://149.255.58.112:8443/sitepreview/http/coursefishing.net/ Ignore security warnings
-
Yeah, turning your modem of for a few (30 sec is my isp recommends) seconds is always healthy. That and the flushdns, browser could also use a temp dns list, but since tracert also fails, cleaning temp files wont do much.
-
I see that the domain was registered yesterday. Give it some time, your DNS registry that you connect to need to refresh.
-
No apparent adult sites on the server (judging by the domain names) http://www.yougetsignal.com/tools/web-sites-on-web-server/ Can you access http://149.255.58.112
-
Well thats a first for me. Could be the server is in a bad neighbor hood. Ill do a scan on that. btw I edited my last post, dont know if you read it before or after I edited.
-
Ok try in cmd type: tracert coursefishing.net Shows you where the connection fails
-
No problem, also did a test using http://www.dotcom-monitor.com/WebTools/task_hot_test.asp?id=1 There where no errors from any of the proxies. try: start > run > type cmd type: ipconfig /flushdns
-
Yeah I got a MyBB forum
-
What exactly is the error message at line 44 What tool are you using to view/edit the license.php (recommend ftp and not cpanel file browse) The file not keeping its value sound like a file permission issue. Make sure license.php has the correct value. And then upload and overwrite. Run installer, but do it in another browser (or clear cookies), I noticed the key check stores the result in a session variable. Another thing you can try, is to edit the libs/db.php At line 493 insert $licenseKey = 'keyhere';
-
I am wondering how to get the number of rows in a result set. My best guess is that it should be $result->NbRows holding the value, but it stays at -1 // Sample code at http://www.nw-engine.com/wiki/index.php/Database $result = $db->Execute("SELECT amount, bonus, rate, time FROM ngm_bank WHERE playerid = ? LIMIT 5", $userId); var_dump($result); while(!$result->EOF) { print_r($result->fields); $result->MoveNext(); } $result->Close(); The vardump output: object(Resultset)[16] private 'result' => boolean true private 'stmt' => object(mysqli_stmt)[18] public 'affected_rows' => null public 'insert_id' => null public 'num_rows' => null public 'param_count' => null public 'field_count' => null public 'errno' => null public 'error' => null public 'error_list' => null public 'sqlstate' => null public 'id' => null public 'fields' => array (size=4) 0 => &int 1000 1 => &int 10 2 => &int 1 3 => &int 1356859428 public 'EOF' => boolean false private 'conn' => object(mysqli)[14] public 'affected_rows' => null public 'client_info' => null public 'client_version' => null public 'connect_errno' => null public 'connect_error' => null public 'errno' => null public 'error' => null public 'error_list' => null public 'field_count' => null public 'host_info' => null public 'info' => null public 'insert_id' => null public 'server_info' => null public 'server_version' => null public 'stat' => null public 'sqlstate' => null public 'protocol_version' => null public 'thread_id' => null public 'warning_count' => null public 'NbRows' => int -1 private 'currentRow' => int 0
-
Is the key correct in the file config/license.php Are you installing on a web server or local computer? If at home there I think here could be firewall issues. Is Curl or fsock working correctly. Dont think I needed to insert the key from anywhere, the key was in the zip file. Did you use the self installer, or the full package
-
Just thought I would share a good article about front end optimization http://developer.yahoo.com/performance/rules.html For tips such as:
-
Perhaps we should send a_bertrand of to a marketing class. Found the engine by random really. And I was activity seeking out php game engines Lesson 1: Get on hotscripts.com a_bertrand mentioned something about 2 weeks off, last activity was 22. As I have seen he is usually very active on these forums. I am very happy with the engine, and I dont mind that its not an out of the box solution. Opens for more variation in the games made with it. Then, does anyone know of a game made with NWE? Currently I am not sure what I will make out of the engine. Currently made a theme compatible with Twitter Bootstrap, still needs refining and improvements before sharing. Made a classic mafia crimes module that uses "nerve". Made for internal use, so crimes needs to be added by file. I'm not very experienced with making solutions that fit other developers. And I think any game owner needs to know how php/websites work anyhow, so not to focused on that. I am leaning towards making a mafia style game. Any games in mind Greg? And please do keep posting
-
Using the demo sample of npc_discussion, How to reproduce: make sure you have 100!Currency Ask the NPC (the old master) if he can heal you In another broswer window spend the money Click Sure at the NPC window, get free healing
-
Made a new account named demo Got this message: A username cannot contain more than 5 characters. Then set the username to: demo4 Registered, logged in, choose class as farmer. Bam, send to an error page with no details. Stuck there every time I log in. I had just logged out as admin, before creating the account. By manually entering index.php?p=logout I can re-login as admin. I also tried to login using another browser, with no luck. ^^^^ Was my error, and now I know that the sent in error reports contain more information if the user is not admin. The first part here is still valid though.
-
I see, I miss understood the issue.
-
Experimenting with making a template for NWE with it. Takes a bit of changes to the core to get it working. But once in place I think it can make for rapid development.