-
Posts
912 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by Coly010
-
it depends on the device itself but with hdmi your gonna assume its gonna be HD. Its advertised as full HD so I'm going to take a punt and say 1080p. HDMI is the cable type, its predecessor was the SCART cable I believe.
-
How about a standard client-to-client networking application in Java. Allows the two client machines to communicate with each other through the internet. If you want to make it a lot more advanced you can have them able to send files to each other. I'm not sure how plausible this actually is, however something at the back of my mind is telling me that it could possibly be accomplished by having one client machine set up a server in java to which the other client machine connects to.
-
[MENTION=70654]Jax[/MENTION] , I love how you take someone's legitimate answers and tear them shreds.. Do you consider the reasoning behind it, or do you just go by what makes more sense according to the PHP handbook? Yes my answer is basically the same as mt_rand(0,50); but when you create an array, shuffle it, and use a random function to select a certain value of an area, you are somewhat controlling the odds but keeping the randomness to it. It works a hell of a lot better for slot machines, admittedly. I sort of meant what I said before about loving how you tear people's answers to shreds, because clearly you have a great knowledge of php, but after this I've lost some respect. I read that and to me it seems like your saying MWG isn't good enough to know the differences between one php function and another? As if the people on here are juniors and below the need/ability to understand why someone might use rand(); rather than mt_rand(); or vice versa. From the php manual : Many random number generators of older libcs have dubious or unknown characteristics and are slow. By default, PHP uses the libc random number generator with the rand() function. The mt_rand() function is a drop-in replacement for this. It uses a random number generator with known characteristics using the ยป Mersenne Twister, which will produce random numbers four times faster than what the average libc rand() provides.
-
Yeah I agree with this. Another idea is to create your own odds: // 0 means you lose, 1 means you win $odds = array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1); array_shuffle($odds); if($odds[mt_rand(0,50)] == 1){ // win } else { // lose } That should work, and allows you to change the odds of winning. I believe there is a 1 in 10 chance with my code, you can make it better or worse.
-
And if you read Kyle's next post you realise that he doesn't say we aren't allowed to ask for paid work just that this forum might not be the best place to ask for paid work.
-
It's so bad. Hate feeling like this
-
I would gladly have done this for you cause I have done something similar in my own game, but in riddled with the flu atm /:
-
You say pre-defined, does that mean you simply have it coded so that it does a certain action once it gets to a certain point? What would be impressive, whilst also challenging, is if you set up an object called boundary, then you set up a load of boundaries, and gave the box a bit of AI code in which it decides for itself what way it should go to navigate it's what through the path. You have it determine where boundaries are and move in a direction away from the boundary, but never back on itself, done by storing the previous direction and preventing it from going back that way.
-
Yeah I typed that on my phone I was bothered to work it out, it would do the same job aha
-
Like I said, if someone is in jail for 20 mins, then if no-one is on for 30 mins, the person that was in jail comes back after 30mins, then you can have it that it takes 30mins away from everyone's jail time. If your not put off by a bit of work, then I have a workaround. $time = time(); $q = $db->query("SELECT lastUpdate FROM crons WHERE file='crons/minute.php'"); $r = $q->fetch_row(); $lastUpdate = $r[0]; $diff = $time - $lastUpdate; $updates = floor($diff / 60); // 300 for 5 min crons. 3600 for hour. 3600*24 for day if ($updates > 0) { // run crons, multiplying default values by $updates } That workaround is quite handy especially when you use it along with LEAST(); for any values that have a maxvalue, Eg $db->query("UPDATE users SET energy=LEAST(energy+(10 * '$updates'), maxenergy)");
-
Thanks a lot! I wasn't aware that empty() returned true for zero, Ill go right out and say that's a flaw in the mc codes engine then. I'll go through the files and sort it out. Thanks [MENTION=70654]Jax[/MENTION]
-
Yeah, that's because you need the page to load for the queries to execute. It's a drawback of them, although, if you count how long has passed since the last update say 10mins, then you run the 5min cron twice and the 1 min cron 10 times. If there is no one on your site, does it really matter if the users aren't being update, as long as when someone does come on your site, everything is updated correctly?
-
I just installed my first ever copy of Mccodes V2. Everytime I use the staff panel to edit items, add items, crimes etc I keep getting an error saying one of the inputs is in a bad format, or that one of the fields have been left out. I've noticed it occurs when I have a 0 in a certain place. I went to the code and I can't see why there's an error. I'm assuming its something to do with $_POST[formdata] = (isset($_POST[formdata]) && is_numeric($_POST[formdata])) ? abs(intval($_POST[formdata])) : ' '; where formdata is whichever type of data that's sent. I can't see a problem with if(empty($_POST[formdata])){ } if the data is 0. any ideas?
-
It wasn't exactly said before, we've noticed that there's something odd about the content box. I'm trying different ideas to see what I ljke best
-
I told him of all his exploits already as I've already hacked parts of his game. Forum sig had been protected from the usual exploit but it wasn't overly difficult to manipulate it, thus I was able to make him admin as I redirected anyone who looked at the forum to the staff panel
-
I noticed that there was something odd about the content box too, i thought it was the width of the menu so i changed it, looks a bit better, ill experiment around with it
-
Looks awesome!
-
Last I heard he was getting someone sorted to secure his website, its just taking him a while to get it sorted :/
-
Yep I've worked with jQuery a lot, especially for my social networking site :) you just gave me a brilliant idea though !
-
I'll work on the typography [MENTION=52003]Dave Macaulay[/MENTION] :) I just changed the font-family to sans-serif in css to get an example of what it may look like. As for having something that tells what the site actually is, I've been wondering about that myself. I've been fighting with myself whether to put a description box in, or a screenshot box. And even if I did do this, I dont know where I could put it, without spoiling the login as it is now, with everything in the centre. The fact users are lazy, the ones that have javascript enabled will not have to go to a different page to register, the ones that dont have javascript enabled will have to go to a different page. I'm thinking of maybe using javascript to have some screenshots appear randomly around the login box on desktop, but on mobile just having a static box for them.
-
Thanks for the feedback, #3 it is then :)
-
Well like I said, I'm currently in the process of creating a custom made engine. I'm sure I'll be able to make this game good, despite running mccodes.
-
Not at the moment, still formulating my ideas. I recently purchased a mccodes v2 license, and its more of a project to see what I can do with it, and how successful a game I can make with it. My main idea will be that despite it running mccodes, it shouldnt resemble mccodes right from the outset. The only other thing I can say for certain is that its going to be called Interstellar :P My other project Chaos Era will be running my own engine, Chaotic Engine, but thats nowhere near finished yet.
-
[MENTION=69639]DAMINK[/MENTION] drop it already. Its like you are in a battle to dislike his posts no matter what he says. He gives a genuine example which doesn't merit a dislike but you do it anyway? Security is a touchy subject. Both you and [MENTION=68774]HauntedDawg[/MENTION] have your own opinions over this. You don't need to be at each others throats over it as long as your content with what you do. Just leave it as is now.
-
Its a real photo as far as I'm aware, sourced from NASA, which allows you to use their images for commercial use if you want as long as there are no individuals in it and as long as you dont use the nasa logo. Its a great source for space assets. I will be turning this into a game, so I'm trying to get this right, thanks for the feedback. [MENTION=69670]Script47[/MENTION] [MENTION=70485]G7470[/MENTION] I've posted a responsive image of #3