»jabjabjab Posted August 26, 2011 Report Posted August 26, 2011 (edited) Going to go ahead and clean OP... Added poll for the name. Here is a example image of what has already been done thus far:http://i559.photobucket.com/albums/ss31/XDreamersMS/Continuum/Aphelion/Screenshot-1324327159377.png?t=1324327175 Will Implement a roadmap sometime soon. (todo list). Edited December 19, 2011 by jabjabjab Quote
Dr Brain Posted August 26, 2011 Report Posted August 26, 2011 The problem with java isn't the memory. It's the lack of client side protection. You won't be able to stop cheaters without introducing a hell of a lot of lag by making everything server side. If you're really clever you may be able to minimize the impact of this, or you may not be able to. Quote
»jabjabjab Posted August 26, 2011 Author Report Posted August 26, 2011 Ehh, true. But then again, what is a game to protect without it's people (Im not saying im going to finish this, Im just stating that if something was to be had, it would be better than stagnating in security) But honestly, I don't want to turn this topic into a discussion about something weighing pro's and con's and what not. I just want to do something different for a change. Quote
Dr Brain Posted August 26, 2011 Report Posted August 26, 2011 Then do it. You don't need to discuss it with us, after all Quote
»jabjabjab Posted August 26, 2011 Author Report Posted August 26, 2011 No worries. I will just need to learn how to work with packets and I should be fine Quote
»Maverick Posted August 26, 2011 Report Posted August 26, 2011 (edited) Take a look at TWCore: http://www.twcore.or...runk/twcore/srcIt's already in java and has about 60% of the available (subspace) packets implemented. If you need to export the source code from TWCore's Subversion repository, you need an account which you can create on http://www.twcore.org/register . Edited August 26, 2011 by Maverick Quote
JoWie Posted August 27, 2011 Report Posted August 27, 2011 (edited) I've used lwjgl for 2D stuff and it is not incredibly hard. Anyhow, the big thing to avoid in java is massive object creation in hot spots. Edited August 27, 2011 by JoWie Quote
»jabjabjab Posted August 28, 2011 Author Report Posted August 28, 2011 Well I have my little 800x600 window of blank space flying a warbird with workable thrust, magnitude, collision of the borders and slowing down using booleans, and Am working on energy and weaponry atm. Quote
»jabjabjab Posted August 29, 2011 Author Report Posted August 29, 2011 http://i559.photobucket.com/albums/ss31/XDreamersMS/Continuum/ScreenShot.png?t=1314604233 Moving everything over to a stable timer thread to keep the data from slowing from render ticks. Im also having an issue involving pressing more than one arrow key. Anyone know where to point me to fix this? Quote
»Lynx Posted August 29, 2011 Report Posted August 29, 2011 public class Main extends JPanel implements KeyListener, Runnable { boolean isUpPressed, isDownPressed, isSpacePressed; static JFrame f; public static void main(String[] args) { f = new JFrame(); f.setSize(600,300); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setContentPane(new Main()); f.setVisible(true); } public Main() { setFocusable(true); addKeyListener(this); new Thread(this).start(); } public void keyTyped(KeyEvent ke) { } public void keyPressed(KeyEvent ke) { switch(ke.getKeyCode()) { case KeyEvent.VK_UP: isUpPressed = true; break; case KeyEvent.VK_DOWN: isDownPressed = true; break; case KeyEvent.VK_SPACE: isSpacePressed = true; break; } } public void keyReleased(KeyEvent ke) { switch(ke.getKeyCode()) { case KeyEvent.VK_UP: isUpPressed = false; break; case KeyEvent.VK_DOWN: isDownPressed = false; break; case KeyEvent.VK_SPACE: isSpacePressed = false; break; } } public void run() { while(true) { try { String s = "up pressed: " + isUpPressed + ", down pressed: " + isDownPressed + ", spacePressed: " + isSpacePressed; f.setTitle(s); Thread.sleep(200); } catch(Exception exc) { exc.printStackTrace(); break; } } } } sauce: http://ubuntuforums.org/showthread.php?p=9285209 Quote
»jabjabjab Posted August 29, 2011 Author Report Posted August 29, 2011 mmk ill look at it when i can. Thanks! Quote
»Lynx Posted August 29, 2011 Report Posted August 29, 2011 I can think of a few other ways to do it in my head. You should GitHub the project; it looks fun. Good luck, and good work. :-) Quote
»jabjabjab Posted August 30, 2011 Author Report Posted August 30, 2011 Well I got the update thread working now (yay learning) Now Im working on the weapons GUI... fun. Also got the number for energy in the top corner working Quote
»jabjabjab Posted August 30, 2011 Author Report Posted August 30, 2011 http://i559.photobucket.com/albums/ss31/XDreamersMS/Continuum/ScreenShot2.png?t=1314728714 Got working bullets,GUI almost done, More fun. Quote
Samapico Posted August 30, 2011 Report Posted August 30, 2011 Lookin' good. But that's the easy part Quote
Avast Posted August 31, 2011 Report Posted August 31, 2011 (edited) tm_master told me he codes java for a living. He said he works on all those java updates your computer needs. Java 6 etc. He works for the actual company. Maybe you can ask him if you need any tips. Plus I am curious if he actually knows anything. =) Edited August 31, 2011 by Avast Quote
»jabjabjab Posted September 1, 2011 Author Report Posted September 1, 2011 lol @ oracle. What I do know is this: I can do some major obfuscation to the class file compilations. Im actually pretty damn good from bringing code from obfuscation level, though this takes a severe amount of patience, is possible, but if you dont know what your doing you will fail bad at it. I taught myself how to do this by doing minecraft in a decompile (the classic, and it was harder) but no I do know a little about the obfuscation world. Quote
»Lynx Posted September 1, 2011 Report Posted September 1, 2011 Security by obscurity is not good enough, you need to implement proper security measures. Anyway, do what you think is right. You'll likely not use Continuum/Subspace encryption as that will be more of a ball ache than getting ASSS to work with your client. If that's the case then security is something you can think more about once you get to that hill. Quote
»jabjabjab Posted September 1, 2011 Author Report Posted September 1, 2011 Well I have the multiple keys working now. I dont want this to be moved to the dev forum because this forum gets most activity btw. When I get the weapons working, I will throw a jar out there for silly proof of work and not photoshops Quote
»jabjabjab Posted September 1, 2011 Author Report Posted September 1, 2011 Working on the Font Engine now.. woot.. (/kills self) if you want to see what it looks like atm, http://pastebin.com/7YEedQ0X I've completely moved off the rediculous render update method (which lags when a load is heavier) and duped the delta int method from the API so I could retain this in my update thread. Quote
»jabjabjab Posted September 2, 2011 Author Report Posted September 2, 2011 http://i559.photobucket.com/albums/ss31/XDreamersMS/Continuum/ScreenShot3.png?t=1314929620 Got the Font Engine working... Moving on to the chat. Quote
»jabjabjab Posted September 2, 2011 Author Report Posted September 2, 2011 http://i559.photobucket.com/albums/ss31/XDreamersMS/Continuum/ScreenShot4.png?t=1314978074 Quote
»jabjabjab Posted September 3, 2011 Author Report Posted September 3, 2011 Im having a tough moment right now... When I applied the settings for the ships using a cfg, everything just went whack, so I tried to weigh down the equations to suit a ship, then jump to the next one and try to fix this to where I could just weigh the settings to make identical with continuum's physics. Unfortunately, Im having a lot of issues trying to do this. I think my method of moving the ship around isnt right. I may need to recode this. Dunno... Im using X, Y, MagnitudeX,MagnitudeY, and rotation of 40 from 0-39 and going back to 0 or 39 depending on rotation. I dont know why I'm not using the vector libraries java has, but I think doing it this way is fine.. I think It's just the type of ticks im using... Im just updating a variable asking if it is greater than 0, then subtracting it, and when it is 0 to do the action. I think I have this idea wrong.... Other than that, I have all the settings loading from a cfg into variables in the SettingsManager class I've made. Quote
spidernl Posted September 3, 2011 Report Posted September 3, 2011 Don't really like any of the three suggested names Anyways, good work on this. Although Java has its issues with security, I'm sure you'll be able to figure something out. Quote
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.