Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (702)
Games in Android Showcase (203)
games submitted by our members
Games in WIP (775)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 20
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-01-12 00:28:27
And after only a week of reading SHC's tutorials on LWJGL 3, I have broken through! I have drawn a static triangle with VAOS/VBOS and a vertex and fragment shader. I don't exactly know what it all does yet, but hey, I did it! Thanks SHC!

2  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-19 19:00:41
v0.0.7 is Complete

I feel like this update was equally as gigantic as v6. I added in a whopping 13 new items, pause menus, buff systems, and more. However, I'm getting bored just adding new items, so expect v8 to be rather revolutionary.

Added:
  • Refactored the slow minimap. (Still slow, but less slow)
  • Added in a well need pause menu when you press escape instead of exiting the game.
  • Difficulty now increases based on the amount of dungeons you have cleared.
  • I moved the gear slots to the bottom left corner so you can evaluate your gear without opening the inventory.
  • Added in durability for all gear, and a fancy 'health' bar to show it.
  • Added in spikes and pressure plate traps.
  • Removed all traps because they were incredibly stupid.
  • Added in lucky underwear: If worn, increasing the chance of rare loot.
  • Added in Flip Flops: The first ultra-major item. Running shoes for both land and water.
  • Added in Water Shoes: Amphibious running shoes, however, very very weak.
  • Added in Snorkels: Snorkels slow down the rate of drowning.
  • Created a buff system for temporary things that modify the player's abilities. (Potions)
  • Added in Speed Potions: Increases player's speed for 7 seconds.
  • Added in Carbonated Water: This is basically a bubble on steroids except it doesn't fill scuba tanks.
  • Added in Potion of Duplication: Duplicates any item. (Durability and all)
  • Added in Potion of Ice: Temporarily freezes all the water on the map, stopping it from spreading, and drowning you.
  • Added in Potion of Minor: Temporarily makes all chests on the map give minor loot. (Very handy Wink )
  • Added in Potion of Normal: Temporarily makes chests on the map give normal loot.
  • Added in Potion of Major: Ditto. Except with major loot of course.
  • Added in Anvils: Repairs any damaged piece of equipment.
  • Added in Lung-Enlargement Pills: Adds an extra bubble to your oxygen pool.

Space next to a chest will open it and put it's contents in your inventory. Left-Shift now makes the player sprint however this uses oxygen. Inventory is now swapped to the I key, and the numpad now works as well to toggle the Floodgates. M toggles map focus. If you have it of course. ESC will either close the game, or any popups open on the screen. Single click in the inventory to drag, double click to use an item, and right click to view more info on an item.

Download:
https://dl.orangedox.com/KdkcGZ586ptjzMR9di/Floodgate%20Launcher.jar

Images:

v7 Item Showcase
Click to Play


Ice Potion Showcase
Click to Play


Potion of Duplication Showcase
Click to Play








EDIT:

Today I tweaked my random generation to make maps look a hell of alot more pretty. It gives maps a bit more depth. Soon ill add things to spawn out in the wide expanse of brown to break up the monotony. I might even have arches for the player to walk under. This is super cool!





