Ayern Posted May 12, 2014 Share Posted May 12, 2014 (edited) The working 0.3 alpha demo is here: http://www.simplerts.netai.net -Manage 4 units. 2 Military 2 Production -Manage Weapons/Tools -Purchase Slaves for military or production -Turns are given frequently and are used to Attack and steal resources from others -Turns are also used to get gold in the mines, as well as Diamonds - a not-so-premium currency. -Grind Quests with the click of a button. Multiple Quests! -Grind Mobs with a single click as well, hordes of em! -Run out of things to Grind but still have an itch? Go to the Tavern and pick up some more for gold or diamonds. -Bank to store resources -Level up your Adventurer's so you can earn more resources faster! -Experience requirements are enforced for advanced features -Level and Exp prerequisites to be incorporated into current and future game functions. I've released the working game with minor bells-n-whistles Alpha 0.3 neatly packaged with a sql dump... minimal server setup knowledge required, basic php mysql stuffs. The source code for 0.3a can be found here: https://github.com/Ayern/sRTS The new version is called Grind Engine, the game mechanics and content slightly changed from the above with tons of added content that ive added the past couple weeks. This version will be released as soon as I deem it stable and functioning. Probably still released open-source with the intent the community will contribute. The attached .png is what im looking at now. srts 0.3a.zip Edited May 30, 2014 by Ayern Added Github link Quote Link to comment Share on other sites More sharing options...
Dave Posted May 12, 2014 Share Posted May 12, 2014 Awesome release, looks like a nice simple engine from the tiny play around I had. Good on you for releasing it for free as well. Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 12, 2014 Author Share Posted May 12, 2014 Thank you for your quick response Dave :) I hope you keep tabs and your interest piqued. Good on you for releasing it for free as well. I'm glad you think so! The current live version with Grinding/Tavern isn't released yet of course as I don't know if it is completely bug-free. I test my code to the point of exhaustion, over and over yet those creeps still pop up from time to time. I am taking donations, compensation in the form of in-game diamonds, and the funds will go towards a freakin' host who's servers got some extra stink in em'. 000 is great for testing phpmysql with crons but their freebie servers are too overpopulated imho. Quote Link to comment Share on other sites More sharing options...
Dave Posted May 12, 2014 Share Posted May 12, 2014 Thank you for your quick response Dave :) I hope you keep tabs and your interest piqued. I'm glad you think so! The current live version with Grinding/Tavern isn't released yet of course as I don't know if it is completely bug-free. I test my code to the point of exhaustion, over and over yet those creeps still pop up from time to time. I am taking donations, compensation in the form of in-game diamonds, and the funds will go towards a freakin' host who's servers got some extra stink in em'. 000 is great for testing phpmysql with crons but their freebie servers are too overpopulated imho. Some would say I don't have a life outside of these forums... that's a lie haha. I always enjoy a good free release, I may have to play around with it at some point. Bug testing is crucial in any development I find, if it doesn't work don't release it till it's fixed! Yeah, free hosting sucks! You need some power behind it to truly experience your scripts abilities. Quote Link to comment Share on other sites More sharing options...
BlackScorp Posted May 12, 2014 Share Posted May 12, 2014 well i cannot download the project at once, and i dont want to download each file and wait 5 seconds on each file, maybe you can add a zip to download? (Version Control System like git would be much better but i gues it would be too much) just a side note http://php.net/manual/en/migration55.deprecated.php i would replace all your mysql_* functions with mysqli or PDO Quote Link to comment Share on other sites More sharing options...
john. Posted May 12, 2014 Share Posted May 12, 2014 What license does the project have? Would you mind putting the project on a repository site using GIT, like Github or Bitbucket? If so, I could give you a code review and perhaps a pull request or two. Quote Link to comment Share on other sites More sharing options...
wrux Posted May 12, 2014 Share Posted May 12, 2014 I like this game, i've been on it playing too :P Quote Link to comment Share on other sites More sharing options...
Script47 Posted May 12, 2014 Share Posted May 12, 2014 I saw this thread in the morning checked the game out but had to rush off. :D Anyhow it looks decent, also I agree with [MENTION=70137]john.[/MENTION] posting on GIT would be good. Good work! :) Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 12, 2014 Author Share Posted May 12, 2014 What license does the project have? Open-Source if I did it right: Simple RTS is under the Creative Commons Attribution 3.0 Unported License and hereby distributed as-is and may be altered and redistributed with the proper credit to the original content creator(s). SimpleRTS.netai.net is managed by Chris Dugwyler aka Ayern Original core engine design by Copephobia and further developed by Ayern Quote Link to comment Share on other sites More sharing options...
BlackScorp Posted May 12, 2014 Share Posted May 12, 2014 Open-Source if I did it right: Simple RTS is under the Creative Commons Attribution 3.0 Unported License and hereby distributed as-is and may be altered and redistributed with the proper credit to the original content creator(s). SimpleRTS.netai.net is managed by Chris Dugwyler aka Ayern Original core engine design by Copephobia and further developed by Ayern Creative Commons is mostly made for Graphical/Music Stuffs, in Code you have License like http://www.wtfpl.net/ http://opensource.org/licenses/MIT GPL AGPL BSD and so on.. Quote Link to comment Share on other sites More sharing options...
Script47 Posted May 12, 2014 Share Posted May 12, 2014 I see you have made a GIT page however it seems to be empty. :confused: Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted May 12, 2014 Share Posted May 12, 2014 Looks good :) Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 13, 2014 Author Share Posted May 13, 2014 (edited) I see you have made a GIT page however it seems to be empty. :confused: I submitted a release .. do i need to add single pages of code as well? I left afterwards for family fun :) https://github.com/Ayern/sRTS/releases Edited May 13, 2014 by Ayern Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 13, 2014 Author Share Posted May 13, 2014 Game flow has been heavily altered because i ran into a problem where I could reach 85 quintillion everything. It was all panic and disorder for a few moments. All better now I hope, it feels like grinding now at least haha. Quote Link to comment Share on other sites More sharing options...
BlackScorp Posted May 13, 2014 Share Posted May 13, 2014 I submitted a release .. do i need to add single pages of code as well? I left afterwards for family fun :) https://github.com/Ayern/sRTS/releases you have to clone the repository , then add the files , then commit it and push them back into repository. if you use Netbeans IDE you can do it like this: First select at the Top Navigation Team > Git > Clone .. in new Window copy the Repository URL(you find it https://github.com/Ayern/sRTS right bottom side) and type your github username and password in , then select a branch(usually master) and then select location on your PC(it must be an empty folder) , now youre done (and you schould have a project in the Projects tab on the left side in the IDE). Next step is to take your files and copy them inside the folder you cloned locally, now you will see that in the Project view in the IDE the filenames have Blue Color. Next step: Right Click on Project name select Git -> Add, Right Click again Git -> Commit, type something in Commit Message (e.g. Initial Commit) and commit your changes. Then Right Click again Git -> Remote -> Push.. and push it to github Quote Link to comment Share on other sites More sharing options...
sniko Posted May 13, 2014 Share Posted May 13, 2014 you have to clone the repository , then add the files , then commit it and push them back into repository. if you use Netbeans IDE you can do it like this: First select at the Top Navigation Team > Git > Clone .. in new Window copy the Repository URL(you find it https://github.com/Ayern/sRTS right bottom side) and type your github username and password in , then select a branch(usually master) and then select location on your PC(it must be an empty folder) , now youre done (and you schould have a project in the Projects tab on the left side in the IDE). Next step is to take your files and copy them inside the folder you cloned locally, now you will see that in the Project view in the IDE the filenames have Blue Color. Next step: Right Click on Project name select Git -> Add, Right Click again Git -> Commit, type something in Commit Message (e.g. Initial Commit) and commit your changes. Then Right Click again Git -> Remote -> Push.. and push it to github NetBeans has a great UI for this, but I personally prefer doing it through the console. If you're running Windows, you can install git bash Basic commands you'll need; git add <filename/wildcard> #Add files to staging area git commit -m <msg> # Add commit message to files git branch -b <branch> # Create new branch based on the branch you're on git checkout <branch> # Checkout into an existing branch git status # See the status of git Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 13, 2014 Author Share Posted May 13, 2014 NetBeans has a great UI for this, but I personally prefer doing it through the console. If you're running Windows, you can install git bash I thank you blackscorp for that explanation but I think Github actually has a windows client..gonna see if I can make it work now if not within a couple hours. Quote Link to comment Share on other sites More sharing options...
Script47 Posted May 13, 2014 Share Posted May 13, 2014 I thank you blackscorp for that explanation but I think Github actually has a windows client..gonna see if I can make it work now if not within a couple hours. Yes, windows does have a client and it is very easy to use and awesome. I use it for any of my GIT projects and it makes life very easy. Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 13, 2014 Author Share Posted May 13, 2014 Yes, windows does have a client and it is very easy to use and awesome. I use it for any of my GIT projects and it makes life very easy. Oh yes, quite simple indeed. Already done. So if Instead i wish to release version 0.5a serperately do i make that the master and move 0.3a to a new branch? Quote Link to comment Share on other sites More sharing options...
Script47 Posted May 13, 2014 Share Posted May 13, 2014 (edited) Oh yes, quite simple indeed. Already done. So if Instead i wish to release version 0.5a serperately do i make that the master and move 0.3a to a new branch? I'm not too sure about that but what I suggest is release the full source not as a "release" but on GIT. Go to your documents on your PC/Laptop Open the Simple RTS folder Extract the zipped contents of the engine in to that folder Then push the update so we can view the file from GIT That will allow us to fork the engine, modify, then push updates to you so you can check then merge them. Edited May 13, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
john. Posted May 13, 2014 Share Posted May 13, 2014 Seems like you got it fairly somewhat right. 1. Why would you save the sql as a .txt? Take the contents and save as db.sql. 2. You should aim to have consistency when naming your tables and columns. So either you rename all tables to be in plural or keep them all singular. Here is two good questions about the subject: http://stackoverflow.com/questions/338156/table-naming-dilemma-singular-vs-plural-names http://stackoverflow.com/questions/808992/singular-or-plural-database-table-names (Personally I use plural, only lowercases and uses underscores, when dealing with mapping tables I take tables in alphabetical order in singular, like Laravel framework does it). So please pick a style and adapt afterwards. Consistency is the key. 3. Consider using UTF8 instead of latin1. Read: http://www.utf8everywhere.org/ 4. Restructure your project structure to be more logical and readable. For example put all your assets (CSS files, JavaScript files) in a assets/ folder. The db.sql in a sql/db folder. Files I presume are included (functions.php) in a includes/ folder. When you have all files just in the root it gets messy and some files should not be direct script accessed like functions.php and header.php. 5. Please consider to separate the PHP and HTML. It's bad practice having them mixed up, harder to manage, more complex to work on same project as a team, etc. This can be pretty much work to do, but a good way to start is something like this: 5a. Make sure all "business" PHP is in the top, only the things you output echo, looping out array data, etc should be within the HTML. So make a clear separation all PHP that does something in the top and the things to be outputted in the bottom the HTML and echo stuff.. 5b. Now take the PHP code in the top and put in new files and have them included in the top of the files. 6. Drop the use of mysql_ extension and use PDO or MySQLi instead. I have written a tutorial that exists on these forums that introduces you to PDO, have a look at it and get started! Mysql_ API is depreceated and is to be removed in future PHP version. 7. Stop using md5 for password hashing. Its bad and insecure, definitely insecure without salting. You should use bcrypt. I have written a tutorial about how to make a registration page on this forums that uses bcrypt, the in-built password_hash methods that comes with PHP 5.5 and show also how to use these on systems using < 5.5. 8. Use die; after your redirects on header(); because, in other case, your script will be executed till the end, what can cause some unexpected behavior. Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 13, 2014 Author Share Posted May 13, 2014 Seems like you got it fairly somewhat right. 1. Why would you save the sql as a .txt? Take the contents and save as db.sql. 2. You should aim to have consistency when naming your tables and columns. So either you rename all tables to be in plural or keep them all singular. Here is two good questions about the subject: http://stackoverflow.com/questions/338156/table-naming-dilemma-singular-vs-plural-names http://stackoverflow.com/questions/808992/singular-or-plural-database-table-names (Personally I use plural, only lowercases and uses underscores, when dealing with mapping tables I take tables in alphabetical order in singular, like Laravel framework does it). So please pick a style and adapt afterwards. Consistency is the key. 3. Consider using UTF8 instead of latin1. Read: http://www.utf8everywhere.org/ 4. Restructure your project structure to be more logical and readable. For example put all your assets (CSS files, JavaScript files) in a assets/ folder. The db.sql in a sql/db folder. Files I presume are included (functions.php) in a includes/ folder. When you have all files just in the root it gets messy and some files should not be direct script accessed like functions.php and header.php. 5. Please consider to separate the PHP and HTML. It's bad practice having them mixed up, harder to manage, more complex to work on same project as a team, etc. This can be pretty much work to do, but a good way to start is something like this: 5a. Make sure all "business" PHP is in the top, only the things you output echo, looping out array data, etc should be within the HTML. So make a clear separation all PHP that does something in the top and the things to be outputted in the bottom the HTML and echo stuff.. 5b. Now take the PHP code in the top and put in new files and have them included in the top of the files. 6. Drop the use of mysql_ extension and use PDO or MySQLi instead. I have written a tutorial that exists on these forums that introduces you to PDO, have a look at it and get started! Mysql_ API is depreceated and is to be removed in future PHP version. 7. Stop using md5 for password hashing. Its bad and insecure, definitely insecure without salting. You should use bcrypt. I have written a tutorial about how to make a registration page on this forums that uses bcrypt, the in-built password_hash methods that comes with PHP 5.5 and show also how to use these on systems using < 5.5. 8. Use die; after your redirects on header(); because, in other case, your script will be executed till the end, what can cause some unexpected behavior. Thank you very much John, very good need to know info. I will do my best to start those changes as soon as possible, it shouldn't be too complicated I would hope. Right? This is my first attempt at any program so I thank you for pointing out things like to not use md5, had no clue. Quote Link to comment Share on other sites More sharing options...
Tangled Posted May 14, 2014 Share Posted May 14, 2014 Ok I'm just a player, how do I look into the game? Quote Link to comment Share on other sites More sharing options...
Ayern Posted May 14, 2014 Author Share Posted May 14, 2014 Ok I'm just a player, how do I look into the game? What do you mean by look into? Would you like to see the code or do I need to change something? Quote Link to comment Share on other sites More sharing options...
Tangled Posted May 14, 2014 Share Posted May 14, 2014 I see some say they played it. I'm new at this so is there a way to play it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.