Java-Gaming.org Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (681)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (746)
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 ... 12
1  Game Development / Newbie & Debugging Questions / Re: Implementing Extensions on: 2016-07-01 15:52:33
find my old code ^^ (written in 2012)
is it right - can be better< but it works Wink
java 1.6
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  
30  
31  
32  
33  
34  
35  
36  
37  
///////////////////////////////
//Mod interface = Sep Proj
public interface inter_1 {
   void Print();
}
///////////////////////////////
///Game = Sep Proj <- attach Mod interface Proj
public static void main(String[] args){
   Class abs_Class = inter_1.class;
   inter_1 a = null;
   try{  
      //////////////////////
      URL url = new URL("file:Clases/CL.jar");//Mod Jar path
      URLClassLoader loader = new URLClassLoader (new URL[] {url});
      Class c1_Class = Class.forName("CL.c2", true, loader);
      //////////////////////
      Constructor<Object> obj_Construcrot;
      obj_Construcrot = c1_Class.getConstructor(null);
      Object obj_class = obj_Construcrot.newInstance(null);
      a = (inter_1) abs_Class.cast(obj_class);
   }catch(Exception e){
      e.printStackTrace();
   }
   a.Print();
}
///////////////////////////////
//Mod = Sep Proj <- attach Mod interface Proj
///Clases/CL.jar
//CL.jar\CL\c2.class
public class c2 implements inter_1{
   public int a = 1;

   @Override
   public void Print(){
      System.out.println(getClass() + " : 1131");
   }
}

this
Class c1_Class = Class.forName("CL.c2", true, loader)

can be unify for special run Class name in mods - Like
Mod_Main.class


p.s it was written in age of minecraft Mod Api - because we can Tongue
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-24 10:52:39
@philfrei
https://www.youtube.com/watch?v=4R29am7Lmkc ^^
3  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2016-06-13 11:18:01
Definitely do NOT want a custom editor - that is too rigid.
It no so hard as it looks like, Its not Unreal engine Wink

You already have gui an in game param reference
Make table draw from params Database
And for text (value) change you can use clipboard – don’t need write own text editor )
Ctrl-C copy select param, Ctrl-V past and show result if some errors =)

+need save/load final params Database to file
4  Games Center / WIP games, tools & toy projects / Re: Vangard on: 2016-06-13 10:16:50
Anyway, here is the creature schema (d being a hack):
It will be very hard to support and edit if you have more then 100 such files.
Better solution custom editor, where you can sort by in game params like DMG, without opening 100 files manually in notepad

i made this long time ago)

it looks cool but, hard to maintain on big project,
up: yes its parses to engine data, not simple txt file ^^

then i convert to excel, and its same hard manually resolve reference.)
5  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-06-12 10:32:43
I feel sorry for the compiler and jvm.
Its true, even from small refactoring
- eclipse jvm crash compilation build - on any file change (with 0 error shown – build error),
So need clear project Build Data =), weak eclipse ^^

Bad advices from enterprise developer..
"How to be good enterprise developer and become irreplaceable part of company:
-write code, that no one except you can"t support XD"

(can't find youtube video about this Sad )

p.s y, need move classes together by usage in img above - it save little space and organize folders ^^
It's all in big refactoring - i can't run code someting like half month Wink
(so all i doing now, can't even work at all (1000 - 2000 errors in project its ok) XD)

up:
pp.s I have no idea how people support big projects - its ongoing nightmare..
6  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-06-11 13:14:11
That's really complex for no reason lol.
you know nothing, Jon Snow =)

and this only template ,it will grow
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-11 09:29:12
new USB connector
Have you tried take any "usb to micro usb" wire
(you can have billions of them, they come with all phones..)
and take connector from it?)
8  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-06-10 20:11:47
Nice Kai, but I suggest using a shorter name. My matrix class is called Mat3 Mat4 and my vectors Vec3 Vec4. LongNamesArentDifficult.class
you know nothing, Jon Snow ^^

