lfnetwork.com mark read register faq members calendar

Thread: Running C++ Code in the .dlls
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-03-2005, 05:08 PM   #1
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
Running C++ Code in the .dlls

Right now I'm performing an experiment on the OJP Beta server. I'm basically attempting to convert the traditionally C based .dll code to be C++ based. The primarily reason for this is so that I can port the SP navigation code, which is in C++ into MP.

So far, I've been able to compile the C++ version of the code using g++ and have it successfully run on linux. g++ throws a lot more warnings than gcc or VS.net but I'll resolve all of them eventually.

That's all for now,
Razor Ace

PS. Thanks to Unique1 for originally pointing this out to me.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-03-2005, 07:48 PM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Hey Razor, your converting the whole thing to c++? Wouldn't a lot of things have extra cycles and slow down/lag more?


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 10-03-2005, 09:21 PM   #3
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
Well, that's part of the reason for the experiment. I haven't seen an slowdowns so far.

Interesting side note. From the looks of it, the .dll code only interacts with the game engine at only two locations.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-03-2005, 09:30 PM   #4
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Btw, what is the IP for the OJP Basic server? Is it Kurgan's Meatgrinder?


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 10-04-2005, 05:20 PM   #5
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
you could do something like this:

Code:
#ifdef __cplusplus
 extern "C" {
 #endif 

/* the code */


#ifdef __cplusplus
 }
 #endif


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 10-04-2005, 07:27 PM   #6
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
Quote:
Btw, what is the IP for the OJP Basic server? Is it Kurgan's Meatgrinder?
It's the Meatgrinder server.

Ensiform: That's what I'm doing. I'm just in the process of making sure all the code still works when you switch over to a C++ linux compiler like g++.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-07-2005, 03:25 AM   #7
stubert
 
Join Date: Aug 2002
Location: Philadelphia
Posts: 227
old?

yes, old.
stubert is offline   you may: quote & reply,
Old 10-07-2005, 03:27 AM   #8
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
*shrug* well, it's new to my region of JKA. I wasn't aware that others had done this already.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Running C++ Code in the .dlls

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:57 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.