-
Posts
31 -
Joined
-
Last visited
Everything posted by Ding
-
For advancing dragon trophies (and increasing limits), do you have keep the specified amount of dragons to maintain a tier? Like just for an example, silver is 200 dragons. If I go below 200 on my scroll I don't revert back to bronze right? I don't think so, but I wanted to check.
-
Good to see this post still exists after 13 years! ::blows off the dust:: 🤣 I feel it probably needs a major overhaul and updates. I think at this point in my programming knowledge/experience I would go the JSON/JS route for a potential hatchery. That being said, while I will edit my initial post (clean up the links and such) to have both PHP and JS resources, I'd most likely lean more heavily into JS. Lots to think about and reorganize!
-
I know you crossed it out, but I was thinking that myself! Like a BSA specifically for their species to influence like petal/scale combos.
-
Glad to see this thread is still around and it's proving helpful to folks! I have a bit of something to add, over on youtube there's a really nice channel called phpacademy, awesome tutorials and he's just uploaded a bunch of really basic ones to learn the beginning ins and outs of php. So things like echos, loops, if statements, etc. http://www.youtube.com/user/phpacademy I'll also stick this in the first post for a bit easier reference. Hope it helps!
-
That's awesome! Well done! Sadly though my knowledge of using the API is slim to none. Maybe there's some mention of how to exclude adults in the API txt file? I haven't looked at it in a while so, I can't recall offhand.
-
Though I don't know very much about Google's site maker (I usually do all my coding in notepad ) I'm sure you could. But I don't know if that's your best option offhand. My assumption is it needs to be someplace you have access to all the coding and the server were your databases are, and that can handle a lot of viewer traffic if the site really takes off. There's also a lot of host options out there with varying degrees of bandwidth available for your site. For example some are free but you might have to deal with third party ads on your site, some are ad free but you might be limited on how much bandwidth your allowed per like month or how much file space you can use. Other hosts you have to pay for and they'll have their own varying prices and features for subscribing.
-
I think the next step would be to test if you can enter data obtained from a form via a PHP script into the table. Then in theory, viewers can use this form to enter let's say their scroll name and the dragon's code they want to ER and it would be stored in the database until whenever. I found out how to do this here: http://www.tizag.com/mysqlTutorial/index.php That part is really pretty simple but I would suggest starting from the beginning of this tut and working on to where you need to be, which is how to obtain data from a form and put it into a table. The beginning part is important because it will teach you how, through PHP, to connect to the right server, database, and table. All that good stuff
-
Nah I'm just running this stuff offline using WAMP so I can see what everything does without it being out there for people to access just yet. Really just to learn from until I actually have the coding skills to build the site and then I'll find a host that can handle the traffic. Joining forces does sound very tempting, but at the moment I don't really have anymore to offer then what I've posted here. It's really all I know. I've got a pretty strong grasp on HTML and CSS too but that's about it. lol I'm still quite the noob when it comes to servers and all that good stuff.
-
None at all. I've been just going over these sites for about three days straight just working on the tutorials and it's helped me get a better grasp of what's going on. but it's only the tip of the iceberg you know? So far I now know how to make databases on a server, make tables, and how to enter data onto those tables, how to delete data from those tables and how to do this either directly using the MySQL console or through PHP scripts. Which, has the makings of a hatchery sort of, but it's so bare bones, there's a lot more I need to learn. haha I'm not expecting to get this hatchery site up for quite a long time honestly.
-
Oh I hear ya. PHP makes me want to go on a slapping rampage. Sorry I can't help you with your problem though. I'm currently hung up on building a script that will auto-remove eggs if they're in the system for longer then say 3 days or so. What exactly do you have right now? Maybe if someone can look your codes over they might be able to find any problems. Unless you want to keep your codes to yourself that's fine too, no pressure
-
Hey you know what we could do...I could edit my first post and add some links from this whole conversation, and add anything that I find around the net. Don't know if it'll help but might as well right? Also if anyone has any other information, guides, advice, we could add it?
-
I couldn't agree more, just looking over that api text file it's basically greek to me. It's really all building blocks, one concept stack onto another. And you really have to start from the ground up. Btw, Ext3h I have to say I'm immensely impressed with what you've done with your hatchery site. I wish I knew coding as well as you do, you make it look so easy haha. It's really inspiring. As is any of the hatchery sites really, but I wanted to say well done!
-
@Rebsingh I saw this link mentioned a few times on other posts a while ago, I don't know if it will help or not but it's all about using DC's API I believe. Hope it's what you're looking for! http://dragcave.net/api.txt
-
@Sheriziya thanks for the well wishes, good luck to you as well! I've been looking at so much PHP code I think my head is going to explode haha. But I'm learning a ton so it's pretty awesome. Here's a question I can't seem to find the answer to...let's say I wanted to have this hatchery site automatically remove eggs from the database after like 3 days or so, how exactly do I go about that? Is it something where I log a time stamp entry when a viewer enters their egg data, then create a script that runs every three days or runs all the time checking if an entry is three days old and then removing it automatically? I mean granted I could just have users remove their eggs by hand after three days or do it myself. But if I could figure out some sort of auto purge system that would be really neat.
-
Oh no I wasn't suggesting that you were nor did I expect that you were going to . I was just saying you were awesome for sharing your methods with me. Which I appreciate you taking the time to do. Totally, if I run aground at some point, which I more then likely will lol, I'll send it your way. Quick question...lets us say hypothetically this site does get popular and sees a lot of traffic, how much bandwidth would you say it should have to meet the demand? Like what's a good amount to aim for when looking for a host?
-
Soti you are awesome! Thanks so much for all the info. Yeah I had a pretty good feeling some advance coding was going to come into play for building a hatch site. My knowledge of PHP is extremely limited so this will be a great chance to learn it and hopefully sometime soon come out with something polished. Thanks again!
-
Very interesting! And a good place to start. Thanks for the link!!
-
I was considering possibly building a hatchery site. I have a fare bit of html/css coding and such under my belt and wanted to know what exactly went into coding a automated hatchery for eggs and hatchlings. I tried looking it up on the internets and couldn't really find anything substantial. So I was wondering if anyone had any links to say tutorials on coding a hatchery or any place where building one is discussed in detail? I also tried doing a forum search here on the DC forums and didn't find much either. Also, I hope this is the right place to post this question, if not, my apologies. Any advice would be much appreciated. EDIT: Thought I’d share some links and such for PHP coding, MySQL, setting up servers, etc that we’ve found so far: Soti-Dragon supplied links for guides on PHP and MySQL: http://www.php.net/ (Great for simplistic a intro to PHP coding) http://www.pantz.org/software/mysql/mysqlcommands.html (Lots of commands you can use through PHP and Perl to access your MySQL server) Ext3h supplied links for HTML and PHP coding: http://selfhtml.org/ (Great for getting your feet wet with HTML coding) http://tut.php-quake.net/en/ (PHP tutorials) Some other helpful links: PhPacademy on YouTube (Basic to advanced tutorials on coding with PhP) http://www.webdevelopersnotes.com/tutorials/sql/index.php3 (Handy MySQL beginners guide. How to access, make databases, make tables, add entries to tables, etc using the command prompt directly in a MySQL server. ) http://www.tizag.com/mysqlTutorial/mysqldatabase.php (Guide to using PHP coding to access, change entries, etc to a MySQL server.) http://www.tagbytag.org/tutorials/getting-...mp-installation (WAMP is an all in one package I found that sets you up for your own MySQL server. I found it’s pretty easy to use. I’m using this right now as a learning tool because basically it will make your computer a server…which is awesome but not practical in the slightest if you want to host your own site and handle any sort of traffic. Once again, just something to learn with.) http://dragcave.net/api.txt (This a link to the API guide for when you want to set up your fansite to work with DC. This is all of course after you get access to the API key from TJ.) http://www.w3schools.com/ (W3 has been teaching anything and everything about coding for as long as I can remember.) More to come!