Real code...
1  
2  
abstract public class _E_PD_Use_Ref_Color_Mult<E extends _Param_Ref_Use_Obj_Col_Mult>
                           extends __E_PD_Use_Ref<Param_Ref_Color_Mult<E>, E, int[]>{

_E_PD - Short name XD
hm.. _E_PD_UR_Color_Mult
9  Discussions / Miscellaneous Topics / Re: Graphics Cards on: 2016-06-07 11:33:55
Why can't I get a free graphics card that is paid for by adverts? It could hijack the PC sound system every 60 seconds exhorting me to buy cheap hamburgers Smiley
black mirror season 1 series 2 "Fifteen Million Merits"
You have to pay to not see ads ^^

I fear the internet has raised an entire generation of people who think everything costs nothing.
it was inevitable..
the market can not be fair competition where the 100-million+ players

piracy, "free" services - everything that destroys fair competition

market has evolve and players receive income not from selling 1 expensive good,   
he receive it from goods quantity (aka free == ads, etc..)
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-06 08:08:47
Link share
http://www.gamedev.ru/industry/forum/?id=214911
Translate:
Guy spend 2 Million $ in google adwords from wrong settings

(Convert currency value – 25 грн to 1$)

- problem is google make automatic debt (they system bugged)
and now google automatic system sends invoice to guy’s bank trying return this money..

it's simple guy, he don't have such money Sad

Up:google cancel the debt (or freeze it)
happy ending.. ?)
11  Discussions / General Discussions / Re: Next Job in IT Section ? on: 2016-05-30 21:55:57
What can you do about it? Wait a few years so you can legally sign a contract, and give some more information other than "hi i want a job for money im 17"
Hire - No..
teaming for some project - Yes, like game designer, script writer, concept art creator.
There are billions project (games) that always need little more lvls etc..
It’s not official salary, but can be reworded for some small cash for candies, and fun experience ^^
(don’t listed me it not work like that in real world, where evil companies hire only “Best of the bests” to make Best games to make More money)

It works only in my world, and I don’t understand such directors(aka supervisors) who can pay salary 5k-10k$ per month hundred employers and can’t hire reword 50-200$ per month not so skilled ppl for couple hrs per week that make something..

I can separate for details and describe more, but..
Evil companies can’t understand what I talking about.
12  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-29 11:00:34
Multiple inheritance was a pre-existing feature of C++ that was explicitly excluded from Java from the very beginning because of the problems it can cause. Personally I see no need to add it to the language now.
I think its ok - after i found out this solution ^^ - So I think problem closed - with little overhead of code(And Mem)
All thanks Wink
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
interface B{public B_Data get_B_Data();}
interface C{public C_Data get_C_Data();}

class B_Data implements B{public B_Data get_B_Data(){return this;}}
class C_Data implements C{public C_Data get_C_Data(){return this;}}

class BC_Data implements B, C{
  B_Data bd;
  public B_Data get_B_Data(){return bd;}
  C_Data cd;
  public C_Data get_C_Data(){return cd;}
}

Or even little crazy Sugar =)
1  
2  
3  
4  
5  
6  
7  
class BC_Data_Ex implements B, C{
  B bd = new B_Data();
  public B_Data get_B_Data(){return bd.get_B_Data();}

  C cd = new BC_Data();
  public C_Data get_C_Data(){return cd.get_C_Data();}
}
13  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-28 18:41:28
Java 8 allows default implementations for interface methods, but (i think) interface fields are static final by default.
it Overridable Wink
1  
2  
3  
4  
5  
6  
7  
8  
      static interface ID{default public int get_I(){return 0;}}
      static class A implements ID{}
      static class B implements ID{@Override public int get_I(){return 1;}}
      public static void main(String[] args){
        pr(new A());//0
        pr(new B());//1
      }
      static public void pr(ID id){System.out.println(id.getClass() + "=" + (id).get_I());}

I don't see a logical problem with this example.
1  
2  
class BB extends B,C,D{}
<T extends B & C & D> fun(T data)
I skip code spam varibles in extend clases ^^, its all about Data within..
1  
2  
3  
//T data == class
data.Name = "T_Data";
//and Interfaces don't have local Data (variables)

The interface version requires copy-pasting code around which is annoying, error-prone and time-consuming.
Most of these cases (and also my example) could be solved with simple inheritance, but deep class hierarchies kinda suck and are inflexible, it just doesn't feel right to me to create a new class branch just to add a component to some class.
Exactly – but when you have 2 big clases that already extends from something
you simple can’t merge them together by
class extends A,B


