community attempt at multiplayer

Programming Reality Factory and Genesis3D.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

MFC is mainly used for CString class and Driver Selection/Level Load dialogs
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

paradoxnj wrote:Sounds like it uses a precompiled header. stdafx.h is usually a precompiled header. In the project properties, does it link with MFC libs at all?
the stdafx.h links to several other MFC headers, which would require the MFC libs to work right?

Here's a list of Mfc headers included
  • #include <afxwin.h> // MFC core and standard components
    #include <afxext.h> // MFC extensions
    #include <afxdisp.h> // MFC Automation classes
    #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
    #include <afxcmn.h> // MFC support for Windows Common Controls
You must be right Quest because in the RabidFrameworkMain.cpp it uses

Code: Select all

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow)
so they must have used it for the list boxes and stuff
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

Did that help any or do I need to dig some more?
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

You can get rid of CString and use std::string instead. It's not much of a change and would eliminate the need for MFC making the RF executable much smaller.
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

you got to be kidding is that it? if so why in the world were mfc's used?
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

You can get rid of CString and use std::string instead. It's not much of a change and would eliminate the need for MFC making the RF executable much smaller.
Well, of course you can use std:string instead of CString but it's still quite some work replacing all occurrences of CString. Also CString has quite a few utility functions like TrimRight/TrimLeft, Format etc that need some extra coding when using std::string. The RF executable size would _not_ change much because mfc is used in a shared dll.
As mentioned earlier CString is not the only part of MFC used in RF...
if so why in the world were mfc's used?
Why not? MFC is widespread, fast to learn, easy to use and rather well documented...
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

OK, I've done it. MFC is gone and replaced with the standard windows/template libraries. I need to do some more testing to make sure everything works as expected though. I think this should be done by the end of the week.
Requirements for compiling are (everything is freely available):
Visual Studio C++ 2005 (Express and better)
Platform SDK
DirectX SDK
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

:D good news, now even i can have a go at getting multiplayer to work but doubt i would but hay jonas thats good news for u.

ps. ive just encounterd the language filter... was using it in its original context not what people use it for now but hay at least it works lol.
*GD*
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

yeah thats really good news thanks Quest! This could speed up the development on RF quite a bit! :D
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

wow thanks Quest that's great! I can't wait to try it.
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

This is a big step forward to have developpers hacking the source also in the future. Thanks QoD.
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

Thats GREAT! Thanks!! :D
User avatar
LtForce
Posts: 437
Joined: Wed May 03, 2006 11:15 am
Location: Vilnius, Lithuania

Post by LtForce »

No idea what you're talking about, but I see that you have some great news!
Lithuanians for Georgia!
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

Before this, only developers who had some prof. version of Visual C++ (and NOT the freely available Version of C++ that can be downloaded on the microsoft site) were able to compile the source code of RealityFactory. Now everyone who has a compiler can compile RealitFactory. This is great news because now improvements can be made by everyone who can program a bit, not just by Quest, Nout and wxbx1, who have this version that was needed for compiling RF i suppose.
Everyone can see the difficult, but only the wise can see the simple.
-----
HelloWorld
Posts: 5
Joined: Sat Feb 03, 2007 12:29 am
Location: Australia

Post by HelloWorld »

That is good news. :D

I started having a look at it, yesterday, in see what need to be done to convert it from v6.0 to Express Edition. but it already done! I just join the queue of others who are waiting! :wink:

Jonathan

ps. I am a software engineer with over 20 years of experience (mainly in C/C++).
Post Reply