language?

Other talk that doesn't fit elsewhere.
This is for General Discussion, not General chat.
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

language?

Post by GiGaBaNE »

what code language does this game run with?
for example if someone wanted to rip it open and change the game from using /pie to something more modern, what language would they need to be an expert in?
User avatar
Phoenix666
Trained
Trained
Posts: 106
Joined: 21 Sep 2008, 20:38
Location: Russia

Re: language?

Post by Phoenix666 »

are you see sourses?
it writen on C#
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: language?

Post by Rman Virgil »

Phoenix666 wrote:are you see sourses?
it writen on C#
* WZ is NOT written in C#

* To use Alex McLean's apt phrase WZ is written in "gnarly C (lang conceived in 1973). Alex was Pumpkin's Chief Software Engineer on WZ (among other tasks)

* WZ was coded between 1997-1999. The C# language was conceived in 2000 as a replacement for C++. by Microsoft.and as the principle
language for its NET framework.

* C# does use C syntax (as does Java) but it is a different lang making "improvements" in areas like garbage collection, no pointers, interfaces, multi-tasking... C# compiles to an intermediate language, the MSIL (MicroSoft Intermediate Language), and uses a multi-languages library, the CLR (Common Language Runtime)... there are other distinctions but I'm sure this thread is not for discussing the differences between C, C++ and C#....

Regards, Rman. :cool:
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
User avatar
Phoenix666
Trained
Trained
Posts: 106
Joined: 21 Sep 2008, 20:38
Location: Russia

Re: language?

Post by Phoenix666 »

i think i need to say better than early

i think its writen on C++ or C (i dont sure which of they, because i'm programmer on Delphi(Object Pascal, Pascal)...)
sorry if i was(is) wrong
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

Re: language?

Post by GiGaBaNE »

so just to clarify 'Gnarly C' is C++?
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: language?

Post by Rman Virgil »

Phoenix666 wrote:i think i need to say better than early

i think its writen on C++ or C (i dont sure which of they, because i'm programmer on Delphi(Object Pascal, Pascal)...)
sorry if i was(is) wrong
* No big deal. I certainly make my share of mistakes. We all learn here discussing stuff. I know I'm always learning and it's kwel.

* WZ 2100 is definitely written in C. I recently read Giel say the WRP may have added a couple hundred lines of C++ code but
the source remains a giant C beast.

* In the WZ 2200 source base Chojun created the new game framework in C++. but on that you'll just have to take my word since it
is not yet available for public scrutiny..
GiGaBaNE wrote:so just to clarify 'Gnarly C' is C++?
* Just plain old C.... the "gnarly" Alex used was his way of saying the source was a huge C "mess".... which had a lot to do with the PSX version
of WZ.

- Regards, Rman :cool:
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

Re: language?

Post by GiGaBaNE »

thanks man, great info..

are there no applications out there in the big bad world that are designed to do the bulk of recompling in more upto date code?

or would someone that wanted to upgrade it from c to c++ litteraly have to have do the lot by hand?
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: language?

Post by Rman Virgil »

GiGaBaNE wrote:thanks man, great info..

are there no applications out there in the big bad world that are designed to do the bulk of recompling in more upto date code?
* Sure, your welcome, glad to share. :)

* Oh my that would be something but to my knowledge no such application exists.

* The WRP's mission includes advancing the present code base as far as it can go to modernizing WZ's look (Gerard's work on the new renderer and textures is amazing) but they also have Freddie's Betawidget work in the pipeline (and Elio's UI work) which will allow for enhancements to game play that will be state of the art, powerful and exciting to look forward to in the foreseeable future. IMO, WZ's promise will be fulfilled through those developments I just mentioned.
or would someone that wanted to upgrade it from c to c++ literally have to have do the lot by hand?
* Yes...All by hand, so to speak. Chojun is around and he can speak to the work he did in making a C++ Frame for WZ 2200..

* From my point of view the amount of work involved is prohibitive. Rather create a new RTS in C++ from scratch which is what I'm doing with Grim Moroe and others for a while now.

- Regards, Rman :)
...
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

Re: language?

Post by GiGaBaNE »

thanks mate, comprehensive answer and its left me looking forward to WZ's future. i love the game but its hard not to get bored of it, lol

Edit: i found this http://www.scriptol.org/ctocpp.php , but knowing wether its any good is beyond my knowlege =/
gerard_
Trained
Trained
Posts: 71
Joined: 02 Nov 2006, 19:56

Re: language?

Post by gerard_ »

It's not that C++ is really "better" than plain C. It is just different. For some cases it is easier to write C++, and for others C is best. As we currently have a lot of C code that is working fine, we don't have any plans of converting the code to C++, simply because the possible advantages are not worth the effort.
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

Re: language?

Post by GiGaBaNE »

ok cool, i wasnt suggesting adding more workload to your plate ;). tho it brings me back full circle to the begining which was asking if its possible to replace .pie with something more modern, far more relavent than the actual language the game is written in.

it would be great if ppl could just use rhino or 3ds to make models and directly import with no wierd back converting to pie. but again im not actually asking for it to be done, merely asking what knowledge would a person need in order to do it.

ill be goin back to college soon and i wish to learn something new about computers, and i would prefer to choose something relivant to the things i like, not just earning a buck at a job =)
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: language?

Post by Rman Virgil »

GiGaBaNE wrote:ok cool, i wasnt suggesting adding more workload to your plate ;). tho it brings me back full circle to the begining which was asking if its possible to replace .pie with something more modern, far more relavent than the actual language the game is written in.

it would be great if ppl could just use rhino or 3ds to make models and directly import with no wierd back converting to pie. but again im not actually asking for it to be done, merely asking what knowledge would a person need in order to do it.

ill be goin back to college soon and i wish to learn something new about computers, and i would prefer to choose something relivant to the things i like, not just earning a buck at a job =)
* My understanding is that the WRP is creating a new format called .WZM

* You can read the details HERE

* As for the rest I would suggest talking to some of the developers on the WRP WZ 2100 freenode IRC channel. A number are presently in
University and some are also making a buck with their skills so I would imagine a good conversation between you.

- Cheers, Rman. :)
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
GiGaBaNE
Trained
Trained
Posts: 262
Joined: 24 Jun 2007, 17:51

Re: language?

Post by GiGaBaNE »

awsome! heh i think ill wait till im a bit more skilled till i join the irc chan, dont want to be the nOOb sat in the corner asking all the annoying questions ;)