And creating clone object - bad solution
Because you cant send 2 same cloned classes in
fun(class_1)
or
List<class_1>

Only if you implement them from same interface – but you don’t have direct access to data of that class
or you need copy-past all get’s/set’s – many useless copy past code..

p.s and Yes, I found out code solution only after I post the problem ^^ its looks weird but it works =)
14  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-28 08:12:46
I want
1  
2  
class A extends B,C,D{
}

Is everyone don’t care?
You can make List<int> - by making custom List class with int[]
You can make operator overloads – by calling fun mul(a,b)
You can send fun as param
1  
2  
3  
4  
interface Fun<E>{
    public Do();
    public Do(E params);
}

You can even serialize and memory copy by Unsafe and direct buffer

But You can’t make struct(class) extend from 2 structs (classes)
Its fundamental JVM problem Sad

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
class AA extends B,C,D{
}
class BB extends B,C,D{
}

fun(B data){
    do_B(data);
    if(data instanceof C){
        do_C(data);
    }
    if(data instanceof D){
        do_D(data);
    }
}
<T extends B & C & D> fun(T data){
    do_B(data);
    do_C(data);
    do_D(data);
}

up: i don't think its good solution ^^
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
   class B_Data{}
   class C_Data{}
   class D_Data{}
   
   interface B{public B_Data get_B_Data();}
   interface C{public C_Data get_C_Data();}
   interface D{public D_Data get_D_Data();}
   class AA implements B, C, D{
      B_Data bd;
      public B_Data get_B_Data(){return bd;}
      C_Data cd;
      public C_Data get_C_Data(){return cd;}
      D_Data dd;
      public D_Data get_D_Data(){return dd;}
     
      public<T extends B & C & D> void Fun(T data){
         do_B(data);
         do_C(data);
         do_D(data);
      }
      public void do_B(B data){}
      public void do_C(C data){}
      public void do_D(D data){}
   }

What you think?)
15  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-26 19:12:21
I want
1  
2  
class A extends B,C,D{
}

and i don't care how linker link code - with JVM or source code cloning
i feel like in stone age - when i creating duplicate for same class - because JVM can't link 2+ classes with data Sad
16  Discussions / Business and Project Management Discussions / Re: WoW Server Development [Project Shadowcrown] on: 2016-05-11 19:58:44
Quote
Sorry for the harsh words, but i just wanted to inform you how skewed you perspective on some matters is.
its ok =)

Quote
1.We are in fact using mangos!
cmangos or mangos?)
Quote
Yes, you can download a core with 10% content
You can’t – core don’t have contents at all Tongue
There are many Quests DB (TrinityDB, YTDB.. etc) – in 99% cases bugs in DB not in mangos core
Quote
shitty server
what you mean “shitty server”? You have same shitty server core - all have same =)
Quote
shitty webpage
webpage have 5-10 files
1. its easy to extend
2. it have all stats you need for basic server  
Quote
shitty hosting
what??  - no one care =)
Quote
We aren't making this for profit. We will spend all the money that the server gets on game and web servers maintenance.
servers maintenance, you mean 15-20$ per month?)
Quote
5. Hamachi.... are you playing minecraft or what?
No - pirated L4D some long time ago ^^
still have custom configs for server(somewhere) - with billions zombies XD
Quote
We want to provide full WoW experience as it was back in the day, with 100% content, a professional website and fast servers.
OK..
But its very hard to play (boring) on own server,
when you can create any char, any lvl with any items
After you enough bored with classic, you start making custom items – and custom scripts =)
Or try monetize server

I saw how big TBC (5k - 10k online) server turns off because all player leave
And i install own mangos server - and its not funny play on own server at all Sad
+making big stable wow server not worthy time nor money at all
if you make own game with online even 1k you make pile of money Wink

but maybe i wrong ^^

imho: Mangos server - its cool as fun project, but as commercial - its lame crap
- with core bugs that goes decade to decade like mobs Pathfinding that walk through walls)
17  Discussions / Business and Project Management Discussions / Re: WoW Server Development [Project Shadowcrown] on: 2016-05-09 09:45:24
wow server with 2 of my best friends
TL;DR LF a good c++ programmer

