Jump to content
MakeWebGames

runthis

Members
  • Posts

    309
  • Joined

  • Last visited

Everything posted by runthis

  1. [MENTION=65371]sniko[/MENTION]. Yes, yes, and more yes. I may Hire you!!! Jesse
  2. runthis

    Exploits

    Hi. I would be more than happy to assist you in solving and understanding glitches in these type of games. Please send me a PM with your question and I will try to respond within the week. Jesse
  3. Hi. CodingKid :: I would help you program this for free and you can take all of the purchases. Jesse
  4. Hi. If you take a look at the game projects section ( http://makewebgames.io/showthread.php/45116-Free-Coding ), I am offering free programming, I am willing to work for free, and you can keep your money, I am an experienced programmer in PHP, CSS and Javascript as seen by my previous makewebgames threads. I work for a large hosting company. you may have heard of " Hostgator " before. I will be more than happy to offer my services. I am not good at design work, although I am OK and can make decent semi transparent graphics, etc. I am mainly focused on functionality and animation (javascript). Message me here with a way that I can contact you (MSN (preferred), phone, text message or other) and I will be glad to help. Jesse
  5. Hi MWG. I thought since my avatar says "Hacker" and since I have not posted on here in months (year?), that I would provide an example of the type of work I am referring to. One thing I think is missing from most mccodes type games is a quick convenient way to communicate with other players, also animation. This is why I invented, only seen by me, the cellphone. The cellphone protrudes a few pixels from the bottom of the screen wherever you want it to be on the bottom (left, right, middle). The cellphone can incorporate any features you can think to be viable in your game, especially a contacts and messaging system. The cellphone works by clicking the top 15 pixels and the phone slides up animated (no jquery or other framework required) and when you click the middle button located at the the bottom, the phone hides itself again. Many aspects have been pre-considered, such as super long strings, injections and scroll bars (hidden), scroll with mouse wheel (can be changed). The phone features up to 7 menu icons like a real phone and resembles the Samsung Galaxy S5. This is an original idea (in text based games) and can add excellent play ability and ease of access to your games messaging system, as well as other features you want added (such as a help document). Message me on McCodes and mentioned above. Important Note:: There is music at the below URL. The menu buttons intentionally do not work in the below example as I have to make them specific to your game (maybe you want only 3 icons, etc). As I am making a new hacking game, this page may change in the future. Contact me via this site to view a sample if future googlers do not reach a cell phone example page. URL: http://poppadopolis.com/mygame/
  6. Howdy MWG. As the title says, I am offering free coding and development. I know this sounds too good to be true. but it is! I do not require monetary compensation. I am a bored administrator working for Hostgator LLC (EIG) and I genuinely want to make improvements on existing projects. While I would rather not fill in holes in your games, I am up for whatever. I am not really big on design work, such as making you a bad ass graphic. I want to offer my service in php, javascript development. How does this work? You send me a PM with your game URL, best time to contact you, what you need done. I check makewebgames for new messages. I message you back providing my name, number, msn screen name. You either call (or text if you are not in the US and I will call you) or add me on MSN and text me to tell me you have done so (if you want to). I will check out your game and listen to your needs and provide you mine. You do not need a fancy game, or a great game. If your game is big and you need a lot of work, it is still free. I do not want ownership of your game, or moderator rights. I am bored as heck in my position at Hostgator and I do not want to lose my programmer edge while I do Support Tickets. Moderator / Admin, please test this service for verification purposes.
  7. I am looking for someone who is familiar in php, mysql, javascript or jquery, html, css. Someone who is genuinely passionate about Hacking Games in general. I have been in the process of making a Uplink Online game. Uplink is a computer game released over 10 years ago. Very addictive game. I have found that these days, the technology regarding the animations for Uplink can now be done in web browsers. I am looking for a partner. I do not plan for this game to make a ton of money, I do not plan for this game to get a ton of players, however if you played Uplink, really loved it, probably still have it, and these days do some programming, this post might be for you. If this game is properly created without ruining the original game, it will become a cult classic. I have developed a layout, the map, the layout of the map where bounce links do not touch water, animations, menu and icons, music, sound effects, and the overall construction of the games design skeleton and style. Unfortunately the time I have to develop and program a game has become limited. This post is not for everyone, however if you are genuinely interested in helping Uplink be an online community game. Feel free to contact me. I will check in once a week. Thanks, Runthis
  8. I prefer http://hostchopper.com/
  9. Since $r is a short for return, i am assuming $ir is short for Id Returned
  10. I see a lot of threads on here about people who are just looking to buy a game, little to no programming experience and are really just looking for that brand able solution. In reality this can get very complicated when dealing with one persons thoughts on a game to the next. I thought it would be nice if someone offered a make a game service at a fair price. This service will not provide you a full one stop solution to game making. What I will provide: I will provide a game framework based on your ideas within reason. I will provide a functional working version as a demo including admin panel. I will provide up to 1 month cpanel hosting on my Dedicated Server. I will provide up to 1 month of full support on the script. I will provide up to 3 new features within the 1 month support period, additional features may be purchased through a separate negotiation. I will provide modifications within reason. I will provide a reasonable turn around rate based on first come first serve basis. I will provide An API so programming in new features can be easily done. I will provide A readable source code tailored to your game. What you will get: An object oriented framework of a game in your genre with your ideas written from scratch in php, ajax, javascript, html. A working demo of your game with minor style attributes.   What do I need to know: You will need to have a grasp on css styling, html and if you plan to release features, a grasp on php slightly for the API.   What I will not provide: I will not provide unlicensed software made by other developers I will not provide a full styled, logo created, game. This will be up to you to style your game and create logos/images. I will not provide hosting 1 month after the game is created, approved, paid for. I will not provide modifications like "Can you change this link to 'Hey' instead of 'Hello'" as I will require you to at least know something about html, css.   What I will charge: If you message me your basic idea I will provide you my personal email address or an msn contact and a valid time to reach me online in which I will request you email me a detailed description of your game and what features, actions this game should have for the end user, etc. I will then reply to your email with a quote for the work. Payment would be due when the project is completed. A good faith payment of 10% may be required on orders which is very reasonable.   What I do for a living: I am a Linux Admin at a reputable and very popular Web Hosting provider.   What payment types I accept: I can accept paypal or a money order through mail with tracking confirmation deducted from amount quoted.   Also you are more than welcome to use any game engines already on the market as this does not intend to detract from them but only to enhance gaming experience as a whole and offer a service that might be needed.   Look forward to hearing from you.
  11. Sure there are, but I have only showed you the door, you must open it
  12. @Arson, I would be more than happy to program you a working game of your choice within reason for $500. I could guarantee a 2 week turnaround with secure code and administrator functions. For this amount of $500 I could offer you the general framework including a working example and would provide cpanel hosting / full support after completion for up to 1 month. I would also provide you proof of completion through the games website / admin panel before payment. Feel free to message me some details on the type of game you want and I would be more than happy to assist in a project for you. Note: If you need to use a framework such as McCodes you will need to provide a legal licensed copy and I can not guarantee the already programmed functions of the previous developers. Thanks and have a good one.
  13. Sure, I went ahead and made a demo, just view the page source to see basically the exact same code as above except with more tracks http://www.purevirus.com/demo
  14. If you are running a Dedicated or VPS solution this is a nice thing to add to your admin backend for some nice malware scanning on the fly. Go ahead and install clamav. (Google is thy friend).   This code will scan your public_html, or folder you designate and provide you the data   $scan=shell_exec("clamscan -ri /home/YOUR USER/public_html"); $scan="<pre>".$scan."</pre>"; echo $scan;   The command clamscan -ri means run clamscan, check sub folders and files as well ( r ) and also only display files if found to be infected only ( i ).   A full list of clamscans features via command line can be found here http://linux.die.net/man/1/clamscan
  15. This is if you have a Dedicated solution. Managing your database is obviously important, but you may want to take advantage of some of the great things you can now do Some of these options need to be adjusted for specific sites as certain things could cause major issues, for example taking my first suggestion below and setting "tmp table size" to a high number would cause something like this to happen. Max user connections set at 200, tmp table size of 100mb would equal a 20gb database running if those connections were at max, be wary of these suggestions and research first. The first step is taking a look at phpmyadmin > status > all status variables Next, find your red sections, I am sure there is at least one. A common one is this   The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based.   You can then go to Variables in phpmyadmin and navigate to the tmp table size row, depending on your phpmyadmin version (why dont you have the latest!) and click the variable of 16mb it is probably at and up this to 32mb. A great way to avoid these is to also rewrite your queries. too   Next thing you might see is   The number of tables that have been opened. If opened tables is big, your table cache value is probably too small.   This is an easy fix and could be solved my navigating the same way as above to Variables and finding "table open cache" and adjusting this to a number that would cause this to not increase. Some testing may need to be done   Ok now the fabled innodb discussion. This is merely choice on your part and you should be looking this up, while InnoDB has increased the speed of my game it may slow your down :( Here is a way you change your tables to innodb though if ever interested in doing so. In a truly optimized world you should be using different engines on different tables for different reasons, for example if you have a table that stores data and is rarely accessed, like a log, you should use the Archive engine. Since this solution was not found by me I will have to link the original article, this is a nice sweet code that converts the tables in your database to innodb for you, I am linking this as the person who wrote this offers warning and suggestions you should read first. http://kvz.io/blog/2010/04/27/convert-all-tables-to-innodb-in-one-go/   That is all for now as I worked a long shift last night but there are tons more things you an do and hopefully this gets the pot stirring for some other nice methods from users here. Feel free to add your own findings.   One still relevant article on optimizing your mysql queries specifically is this - http://www.openlogic.com/wazi/bid/195905/Tips-and-Tricks-to-Optimize-MySQL
  16. These examples are great, but I may want to add that if you are using a Dedicated Server or a VPS, you will be able to compile apache with mod_sec which will block most sql/xss injections.
  17. So since I run an online hacking game focused on "Uplink" nostalgia, I needed music, now this is obviously something you want to give a user control over and should not be something you added to be "generous" as most users might find what you consider to be "music" annoying. However this, with help of html5 will get you on the right path to getting a soundtrack going. This code will play 5 tracks assuming they are named track1 - track5 ogg or mp3 (it is recommended you have both for browser compatibility) and is playing them from a folder named "sounds" and when finished with track5 (last track), it will loop back to track1.   var snd; //declare this so you can create options in other parts of your game later to pause songs, change volume, etc. function music(track) { if (window.HTMLAudioElement) { snd = new Audio(''); if(snd.canPlayType('audio/ogg')) { snd = new Audio('sounds/' + track + '.ogg'); } else if(snd.canPlayType('audio/mp3')) { snd = new Audio('sounds/' + track + '.mp3'); } snd.volume=.60; // 60 percent is a good way to be less obtrusive snd.play(); if(track == 'track1'){ snd.addEventListener('ended', function() { music('track2'); }, false); } if(track == 'track2'){ snd.addEventListener('ended', function() { music('track3'); }, false); } if(track == 'track3'){ snd.addEventListener('ended', function() { music('track4'); }, false); } if(track == 'track4'){ snd.addEventListener('ended', function() { music('track5'); }, false); } if(track == 'track5'){ snd.addEventListener('ended', function() { music('track1'); }, false); } } else { } }     Usage example   music('track1');   Some usage examples that can be programmed with a bit of javascript to a slider to change volume or tied to a onclick event   snd.volume="1.0"; // Maximum snd.volume="0.1"; // Pretty low snd.muted = true; // Mute snd.pause(); // Pause music snd.play(); // Play music   Demo Wont be available when my new game is released. http://www.purevirus.com/demo
  18. So one problem with an ajax page is that someone could just look at your source code and know where the data is being sent to. One neat trick I invented to kind of confuse a user who may not even notice this is happening is this code which tells the user the page does not exist and give them a 404 page.   if(!isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { header('Location: /yourpage,php'); die; }   What this code does is redirects the user to the same pagename but replaces the period with a comma. This is a nifty little trick and is super great and 99% of the time the end user will not even notice. It is important to remember that not all ajax scripts will send this directive and this directive can be faked by the end user in certain scenarios. In this case you can always force it to have this directive this way before sending the request   VAR.setRequestHeader("X-Requested-With", "XMLHttpRequest");   Change VAR to your request variable, such as xmlhttp
  19. This example is to not allow access to directories that have no index defined. A sloppy way of doing this is to manually create index.html files in these directories. This one line in your htaccess may help more.   Options +FollowSymlinks   Now this produces a nasty looking 403 Forbidden page, so lets define some error page redirects, this is a great way to style these error pages, but an even better way to stop specific users from trying to access your data with a simple redirect that states every error as a 404 type page   ErrorDocument 400 /404.php ErrorDocument 401 /404.php ErrorDocument 403 /404.php ErrorDocument 404 /404.php ErrorDocument 414 /404.php ErrorDocument 500 /404.php   This above code redirects these error messages to 404.php which could contain code like this which tells a 403 forbidden error to say "Does not exist" which would make a user assume the directory is invalid/   $http_status=$_SERVER["REDIRECT_STATUS"]; if($http_status == 403) { $error="Does not exist."; } echo $error;   Also in a game type situation you could have someone trying to discover tricks or cheats in your game, so this file would be a great place to log some sessions into a database table called error_pages and maybe only log the important ones such as 403 and 500 (for debugging).     Moving on, lets say you have a login.php page and you simply want to hide the php extension, so users could visit domain.com/login or want that to display in the browser. This htaccess directive would assist with this.   ## only need RewriteEngine on if it is not set already RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php     If your server supports gzip compression (mod_deflate) then this is great way to send compressed documents to the end users web browser, which is almost a trade off because the browser has to decompress it, but helps with the server. If you have a cPanel this could also be accomplished easily through Optimize Website. If mod_deflate is compiled on your server , this option would automatically show in cPanel depending on your hosts configuration. There are many different ways to write these, this is your basic example.   # compress text,html,js,css,xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript     This next example shows how you can satisfy gtmetrix and yslow while getting some premium caching done on the end users browser. This assumes mod_expires is complied on your server.   <ifmodule mod_expires.c> <filesmatch "\.(jpg|gif|png|css|js)$"> ExpiresActive on ExpiresDefault "access plus 1 month" </filesmatch> </ifmodule>   This tells the browser to keep common images like jpg,gif,png and files like css,js for 1 month. This should in no way be enabled on a dev site as you might be asking your users to clear cache a lot.   Thats all for now. Feel free to improve upon these in your replies to help future readers or even googlers.
  20. This is very similar to my cpu usage thread. If you are on a Shared server this code would be obviously different and would not work with safe mode on, however for those of you with Dedicated or VPS servers, this works great on removing the root processes and focuses on your games RAM usage. This is on a Centos 6 machine, sum variable "$9" may need to be adjusted for your OS. Function displays percentage   $ram_usage=shell_exec("top -b -n 1 -u USERNAME | awk 'NR>7 { sum += $10; } END { print sum; }'");     Simple 'if' usage displaying colors, feel free to improve this example   if($ram_usage < 20){ $color='lime'; } if($ram_usage > 19){ $color='green'; } if($ram_usage > 45){ $color='orange'; } if($ram_usage > 65){ $color='yellow'; } if($ram_usage > 85){ $color='red'; } $ram_usage="<font color='{$color}'>{$ram_usage}%</font>";
  21. If you are on a Shared server this code would be obviously different and would not work with safe mode on, however for those of you with Dedicated or VPS servers, this works great on removing the root processes and focuses on your games CPU usage. This is on a Centos 6 machine, sum variable "$9" may need to be adjusted for your OS. Function displays percentage   $cpu_usage=shell_exec("top -b -n 1 -u USERNAME | awk 'NR>7 { sum += $9; } END { print sum; }'");     Simple 'if' usage displaying colors, feel free to improve this example   if($cpu_usage < 20){ $color='lime'; } if($cpu_usage > 19){ $color='green'; } if($cpu_usage > 45){ $color='orange'; } if($cpu_usage > 65){ $color='yellow'; } if($cpu_usage > 85){ $color='red'; } $cpu_usage="<font color='{$color}'>{$cpu_usage}%</font>";
  22. I thought I would post a function for you guys as I remembered I used to frequent here. This function will get the total size of your mysql database for you and present it in a readable format. This is nice for your admin back-end I will provide the function, followed by simple usage example   function dbsize($database, $db) { $tables = mysql_list_tables($database, $db); if (!$tables) { return -1; } $table_count = mysql_num_rows($tables); $size = 0; for ($i=0; $i < $table_count; $i++) { $tname = mysql_tablename($tables, $i); $r = mysql_query("SHOW TABLE STATUS FROM ".$database." LIKE '".$tname."'"); $data = mysql_fetch_array($r); $size += ($data['Index_length'] + $data['Data_length']); }; $units = array(' B', ' KB', ' MB', ' GB', ' TB'); for ($i = 0; $size > 1024; $i++) { $size /= 1024; } return round($size, 2).$units[$i]; }     Simple Usage   $link=mysql_connect("localhost", "User", "Password"); mysql_select_db("Your_Database_Name",$link); echo "Database Size: ".dbsize('Your_Database_Name', $link);
  23. For some reason i thought of this cool mod for you mccodes owners, but i have no idea what version is new now or what. I was wondering if it is easy to convert a 'lite' mod to whatever the one everyone is using now?
×
×
  • Create New...