Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Memor-X on July 14, 2011, 10:00:34 pm

Title: How to use this .dll
Post by: Memor-X on July 14, 2011, 10:00:34 pm
i want to use this .dll file for some data in some files i create

http://gmc.yoyogames.com/index.php?showtopic=505288

if i can use it, how?, if i can't, why not and do you have a better method for encrypting plain text files that could also be used in Game Maker 8
Title: Re: How to use this .dll
Post by: ForeverZer0 on July 14, 2011, 10:24:47 pm
Look at the documentation for it.  There is no way to tell you how to use it without first knowing what programming language you plan to use it with. 
Title: Re: How to use this .dll
Post by: Memor-X on July 17, 2011, 06:49:45 pm
i think i didn't make it clear, i'm talking about using in RMXP so the language would be RGSS, i though that would be clear when i posted in "RGSS / RGSS2 Scripts > Script Troubleshooting"

so what i am asking is "if i can use it (In RPG Maker XP), how?, if i can't, why not and do you have a better method for encrypting plain text files that could also be used in Game Maker 8 (that i could also use in RPG Maker XP)"
Title: Re: How to use this .dll
Post by: ForeverZer0 on July 17, 2011, 07:13:33 pm
I take it you mean Ruby then, since RGSS is not a computer language. That may be a pretty big obstacle to you right there.

Look into the Win32API class of Ruby, and figure out what pointers you need, how to pack them, and what methods to call by examining the DLL and its documentation.

As for GameMaker, I have never used it and have no idea how to do it with GML, so good luck on that.

Title: Re: How to use this .dll
Post by: Memor-X on July 17, 2011, 07:35:39 pm
i take it that whatever i learn about this Win32API i can use in the script editor of RMXP?
Title: Re: How to use this .dll
Post by: ForeverZer0 on July 17, 2011, 07:39:29 pm
Yes, its a Ruby class.
Title: Re: How to use this .dll
Post by: G_G on July 18, 2011, 03:38:43 am
Game maker uses dll's made in C much like RGSS (Ruby) can. However! Game Maker can also use libraries created in Delphi (coding language). Not sure if Ruby can also. This means a couple of things, the dll you want to use might have been coded in Delphi for GM specifically. If so, you might have a harder time trying to use it in RMXP. Again I dunno if Ruby can use Delphi coded libraries. The reason GM can is because it was coded in Delphi. (I believe)

But it could have been coded in C which if thats the case, it'll work fine. Theres just one thing though, you can't really tell the difference. One more thing, I could be sadly mistaken about all of this, I just remember from GM 6 & 7 you were able to use Delphi libraries. While I have used GM 8 I really didn't keep tabs on it.