Source for 3DGE version 2 ?

Discuss anything EDGE-related that doesn't fall into the categories.
Post Reply
gameblabla
Posts: 15
Joined: Sat Nov 15, 2014 2:47 pm

Source for 3DGE version 2 ?

Post by gameblabla »

Hello everyone !
So version 2.0 was finally released, nice !
But i'm not finding the source code anywhere so i can't really make a port to GNU/Linux.
Could you please release it ?

Thanks

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Source for 3DGE version 2 ?

Post by Corbachu »

Nice to see you again =)

We have recently migrated our project over to github (https://github.com/3dfxdev/hyper3DGE). Let me know if you run into errors, and feel free to upload to SF when you are finished. I've also added your name to the DoomWiki as a contributor.
\(סּںסּَ` )/ۜ

gameblabla
Posts: 15
Joined: Sat Nov 15, 2014 2:47 pm

Re: Source for 3DGE version 2 ?

Post by gameblabla »

Hello,
so you switched to github, cool !

Unfortunely, i could not compile it on Linux with GCC 4.8.
In fact, i'm suprised you got it to compile.
This is what i'm getting when i do a make :

Code: Select all

ddf/local.h:82:2: error: ‘ptrdiff_t’ does not name a type
  ptrdiff_t offset;
  ^
ddf/local.h:229:2: error: ‘ptrdiff_t’ does not name a type
  ptrdiff_t offset;
  ^
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
 };
 ^
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
ddf/anim.cc:46:1: error: too many initializers for ‘const commandlist_t {aka const commandlist_s}’
ddf/anim.cc:46:1: warning: invalid conversion from ‘long int’ to ‘const commandlist_s*’ [-fpermissive]
ddf/anim.cc:46:1: warning: invalid conversion from ‘long int’ to ‘const commandlist_s*’ [-fpermissive]
ddf/anim.cc:46:1: warning: invalid conversion from ‘long int’ to ‘const commandlist_s*’ [-fpermissive]
ddf/anim.cc:46:1: warning: invalid conversion from ‘long int’ to ‘const commandlist_s*’ [-fpermissive]
ddf/anim.cc:46:1: warning: invalid conversion from ‘long int’ to ‘const commandlist_s*’ [-fpermissive]
make: *** [obj_linux/ddf/anim.o] Error 1
Anim.cc stayed the same since the last release so the problem is elsewhere.
Any ideas ?

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Source for 3DGE version 2 ?

Post by Corbachu »

Ah...my bad I forgot to upload the new Linux Make file...will do that tonight!!
\(סּںסּَ` )/ۜ

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Source for 3DGE version 2 ?

Post by Corbachu »

Actually, just open up Makefile.XMING and the linux version and copy over the added stuff (md5 libraries, interpolation stuff) and it should compile. I would do it but I'm so pressed for time :oops:

I'll invite you to the gitHUB as well
\(סּںסּَ` )/ۜ

gameblabla
Posts: 15
Joined: Sat Nov 15, 2014 2:47 pm

Re: Source for 3DGE version 2 ?

Post by gameblabla »

Hello Corbin,
it was the source code the problem and it could only be built with GCC <4.6.
So i have fixed it (again) and i was able to build and run a linux version.

I'm not sure if i should deploy the binairies though...
This version has much higher requirements than the previous version, even with r_lerp set to 0.
In fact, i have chosen to set r_lerp to 0 by default because setting it to 1 causes lots of issues on my computer.

I want my modifications to get in mainline though but i can't commit my changes directly to you.
My github username is gameblabla.

About my modifications,
i had enough of your relative paths so i have decided to introduce a new define, CORBIN.
For example (taken from i_sdlinc.h d from my branch):

Code: Select all

#if defined(CORBIN)
#include <C:/hyperedge/edge2/lib_win32/SDL/include/SDL.h>
#else
#include <SDL.h>
#endif 
What you should do instead of this is to pass this to the compiler :

Code: Select all

-IC:/hyperedge/edge2/lib_win32/SDL/include/
Then only this will be needed :

Code: Select all

#include <SDL.h>
That is all.
Thanks for reading

Return to “General Discussion”