Rewriting the game engine. (Plz read developers ect.)

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Nexuiz better in c or c++

C++ ftw
3
16%
C <- its cooler :)
9
47%
Wtf is c++
7
37%
 
Total votes : 19

Postby mand1nga » Sun Feb 22, 2009 1:38 am

Well you should know that C++ isn't more powerful than C, nor the other way round. You can achieve exactly the same goals with both languages, or assembler, or Java, or C#, or whatever. Of course not always using the same hardware :)
Before wasting time choosing a programming language you should think about what you really want to do.

would the game run properly if it was c and c++ mixed?

What makes you think that the game isn't running properly?

Maybe you noticed that Nexuiz is currently developed in Quake C. Probably you are confusing a little game and engine. And you should know there are other Quake C interpreters (like Darkplaces) written in other languages.
I suggest to you making a little more research before going to waste entire years reinventing the wheel ;)
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby fronten » Sun Feb 22, 2009 2:21 am

well, dont talk about Assembler - that's a whole different class of things.
fronten
Advanced member
 
Posts: 96
Joined: Thu Apr 20, 2006 9:52 pm

Postby tZork » Sun Feb 22, 2009 3:53 am

here's my 5.

Nexuiz is not c, not c+, not cobol etc. nexuiz is gamecode and art/assets. gamecode is currently in quakec.

imo converting something from x to y serve no purpose unless there's something you wish to do that cant be done or you cant do in the current form.

if your going to do it anyway, just do it or at last have something to show for. this endless discussion of b"ananas are better then apples!" are getting so old.
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby tundramagi » Sun Feb 22, 2009 6:08 am

Insanity.
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby Alien » Sun Feb 22, 2009 1:36 pm

fronten wrote:well, dont talk about Assembler - that's a whole different class of things.


http://www.menuetos.net/043c.png
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Documentation lack

Postby Slav » Sun Feb 22, 2009 3:02 pm

Hello everybody.

Honestly, I think that OO code is much better than procedural, but it's bad to waste a time to rewriting whole engine (and how much time you will spend to debugging result code) - and there must be giant list of "vacancies" in engine's programming (but I voted for C++).
Nexuiz?... Well done!
Slav
Newbie
 
Posts: 5
Joined: Sun Feb 22, 2009 2:42 pm
Location: Russia - Togliatti

Postby tehbomb » Sun Feb 22, 2009 8:11 pm

forget rewriting it....


im not saying nexuiz dosent work properly

im asking will it work properly if i include c++ code....
tehbomb
Member
 
Posts: 10
Joined: Mon Feb 09, 2009 12:48 am

Postby Alien » Sun Feb 22, 2009 10:21 pm

Most often yes. http://en.wikipedia.org/wiki/Compatibil ... nd_C%2B%2B

A lot of things will depend on the compiler and how it allows to mix possibly incompatible c/c++ code (e.g. you can compile darkplaces c code using ms visualc++ (which is notorious for not following standards), but that does not mean that you could compile same code using g++ or intel compiler).

My suggestion is to try to compile and check if it works (most often it would).
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby tehbomb » Sun Feb 22, 2009 11:20 pm

thank you .... i will try
tehbomb
Member
 
Posts: 10
Joined: Mon Feb 09, 2009 12:48 am

Postby Slav » Mon Feb 23, 2009 6:52 am

I tried to compile Nexuiz with g++ (MinGW) - it did NOT worked :(
But already compiled .o-files (with gcc) could be linked properly with g++.
So it's possibly to compile .c-files with gcc, c++ with g++ and then link it - that's how I will do.
Last edited by Slav on Mon Feb 23, 2009 7:14 am, edited 1 time in total.
Nexuiz?... Well done!
Slav
Newbie
 
Posts: 5
Joined: Sun Feb 22, 2009 2:42 pm
Location: Russia - Togliatti

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron