Jump to content
MakeWebGames

spikereloaded

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by spikereloaded

  1. i can't say i have much admiration for the work that the guys did on this engine. OK it's a good base to start from but i've found so many weird and wonderful (or not) coding techniques in the source. and absolutely no explanations...it's not the hardest thing to comment whilst coding. Thanks Seker, i'll keep that in mind while i try to decrypt this attack page!
  2. Hey guys i'm working on changing the attack system on our game and have come across quite a few odd things in the attack.php file, but this one has got me a little confused.   if($mydamage < -100000) { $mydamage=abs($mydamage); } else if($mydamage < 1) { $mydamage=1; }   can anyone give me some idea about what the point of these two bits are. i just find it confusing that the top one will convert it into a positive number if it is less than -100000 making -900 change to 900 but then the second one says that if it is less than 1 damage equals 1.... am i just being slow here?
  3. edited original post to include my code!
  4. similar, but the version i've done doesn't use GET, it uses a session variable instead. It lets you link to your pages just like a normal page link, eg endoftimez.com/mailbox.php. Then if you click it and your not logged in, when you are redirected to the login page, the requested page (in this case mailbox.php) is assigned to the $_SESSION['navTo'] variable. then on logging in, if the session variable (navTo) is set it will redirect you to that page. It's pretty straight forward but it's useful and i couldn't for the life of me think of what to call it when i had a look round to see if anyone had previously done it on here. Does it have a name?
  5. Definitely agree with Smokey, constant updates are important, as long as they are meaningful ones or that improve on something! Might also be a good idea to start keeping a spreadsheet of what you are doing and what needs to be done as well as what is coming up. As long as your comfortable with what's on the spreadsheet, you could share this with your players to keep them up to date and they get a feeling of being valued and kept in the loop.
  6. Hey, has anyone made a mod (rather more like showing a few pieces of code) regarding allowing users to follow links after logging in. For example, we use email notifications and i figured it would be better if rather than just having to login then navigate to the right page, instead you login and are redirected to the mailbox page that was linked to in the email. I can post up the mod if anyone is actually interested in it, however i think it would only apply to games that have links coming in from the outside (such as email notifications, facebook pages etc) Also i couldn't think of what to call it so couldn't check if it was already on the forums! EDITED: here's how i've done it. seems to work well so, in globals.php you want to find:   if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }   and enter just above it : if($_SESSION['loggedin']==0 && $_SERVER['REQUEST_URI'] != 'login.php'){$_SESSION['navto'] = $_SERVER['REQUEST_URI'];}   That will assign the original requested url to the variable $_SESSION['navto'] and the first bit of code you had to find will redirect the (unlogged in) user back to the login page. Now on authenticate.php you want to find :   header("Location: loggedin.php");   and change it to look as below:   if($_SESSION['navto']) { header("Location: {$_SESSION['navto']}"); unset($_SESSION['navto']); } else { header("Location: loggedin.php"); }   This will check to see if there is a variable set called $_SESSION['navto'] and if there is it will redirect to the address that was previously assigned to the $_SESSION['navto'] variable by globals.php. Then it will unset the variable to avoid any confusion later. if there is no set $_SESSION['navto'] variable, it will direct to loggedin.php as normal. I think it definitely makes incoming links a lot more useful and cuts down on players not being able to find a link and giving up (not that that should be happening anyway) or just forgetting to navigate to the page they originally logged in to look at. Not to mention it's a bit more professional to link directly to what you want them to look at!
  7. we use google drive and it does the job perfectly. looks the same as your screenshot!
  8. what's your site called? is it an original theme? what does it offer that other games don't? i've definitely found that diversity keeps players interested as well as skill based competition, rather than random outcomes to activities like crimes and attacking. we're still in the starting out phase currently, but we have a core group of players that come on everyday. we've gained likes through facebook but i dont think we have had one signup when advertising on there.
  9. Think the OP got scared off
  10. great community spirit guys. in what way is it not working?
  11. very smart! you looking at building the client yourself or just putting together the UI?
  12. End of Timez Owner: Spikereloaded & Bennyh   Site will be opened for the first time this afternoon!
  13. lol 'css bars' are not a THING. it's a combination of css and html that creates the effect of a progress bar. If you're new to css bars that could only mean your new to css and html as a whole. but anyway, carry on with your sales pitch...
  14. and your saying this isn't abusive?! do you get what the word abusive means? and since when do you go from: Not being able to code-------------------------> Being able to code now... not something you can either do or not do, it's about varying degrees of skill and competency.
  15. 'css bars' take the very simplest aspects of css and div usage, to create what looks to be a progress bar. They aren't complicated in the slightest and if you did have any valuable knowledge about css you more than likely would have worked out how to do it yourself as it's not a difficult concept to get your head around. Plus getting abusive in your posts isn't going to demonstrate your professionalism....
  16. Im sceptical regarding Venoms knowledge of website development/design/maintenance as a whole. Not starting a flaming here but not sure why people consistently over exaggerate their skills or abilities when they always get found out. Surely just be up front about what it is your actually offering here and you'd get a much warmer response.
  17. thanks for sharing, looks interesting! have joined up...will be interesting to see how it develops!
  18. I think I have helped you in the other post. And really swapping the bars to CSS is no different whether your using mc codes or not. But I'm not here to point out issues! Will wait to see some examples of your work!
  19. And what does assumption do? Snikos been very responsive about fixing bugs on this mod so id go directly to him, although he does have the right to offer no support if your out of the 72 hours!
  20. Exactly my thoughts
  21. Nice one...simple and not sure why I didnt think of it before!
  22. Hmm not sure how much that makes sense...the code I posted is nothing you couldnt put in a normal html file. But glad to have helped!
  23. To be fair Sniko did list the features of the mod in the advertising post. If these are the options you wanted you probably should have checked before buying Bought this mod a while back and now have pretty much all the extras youve listed integrated, but this has been done by building on Snikos base
  24. ok simplest method :   <div class='parent_container' style='width:100px; height:10px; background:grey;'>//preferably style this in the head section as it will be the same for all bars <div class='child_progress' style='background:#33CC33; width:{percentage full variable here}px; height:10px; float:left;'></div> </div>
  25. I thought you said in a different topic that you knew CSS3 venom? Either way, simplest way to do it is have a parent div set to 100px wide with a background colour of your choice, then a child div floating left with a variable width (which is obviously your current percentage). Set this divs background to green, orange, whatever, close both divs and your done....well that's how I've done it Purely css though, no fancy bells or whistles...personal preference I suppose.
×
×
  • Create New...