|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
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
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Age: 45
Posts: 4,327
|
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. |
|
|
|
|
|
#4 (permalink) | |
|
Master of the Internet
Join Date: Dec 2005
Age: 20
Posts: 12,927
|
Quote:
But I think he's busy, so you're sol. (Also, he evidently prefers C#, and prob wouldn't do this for free) Last edited by Anti-Basic; 02-27-2007 at 09:33 PM. |
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Nov 2002
Location: Shawinigan, Québec, Canada
Age: 25
Posts: 344
|
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 |
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
|
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." |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: Nov 2002
Location: Shawinigan, Québec, Canada
Age: 25
Posts: 344
|
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 |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
noobie wasnt the one originally asking and im pretty sure he was just kidding
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
|
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." |
|
|
|
|
|
#11 (permalink) |
|
Forum Expert
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
|
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." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|