We need a c++ developer because fixing database issues is one thing, and scripting raids is another. We simply don't have enough manpower to do that much
Why?)
when you can use MaNGOS + hi already have 99% working quests and raids for TBC, LK ...

ppl simple make servers and site in one click from templates and billions torrent customized packs)
+there are billions alive TBC, LK, even custom servers =)

p.s useless and unprofitable...
if you want play with friends on custom server
- deploy mangos on own PC and use hamachi, or take any server with x100-x1000
18  Game Development / Game Mechanics / Re: Hardware-like software cursor. on: 2016-05-04 11:09:23
I've done that, by (you can guess it) drawing a simple renderd quad on top of everything in the position of cursor and hiding the original, hardware("native"?) cursor. The thing I'm running into is when the game starts to lag, the cursor lags with it - what doesn't take place when using hardware cursor. Is there a way around that lag or any well established practice on this topic? Or maybe you just have an idea how to handle this?
If you want draw small quad on top img and then move it - without redraw bottom img
1. draw main img to pixel buffer
2. then copy rec quad from main img, before draw it
3. draw quad
4. restore rec quad
5. move mouse pos – repeat from 2

If game lags – have sharp FPS – then it simple lags and need fix lags ^^
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 15:26:28
so cool ^^
https://www.instapainting.com/ai-painter
http://ostagram.ru/static_pages/lenta?last_days=1000&locale=en
https://deepart.io/latest/

up:Hm maybe create Topic for: JGO users neuronet imgs?
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 09:15:54
It's mega cool for Texturing algoritm (in future ^^)
Quote
You'll need a good NVIDIA card with CUDA to run this software on GPU, ideally 2Gb / 4Gb or better still, 8Gb to 12Gb for larger resolutions.
SadFace..

up:
Link share Wink
https://www.kickstarter.com/projects/udoo/udoo-x86-the-most-powerful-maker-board-ever?ref=category_recommended
Quote
$109
- X86
- Intel® Quad Core up to 2.24 GHz
- 4 GB of RAM
Estimated delivery: Nov 2016
X86 - Win ^^

IMO: Little overpriced (you can buy for same price cheap smartphone with onboard screen battery etc)
but its intel supports x86
+ long delivery time
but good try, let's wait more ^^
21  Java Game APIs & Engines / Java Sound & OpenAL / Re: Java OGG API with concurrent playback on: 2016-04-18 10:54:40
I'm not sure I'm necessarily trustworthy but at least that code's been battle-tested on exactly 779,284 installations (of which 5% Mac, 1% Linux) and it's doing fine for me Smiley
779,284 installations
O Man, it so neat  Roll Eyes
22  Discussions / General Discussions / Re: Message preview not working on: 2016-04-14 15:56:30
Yes - Win XP - Firefox 45.0.1 with enabled JavaScript (if disable - all ok)
1  
2  
Preview post
Fetching preview...
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-14 14:24:57
write a program which generates the code. >___> <___<
Not sure why generate abstract layer for library - But its cool =)
What java Source analyze methods you use ?)

up:
ou i understand ^^
need overwrite static vars, methods Wink
public static final int COMMAND_ID
and
public static long execute

Its’s better in many cases use direct compiled code without generating code
-it looks very cool and flexible, and it really is,
but you receive many trash code that can be optimized by abstract function and interfaces.

Like this:
1  
2  
3  
4  
    private static final int V0_OFFSET = 16;
    private static final int V1_OFFSET = 20;
    private static final int V2_OFFSET = 24;
    private static final int V3_OFFSET = 28;

this Vars are same(generated)
So you can move them into
abstract class CmdClearBuffer_Abs

And generate (or extend directly ^^)
 CmdClearBuffer extend CmdClearBuffer_Abs


Simple words: take care about overflow of generated code Wink

