Jump to content
MakeWebGames

Spudinski

Members
  • Posts

    1,731
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Spudinski

  1. The $ir variable hold the currently authenticated user's information, which is retrieved via a SQL query to the database(the `users` table). Each user is referenced via the $_SESSION global, which is actually an two dimensional array. Within that array, there resides a key named "userid", and that is like the key to open the door to the player's data. Now the SQL query mentioned above, searches for the player's data which hold the ID of `userid`. Everything that matches that ID, is manipulated into the $ir variable, which is also an array. The `user_level` key used in the logical IF statement in your post, is the currently authenticated player's "permission" to access certain parts of the website. A player holding an permission of "2", will be an administrator. If I remember correctly, here's a permission table MCCodes uses below:   This might not be accurate, I've not programmed with MCCodes in quite some time, so if anyone wishes to correct these please do.
  2. It's to do with character encoding, and from what seems like a flaw in the copy-to-clipboard method they use. Notepad is keen on using *nix line endings, and formatting them. I've been using Notepad++ for almost a month now, and my main reason for it is to replace original notepad for compatibility with those "\n" line endings. a_bertrand, being a desktop developer should be able to give a more detailed explanation for this.
  3. Android right? So it's a Linux kernel with an app layer and a few other things. I'd suggest getting into normal user mode, and copying everything important to a memory card, and then wiping the device. That coupled with a re-install should work. But Andriod support forums will be able to give better advice.
  4. Although I almost never use versioning, since I mostly write all my own apps: I have only ever used Subversion and git. And when I have to compare two things I know nothing about, other than using them, I just pick one.
  5. My list of preferred communication methods for online stuff: 1. Email 2. IRC IRC still isn't as personal as email, so I still choose it. However, when it comes to chatting with multiple people IRC is on top. The reason why the developer in me love IRC, is because you can set it up just how you want to. And you can put an additional layer on top of it to make it "flashy". IRC will never die, just like mailing lists.
  6. Could you please post the script, or the part that actually chooses the image that is going to be displayed? From what I know, you are loading either an array with image locations, or searching a specific directory? There should be a problem with either of those. But, it could be possible your trying to retrieve local files with a HTTP method, which I wouldn't suggest. You can load the images via readfile() and encode in base64 and use as the src property on the image, or you can just use readfile() in a separate script and set the corresponding headers. But I would suggest you give me a look at your script, because I really can't tell what's wrong without it.
  7. If I could make a suggestion: Why not implement an API with JSON? Would be quite simple for a voting site like yours, and it works great for things you want to load dynamically with javascript(like your game images). The anti-bot system can be the game's one, and a secret key for the game owner. The only real problem with this would be if you want the traffic, and if so, the you can require the owners to link with an image on the voting page.
  8. There are no issues in doing this, since the table really just holds the data. Type declarations are held elsewhere. Using the above query in PHPMyAdmin should be sufficient, and allow up to 20 positive digits when UNSIGNED but only 19 when SIGNED(because it allows negative integers). SIGNED range: -9223372036854775808 to 9223372036854775807 UNSIGNED range: 0 to 18446744073709551615   Depending on your current type declarations, I would suggest you use the following to make sure it is a) UNSIGNED, and b) set to BIGINT. Also, the above CHANGE would still allow negative integers, which is a flaw. ALTER TABLE `gangs` MODIFY `gangMONEY` BIGINT UNSIGNED;   Please use "EXPLAIN `gangs`" to confirm the modification. It should read "bigint(20) unsigned" in the type column shown at output.
  9. Update available.   More info and latest release can be found at https://www.apache.org/dist/httpd/Announcement2.2.html
  10. Those are the type of things that usually keep me up all night trying to figure out what the developer wanted to do. I think it's supposed to be +1, but still not very optimal to use two queries to update the same table.
  11. You didn't create the template, so you can't sell it. Free stuff means share alike.
  12. Haha, I prefer the slow play. I'm too busy as is with the normal speed. I farm a lot to build to my tribe's new crazy more than 1:1 troop/points ratio. I've almost reach my bronze plunderer reward. For a 500 point that's a lot btw. 10second attacks? How the hell would you send noble trains with that? Whoah. I still have my imagination of cloning TW and adding AI players to better myself, one day. :P
  13. Well, multiply by how many crimes there are. I'd say 0.50 - 2.00 per crime, depending on the quality: complexity, well written, images(if any), etc...
  14. I would agree. I once had such a problem with a host: They suspended me without warning, and issued a fine. Although it was cPanel's oh-so clever cronjob manager sending error messages, at 30s intervals, it was still something like a 10k mail que(indeed, they had inferior sysadmins). I believe it is possible to setup Postfix with a DB, but if you're on shared, forgetaboutit.
  15. Price is too low if you ask me, well, depending on how good the formulas are. Also, you just gave away every crime's details. I'd suggest you only show headings.
  16. Suspended by host due a large que? You mentioned they were abusing it. I'd think this is more server-side, since you say sendmail is setup correctly. Contact your host for more assistance.
  17. Nope, never tried it. I can't seem to find a game like TW, plus the people I know there: it would be a shame to loose such allies. Oh, and no, InnoGames makes TW. :) Edit: I'll take a look at it. Edit 2: Looks like a rip. And to fast. 30s to build wood level2? I wish.
  18. To the idiots who are going to test this out, please be aware that Google doesn't take kindly to malicious hackers. And they will gladly give up their logs for who done it.
  19. Tribal Wars, currently world 58. Just won our first tribal war. \m/
  20. I've heard about Unity, but never dug around to find out what it really does(besides being a 3D engine). Some time ago, when I started to ask myself this exact question I found Allegro. It's also an 3D engine, or rather more 2D. For a long time it was dead, but seems they picked up a bit. I have to agree with a_b, going 3D vs. 2D web development is a whole other ball game. It takes a lot more time, and different skill set. If you are going to write a game, even 2D, expect to be doing it for months on end. C/C++ isn't as patchidy as PHP, everything needs to be well planned out and revised. There's nothing like quickly changing one or two outputs, you will have to recompile the whole thing. And if it get's big, you can count on having a lot of patience. I can safely say 3D isn't for me: I can make a few shapes do things, and that's about it. But, if you feel you have what it takes(it's a good learning curve anyways), I'd suggest you speak to the nice people at gamedev.net. I don't think you'll find many 3D programmers over here.
  21. Yea, I set my ow configuration files. Every single time I copy MCC, I have to edit the installer file. Thank BSD for vi.
  22. Hello, I think the following features will greatly benefit this forum: 1. The OP will have the option to mark the topic as solved. 2. Once the OP marks it, the topic is locked, unless marked as unsolved. 3. Once a locked topic is 60 days or older, it get's archived. Since the archive section is public, it shouldn't be a problem for users to find questions already answered. I know that this was here at some stage, it's gone. I think this should apply to all support sections. Regards, S.
  23. basic, adj. Forming an essential foundation or starting point. IRC isn't basic in the sense that it is a simple protocol. From my point of view, a basic protocol is something I could rewrite in a matter of minutes with PHP sockets. That doesn't explain IRC. Let's look at some core features an IRCd can do: - multi-user authentication - real time instant messaging - combining of two or more servers - dynamic Many people assume that the IRC protocol was just built once, but truth is, it can be redesigned and created by other people. And because it uses the TCP transport layer, the possibilities are essentially limitless.
  24. The file pointer method is actually good, but the way MCC uses it isn't. The least they could have do is checking permisions. It's the basic story line of MCCodes: "let's see how fast we can do this".
×
×
  • Create New...