3  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-13 04:16:54
Quick update guys! I just did the coolest thing. (I guess it's technically basic, but I'm still going to explain it because I'm really excited.) So I just made an autoupdating launcher for Floodgate! It detects if the version changes, if so it downloads the new zip file from my server, and unzips it, then launches that version! It's so cool! It also does it's own clean up, and stuff. So, now you guys don't have to have all the versions of Floodgate, just get the launcher, and it'll handle it for you! Even better, it'll be (hopefully) the last Floodgate jar you'll have to download. All you'll have to do it download the update from within.

If you want to check it out here's the link: https://dl.orangedox.com/rwjHLJOyhbYNstej4z I'll post this link on every new version release on here too. I also changed the main posts link to the launcher. I recommend putting the launcher in its own folder as it makes a directory called files where it holds all of the good stuff. Anyways, talk to you guys later! persecutioncomplex

EDIT: The last version apparently only worked on Macs. I fixed it and now it is confirmed working on Windows 10 and 8 along with some version of linux.
4  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-09 23:30:14
If anyone cares to follow development, I made a github. (I wanted to make the source online so I could develop on any computer I can get my hands on.) https://github.com/JacobPickens/Floodgate All important updates and releases will still be added here, but development updates will be within the commits of this github.
EDIT: Also I have a trello: https://trello.com/b/POyB1XNU/floodgate
5  Games Center / Showcase / Re: Meteor Smash - Endless Arcade Tapping Game on: 2015-12-08 01:48:49
Hey, I think the game is very very pretty! (Noticed those little cars driving around down there. Very minuscule, but thats the reason I'm writing this post Tongue ) The GUI on this game is very polished. You definitely took your time working on the flow of this game. I appreciate that. I happen to be very bad at the game though. Here are my few tips:
  • Have the game start a bit faster. More meteors quicker. It's gotta be action packed from the beginning to hook your audience.
  • The yellow meteors and such go way too fast! There is no way to hit the suckers. I'd slow them down and make them a bit more fair. Combined with the extra meteors from tip 1, you wont need speed, just pure overwhelming force.

That's just my few cents. Keep up the good work!
6  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-06 19:39:24
v0.0.6 is pretty cool. Love the new inventory system, sprites and loot! It's nicely laid out and the management was straightforward. That's usually the most frustrating thing with a new game, but you managed to get it right. Smiley

Two Notes
  • For some reason, I could go not go through this gate vertically. It was disabled and switching it ON/OFF didn't change the collision. Not sure what happened there!
  • When using the inventory, your oxygen does not deplete. Ignore this point if that is intentional.

Sorry for the late reply. Must've missed the message. I'm glad you like the inventory. I'm very proud of it. Now with the floodgates, this glitch has been brought up to me multiple times, however, I was never able to recreate it. I don't understand how it works, and it's happened to everyone but me. So I guess I have a bit of studying to do. Other than that, the inventory completely pauses the game so that you can re-gear your character and take time to think it out, but you can't open a map in the inventory because maps don't pause the game. I did this so that people are still rushed while they are looking in the map. Otherwise the game gets boring and gives you too much time to plan. The whole point of the game is quick decisions, so I hope that will always ring true. Thanks for playing and giving feedback! v0.0.7 should be out soon!
7  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-05 05:05:27
That water looks totally gross, I like it. Nice job on the game so far!

Thanks! Anything I could change or perhaps improve?

Quote from: Theory
I was having plenty of fun figuring out the game. Although, the immediate quit upon pressing escape ended my fun too quick.

Yea, I do agree. Using escape is a ballsy move when closing out your inventory and other GUIs. I, of course, plan on making a pause menu that would allow you to click leave or not, but since its such an early early build, I decided my time was better spent improving gameplay, however I am very glad you are having fun! I actually have 80+ items designed for the game already, just a matter of adding them in, so you will have much to figure out soon enough. Thanks for the feedback!
8  Games Center / WIP games, tools & toy projects / Re: Questica -- now with demo, get it while it's hot! on: 2015-12-04 03:22:19
It was the absolute screen, however the health bar and GUI was still present and when I clicked arounf it seemed to notify me that I was clicking a tree, however, this tree was of course masked by the endless sea of blue.
9  Games Center / WIP games, tools & toy projects / Re: Questica -- now with demo, get it while it's hot! on: 2015-12-04 03:00:25
Must say, the art is gorgeous, and this launcher is very very sexy. Already, it reminds me of an MMO. Sadly, I experienced the same glitch as EgonOlsen, the screen was completely blue. I tried it twice on separate worlds and players yet, to no avail. Saddens me that I can't play. Hope this is fixable.
10  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-12-04 02:33:50
v0.0.6 is Complete

This was a gigantic update in my opinion. I didn't get much work time this week, however, though because I was dangling some benders in hockey, but hey I added a lot! Including mini-maps, gear, and polishing up the inventory! (There is movement and shiz now!) Feedback, as always, is extremely welcome. (To the point of me practically forcing you to give it.)

Added:
  • I made some pretty player art. (It took me an hour.  Cry )
  • Gave pretty much every key binding a GUI button as well.
  • Made chests that are randomly place in the map that give you random gear!
  • Made a gear ranking system, and made it visible in the inventory. (Minor, Normal, Major, & Ultra-Major)
  • Made a minimap item. You can toggle focus and such.
  • Inventory randomly rolls minor loot at the start. (Pretty much just barriers at the moment.)
  • Added in sprinting (Left-Shift), but it uses oxygen.
  • Added in bubble items that fill a bit of your oxygen bar when you're running low (Also refills scuba tanks.)
  • Added in the item info page. (Right Click on an item.)
  • Made the inventory completely editable. You can move and remove items now!
  • Made gear slots at the top of the inventory. (Head, Body, Feet)
  • Added in Running Shoes which increase land speed.
  • Added in Scuba Flippers which increase water speed.
  • Added in Scuba Tanks that are stored oxygen used before your player's oxygen. (Refillable with bubbles)
  • Added in Dice that re-rolls an item for another item in that same loot rank.
  • All gear has either Damaged, Used, or New condition specs affecting the effects.
  • General polish and stuff.

Space next to a chest will open it and put it's contents in your inventory. Left-Shift now makes the player sprint however this uses oxygen. Inventory is now swapped to the I key, and the numpad now works as well to toggle the Floodgates. M toggles map focus. If you have it of course. ESC will either close the game, or any popups open on the screen. Single click in the inventory to drag, double click to use an item, and right click to view more info on an item.

Download:
https://dl.orangedox.com/diOIhs8CUuJjgp6OtQ

Images:

All of the items. (Flippers and Shoes both have the same sprite right now.)


Mini-Map (Live updating too Wink )
Click to Play


Inventory Management and Gear
Click to Play
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-30 17:01:39
More of a 'What I did yesterday'. I added in some super cool inventory management stuff, and gear, but more importantly, I played my first Ice Hockey game on a rink other than my pond. I was put on a decent enough line. I made 3 goals and 2 assists with about 25 minutes of ice time. However, 2 of those goals were for the other team. persecutioncomplex I woke up sore, but I'm ready for game 2 tonight! Wish me luck.
12  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-26 03:55:33
Great game so far! The concept is pretty interesting and the the effects and looks in general are good for this stage of development. It would be cool to have maps (or tilesets) of lava or a toilet bowl to go with the game play. One problem is I get an error when I choose to do FullScreen:
1  
2  
3  
org.newdawn.slick.SlickException: Failed to find value mode: 2720x1024 fs=true
   at org.newdawn.slick.AppGameContainer.setDisplayMode(AppGameContainer.java:146)
   at com.pickens.main.Game.main(Game.java:98)

Monitor resolution isn't 2720x1024 though.

I would assume this is a problem with your set up. Currently the code uses the Toolkit class to find screen size, and then sets the width and height of the game to that size.
13  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-26 03:24:35
v0.0.5 is Complete

I added in a lot of cool things in my opinion. Including classes. I of course have to balance them, but hey, they're a nice touch. Also, the inventory is super cool. Though it was basic, I've never made one before so I'm glad I was forced out of my comfort zone. I plan on adding in a lot more items in 0.0.6. Anyhow, as usual, I'd love to get some more feedback.
By the way, I plan on keeping the Rogue-Like movement as of now. 1) The engine was not even close to being built for that, and as far as I'm in now, I don't think it's really worth it. 2) It kinda fits my theme in a way. The game was originally intended to be a Rogue-Like.

Added:
  • Fullscreen mode and multiple different resolutions
  • Basic classes. (Normal, Runner, & Big Lunged (He has a lot of oxygen so))
  • A main menu
  • Death menu and restarting (No more exiting the game!)
  • Inventory!
  • Barrier Items that can be placed and removed and what not!
  • Health and oxygen bars
  • Probably some other things I forgot too.

Press Left-Shift to open up the inventory. You can click on the items to use them. Also, the colorful  things on the main menu are buttons.

Download:
https://www.dropbox.com/s/ctt9kt02iik7ynd/Floodgate%20v0.0.5.zip?dl=0

Images:

Demonstration of inventory and place/remove mode
Click to Play


Classes!
Click to Play
14  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-19 22:16:32
Quote from: Gornova
a tip: build a game around concept to kill enemies trapping into sewer and then flooding ?

Very good idea, however, in this game I want the player to feel like they are being pushed and blocked in. So I'd like the water to be the main enemy, and anything else just something to slow you down.

https://gyazo.com/689fb2c838e4ce00b06b2b370e58fcc2

This is after just unzipping the package from your Dropbox Sad

What OS? Linux? Make sure you have the res folder in the same directory, and if you could, check to see if the wall_floor_tiles.png is in the res folder.
15  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-18 23:53:26
Quote from: bornander
"Randomly Generated Sewer System Search Thingy", now that's a game I didn't know I wanted to play until I saw it  Smiley

Looking forward to seeing what sort of problems or puzzles you can come up with for this game mechanic.

I mean, what else can you call this? I have no idea. I'm thinking about adding traps, and locked doors, and such. Any other ideas are more than welcomed!

Quote from: EtmosCode
You asked for constructive criticism, so here you go!

The game runs smoothly and I couldn't find any bugs. A barrier can also be placed under the valve sprite which doesn't make much sense and is not a bug because the valve still functions. As for features, it would be nice if you could remove a barrier with a right-click. It's pretty easy to accidentally block yourself in. The movement in the game reminds me of turn-based RPGs - is this intentional? It could have more fluidity if movement wasn't restricted to individual tiles.


All that aside, I'm excited to see what you do with this idea you have here. Lots can be done with this! Smiley

I'll fix that tile glitch as soon as I can. As for the removing of barriers, I'll get that in as well. Now onto the important topic. I didn't exactly intent on tile-based movement, but this project was originally going to be a turn based RPG, so I just kept the idea. Do you think the game would look better with velocities, and free movement? I'd still keep all AI's and water being tile-based, but fluid movement doesn't sound too bad to implement.
16  Discussions / General Discussions / Re: What version of Java do you use on: 2015-11-16 22:52:18
Java 7 master race. (DarkCart uses Java 8. He's a noob.)
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-15 17:36:47
This is the third project in a row to lose inspiration in. I keep doing this because I have no real goal to achieve. I wish I could find a better project to have fun on.

All I got done was some backend collision and rendering. I also decided to (finally) animate a robot I used as my main player sprite ever since I started with LibGDX just over a year ago.

gif

I shamefully suffer the same situation quite frequently. It's all in the planning, and goals from what I have found. If you keep the game planned out ahead of time, you might be able to stick with it for a month before you need to look outward for someone to egg you on.
18  Games Center / WIP games, tools & toy projects / Re: Floodgate - Race Against Time in the Sewers on: 2015-11-15 07:44:39
v0.0.4 is Complete

I'd love to hear a bit of constructive criticism on this project so far. So feel free to give some.

Added:
  • Color-coordinated randomly generated floodgates
  • Tweaked random generation, and difficulty.
  • Stress to developer.  Wink

Press 1 to toggle red doors, press 2 to toggle green doors, and press 3 to toggle blue doors.

Download:
https://www.dropbox.com/s/xxyrfttbxvzl7pb/Floodgate%20v0.0.4.zip?dl=0

Images:

Majestic still image of a gate


Gates in action
Click to Play
19  Games Center / WIP games, tools & toy projects / Re: CryptoRL 2 on: 2015-11-14 07:43:50
two medals in a row? Not bad Cheesy but I'm asking for feedback Cheesy

I believe the problem is that you don't have a download link on you post directly. If you did, I bet someone here (Me at least) would check it out. It looks good to me, however, all I'm basing it off of is images.
20  Games Center / WIP games, tools & toy projects / Re: Floodgate on: 2015-11-14 07:32:26
Turned it into an actual game now! Check it out!

Nice work! I would prefer to see the corridors twice as wide - they seem a bit too narrow as is.

Made the hallways bigger! Thanks for the tip!
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-14 03:07:52


This looks like one of those sexy raycasting false 3D engines. Is that what it is?

22  Games Center / WIP games, tools & toy projects / Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-12 02:23:48
* As of now this game is just a toy project. However, maybe some day it'll be considered game worthy. *

Finally, something other than a 1D shooter project, amirite?

However, with all seriousness, for the last day or two I took my current random dungeon generator system and decided to take it in a completely different direction. I was frustrated with the amount of content that would go into a good Rogue-Like and rather over-whelmed with school, and all the other stressors in life. I went to bed a defeated man, but when I rose the next morning, I awoke determined to code. So here's the exact paper description I wrote down for the game:

Quote
"Close and open floodgates in a randomly generated sewer system in search of the shut off valve which will stop the massive influx of sewer water threatening to wash you away."

Basically, you run around this sewer system in search of a valve that will stop the water from spreading. You can improve your chances by impeding the water's spread by tossing out player-made barriers or closing, and opening floodgates. You have 15 seconds of oxygen which can be used to swim through flooded hallways in search of an air pocket, and such.

The game is in alpha 0.0.7.

Current Features:
  • Random sewer generation
  • Efficient water spreading
  • Player is able to place barriers (Currently limitless)
  • Player-made barriers are destroyed after being exposed to water long enough.
  • Floodgates
  • Some form of a GUI.
  • Classes
  • Inventory
  • A bunch of fun items I don't feel like typing again.

Planned Features:
  • Better artwork.
  • Persistent upgradable player that you can buff up for each run.
  • Perhaps enemies to fight or traps?

Download the launcher!
https://dl.orangedox.com/KdkcGZ586ptjzMR9di/Floodgate%20Launcher.jar
I recommend putting the launcher in its own folder because it makes its a new directory called files.

Arrow keys to move, and Space to generate a new map.
Space next to a chest will open it and put it's contents in your inventory. Left-Shift now makes the player sprint however this uses oxygen. Inventory is now swapped to the I key, and the numpad now works as well to toggle the Floodgates. M toggles map focus. If you have it of course. ESC will either close the game, or any popups open on the screen. Single click in the inventory to drag, double click to use an item, and right click to view more info on an item.
Controls: WASD - Movement. SPACE to turn valve. Click to place barrier. Press 1 to toggle red doors, press 2 to toggle green doors, and press 3 to toggle blue doors.

Github:
https://github.com/JacobPickens/Floodgate

Trello:
https://trello.com/b/POyB1XNU/floodgate

Screenshots:

New Generation Showcase






v7 Item Showcase
Click to Play


Ice Potion Showcase
Click to Play


Potion of Duplication Showcase
Click to Play


Mini-Map (Live updating too Wink )
Click to Play


Inventory Management and Gear
Click to Play


Inventory and Placing/Removing Demonstration
Click to Play


Source code for random generation
It's a paste bin.
Feel free to critique my code as I'm sure there are better ways to go about this. This is just the first way that worked for me.
23  Discussions / Miscellaneous Topics / Re: My Latest Project: Wagery on: 2015-08-30 01:51:41
I got a domain name now! http://wagery.net/ Check it out guys. (It's easier to type now Wink )
24  Discussions / Miscellaneous Topics / Re: My Latest Project: Wagery on: 2015-08-29 23:08:16
If you were experiencing difficulties, please try again. The new user script had a tiny glitch
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-08-29 22:53:40
Today, and the past 3 weeks I've been working on a Social Web App and today i've finally got it into a state that is ready for the public! If you guys want to check out what its all about visit its own post here: http://www.java-gaming.org/topics/my-latest-project/36582/msg/347634/view.html#msg347634

Here's a screenshot of the home page:
26  Discussions / Miscellaneous Topics / My Latest Project: Wagery on: 2015-08-29 22:48:38
You are probably wondering why I posted a project here in Miscellaneous. Thats because this project really isn't a game nor does it use Java. (It uses Javascript  Wink ) But without farther ado, Wagery:

What is Wagery?
Wagery is a social game made for the Kik platform. The players share 'statements' (A true or false sentence) with eachother, and select what the correct answer is. (True or False) Then the designated player gets that statement, and is able to answer it. If that player gets the correct answer, they continue on. If not, they have to commit a wager that is designated by the statement, and send photo proof back to the sender.

How can I play it?
First, open this link up in your kik browser. (http://wagery.net/) Then find a friend. (Harder to do for some than others) and get playing!

Feel free to email me at pickuptruck2000@gmail.com or comment here for any bugs and suggestions. Hope to see a few of you guys trying it out!

Link: http://wagery.net/ (Must be opened in Kik browser!)

Screenshots:
The home page


New Statements


Answering a statement
27  Game Development / Networking & Multiplayer / Client-Server Communication Design? on: 2015-07-03 18:05:36
I am designing a chat app for android in order to learn some basic Android principals and use my prior knowledge of Kryonet as well. The app works fine when I have just one activity and the such but now I'm thinking that maybe I should have multiple "Client" connections open doing multiple things. So what I'm asking is should I have just one client connected to the server or multiple clients expecting different types of data?
28  Game Development / Networking & Multiplayer / Re: Android Kryonet client won't connect to my server on PC. (Well my MAC :P) on: 2015-06-18 04:16:17
I assume the server was running when you started the client?

Now I may ignorant, but I'm not brain dead. Yes, the server was running.
29  Game Development / Networking & Multiplayer / Re: Android Kryonet client won't connect to my server on PC. (Well my MAC :P) on: 2015-06-18 04:13:53
I see no server. I see two clients.

Ahh, it appears I copied the wrong source. That there is the PC version of the client. Anyhow, I replaced it with my actual server code.
30  Game Development / Networking & Multiplayer / Android Kryonet client won't connect to my server on PC. (Well, my MAC :P) on: 2015-06-18 03:53:36
 made a basic server in eclipse:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
Server server;
   int tcp = 8885, udp = 8885;
   
   public ServerMain() {
      server = new Server();
      server.addListener(new Listener() {
         public void connected(Connection c) {
            System.out.println("Connection made");
         }
         
         public void received(Connection c, Object p) {
           
         }
         
         public void disconnected(Connection c) {
            System.out.println("Disconnection made");
         }
      });
      server.start();
      try {
         server.bind(tcp, udp);
      } catch (IOException e) {
         e.printStackTrace();
      }
   }
   
   public static void main(String[] args) {
      new ServerMain();
   }


Then I created my client in android studio. I installed the library correctly. (According to google) I put the Kryonet jar into the libs folder and then rebuilt the project. I could then use Kryonet classes. Here is my code for my client:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
Client client;
String ip = "MY.IP.ADDRESS";
int tcp = 8885, udp = 8885;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Log.i(TAG, "Start");

    client = new Client();
    client.addListener(new Listener() {
        public void received(Connection c, Object p) {

        }
    });
    client.start();
    try {
        client.connect(5000, ip, tcp, udp);
        Log.i(TAG, "conected");
    } catch(IOException e) {

        Log.i(TAG, "Error: " + e.getMessage());

    }
}


It's the exact same code I would use in a normal Java client except now it's running directly from my android device. I get this error:

1  
Error: Unable to connect to: /MY.IP.ADDRESS:8885


It cannot connect to my IP even though I port forwarded it and all. Why won't it connect? I have read online to add in this to my manifest file:

1  
2  
3  
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />

So, I did:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
<?xml version="1.0" encoding="utf-8"?>
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Still to absolutely no avail. What am I doing wrong? (P.S. I have tried with both my network IP, and my public IP. I have no idea what I'm doing wrong, everything works fine with a normal Java program, but with an android app it bugs out.)
Pages: [1] 2 3 ... 20
 
Lunch (55 views)
2016-12-06 16:01:40

ral0r2 (282 views)
2016-11-23 16:08:26

ClaasJG (415 views)
2016-11-10 17:36:32

CoffeeChemist (508 views)
2016-11-05 00:46:53

jay4842 (555 views)
2016-11-01 19:04:52

theagentd (579 views)
2016-10-24 17:51:53

theagentd (561 views)
2016-10-24 17:50:08

theagentd (511 views)
2016-10-24 17:43:15

CommanderKeith (505 views)
2016-10-22 15:22:05

Roquen (465 views)
2016-10-22 01:57:43
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!