* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: someone pls compile this for me
PostPosted: Thu Jun 15, 2006 8:46 am 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Dec 09, 2001 3:01 am
Posts: 9982
ICQ: 48671168
WLM: jpshift@hotmail.com
Yahoo Messenger: roidddddddd
AOL: roidkthx
Location: Brisbane, Australia
i'd like a descent3 mod that enlarges the FOV greatly. unfortuantely i suck at setting up compilers, so i can't compile it.

ok, so i have already downloaded the D3 code and edited the code that i need to. all that i need to do now is recompile, but that's too complex for me :(

can anyone who is setup to recompile descent3, (or just recompile it into a mod, or something, I DON'T KNOW!) can i please give you my code for you to compile and then send back the executable (or whatever comes out) to me?

if someone can tell me \"ok mate i can help you out!\" it would be most appreciated. :)
it should take like... a few minutes

(or if i've got something wrong - and it isn't as easy as this... then please tell me how i am mis-speaking)





---------------


ok, in the file lib\\descent.h it's simply:

Code:
// This is the default FOV
 #define D3_DEFAULT_FOV     72.0
 //This is the default zoom factor to be used for the game 3D view.
 #define D3_DEFAULT_ZOOM     0.726f


changed to:

Code:
// This is the default FOV
 #define D3_DEFAULT_FOV 105.0
 //This is the default zoom factor to be used for the game 3D view.
 #define D3_DEFAULT_ZOOM     1.303f


maybe also some other FOV angles as well.
But to keep it simple since i barely know what i'm doing (instead of making an ingame selectable FOV) we'll just make up lots of seperate compiles with various FOV settings.

if anyone can help, please reply :)
this whole thing should take only a few minutes.


Top
   
 Post subject:
PostPosted: Thu Jun 15, 2006 8:54 am 
Offline
DBB_Master
DBB_Master
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 9485
Location: Capital Of Canada
D3 source code was released?


Top
   
 Post subject:
PostPosted: Fri Jun 16, 2006 5:27 am 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Dec 09, 2001 3:01 am
Posts: 9982
ICQ: 48671168
WLM: jpshift@hotmail.com
Yahoo Messenger: roidddddddd
AOL: roidkthx
Location: Brisbane, Australia
i dunno, there was tons of source code included in the D3edit1.1 source. probabaly for making mods.
if so, then it be a mod i be seekin to be makin!


Top
   
 Post subject:
PostPosted: Fri Jun 16, 2006 11:33 am 
Offline
3d Pro Master
3d Pro Master
User avatar

Joined: Mon Oct 28, 2002 3:01 am
Posts: 4380
Location: Corvallis OR, USA
The value is hardcoded into the game -- can change it only w/ the source code or by finding & patching all places where it's being used in the binary..


Top
   
 Post subject:
PostPosted: Fri Jun 16, 2006 8:50 pm 
Offline
DBB Ace
DBB Ace
User avatar

Joined: Sun May 28, 2000 2:01 am
Posts: 345
Website: http://aldel.com
Location: Boston, MA, USA
roid wrote:
this whole thing should take only a few minutes.


Famous last words.


Top
   
 Post subject:
PostPosted: Sat Jun 17, 2006 1:11 am 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Dec 09, 2001 3:01 am
Posts: 9982
ICQ: 48671168
WLM: jpshift@hotmail.com
Yahoo Messenger: roidddddddd
AOL: roidkthx
Location: Brisbane, Australia
Grendel wrote:
The value is hardcoded into the game -- can change it only w/ the source code or by finding & patching all places where it's being used in the binary..

(highlighting by me)

*nod*
as i understand it, to make ANY compiled d3 mod you have to do exactly that. that's what mods are - edited and recompiled d3 code.

thus:

the descent.h file (included in the D3SDK) seems to have the FOV settings in it. If a mod can be compiled to include my modified descent.h file (simple modifications code-quoted in original post), then this should result in the mod having a modified FOV.

i don't know if any other mod has actually used a modified descent.h file before.


Top
   
 Post subject:
PostPosted: Sat Jun 17, 2006 1:48 am 
Offline
3d Pro Master
3d Pro Master
User avatar

Joined: Mon Oct 28, 2002 3:01 am
Posts: 4380
Location: Corvallis OR, USA
roid wrote:
*nod*
as i understand it, to make ANY compiled d3 mod you have to do exactly that. that's what mods are - edited and recompiled d3 code.

thus:

the descent.h file (included in the D3SDK) seems to have the FOV settings in it. If a mod can be compiled to include my modified descent.h file (simple modifications code-quoted in original post), then this should result in the mod having a modified FOV.

i don't know if any other mod has actually used a modified descent.h file before.

No. Would be nice tho :) Mods are small programs that do things related to the game play getting information about the game status from the Descent program and relaying new information back. For that to work there needs to be consens about how the data is formated and what it means -- these definitions are written down in so called header files, descent.h is such a header file. It's part of the source code but only contains definitions that the actual code (eg. descent.c) includes during compile time.

So, descent.h defines the FOV setting during compile time and can be used by mods as a reference only. If you change the value you will have to recompile the Descent program (which is not included in the SDK :cry:) for it to have an effect.


Top
   
 Post subject:
PostPosted: Sat Jun 17, 2006 2:29 am 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Dec 09, 2001 3:01 am
Posts: 9982
ICQ: 48671168
WLM: jpshift@hotmail.com
Yahoo Messenger: roidddddddd
AOL: roidkthx
Location: Brisbane, Australia
that is useful to know thanks.

there is a lot more D3 source code (ie: more source than is included in the SDK) included with the D3Edit source download.
would it be possible to recompile D3 with a higher FOV using that code?

it's just that... i was told that it's relatively simple to change D3's FOV setting via tweaking it's code and recompiling. So i'm lead to beleive that there is enough source code publicly available online to perform such a feat - have i perhaps been fooled?


Top
   
 Post subject:
PostPosted: Sat Jun 17, 2006 10:05 am 
Offline
DBB Benefactor
DBB Benefactor
User avatar

Joined: Sun Jun 03, 2001 2:01 am
Posts: 935
Location: Illinois
Sorry Roid. If only that were the case, things would be a lot easier.

As Grendel said, those files are including as a reference. They are only header files and only enough .c and .cpp files to compile d3edit, not d3.

To actually change the FOV, you'll have to use a HEX editor and actually search for the hexadecimal representation of the floating point value 72.0. You'll have to find and replace this value in the main.exe file.

No mod has the ability to change hard coded values. Mod's only have access to that which they are given access which is the event system. Look at d3events.h to see what I'm talking about.

What you would need to actually compile the game would be every .cpp file. e.g., descent.cpp, aimain.cpp, etc.,.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group