Jump to content

Search the Community

Showing results for tags 'programming'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Found 58 results

  1. [CENTER][IMG]http://i.imgur.com/Zgk7zka.png[/IMG] [B]About Us[/B] Set and Get is a company that provides premium programming services, our developers deliver a quality code which is easy to use and understand. Besides our premium programming services we also provide premium support to the code we have placed, if you got any questions about our code or if you have problems with it we will repair the code for free. [B]Experience[/B] Set and Get's programmers are mainly Java programmers but also have experience with languages such as; Ruby, PHP, HTML, .NET, C# and C. [B]Revisions[/B] Set and Get is able to provide services for all RSPS revisions, no matter what base. [B]Price[/B] Set and Get works on per-job basis, this means you'll pay per service and not per hour. We always talk/negotiate about the price till we find the perfect price for your service. [B]Contact[/B] Website: [url]http://setandget.com[/url] E-mail: [email][email protected][/email] Skype: Markoza1998 [B]T.O.S.[/B] [spoiler=T.O.S.]SECTION 1 1.1. All payments to Set and Get go through PayPal. 1.2. Once Set and get received the payment, we will start development. 1.3. Set and Get don't refund any payments to Set and Get unless your situation is stated in Section 2. SECTION 2 2.1. If Set and Get isn't able to do your service and you have already sent us a payment, then we will grant you, the customer a full refund. 2.2. If the product doesn't function as described or isn't as described, we will grant you, the customer a full refund. SECTION 3 3.1. Set and Get guarantees, that all the code we place in your source is fully functional as you described it to us. (unless we have negotiated, then the last description of the product counts.) 3.2. We are not responsible for any damages to the code that you, the customer has issued. SECTION 4 4.1. Set and Get holds the right to cancel or decline a service at any time, for any reason. 4.2. Set and Get holds all the rights of the code, any changes that damage our code will cancel our warranty.[/spoiler] [/CENTER]
  2. Currently taking C++ and my professor has a thick accent so I can't understand her very well. I went on a mission to find some sort of tutorial that could help me, and I found this. It helped clarify a few things I didn't understand, sharing because it might help you too. Video tutorials are provided. [LIST] [*][url]http://www.sololearn.com/Courses/[/url] [*] [*]PHP, Java, C++, JS & more. [/LIST] Thanks to [MENTION=209875]Jett[/MENTION] for providing a few more sources that may help with Programming. I'd like to point out that you'll probably be doing more reading here rather than watching videos. [LIST] [*]Best free tutorials website (go to the "TUTORIALS LIBRARY" dropdown menu): [*][url=http://www.tutorialspoint.com/]Tutorials Point[/url] [*] [*]Quick link for programming languages: [*][url=http://www.tutorialspoint.com/computer_programming_tutorials.htm]Tutorials for Computer Programming Languages[/url] [/LIST] [quote name='Jett']This site provides quick references, guides, and complete tutorials for free. They even offer instructor led online training for lower prices than you will find most other places. I've taken a couple of their courses and can vouch that the instructors are professionals at the subject matter they teach.[/QUOTE]
  3. I have been recently reading some posts and noticed that activity (still) seems to be an issue. I was thinking about the bigger picture and it came to me that we need more reason for people to actively use the site. Considering the fact that the forums are fairly restricted by the niche industry of RSPS, we could potentially look at providing "resources" for 'new to programming' members of the site. This could include providing links and perhaps a general overview of IDEs. We could include a variety of video guides and tutorials on the basics of java (and possibly other languages eventually) that our members can then post feedback on such as how helpful it was. We could even showcase opensource projects that are either donated by members or gathered for external sources (allowed and easily obtainable for educational purposes), which we could then have our more experienced members provide a detailed explanation of the mechanics behind the code. This would not only allow members to better understand java, which they can then utilize in their RSPS projects, but it will also encourage the more knowledgeable members to step up and take part in explaining the various open source projects that available in that child board. I believe that once the ball starts rolling we could create initiatives to further develop the resources we have available. For example, host a competition that gives a cash prize to the person who best improves a documented open source project, and explains how and why their improvements benefit the quality of the previous code. This could entice more knowledgeable members from other communities interested in making some money, while at the same time attracting new visitors interested in learning from prestigious members of other communities.
  4. [IMG]http://i.imgur.com/sq84CYX.png[/IMG] Reddit URL: [url]http://www.reddit.com/r/learnprogramming/comments/1vgc5t/is_php_and_mysql_still_worth_learning_or_should_i/[/url] Thoughts on what he said? I think it's really accurate and it amazed me how he worded it.
  5. The world of shoes is a big one. Bots are often used as ways to fight one another to cop a new shoe. This, is today's challenge; Create a ATC/ADC (Auto add to cart) for the following sites: Footlocker, Eastbay, Finishline, and Pickyourshoes. For those who need a little help getting started, this is what an ATC/ADC bot does. [spoiler=What ADC is]Usually a script or extension file loaded into a browser that automatically selects your size and adding to your cart. You program the size and when the page of the sneaker is released it will automatically select your size and add to cart for you to check out.[/spoiler] Second part of the challenge is to add a Twitter Scanner Bot. [spoiler=Twitter Scanner Bot info]It constantly pings twitter based on keywords to obtain and launch the link for the shoes. Twitter's API has a request frequency threshold; meaning, you can't just constantly ping it for feed updates, it's throttled, and they will suspend your API key if you exceed the limit. Meaning depending on how its written it can be ineffective. This can also be super sensitive too.[/spoiler] More points to you if you can add them to a single GUI/program/extension. Private message me the script code and a short video of how it works, and I will decide the winner. Good luck chaps.
  6. The purpose of this tutorial series is to explain the math involved behind rotating points in three dimensions. It will start out by describing how to use a rotation matrix to rotate a point over the Z-axis, simply because this is the easiest rotation to visualize and implement. It's just like a clock hand going around. Then, the tutorials will move on to give you the matrices for rotation over the x and y axes, tell you how to use them, and then give you a matrix which will allow rotations around an arbitrary axis. Translation matrices will also be covered. There will be talk of cameras and simply rotating objects, and then will move on to quaternions, which are the solution to the problem of gimbal lock, which is encountered when using Euler angles. I may mention some other things, or I may not. The current plan is to type these until I get sick of it. his first tutorial will be short - mainly because there are so many sources available online and in print which teach about vectors, three-dimensional axes, matrices, vertices, trig and the like. I'll be glad to let you consult those for the basic information that I do not provide here. Please understand the concept of vectors and understand that a triangle has three vertices and any more complex polygon can be made from several triangles before proceeding with these tutorials. An understanding of trigonometry will also be essential for much of the discussion. Rotation About The Z Axis: Rotation about the Z-axis really isn't difficult. If you are strong with trig, you can probably work out the equations necessary to rotate a point around the Z-axis. After all, it's taught in math class when you learn parametric equations. Suppose you're rotating the point (1,0) 90 degrees over the Z-axis. When you're rotating over the Z-axis, the Z component won't change, so you can obviously ignore it in your calculations for this axis. It will be a good way to ease yourself in. Anyway, you're rotating the point (1,0) about the Z-axis 90 degrees. A bit of visualization will tell you that you're going to end up with the point (0,1), but you can't just do that in a program, and you can't even do it in your head for stranger angles, like 37 degrees. Anyway, by looking at a triangle in a unit circle, we can determine the following formulas for the rotation. Xrotated = hypotenuse * cos(theta) Yrotated = hypotenuse * sin(theta) Where Xrotated is the X coordinate of the point after the rotation, Yrotated is the Y coordinate of the point after the rotation, theta is the number of degrees/radians we are rotating the point about the Z axis, and hypotenuse is the distance between the point and the origin. The hypotenuse can be easily calculated using the Pythagorean theorem, also known as the Distance Formula. Extending this theorem to three dimensions isn't difficult, but I'll get to that later. Here's how to calculate the hypotenuse in two dimensions: hypotenuse= sqrt( x2 + y2 ) So, that's pretty easy, and you could use it to make a program which displayed an analog clock, for example. You can also use that to draw a circle. All you have to do for the circle is rotate the point in one-degree increments (other numbers of degrees will work) and display a point at every location, and draw lines between points. Credits to confuted.
  7. INFORMATION I have been programming in the java area for about a year and a half now. I am familiar with mostly all aspects of java in the RSPS Biome and am willing to offer my knowledge for cheap, negotiable prices. :) WHAT I'M OFFERING I am offering everything to jarring clients, to webclients, to website templates, and of course, RSPS development itself. My prices are negotiable and i'm willing to work with YOU. Some of the things off the top of my head i'm offering are: My Cache Editor (See pics in the Media spoiler) Cache Packer (Supports mostly all revisions) Shop Editor Object definitions editor Client Jarring Webclient 718 Exploit fix Adding bosses Reputation system (Implemented on the server) Prestige system (Different from typical 718 prestige system) Client work (You have to be specific) Server sided stuff (I can do mostly anything server sided, you'll have to be specific though.) And last but not least, full oldschool RuneScape Tutorial Island. (SEE PICS BELOW) [SPOILER=Cache Editor Media] [IMG]http://i.imgur.com/aaIMwpg.png[/IMG] [IMG]http://i.imgur.com/f3yCkXM.png[/IMG] [IMG]http://i.imgur.com/pVoI2di.png[/IMG] [IMG]http://i.imgur.com/elbQlfr.png[/IMG] [IMG]http://i.imgur.com/2YGpcRa.png[/IMG] [IMG]http://i.imgur.com/zuco9k4.png[/IMG] [IMG]http://i.imgur.com/nCum5FO.png[/IMG] [IMG]http://i.imgur.com/srr4v7Y.png[/IMG] [IMG]http://i.imgur.com/3RHyoQE.png[/IMG] [IMG]http://i.imgur.com/CGDynvB.png[/IMG] [IMG]http://i.imgur.com/HvfS38N.png[/IMG] [IMG]http://i.imgur.com/efIdcVr.png[/IMG] [IMG]http://i.imgur.com/p1jSgN7.png[/IMG] [IMG]http://i.imgur.com/pRu5yCW.png[/IMG] Just on a side note, it says 562 cache editor, but it supports all revisions.[/SPOILER] [SPOILER=Tutorial Island Media] [IMG]http://i.imgur.com/xeei9js.png[/IMG] [IMG]http://i.imgur.com/XbVWZtQ.png[/IMG] [IMG]http://i.imgur.com/YgP88ne.png[/IMG] [IMG]http://i.imgur.com/TeMGDIn.png[/IMG] [IMG]http://i.imgur.com/VDjuBFl.png[/IMG] [IMG]http://i.imgur.com/csoa5XL.png[/IMG] [IMG]http://i.imgur.com/9XQJsft.png[/IMG] [IMG]http://i.imgur.com/wl6BG9d.png[/IMG] [IMG]http://i.imgur.com/nN9NhXZ.png[/IMG] [IMG]http://i.imgur.com/gfcHxTg.png[/IMG] [IMG]http://i.imgur.com/n1PS23A.png[/IMG] [IMG]http://i.imgur.com/EYDH6Mb.png[/IMG] [IMG]http://i.imgur.com/3M6ziOO.png[/IMG] [IMG]http://i.imgur.com/mfHWnvu.png[/IMG] [IMG]http://i.imgur.com/JcAEq3D.png[/IMG] [IMG]http://i.imgur.com/ckyvlRu.png[/IMG] [IMG]http://i.imgur.com/RhYSpGr.png[/IMG] [IMG]http://i.imgur.com/HqhkJvz.png[/IMG] [IMG]http://i.imgur.com/j2LWOZy.png[/IMG] [IMG]http://i.imgur.com/mlGKl1u.png[/IMG] [IMG]http://i.imgur.com/6YSc0PV.png[/IMG] [IMG]http://i.imgur.com/thc5Kci.png[/IMG] [IMG]http://i.imgur.com/EWzrbhy.png[/IMG] [IMG]http://i.imgur.com/lDTUtOn.png[/IMG] [IMG]http://i.imgur.com/jhnhPkb.png[/IMG] [IMG]http://i.imgur.com/PUk4zcL.png[/IMG] [IMG]http://i.imgur.com/grM4w58.png[/IMG] [IMG]http://i.imgur.com/fnSFCUN.png[/IMG] [IMG]http://i.imgur.com/jBrpEe6.png[/IMG] [/SPOILER] Leave a comment with your Skype name below if interested, or add my skype: k-shan904 saying your rune-server name and what you want. Thanks for looking!
  8. source: https://twitter.com/JagexAsh/status/466215463077171201
  9. [U][center][size=6][color="#00ff00"][font=arial black]Java Programming Developing Team[/font][/color][/size][/U] [SIZE=5][COLOR="#0000CD"][FONT=Arial][B]Project Description: [/B][/FONT][/COLOR][/SIZE] [CENTER][SIZE=3][COLOR="#FF0000"][FONT=Arial]Why? We are currently looking for team members for a blank project for a all new Runescape Private Server. We are thinking in between a 317-474 revision. The base of the project is to be determined. We are looking to do things as a team. [/FONT][/COLOR][/SIZE][/CENTER] [SIZE=5][COLOR="#0000CD"][FONT=Arial][B]What we are looking for:[/B][/FONT][/COLOR][/SIZE] [CENTER][SIZE=3][COLOR="#40E0D0"][FONT=Arial]We are currently looking for members that will work as a team and build a project from the ground up. We are looking for team leaders to take responsibility. [/FONT][/COLOR][/SIZE] [SIZE=5][COLOR="#0000CD"][FONT=Arial][B]Current Team Members:[/B][/FONT][/COLOR][/SIZE] [SIZE=3][COLOR="#00FF00"][FONT=Arial]Benjamin, Brandon.[/FONT][/COLOR][/SIZE] [SIZE=3][COLOR="#00FF00"][FONT=Arial]Benjamin: Hello, I am currently a java developer. I have experience in programming for java. I am a Senior in High School. [/FONT][/COLOR][/SIZE][/CENTER] [SIZE=3][COLOR="#00FF00"][FONT=Arial]Brandon: Hey, I have general programming knowledge and don't have much java experience. Currently the hoster.[/FONT][/COLOR][/SIZE] [SIZE=5][COLOR="#0000CD"][FONT=Arial][B]Contact Information: [/B][/FONT][/COLOR][/SIZE] [SIZE=3][COLOR="#00FF00"][FONT=Arial]Benjamin: Email: ben7024 at live Skype: benbowerman1[/FONT][/COLOR][/SIZE] [SIZE=3][COLOR="#00FF00"][FONT=Arial]Brandon: Email: talontaken at gmail Skype: shadowwynne[/FONT][/COLOR][/SIZE][/CENTER] [B]Application Position:[/B] Name: Contact Information: Previous work: Experience: A little bit about your self:
  10. [CENTER]Hello, welcome to my programming thread. Here i want to provide cheap and clean programming skills for the community. Basses: Apollo, Hyperion, Scratch Framework It will cost more for my to renamed the client for you [B][U]Past Work[/U][/B] [url]http://www.runelocus.com/forums/showthread.php?94048-OSRS-Apollo-Emulator[/url] [url]http://www.runelocus.com/forums/showthread.php?94098-468-Client-Renamed[/url] [url]http://www.runelocus.com/forums/showthread.php?88112-PkIsle-530-Released[/url] [url]http://www.runelocus.com/forums/showthread.php?88271-758-RSDeob[/url] [B][U]Apollo[/U][/B] Conversion to any revision updateServer Basic Packets(waling, chat, sendmapregion, windowpane) Player/NPC updating Banking [B][U]Hyperion[/U][/B] Skills Combat npc/player updating Conversion to any revision before 700+ basic packets [B][U]Scratch framwork[/U][/B] updateServer Any Revision Netty 4 final groovy scripting basic packets npc/player updating [B][U]Skype[/U]: sir.james1996[/B] [B][U]Servers Already Done[/U][/B] Apollo 468 Apollo 464 Apollo 474 Apollo 751 Apollo OSRS Hyperion 530 Hyperion 464 [/CENTER]
  11. I'm offering programming services for any revision RSPS. I've been programming for 4 years now, and I've been in rsps about the same time. My projects: [LIST] [*]XliteRSPS [*]EnvyRS || 666 [*]Stark 751 (Which is EnvyRS, just upgraded) [/LIST] I only accept paypal. Post below, or shoot me a private message if you'd like me to do a service.
  12. Hello, my name is Ethan and I've been around this forums for around 4 years in my adventure as a computer programmer. Today feels like the right day to start dolling out advice and helping others with issues they encountered in programming (problem solving or otherwise). So: if you have any questions ask me and I will take the time to give you a through and accurate answer. If your questions pertaining to RSPS pm and I will assist you over skype/T.V if I have the time.
  13. The programming on the server side without networking is pretty easy to me now. I just can't understand how the client sends packets and stuff and how it's translated into shorts. The only networking I've done is with kyronet, and that just sends objects directly over the internet. Is there a specific guide to how to tests for which packets do what? The client is so obfuscated that I figure anything out by myself. I'm pretty much just wondering how other people learned how to code a server from scratch.
  14. I've been doing some Topcoder, and there's a bunch of dynamic programming problems in the competition. It takes forever for me to realize that I can write a recursive backtracking solution, but as soon as I can, I can write the algorithm pretty quickly. Problem is, by then, the programming phase is pretty much over. I can write the solution pretty quickly if someones tells me it's a dp problem. Do you guys have some kind of test that you do to see if it's dp?
  15. [CENTER][URL="http://elixrr.org"][IMG]http://i47.tinypic.com/x37m7q.png[/IMG][/URL] Elixrr is an open community for programmers that relate to RSPS (Willing to expand). The goal is to collect a number of 'programmers' that will be paid for they're service to requested jobs. Job applications for "EProgrammers" is certainly welcome (Apply center closed for maintenance, back up soon).[/CENTER] [B][SIZE=5]T[/SIZE][/B][B]he point of this project thread[/B] is to attract attention toward our effort in achieving programmers and or website developers to help our ongoing attempt of a decent programming recourse. To eventually reach a number of customers that will support our programmers/hosting is what we are looking for. Not only are we looking for costumers, but forum members as well, in order to keep a civilized community. [CENTER][B]----------------[/B] [B][I]Contact[/I][/B][/CENTER] You can contact me through our website easily by PM or email, (provided on the site). In the time being, you could add me on Skype [B]only if necesarry[/B] @axter12345. Contacting methods will also be listed on the site within time, as we are currently setting everything up. Contacting us about "how things are going" is something we'd like to avoid; contacting for more information regarding work or volunteering is more understandable. [CENTER][B][I]Programmers[/I][/B][/CENTER] We typically accept anyone who is qualified as a 'good' programmer; provided us with your [B][URL="http://github.com"]GitHub[/URL][/B] account, or a resource containing your recent previous code is mandatory. (Both is defiantly accepted). You may have to [B][URL="http://elixrr.org/index.php?app=groupjoin"]apply[/URL][/B] before any further investigation regarding you're code. Java programmers are the only type that we are accepting, seeing as though Java seems to be more universal and widely used throughout the RSPS scene. This will eventually change and expand to support different languages throughout time. Work that is poorly done in any way shape or form is not acceptable. We thrive to pump the best code into applications and content as we possibly can! [CENTER][B]Website Developers[/B][/CENTER] We are currently seeking developers for the site. Just post if you're interested, I'll get a hold of you via PM (Run-Server) I'm currently using [B][URL="http://www.godaddy.com/"]Go Daddy[/URL][/B] for hosting, and I'm using IPB 3.4.3. Little information regarding website developers is available due to the amount of priority regarding the situation. You will be asked to provide site maintenance and content updates upon requested. Content shall be passed through by an administration before public release. [CENTER][B]----------------[/B] Payment methods currently include [B][URL="http://paypal.com"]PayPal[/URL][/B] for online money transfer. Payments will differ depending on the requested job, typically sorted by amount of time taken to complete the job, the amount of programmers, or the difficulty of the job. Jobs such as pieces of RuneScape content (Botany Bay, Fight caves, etc) will be around 20 dollars. Specific jobs/prices will be listed; while others will be negotiated. If you feel like partaking in this, please visit my website: [URL="http://elixrr.org"]Elixrr[/URL][/CENTER] [SIZE=1]Banner by [B]Chris Hettich[/B][/SIZE]
  16. Hey guys, I have a little extra time on my hands at the moment so I figured I would try to earn a little extra cash by coding for people. Service: - Anything RSPS related, can be pretty much any revision & can be anything from error fixes to coding a custom minigame or skill. Price: - Determined based on content. - Will be as cheap as I can make it (you're only paying for content, not the time it takes me to finish). Want to hire me? Reply to the thread, message me here on runelocus, or add my skype [MENTION=78442]World[/MENTION]ofclayton No flaming, bad remarks, or smart ass comments on this thread please. Regards, ~Hope
  17. Hello there So I'm guessing that most likely, people would like to create a game with Java. This isn't the easiest of things to, so I'll introduce you to JLWGL and Slick. This library is short for Java Light Weight Gaming Library. These are simple but very powerful libraries. You can get them here: [url]http://www.lwjgl.org/[/url] [url]http://www.slick2d.org/[/url] LWJGL is also used in Minecraft, as an example of what you can do with it. You use the library by adding it to your Eclipse (Or your IDE) resources. In Eclipse you do it like this: You rightclick your project folder, and select properties. You then proceed to click Java Build Path. In Libraries, you click add external Jar and browse to lwjgl_util.jar and lwjgl.jar. You'll also import slick.jar and slick-util.jar And you're done. Now, there's lots of tutorials on the sites of the libraries themselves, but they can be a little confusing for beginners. I have made a main class for you to use, [code] import org.newdawn.slick.*; import org.newdawn.slick.state.*; public class Game extends StateBasedGame { public static final String gameName = "Java Game"; public static final int menu = 0; public static final int play = 1; public static final int xsize = 1280; public static final int ysize = 720; public static AppGameContainer frame; public Game(String gameName) { super(gameName); this.addState(new Menu(menu)); this.addState(new Play(play)); } public static void main(String[] args) { try { frame = new AppGameContainer(new Game(gameName)); frame.setDisplayMode(xsize, ysize, false); frame.setVSync(true); frame.setResizable(false); frame.setIcons(new String[] {"res/icon32.png", "res/icon32.png", "res/icon16.png"} ); frame.setShowFPS(false); frame.start(); } catch(SlickException e) { e.printStackTrace(); } } public void initStatesList(GameContainer gc) throws SlickException { this.getState(menu).init(gc, this); this.getState(play).init(gc, this); this.enterState(menu); } } [/code] (Conventions are gone due to the forums, sorry) The icons lead to the project folder, in a folder names res, it'll look for the same names, the numbers in it stand for how big they are (32x32 or 16x16). Let's perform an autopsy on the code I made: [code] public class Game extends StateBasedGame { [/code] This extends StateBasedGame so we can use the states from the Slick library, this needs the imports above this code. [code] public static final String gameName = "Java Game"; public static final int menu = 0; public static final int play = 1; public static final int xsize = 1280; public static final int ysize = 720; public static AppGameContainer frame; [/code] gameName defines the name of our game, as it suggests. This String will be used when naming our frame. meny and play are ints to make it easier to see which gamestate we are going to, so when you see menu or play, it'll return that Integer. xsize and ysize define the size of our frame. public static AppGameContainer frame; this'll just tell our program to use an AppGameContainer whis we refer to as frame, that'll be our frame, of course. [code] public static void main(String[] args) { try { frame = new AppGameContainer(new Game(gameName)); frame.setDisplayMode(xsize, ysize, false); frame.setVSync(true); frame.setResizable(false); frame.setIcons(new String[] {"res/icon32.png", "res/icon32.png", "res/icon16.png"} ); frame.setShowFPS(false); frame.start(); } catch(SlickException e) { e.printStackTrace(); } } [/code] this is the first piece of code that gets called after initializing our variables, I surrounded this in a try/catch because if anything goes wrong, it'll be able to tell us what. frame = new AppGameContainer(new Game(gameName)); This tells the program that the frame we defined earlier, has to create a new appegamecontainer, which creates a new Game with our gameName. frame.setDisplayMode(xsize, ysize, false); This gives our frame a size, these sizes were defined earlier. The boolean stands for fullscreen or not. frame.setVSync(true); This isn't necessary, but useful. This will lock our frames per seconds to around 30, that's as much as the human eye should be able to see so it shouldn't matter, just increase performance. frame.setResizable(false); This explains itself, we won't be able to resize the window. frame.setIcons(new String[] {"res/icon32.png", "res/icon32.png", "res/icon16.png"} ); The default Icons would be Slick's icons, you can replace this by creating your own. frame.setShowFPS(false); This is also optional, it just hides our FPS. frame.start(); After setting everything we need up, it's time to start our frame up, without this, nothing would happen. [code] public Game(String gameName) { super(gameName); this.addState(new Menu(menu)); this.addState(new Play(play)); } [/code] this is called in the first line of our main, change Game to whatever your file is called, that's why it does not have void, string, integer, boolean or anything. super(gameName); this has to be there, otherwise you'll get an error that the super constructor is undefined. (Names our game) this.addState(new Menu(menu)); this.addState(new Play(play)); This adds 2 states of our game, the menu, and the play state. This NEEDS a class named Menu and a class named Play in this case. notice how menu and play are here, this refers to the integers we defined earlier. [code] public void initStatesList(GameContainer gc) throws SlickException { this.getState(menu).init(gc, this); this.getState(play).init(gc, this); this.enterState(menu); }[/code] This, as it says, inits our states and assigns it to the gamecontainer. So once again, our integers menu and play are called. this makes the game aware that these states are there and loads them. this.enterState(menu); this will get us directly to the menu state (0). Creating a state class [code] public class Menu extends BasicGameState { Image play; Image exit; public String mouse; public Menu(int state) { } @Override public void init(GameContainer gc, StateBasedGame sbg) throws SlickException { play = new Image("res/menu/playNow.PNG"); exit = new Image("res/menu/exitGame.PNG"); } @Override public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException { g.drawString("Java Game", 560, 50); play.draw(495, 100); exit.draw(495, 170); g.drawString("Mouse coordinates: " + mouse, 50, 62); } @Override public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException { Input input = gc.getInput(); int xpos = input.getMouseX(); int ypos = input.getMouseY(); if(!Mouse.isInsideWindow()) { mouse = "No input"; } else { mouse = "x: " + xpos + ", y: " + ypos; } if((xpos > 495 && xpos < 705) && (ypos > 100 && ypos < 150)) { if(input.isMouseButtonDown(0)) { sbg.enterState(1); } } if((xpos > 495 && xpos < 705) && (ypos > 170 && ypos < 220)) { if(input.isMouseButtonDown(0)) { System.exit(0); } } } @Override public int getID() { return 0; } }[/code] This is a basic state, which we called Menu in our Game class. [code] public class Menu extends BasicGameState { [/code] This extends the BasicGameState so we can use things from that class. [code] Image play; Image exit; public String mouse; [/code] the first 2 are images. The third line will be used to determine our mouse's coordinates on the screen. (Will come in handy to place images). [code] public Menu(int state) { } [/code] This is necessary to tell our game class, that the Menu state is located here. [code] @Override public void init(GameContainer gc, StateBasedGame sbg) throws SlickException { play = new Image("res/menu/playNow.PNG"); exit = new Image("res/menu/exitGame.PNG"); } [/code] this loads our images. The images I used are here: [img]http://i.imgur.com/jXmbDHZ.png[/img] [img]http://i.imgur.com/EwIWXAc.png[/img] [code] public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException { [/code] this creates a constant loop to update the graphics. [code] g.drawString("Java Game", 560, 50); play.draw(495, 100); exit.draw(495, 170); g.drawString("Mouse coordinates: " + mouse, 50, 62); [/code] The first line draws the text "Java Game" onto our screen at the coordinates 560;50. The next two lines draw our images, which we defined in the init. The next one displays our mouse String. [code] public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException { [/code] this also creates a loop, but behind the scenes. This will update code that won't directly be drawn on the screen. [code] if(!Mouse.isInsideWindow()) { mouse = "No input"; } else { mouse = "x: " + xpos + ", y: " + ypos; } [/code] This updates our mouse string to our mouse's coordinates. [code] if((xpos > 495 && xpos < 705) && (ypos > 100 && ypos < 150)) { if(input.isMouseButtonDown(0)) { sbg.enterState(1); } } if((xpos > 495 && xpos < 705) && (ypos > 170 && ypos < 220)) { if(input.isMouseButtonDown(0)) { System.exit(0); } } [/code] If you click within these coordinates, the code in the if statement gets executed, on our play, it goes to state 1 (which is play) on the exit, it'll stop the program. [code]public int getID() { return 0; }[/code] this is VERY important, it returns which ID this state has, so other states can refer to it. I won't cover the play state since it uses the exact same things as our Menu state. I hope you learned from this :) Credits; JLWGL Slick2D I, for writing this tutorial. (Also known as Worldofwar or Chaosdevil)
  18. Offering my services to anyone who needs it, although don't ask me to do stuff on a client where you have cache problems or something cause screw that. I can do pretty much anything you need me to. Hit me up on Skype, stephen_moyer1. We can talk about money on Skype :)
  19. I thought i would share some of my knowledge on Javascript with all of you guys. Note: i created this back in 2011-2012. This is the first time i'm sharing it with anyone. [COLOR=#ff0000][SIZE=4]PROGRAMMING WITH JAVA SCRIPT [/SIZE][/COLOR] INSTEAD OF OTHER GUIDES WHERE ALL YOU ARE GIVEN IS CODES, I ACTUALLY EXPLAIN WHAT THE HELL YOU ARE CODING. PLEASE TAKE THE TIME TO READ EVERYTHING. THAT'S THE ONLY WAY YOU WILL TRULY UNDERSTAND JAVA SCRIPT. [COLOR=#0000ff][SIZE=3]CHAPTER 1 [/SIZE][/COLOR] Server Side • Server side scripts reside on the server (main computer) while client side scripts reside on a user PC • Storing all programs on the server allows multiple users simultaneous access but poses potential connection and performance issues. Client Side • While client side scripts are not as powerful and will never fully replace server side scripts, they do offer a convenient alternative for performing some of the simple, low-key tasks locally. Why JavaScript? • HTML allows developers to create static web pages, the information and look of the page does not change. • JavaScript allows you to create pages where content and layout can be modified using special code built into the page. [COLOR=#ff0000][SIZE=3]Java vs. JavaScript [/SIZE][/COLOR] [COLOR="#800080"]I included this for people who have no knowledge of Java or Javascript and would like to know the difference.[/COLOR] Java • Code is powerful but complex • A special app (JDK) required • Programs must be saved and compiles separately • Used for complex tasks JavaScript • Code is easy to learn and to use • No additional software is needed • Code can be added directly anywhere in the HTML text editor • Used for quick, simple tasks [COLOR=#ff0000][SIZE=3]Code Example[/SIZE][/COLOR] [CODE] <script> document.write(“Today is 12/20/2011 <BR>”) document.write(“Only 10 days until the New Year!”) </script> [/CODE] [COLOR=#ff0000][SIZE=3] Variables[/SIZE][/COLOR] • A Variable is a verbal representation of information that can be substituted for information. • Before you can use a variable can be used in the code it has to be created using a variable declaration. Variable Types • Numeric variables- any number in standard or scientific notification • String Variables – text (Must be in quotes) • Boolean variables- TRUE/FALSE. Used when you want the program to act depending on condition • Null Variables- a variable without an assigned value. [COLOR=#ff0000][SIZE=3]Naming Rules[/SIZE][/COLOR] • The first character must be a letter or an underscore • The remaining characters must be letters, numbers or underscores • Names cannot contain spaces • JavaScript code items cannot be used as variable names. [COLOR=#ff0000][SIZE=3]Variable Example[/SIZE][/COLOR] --------------------------------------- var month ="March"; document.write(“School starts in” + Month); OR month = “March”; document.write(“School starts in” + Month); --------------------------------------- Both of the codes above will yield the same result. Which is: [COLOR="#FF0000"]School starts in March[/COLOR] [COLOR=#ff0000][SIZE=3]Expressions and Operators[/SIZE][/COLOR] • A JavaScript expression is a command that is used for assigning values to defined variables. • A JavaScript operator is an element that can be used within an expression to perform and action, such as adding or combining multiple elements.. • The most commonly used operator is the equal sign (=) that will assign a value to the preceding variable. • Another example of an operator is the plus sign (+) used for combining multiple elements. [COLOR=#ff0000][SIZE=3]Assignment Operators [/SIZE][/COLOR]• In JS, values are assigned to variables using assignment operators. • An example is the equal sign (=) [COLOR=#ff0000][SIZE=3]Functions[/SIZE][/COLOR] • A function is a series of commands that can be executed by your program to calculate a value or perform an action [COLOR=#ff0000][SIZE=3]Benefits of Funtions[/SIZE][/COLOR] • Complex programming tasks can be broken down into simpler steps • Code does not have to be duplicated within a program • Code can be reused multiple times by a placing a simple function call anywhere is the program [COLOR=#ff0000][SIZE=3]Declaration [/SIZE][/COLOR]• A function has to be created using a function declaration like the one below --------------------------------------- Function Name(Function Variables) { Function Commands; } --------------------------------------- [COLOR=#ff0000][SIZE=3]Three major parts of a function:[/SIZE][/COLOR] Function Name= identifies each function Parameters= Values needed by the function to produce the expected result Commands= Actions that will be executed when the function runs. Calling a function Whenever you need to use the function you created you must insert this piece of code: --------------------------------------- FunctionName(Variables); --------------------------------------- (Replace "FuntionName" with the name you created for your function. Replace "Variables" with whatever variables you need to use) [COLOR=#0000ff][SIZE=3]End of Chapter 1 [/SIZE][/COLOR] [size=4][color=#0000ff]Chapter 2[/color] [/size] [SIZE=3][color=red]Arrays[/color][/size] • In a typical computer program, data cannot be stored without the use of a database such as Access, Oracle, DB2 etc. • Some of the program data, however, can be stored on a temporary basis by using data structures known as arrays. • An array is a systematic arrangement of objects, usually is a rows and columns. Like a table./ single column table with a name assigned to it [size=3][color=red]Array Example[/color][/size] [size=3]--------------------------------------------[/size] Var ArrayName= new Array(size); ArrayName[index]= value; ArrayName[index2]=value 2 ; [size=3]--------------------------------------------[/size] • The size is expressed as the number of elements that the array is going to contain. • You can leave the size blank and have JavaScript automatically increase the array size as new elements are added. • Index represents the row number [SIZE=3][COLOR=#0000ff]Coming up:[/COLOR] [COLOR=#0000ff][SIZE=2] Loops Objects/Events Prompting user for input Creating calculated fields Validating user input[/SIZE][/COLOR][/SIZE]
  20. Hello, I'm offering cheap programming services, prices range from $5-$500 (depending on project, what needs to be done). I know: HTML, CSS(not that good), PHP(moderate), JAVA(moderate), JAVASCRIPT(moderate), VB .NET(moderate/advanced). Previous work: [url]http://www.runelocus.com/forums/showthread.php?83830-NetBilling-created-by-me-released[/url] [url]http://www.runelocus.com/forums/showthread.php?83908-VPS-Control-Panel[/url] [url]http://www.mediafire.com/?k4hqo109pq8u99c[/url] (pass: ubers.org - made for a hacking community) [URL=http://www.runelocus.com/forums/]Hire me! (PM Me)[/URL]
  21. Hi, i am here again with GeneralProgramming.org, i know i have made a lot of projects here, and alot did not last long, due to not enough motivation, but i am dedicated to stick with generalprogramming, i have received better feedback on it then any other website i have owned, i have nothing else to distract me, and it is growing fast. What makes GeneralProgramming different to other web development and / or programming forums? In general programming you may request almost any PHP script(assuming it isn't a MASSIVE job) to be created and released on the forums for free, the staff and community members post PHP, HTML, CSS, C, C#, C++ and Java tutorials and projects, and unlike all of the other websites or forums that set out with the same objective, we have a Discussion are aswell as a gaming area Runescape, Minecraft, Consoles. With regular tutorials, and releases posted by me, other staff or other community members, i think it will quickly become a very usable and attractive resource website for the RSPS community and others at the same time, as the services are entirely FREE. All you need to do to support us is register and be as active as you possibly can, and if you feel it necessary donate a small amount to us, my paypal account has recently been locked, so i have no outstanding cash. We are also in the look out for some good web developers or programmers, that can come and help make tutorials, or release content, on the subject we are looking for a staff team as well, that can not be applied for, they will be hand picked by me.
  22. Well, it seems as if Runelocus is starting to move right in the right direction. I think the only thing the site is missing now is a dedicated user base. I'm going to try to post new things that I write in the programming section as often as I can. I hope that the zeal of this community can be found again. I'm not all that good of a programmer, although I've been doing it for a few years, but I hope that w/help and dedication I can advance myself. I encourage others to learn object oriented programming and hopefully some more expericenced members in the community will step up and help teach the next generation.
  23. Start Date - [I]September 14th, 2012[/i] Date of Completion - [i]October 26th, 2012[/i] Programming language - [I]Java[/I] [Spoiler=Progress Dates] [LIST] September 14th - Excel integration - using POI 3.7 and basic GUI[/LIST] [LIST] September 15th - Excel integration touch ups, import tables[/LIST] [LIST] September 18th - Label preview integration, color charts[/LIST] [LIST] September 19th - DPI issue confronted, format adjustment[/LIST] [LIST] September 22nd - GUI rehaul, professional look achieved, achieved delete row in JTable[/LIST] [LIST] September 26th - Nimbus look and feel integrated, glitch fixes[/LIST] [LIST] September 28th - Generating labels into images[/LIST] [LIST] October 5th - Print Preview[/LIST] [LIST] October 7th - Template designer, Color designer, settings file integration[/LIST] [/Spoiler] [Spoiler=Media] [CENTER] [IMG]http://i.imgur.com/i7rMc.png[/IMG] [IMG]http://i.imgur.com/9Iqh9.png[/IMG] [IMG]http://i.imgur.com/02PAW.png[/IMG] [IMG]http://i.imgur.com/jKGN1.png[/IMG] [IMG]http://i.imgur.com/fadvn.png[/IMG] [/CENTER] [/Spoiler]
  24. This is a super easy assignment. The goal is: how many lines can you reduce your solution to (hint: functional programming)? Rule: Each statement must go on its own line. For example, if you're using Java, you cannot do hi();hi();hi();hi();hi(); and say you only used one line. Task: Print the sum of all the multiples of thirteen or nineteen up to 690,690. My code in Ruby: [CODE] (1...690690).select {|x| x % 13 == 0 or x % 19 == 0}.inject {|sum, x| sum + x}[/CODE] If the number ends with 55, you're probably correct. Have fun!