Jump to content

  • Log In with Google      Sign In   
  • Create Account

LoneDwarf

Member Since 27 Oct 2006
Offline Last Active Jun 21 2016 07:44 AM

#5279530 Android - Passing errors to a user when opengl context fails to be created

Posted by LoneDwarf on 04 March 2016 - 01:30 PM

Ah that makes more sense. I don't actually have any java side at all. I'm using the Visual Studio native application project. I'm not sure how I would go about making any java bits at all. This is unexplored territory for me. I would like to pursue this idea thoguh, there are a few things that would be so much easier if I could make on the java side rather than making so many jni calls.

 

If you're using the NDK then I would strongly recommend you learn the JNI stuff. Some stuff is WAY easier to do in Java. Using JNI you get the best of both worlds. The original glue code Google code included was really just a sample IIRC. I made my own glue code using theirs as a guide. The code starts a native thread and puts an exception handler around it. When a C++ exception is caught, I re-throw it using JNI to the JVM. So it gets logged as a normal Java exception and I get a crash report on the Google Play Developer Console. I even log Java exceptions that happened when my C++ code called some Java code.

 

The other thing I have is a custom build I give out if I have a user that is willing to work with me. The app logs everything to a file and makes sure it's flushed after each entry. Next time the app starts, if it sees a file it blocks while it sends it to my website. Then it deletes the file.




#5266934 Your development workflow

Posted by LoneDwarf on 18 December 2015 - 02:32 PM

While (task = tasks.pop()) task.perform();

 

That one is awesome but I have to say it's not thread safe. Are you telling me you only get tasks from one place!




#5261195 Mobile games with big file size

Posted by LoneDwarf on 09 November 2015 - 01:50 PM

I would work VERY hard to get this game to be much smaller. Yes there are bigger games but to think your game is so good that people will dump 250MB isn't realistic. It's not an insult or meant to pull you down, it's just reality. There is a reason apps can be sorted by size on your phone and you don't want to be in the top ten in that list. It is SO hard to get people to even try your game and that file size is a deterrent.

 

Have you looked into doing an expansion file on android? It does require work and is one more point of failure you have to deal with.

 

Perhaps I am wrong but I get the feeling this is a small 1-2 person team. If so realistically, I doubt you could have generated that much content. Spend sometime looking how you could reduce the size. Can you tell me what kind of resources are using the most space and perhaps I could offer some advice?  Textures, geometry, audio etc




#5223429 Mobile Game Development - Java, C++, Lua? Whats best?

Posted by LoneDwarf on 15 April 2015 - 08:45 AM

This topic pulls at me as I often wish I had someone talk sense into me when I was younger :) Frob gave you the answer and it's an answer that is hard to hear when you're starting out. Nevertheless it is very true.

 

The amount of effort to make a game is consistently under estimated. Now add learning mobile on top off it and just forget it. A common topic of bitching with colleagues is just how painful mobile development is. Console development IMHO is much easier. If someone wants to become a race car driver they need to start with a regular car first.  People don't just start off learning to be a race car driver. 

 

Now I am not interested in discouraging anyone at all and I know it sounds pretty preachy but I wish someone had preached it to me when I was younger.  Use your brilliance in a productive manner. I spent WAY too much time learning every aspect of a game engine or at least what I thought a game engine should do. In reality I wasn't equipped with the knowledge to even know a full game needed to do. In the end I never finished a game until I was in the industry. I had so many games that were almost done but in reality they were just graphics with a guy type of thing.  Perhaps 10% of a game at best.

 

If I was to start out today I would likely use Unity because there is so much support. The amount of work spent on just getting assets into the game and rendering something is huge. Don't fall for all this ego stuff that says you need to know 3D graphics and be a hard core C guy. Let other people go that way and see what they have in a year. People spend so much time on graphics and simple collision and still haven't even touched on game play.  Build a very very simple game in Unity and finish it.  Make it very small like pac man or space invaders but finish it. Seriously finish it.  Having finished projects will look very good on your resume and when hiring, people only want to hear about shipped games and there is a reason why.

 

After you have finished your little game you will now be more equipped to ask the right questions. Again this isn't meant to discourage as I say go out and conquer! Just be realistic and work smart. After reading this a second time I am reminded how I had a problem with some planes getting stuck on a couple of towers. The planes were somewhat of a secondary object in the world and it pained me that I had to try and fix the steering for this. I came up with a few ideas and then I moved the towers out of the way. I could have wasted god knows how much time making a better steering system or I could ship the game.  Work smart and get it done.

 

If you still just have to get at it, then use the suggested language for the platform. For Android you should use Java as it's way more supported and the debugging will work out of the box, well maybe. For iOS use ObjC. I hate ObjC myself and it pains me to suggest it, but all the samples are using it and you don't want to add the extra complexity of mixing ObjC with C++.

 

For the record I use C++/OpenGL/lua. I originally used Java to do BlackBerry development and later some Android and I loved it. The problem was I couldn't get enough platforms with it.  Using C++, OpenGL and lua for scripting got me 95% shared code for Android, iOS and BlackBerry 10.




#5143183 OpenGL ES Texturing

Posted by LoneDwarf on 29 March 2014 - 08:24 PM

It was the glEnableVertexAttribArray for texture coords.  I told him in chat.




PARTNERS