up2: ^^
1  
2  
3  
4  
-public static long execute(long address)
-public static void execute(int fbo)
+public static long execute_Address(long address)
+public static void execute_Buf(int fbo)
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-02 20:26:14
delt0r's not a beginning programmer so it makes sense to work the way he thinks he should and then adapt if it's not working out.
I fully agree but i see so many abandoned games that i can't silently pass thru,
You can be best programmer in universe but this not mean that you can complete started game
because games are not only programming - its game mechanics, game universe - art style, Art Images and animations, Level design, Story, user(players) easy understanding (usability), sounds and music

Without even small understanding what you gonna do and how – we receive one more FEZ after 3-5 years in best case (because even FEZ earn money)

https://forums.tigsource.com/index.php?topic=35689.0
https://forums.tigsource.com/index.php?topic=18.0
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-02 13:38:16
I am building and I'm having fun, not because I have a 100 page master plan.
And that Ok, if you do that in free time,
but when you leave your work and have 1 year to make game until you money runs out,
making game without master plan - wrong way.

the only game budget I can work with is 0.
Budget can't be 0 - NEVER - its illusion
You spend at least time on game
- for that same time you can go on work and earn some money,
or make freelance,
or even spend time with friends
Time - are not free (0$ cost) ^^

10k => mortgage, healthcare etc..

fresh concept.
fully fresh concept games - sold very-very slow and low
- without gigantic promo marketing to them - scary true

but understanding the market isn't by itself going to give you a good idea
>Sure you need to understand the market to know
Making one more F2P Dota clone not good idea =)
(or clash of clans, or flappy bird or ..)
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-02 10:41:41
And you can't build a complex piece of software from heavyweight initial designs.
You can make game for fun with budget 5-10k spent for living and be happy if you earn more then you spent,
But you can't make game for 100k without Tech Doc,
You just throw them out the window and hope that some of them will returns by wind ^^
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-01 21:50:50
finally moved everything over to a eclipse project from the jME SDK.
Personally i recommend - make commercial game on big engine like Unreal or Unity
Because Commercially faster and wiser
will be making game on big engine with many presets and tutorials (blueprints)
You simple don’t have Time and Money to spend them on pure Java and SDK.

edit:
Working on getting our models to walk around a bit better than they are right now, and fix a few issues we have with blender model import
Making models and art without full understanding of game needs – increase time consuming on project in many times

First you need make Technical document:
with game core mechanics, number Lvls, number of Art etc..
Calculate time on all that and All expenses

After that separate work on MileStones (and try finish them in time Wink )

Then Make prototype
– test in game mechanics on technical Art with technical animation and all FX and technical sounds
– test User friendly (usability)

And after that - start making all Lvls and final Art, FX, sounds.

Also for commercial successes (on Technical document writing phase)
need research market on similar games, and calculate theoretical business income
(make monetization plan, Promo With Adwords etc)

And after all that - Publish game and hope that all goes as planned or better ^^
28  Game Development / Newbie & Debugging Questions / Re: Time, delays, etc on: 2016-04-01 13:26:14
Why you use Runnable ?)

edit: Runnable mind me wrong Way XD
Quote from: JavaDoc
The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread.
29  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-03-23 11:08:26
Let me show something ^^
http://www.java-gaming.org/?action=pastebin&id=1431
30  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-03-23 10:25:52
Wait... I am going to look up ArrayList<> and see if I can't fork it to make it support explicitly <int>
Its impossible without rewriting all list instances
1  
2  
3  
4  
//ArrayList
public int indexOf(Object o) {
     if(o.equals(elementData[i]))
}

prim types dont' have equals and hashCode
for adding prims need make  
<E>.class.equals(o, elementData[i]
in all Lists + objects classes
And plz stop flaming about this)
Pages: [1] 2 3 ... 12
 
GrandCastle (28 views)
2016-07-01 09:13:47

GrandCastle (30 views)
2016-07-01 09:09:45

CopyableCougar4 (84 views)
2016-06-25 16:56:52

Hydroque (117 views)
2016-06-22 02:17:53

SwampChicken (119 views)
2016-06-20 13:22:57

SwampChicken (120 views)
2016-06-20 13:22:49

SwampChicken (112 views)
2016-06-20 13:22:26

Hydroque (158 views)
2016-06-15 08:22:50

Hydroque (152 views)
2016-06-13 06:40:55

DarkCart (255 views)
2016-05-29 02:30:33
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
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!