Jump to content
MakeWebGames

Coly010

Members
  • Posts

    912
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Coly010

  1. [uSER=70283]Samurai Legend[/uSER] I think it's time you learnt OOP. An object, which the MoneyManager is, is a collection of methods (functions) and variables which are grouped together to perform similar tasks relating to the same concept. You are trying to print this object on screen. Essentially you are trying to print the PHP code, all the methods (functions) and variables. This isn't what you want. Within the MoneyManager file there are methods that will allow you to print the inflated price to the screen. EDIT: omit the ?> from the end of your file, it isn't needed
  2. My idea of how to control economy would be to give everything a base value then add or subtract to this base value depending on how the game economy is. I'll take a look at your code now [uSER=68711]KyleMassacre[/uSER] EDIT Seems your code uses base prices lol
  3. sha1 isn't much better. PHP comes shipped with its own password hashing function now anyway which is my preferred option tbh. password_hash($password, PASSWORD_BCRYPT); password_verify($passToChecm, $hashedPass); Also, the whole code would need to be rewritten to use at the very least mysqli. And to add some more security I would convert to use prepared statements. I don't know if [MENTION=65371]sniko[/MENTION]'s pastebin is an exact copy but if it is there doesn't seem to be much coherence to PSR-2 or any form of code style guidelines. I feel a switch statement would be better for the following: if($catchy1==1){$catchy = $mappy->poke1;} if($catchy1==2){$catchy = $mappy->poke2;} if($catchy1==3){$catchy = $mappy->poke3;} if($catchy1==4){$catchy = $mappy->poke4;} if($catchy1==5){$catchy = $mappy->poke5;} if($catchy1==6){$catchy = $mappy->poke6;} if($catchy1==7){$catchy = $mappy->poke7;} if($catchy1==8){$catchy = $mappy->poke8;} if($catchy1==9){$catchy = $mappy->poke9;} if($catchy1==10){$catchy = $mappy->poke10;} if($catchy1==13){$catchy = $mappy->poke13;} if($catchy1==14){$catchy = $mappy->poke14;} if($catchy1==15){$catchy = $mappy->poke15;} It just seems to be a mess
  4. Opengameart.org - number of free resources
  5. check the url. The cookies are different if you visit http://makewebgames.io or if you visit http://makewebgames.io , so you'll be logged into one but not the other
  6. Can we get the get the cookies for the Remember Me to work on both http://makewebgames.io and makewebgames.io ? If i visit one I'm logged in automatically, if I visit the other I'm not, If I try log into makewebgames.io I get a Critical Error
  7. Don't worry about it :) I understand and respect your decision on the matter, I just mean going forward maybe it is something that should be looked at.
  8. One thing I can suggest is moderating posts that single someone out and put them down. After what happened with me i questioned whether I should continue programming. I questioned if I should just drop out of uni. I was scared to go online. If I was simply hacked, it would have been fine, I could have dealt with it. But when someone writes a post about you, which is complete slander and insults, and people on the forum just sit and wait for a reaction as if it's good reading, something to enjoy. It hurts. So just try to moderate posts to make sure there isn't any form of bullying going on because from experience, it's horrible. Also, if someone does do something that singles out and targets a person to put them down and make them feel worthless, and they do it anonymously, but staff have info that could help reveal their identity, then I believe staff should be allowed to handover this info to the victim so that they can work out who it is. After all, hacking and cyber bullying is a crime. And if a person gets away with it once, what's to stop them doing it again.
  9. Hear hear. It's good to a bit of momentum back in MWG. And I'll agree that Kyle has done an outstanding job on this forum. But we need more staff to help him. If possible, staff that are in two different time zones, so while one is asleep another can be active, ensuring a 24hr moderation of the site. There needs to be active content deliveries to keep the forum fresh and to stop it from going dead, whether that be from a snippet of code that can be used to demonstrate a technique, whether it be free art assets, or even a discussion about a new piece of technology that could aid game development. Or discussions about elements of game designs. Things like controlling game economy, different play styles (eg, quest based - follow storyline, combat based - train and attack other uses to gain respect) For this we could maybe designate some content creators who will provide something each week or bi-weekly. Or if its something major then they could write a post telling us what we are in store for and hopefully generate a bit of discussion about it until it is released. Just need something to keep this place fresh and alive.
  10. there are a lot of domains based of countries: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
  11. Coly010

    Game Names

    Well even still if one person decides to make a game called Turf Wars then another guy who doesnt know about this existing game wants to create a game called Turf Wars. How is that situation handled?
  12. Coly010

    Game Names

    When creating a new PBBG, how do you know if you are infringing on another person's copyright. Like is there an easy way to find out if the name you want to give your game has been taken already?
  13. [MENTION=71662]CaptainQuack[/MENTION] your thoughts on this then if I'm wrong?
  14. From the way I see it. A game engine provides a game, with content pre installed. It's like an out of the box website. It focuses on the content and little to no coding knowledge is needed. A framework provides tools and to make a website. You can use the features provided within the framework to make the website itself. It focuses more on the actual code which still has to be written by a developer. One focuses more on letting you build and provide content easier whilst the other makes the developing side easier.
  15.     Precisely what robot said. DigitalOcean's Droplets don't ship with GUI Server Admin software. So you have to do a lot of things via command line. Crontab can be a nightmare if one you aren't used to command line, two you aren't used to UNIX commands and three because it's just genuinely horrible to try do lol.
  16. Cheeky ;) You may need a bit of support setting the crons up if you use DigitalOcean though as its a VPS
  17. Didn't realise they were open source. I'm gonna take a look myself now :P
  18. Just because I've been paid to work on it doesn't mean I'm not allowed to slate it. It's a terrible code base. I class myself as a developer, not a mccodes mod coder. Therein lies the difference. I've worked with other scripts, I've written my own. I can compare and create an opinion. But if a client is looking for work done on a specific script, be it mccodes or not, I'll do it, whether the code is horrible or not. The OP is looking for a code base to start his game, I can provide advice based on my experience working with other scripts. If I classed myself as a Mccodes Mod Coder, I technically wouldn't be allowed to slate it, as I'm slating my primary business, thus making it ironic. But as a PHP Developer I'm not restricted.   Nah nah nah. The game you have running mccodes is never bad when you are profiting from it, nor is the money you make from working on other games that run mccodes. Mccodes itself is a bad script.   Yep, exactly, however it is very messy and you can be forced to repeat yourself a hell of a lot, unless you make most of your backend code and put it into a class or create functions and add it to the already overflowing global_funcs.php file.   There is nothing wrong with providing alternatives to someone so that they themselves can form an opinion on which ones suits their needs and is the most feasible option for them, taking into considering budget etc.   Not that I know of either. EDIT just noticed your reply to Robot. Basically counters and agrees with my points :P
  19. If you want a V2 license on your head be it. The code is disgusting. Beyond disgusting. I'm pretty sure you may be able to get a good alternative for roughly the same price. Might need a few people to state whether that's true or not. I'd ask [MENTION=53425]Magictallguy[/MENTION] how much his MTG Codes goes for. You might also think about looking into [MENTION=65371]sniko[/MENTION]'s Panther. (If someone could provide the link that would be great, I don't have it handy and I'm on my phone) Just think you should look around before going straight to Mccodes.
  20. You are not. Which is why I generally browse this forum in desktop mode even on my phone. I find it easier to navigate than the mobile version as well as easier to keep track of new posts etc
  21. Exactly. Even if they did want to focus on other games they would just let this one keep running and keep generating revenue in the background
  22. No chance of letting bygones be bygones then....
  23. [MENTION=71663]IllegalPigeon[/MENTION] I think what [MENTION=64603]Sim[/MENTION] is really trying to say is that people posting different methods to complete a task and having others rebuke it with logical justification helps everyone learn. I extremely dislike the guy that we were trying to help mainly because I've had enough run ins with him in the past, since before even you had run ins with him. He's publicly apologised to me twice on separate occasions because I tried to help him with code and offer him advice on how to conduct himself. But despite that, if someone needs help, and I feel I can offer help, I'll help. It's not easy to get into programming for some people, I can tell that by looking around my uni class. Just because you dislike one person does not mean you should spite the world to deny them help. In other words, no need to hold potentially good advice and solutions back from the community to try prevent one person from getting help. Also [MENTION=64603]Sim[/MENTION] , my code now for it has moved the function into the sprite class. But I added a few more features into it and its turned into a slight mess I think, I might post the code again and see what people think, but I have a few ideas of how to make it a bit better.
  24. I'm a teenager also, no excuse. The second point is to query the database to get the information about the ad. Your problem is here: $anpdata = $db->query("SELECT * FROM `news_paper` ORDER BY `npTIME` DESC"); while ($npdata = $db->fetch_row($anpdata)) { $time = date('F j',$npdata['npTIME']); echo "<div class='codetop'><b>Ad By: <a href='viewuser.php?u={$npdata['npADDER']}'><font color = 'white'>" . $notl->username($npdata['npADDER']) . "</font> [{$npdata['npADDER']}]</a> | Added On: {$time}</b>"; if($ir['user_level'] == 2 OR $ir['user_level'] == 3) { echo " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}><b>[DELETE]</b></a></div>"; } else { echo "</div>";   Think about it. What does while(){} do in programming? It's a loop. It will repeat everything contained within the curly braces ( { } ) until a condition is met. Your condition in the while loop is this: while ($npdata = $db->fetch_row($anpdata)) { What this is saying to PHP is that you want to repeat everything within the curly braces for every row in the database table that meets your query: $anpdata = $db->query("SELECT * FROM `news_paper` ORDER BY `npTIME` DESC"); In other words for every newspaper article stored in the table. Within your while loop you have code that creates the ads that appear in the newspaper: $time = date('F j',$npdata['npTIME']); echo "<div class='codetop'><b>Ad By: <a href='viewuser.php?u={$npdata['npADDER']}'><font color = 'white'>" . $notl->username($npdata['npADDER']) . "</font> [{$npdata['npADDER']}]</a> | Added On: {$time}</b>"; if($ir['user_level'] == 2 OR $ir['user_level'] == 3) { echo " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}><b>[DELETE]</b></a></div>"; } else { echo "</div>";   So it creates this ad for every article you have in the newspaper. Hopefully that has helped you understand your own code and therefore given you something to think about to fix your problem. Unless I've completely misunderstood the problem...
  25. If you say you already know it, expect [MENTION=71663]IllegalPigeon[/MENTION] to hit back with something along the lines of "if you already knew it you wouldn't have asked for help." Just be careful what you say. But this is getting off topic. You said you got a solution to your problem? Post it here so others can learn from it
×
×
  • Create New...