Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 02-25-2007, 02:41 PM   #1 (permalink)
Newbie
 
Join Date: Jul 2006
Age: 20
Posts: 80
Send a message via ICQ to tagno25
Lightbulb RunUO C++ or C+

I am wondering what it would take to make RunUO run under C++ or C+ without needing any external files/programs (like the .NET framework)

I would like to keep the coding of the non-core scripts the same.
tagno25 is offline   Reply With Quote
Old 02-25-2007, 03:34 PM   #2 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

Im pretty sure that wouldnt be possible unless you were able to write something to convert those scripts, but I am 99.9999% sure that its not possible
mordero is offline   Reply With Quote
Old 02-25-2007, 05:16 PM   #3 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,327
Default

You'd have to re-write so much of it (to include writing some type of C# interpreter for C++) that you'd be better off starting from scratch.

If you want to play around with a C++ UO emulator, take a look at UOX3. (Yes, it's still around!) or Wolfpack.
HellRazor is online now   Reply With Quote
Old 02-27-2007, 09:09 AM   #4 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

Quote:
Originally Posted by tagno25 View Post
I am wondering what it would take to make RunUO run under C++ or C+ without needing any external files/programs (like the .NET framework)

I would like to keep the coding of the non-core scripts the same.
krrios.

But I think he's busy, so you're sol. (Also, he evidently prefers C#, and prob wouldn't do this for free)
__________________
Quote:
Originally Posted by madmadmax3 View Post
I didn't insult anyone dumpass

Last edited by Anti-Basic; 02-27-2007 at 09:33 PM.
Anti-Basic is offline   Reply With Quote
Old 02-27-2007, 08:14 PM   #5 (permalink)
Forum Expert
 
Join Date: Nov 2002
Location: Shawinigan, Québec, Canada
Age: 25
Posts: 344
Default

Converting C# code to C++ is a daunting task.

First, there is the lack of memory management (ie garbage collector) in C++. At least, nothing native to C++. Perhaps with some specialized library there could be something to be done.

Second, most of the Converting C# code to C++ is a daunting task.

First, there is the lack of memory management (ie garbage collector) in C++. At least, nothing native to C++. Perhaps with some specialized library there could be something to be done.

Second, the .Net framework contains an enormous number of different features which would need to be emulated or re-coded (independently of the .Net framework flavour, ie Mono or Microsoft).

Third, it would be easier to have a concise and useful answer if we knew the context. Because, porting C# code to C++ is not really useful in and out of itself.

Fourth, a lot of construct are C# specific. Some equivalence exist in C++ but not everything. For an example, I haven't seen a reflection utility in C++ except for the part in System.Reflection in .Net. Also, building a virtual machine for the scripts is in some way what the Mono project is about.

RunUO doesn't have unconsidered dependencies. Even if the choice of using .Net was made way back, other options sure were considered and rejected at that time. Also, except for computer with win9x-me, most computer can run RunUO to some extent using Mono or .Net Framework. For computer on windows, newer version of windows are already packaged with .Net...

In conclusion, more details on the why we would want to convert RunUO to C++ might be a good thing. That way, we could perhaps propose alternatives to your problem beside converting which would be less time consuming or just plain better.

ZixThree
ZixThree is offline   Reply With Quote
Old 02-28-2007, 01:27 AM   #6 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

yea, they are right.

I would convert it to Java instead

It would take just a few months with a good team, hehe
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-28-2007, 06:37 PM   #7 (permalink)
Forum Expert
 
Join Date: Nov 2002
Location: Shawinigan, Québec, Canada
Age: 25
Posts: 344
Default

I still don't understand why you would want to convert it to Java or any other language there is. I mean, as a programmer, I would prefer wasting my time elsewhere.

I am really curious about the reasons you would like to convert it to another language.

With Mono project on the way, I don't see any reason, but I may be wrong and would really like to be enlighten if need be.

ZixThree
ZixThree is offline   Reply With Quote
Old 02-28-2007, 06:39 PM   #8 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

noobie wasnt the one originally asking and im pretty sure he was just kidding
mordero is offline   Reply With Quote
Old 03-01-2007, 01:51 AM   #9 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

sure I was, runuo is a great software as it is.
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 03-01-2007, 01:29 PM   #10 (permalink)
Forum Expert
 
Courageous's Avatar
 
Join Date: Nov 2005
Location: San Diego, CA
Posts: 1,824
Default

These "port to my favorite language" threads are always utterly pointless. Won't happen. No one will ever do it.

C//
Courageous is offline   Reply With Quote
Old 03-02-2007, 01:32 AM   #11 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

naaa, thats not "port to my favorite language", that would be "port to best one"
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 03-02-2007, 11:00 AM   #12 (permalink)
Forum Expert
 
Courageous's Avatar
 
Join Date: Nov 2005
Location: San Diego, CA
Posts: 1,824
Default

Suuuurely, dahling, you're not implying that my favorite language isn't the best one???!?!?

Looks balefully at ban button.

Clicks "ban noobie".

WTF?! Who took away my mod powers??!?

C//
Courageous is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5