Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - GaiaTruce

1
Sea of Code / Re: [C#] How to load .rxdata files?
August 20, 2013, 07:58:43 am
 :^_^': Sorry for the late reply again... Anyway, do you know what's wrong with the code?  :???:

I think it has something to do with this line :
return m[""Items""]")
Is this the correct way to get a value from a hash where the key is a string? Should I add another code to make into string?  :huh: Or should I escape the " character? If I should, how can I do it?
2
Sea of Code / Re: [C#] How to load .rxdata files?
August 18, 2013, 07:00:01 am
Doesn't work again...  :^_^': I read about an issue of IronRuby in this address : http://ironruby.codeplex.com/workitem/4132 I don't know if it is the issue or not. Oh yeah, I want to ask about ARC. Does it use IronRuby or another implementation?  Sorry if it's bothering you. :P
3
Sea of Code / Re: [C#] How to load .rxdata files?
August 18, 2013, 03:02:15 am
Hmm... The error still shows.  :huh: If I could ask, does the console.writeline command automatically convert the variable into string?
4
Sea of Code / Re: [C#] How to load .rxdata files?
August 17, 2013, 09:53:22 am
I'm sure I wrote the same code with the one that I wrote in the console application.

Here is the code in the form application :
ScriptRuntime runtime = Ruby.CreateRuntime();
ScriptEngine engine = Ruby.GetEngine(runtime);
engine.ExecuteFile("class.rb");
object asdf = engine.Execute(@"f = File.open('Notetag.rxdata', 'rb')
m = Marshal.load(f)
return m[""Items""]");
RubyArray a = (RubyArray)asdf;
MessageBox.Show(a[1].ToString());


And here is the one in the console application :
ScriptRuntime runtime = Ruby.CreateRuntime();
ScriptEngine engine = Ruby.GetEngine(runtime);
engine.ExecuteFile("class.rb");
object asdf = engine.Execute(@"f = File.open('Notetag.rxdata', 'rb')
m = Marshal.load(f)
return m[""Items""]");
RubyArray a = (RubyArray)asdf;
Console.WriteLine(a[1]);
5
Sea of Code / Re: [C#] How to load .rxdata files?
August 16, 2013, 07:56:32 am
Now another problem arises... When I try to load the .rxdata that i've just created, C# keeps saying "Object reference not set to an instance of an object.".

This problem seems to show only if I use the Windows Form Application. When I try it in a Console Application, it works. I saved the data in a hash.

The error suggests that the object I call is null / nil. But when I try it with the console, it produces the value.
6
Sea of Code / Re: [C#] How to load .rxdata files?
August 11, 2013, 09:36:36 am
I'm sorry if I was late to reply. Thanks for your replies, Blizzard & gameus.  :^_^': While browsing another forum, I stumbled upon a program that uses IronRuby. It seems that the main problem is that the version of IronRuby that I used is incompatible with the .NET Framework. When I try to use the IronRuby dlls that were placed on the program, it works.  :???:

Sorry for all the troubles...  :facepalm:
7
Sea of Code / Re: [C#] How to load .rxdata files?
August 04, 2013, 01:02:42 am
Like I said, everytime I want to use the IronRuby v.1.0, I keep getting Microsoft.Scripting.Core errors. I think I once read that Microsoft merge the Microsoft.Scripting.Core with other dlls when they updated the Framework into 4.0. So the IronRuby tried to find Microsoft.Scripting.Core but there's no such file in the system.

I really appreciate it if you want to share the source code. I forgot to tell you that I have checked the Blizz-ABS Config program. Yes, it can read rxdata files. But it only reads rxdata files that have ids and names.(Weapon, Armor, Actor, MapInfos) What about the others like System.rxdata?
8
Sea of Code / Re: [C#] How to load .rxdata files?
August 04, 2013, 12:11:51 am
Wow... Thanks for your reply gameus(or I think game_guy?). Yeah, I've tried it. Whenever I want to load the file that contains all the class (Table, Color, Tone, and RPG Module), the Method not implemented error shows up. I still don't know which version of IronRuby I should use. Because both of them seems to have issues either with the framework or the method.
9
Sea of Code / [C#] How to load .rxdata files?
August 03, 2013, 01:25:56 pm
First of all, I'm very sorry if my English is very bad. I'm not a native speaker and obviously English isn't my native tongue.

Maybe this topic is frequently discussed here. I found same topics all around the place while searching. Like this : How can I create a form in Windows7 to manage Object of RGSS ? and RMXP Raw Data Reading.

Well, like those topics, I want to know how to load .rxdata files that are created by RMXP. The reason is I want to create a program that add many features to RMXP but I can't do that if I can't open the rxdata files.

I've tried to use IronRuby v. 1.0 and 1.1.3 but neither of them works. I use .NET Framework 4.0 and Visual C# 2010 Express.

Whenever I try to use the IronRuby v.1.0, I keep getting errors that I think have something to do with Microsoft.Scripting.Core. But when I use IronRuby v.1.1.3,  C# keeps saying "Method not implemented.". I think it means that I call a method that hasn't been defined. The error shows up when I use ExecuteFile command to open Ruby(.rb) file that contains methods and class that are used by the .rxdata (Table, Color, Tone, and RPG Module Class). In the official website, there is someone who reports the same error.

If someone can give me the source code of the program that can open rxdata, I will be very grateful. But if you can't, just tell me what I have to do or at least the basic concept. Please keep in mind that I just started programming in C# 1 year ago. So maybe I can't understand some terms.