Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Java and Gamestudio #285510
08/18/09 20:10
08/18/09 20:10
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
How well does this combi work? I haven't seen much projects bringing both together. The 3dgs-in-browser is the only one that comes to mind currently. But in what way could Java be of use with gamestudio over C++, not taking in account the knowledge and skills of the programmer? I read JCL was pondering whether to use a Java server for their new multiplayer game, or 3dgs/cpp functionality, so I guess Java has some advantage here...

I have been programming Java in the past, but it was all very basic. Just wondering if it could be worthy picking up this language again...

JMonkey engine seems to be going quite well with development as well, at least there are some worthy game titles to watch (some still tend to look like runescape though). I'm not sure if Java is currently the language to use for developping a game, but it does force you to program object oriented in full extend, unlike C and C++.

Although I know nothing about C#, I heard there's some option to attach C# to 3dgs. Is C# more like C++, or Java in regard to 3dgs? I guess in Java you can not just simply call the SDK functionality of 3dgs, and in C# you can, so that gives a big advantage to C#.

Anyway, I'd like to hear some opinions on this.

Regards,
Joozey


Click and join the 3dgs irc community!
Room: #3dgs
Re: Java and Gamestudio [Re: Joozey] #285513
08/18/09 20:22
08/18/09 20:22
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline
Member
TheThinker  Offline
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
C# is very very similar to Java. If I remember correctly there was J# in the past, before c# came up.

If you want to use dlls or create dlls with Java you have to use some Native functions (I think theire are called this way) it is very complicated. And so far as I know you have to use dlls, if you want to use the engine extern.

Aaand, I can imageine, that there can be a problem with Java and Directx.

Re: Java and Gamestudio [Re: Joozey] #285514
08/18/09 20:27
08/18/09 20:27
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Java itself (for programming the gamelogic) is much superior to
the old C (Lite-C) language.
The problem is just the missing connectivity to gamestudio.

I would love to be able to directly access the gamestudio
rendering engine, and totally skip the gamelogic part in gamestudio and let the non-rending part run by the java machine.

Right now the only choice would be to write some C++ conncetor
as intermediator for that purpose.

Also running the gameserver in Java would have a lot
of advantages.
If one of the multiplayer pluginprogrammers could
open the TCP protocol, we could write the gameserver part
in Java.
Then the server could even run on a cheap Linux net-server.

I currently develop a game in JavaME. And the language is great
for that purpose. Its object oriented (as C++) but much more stable and easier to debug.

Re: Java and Gamestudio [Re: TheThinker] #285515
08/18/09 20:32
08/18/09 20:32
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Stromousfall wrote a C# wrapper that allows you to access the engine within a C# application. I'm currently using it in my project and it works very well.

I would say the main advantages of Java and C# is that they are both 'Garbage Collection' and so you dont have to worry about your pointers or memory allocation, although you still have the power to with 'unsafe' code. Of course this does inpact a little on the performance and thats why C++ is still the top choice for games.

I love C#. Its a mixture of both java and C++ and is really easy to start learning. I taught myself by just practising little bits and you soon get the hang of it. I'd say C++ is a little intimidating and its not recommended as a first language. Also C# has the XNA gamestudio which from the looks of it looks pretty impressive and can also run on the xbox 360.

If the acknex engine can be wrapped for C# then i see no problem in wrapping it for java as the two languages are very similar, although i may be totally off here.

Re: Java and Gamestudio [Re: TheThinker] #285516
08/18/09 20:32
08/18/09 20:32
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
thats right.
additionaly you cant use javas advantages (like platform-indipendence) cause afaik gamestudio-games can only run under windows.
so, if you want to use gamestudio in other applications, use C#. Furthermore its really easy to use it: Stromausfall´s C#-Wrapper allows you to embed the engine (A6 and A7) quite easy. Take a look here: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=277432&gonew=1#UNREAD

edit: HELL, i type slowly shocked

Last edited by Tempelbauer; 08/18/09 20:34.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1