Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Marshal Load Question

Quick question about Ruby/RGSS. I am thinking of making my own map maker program in C# and was wondering if anyone knows if I would be able to open a saved file from my map maker using ruby. I know the module marshal is used for the IO in Ruby, but I don't really know the specifics. In C# your output to a file is written using BinaryWriter and the overloaded method write. So what I'm asking is can output from BinaryWriter be read and correctly interpreted using marshal.load method? Thanks for the help in advance!
 
I suppose you could re-write the source code in Marshal.c and it's preprocessors to work with c#. I don't know C or C#, so I can't help you much on this subject. You may download the Ruby 1.8.5-p12 source code here
 
I went through the source code for Marshal and was looking through everything about it. After doing so, I can to the conclusion that it is way too much work to really be worth it. I'd rather have the map editor save the map as a .txt file with everything being readable as a string. So that way I can just use File to interpret everything. I'll keep looking into it though...
 
Why don´t you save it as a XML (if it´s not so big, maybe...)? And if i´m not wrong, those .NET languages uses an abstract "stream" object, for almost everything (and this looks a bit like Marshal in some way, with the difference that you can´t save entire objects).
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top