Game Development: Salem & Haven

Announcements about major changes in Haven & Hearth.

Re: Game Development: Salem & Haven

Postby Onionfighter » Sun Apr 01, 2012 3:47 am

dra6o0n wrote:If it's written in C or C++, good for you!

Write your own client if you want it in C.
Cheerleader
User avatar
Onionfighter
 
Posts: 2957
Joined: Sat May 30, 2009 8:45 am
Location: Mordor

Re: Game Development: Salem & Haven

Postby Sevenless » Sun Apr 01, 2012 4:11 am

Ultimately it comes down to what you know. If you can program something in java, now, it's better than programming something marginally better in C or C++ 1 to two years down the road.

That being said, holy god java needs to be anally optimized to get it not to lag :P I've never had serious discussions about whether 248 items would be enough in game before learning java.

Also on a random note: RedDwarf is a pain in the ass to learn, I heavily suggest aiming for single player games if you want to program a server in java.
Lucky: haven is so quirky
Lucky: can be so ugly, can be so heartwarming
Sevenless: it is life

The Art of Herding
W16 Casting Rod Cheatsheet
Explanation of the logic behind the cooking system
User avatar
Sevenless
 
Posts: 7609
Joined: Fri Mar 04, 2011 3:55 am
Location: Canada

Re: Game Development: Salem & Haven

Postby Nummy » Sun Apr 01, 2012 7:23 am

sabinati wrote:
client is java, server is c. iirc there is a bit of lisp on the server as well.

i'm sure loftar can make a cogent argument about why java doesn't really have performance issues. i'll leave that to him if he desires to do it.

Since Java 1.5 version, java is only 2% slower than C. It was tested by many people and only drawback for java is memory management and consumption, which I doubt they will ever fix. We live in age where some additional gigs of RAM are not so expensive so companies don't really bother anymore with so much memory consumption.

Another drawback for using java is also ability to pretty easily decompile it. With some tools you can get source code out.

On other hands java is pretty safe and runs practically on everything. I can run java on my phone even it doesn't have specific JRE installed. (android OS).
User avatar
Nummy
 
Posts: 489
Joined: Sat Mar 19, 2011 10:01 am

Re: Game Development: Salem & Haven

Postby konrad » Sun Apr 01, 2012 9:22 am

Anyone checked salem website today?
konrad
 
Posts: 23
Joined: Sun Aug 21, 2011 7:58 pm

Re: Game Development: Salem & Haven

Postby konrad » Sun Apr 01, 2012 10:35 am

Imho you shouldn't compare C and Java. If you compare performance more accurate would be Java vs C++ (can be object oriented code), but that is also a matter of discussion. C/C++ are compiled languages and their code is "closer to machine" (more complicated for humans), so applications in that languages runs faster. If we compare assembler and C, assembler should be faster, but creating huge applications in that language would be a pain:)
Choosing your language you should try to find balance between performance, developing time and portability.

This is how I see it:

C is fast and not object oriented, that is source of it's performance and advantage of every compiled language, but you have some disadvantages like:
- code recompilation for every platform you want to run your product,
- you have to buy licenses for compilators in some platforms,
- your code have to mange memory allocation (possible multiple memory leaks and in case of server applications huge memory usage and in the end crashes),
- creating memory managers takes about 40% your application developing time,
- compilation for any platform isn't possible if used any platform-dependent APIs,
- even longer developing time (managers getting angry about this:)),

above are Java advantages:)
- your code depends on JVM version and it can be easily executed on any platform with that JVM version,
- JVM is free, don't waste money for licenses give them to developers;),
- garbage collector allocates and deallocates your objects in memory (no leaks, less crashes),
- faster developing time,
- your code depends only from JVM version - platform-independent,
konrad
 
Posts: 23
Joined: Sun Aug 21, 2011 7:58 pm

Re: Game Development: Salem & Haven

Postby Sevenless » Sun Apr 01, 2012 3:06 pm

konrad wrote:Imho you shouldn't compare C and Java. If you compare performance more accurate would be Java vs C++ (can be object oriented code), but that is also a matter of discussion. C/C++ are compiled languages and their code is "closer to machine" (more complicated for humans), so applications in that languages runs faster. If we compare assembler and C, assembler should be faster, but creating huge applications in that language would be a pain:)
Choosing your language you should try to find balance between performance, developing time and portability.

This is how I see it:

C is fast and not object oriented, that is source of it's performance and advantage of every compiled language, but you have some disadvantages like:
- code recompilation for every platform you want to run your product,
- you have to buy licenses for compilators in some platforms,
- your code have to mange memory allocation (possible multiple memory leaks and in case of server applications huge memory usage and in the end crashes),
- creating memory managers takes about 40% your application developing time,
- compilation for any platform isn't possible if used any platform-dependent APIs,
- even longer developing time (managers getting angry about this:)),

above are Java advantages:)
- your code depends on JVM version and it can be easily executed on any platform with that JVM version,
- JVM is free, don't waste money for licenses give them to developers;),
- garbage collector allocates and deallocates your objects in memory (no leaks, less crashes),
- faster developing time,
- your code depends only from JVM version - platform-independent,


I'd argue the garbage collector in java is far from perfect. Many programs are prone to memory leaks because of it.

Really for a small studio with a small budget you can't top java's cross platform workability. Having to make one version of the game compared to two or three is an incredible benefit.

And for all its flaws, I love java. It's like a pug: Ugly, slightly genetically malformed. But lovable with a unique personality (that sometimes makes you want to kill yourself).
Lucky: haven is so quirky
Lucky: can be so ugly, can be so heartwarming
Sevenless: it is life

The Art of Herding
W16 Casting Rod Cheatsheet
Explanation of the logic behind the cooking system
User avatar
Sevenless
 
Posts: 7609
Joined: Fri Mar 04, 2011 3:55 am
Location: Canada

Re: Game Development: Salem & Haven

Postby Kaios » Sun Apr 01, 2012 6:21 pm

so where is the april 1st "Salem is opening" thread
User avatar
Kaios
 
Posts: 9171
Joined: Fri Jul 30, 2010 2:14 am

Re: Game Development: Salem & Haven

Postby bmjclark » Sun Apr 01, 2012 6:33 pm

I was half expecting an april fools "world 7" thread.
Cajoes wrote:I was the murder victim your guy aggro'd. And slew. Entirely unprovoked. Rather handily at that. Which prompted the retaliatory party. That you also handily slew.
User avatar
bmjclark
 
Posts: 4010
Joined: Thu Jan 27, 2011 6:40 am
Location: Ontario, Canada

Re: Game Development: Salem & Haven

Postby hazzor » Sun Apr 01, 2012 6:36 pm

bmjclark wrote:I was half expecting an april fools "world 7" thread.


i was really expecting something, jorbtar are usually quite the trolls
Oh boy, here I go cheesemaking again...
User avatar
hazzor
 
Posts: 2245
Joined: Sat Sep 17, 2011 11:00 am

Re: Game Development: Salem & Haven

Postby TeckXKnight » Sun Apr 01, 2012 6:55 pm

hazzor wrote:
bmjclark wrote:I was half expecting an april fools "world 7" thread.


i was really expecting something, jorbtar are usually quite the trolls

They skipped last year, so we'll see if they had time for anything this year.
User avatar
TeckXKnight
 
Posts: 8274
Joined: Tue Jul 13, 2010 2:31 am
Location: How Do I?

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: Claude [Bot] and 2 guests