inline family of Perl modules [Inline::C, etc.]
Moderator: Moderators
-
- Plain Yogurt
- Posts: 64
- Joined: 30 Nov 2012, 20:27
- Noob?: No
inline family of Perl modules [Inline::C, etc.]
i saw a post here that it is completely possible (according to sli, LINK: http://forums.openkore.com/viewtopic.php?f=34&t=2236) to write a plugin in other languages by using the inline family of perl modules. but how can it be implemented properly? or how to write it? i always wanted to write a plugin in C or C++ not because those are my mastered programming languages but because today i recently find it hard to learn the perl programming language.
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: inline family of Perl modules [Inline::C, etc.]
What about reading documentation of corresponding modules?how can it be implemented properly? or how to write it?
You probably would need Perl anyway, with additional complexity from using Inline.
So, have you at least read stuff linked at openkore.com, like that "Learn Perl in about 2 hours 30 minutes" which briefly goes through all the basics?hard to learn the perl
-
- Plain Yogurt
- Posts: 64
- Joined: 30 Nov 2012, 20:27
- Noob?: No
Re: inline family of Perl modules [Inline::C, etc.]
@EternalHarvest
thanks for the advice! i found a link on the web that corresponds to inline module (LINK: http://search.cpan.org/~sisyphus/Inline-0.51/Inline.pod). but i will try it later if it really works. btw, if this really works, how to hook or call some openkore basics like move, talk, etc. ? (a question similar to the topic that i posted previously LINK: http://forums.openkore.com/viewtopic.php?f=10&t=18546)What about reading documentation of corresponding modules?
i have read the "Learn Perl in about 2 hours 30 minutes" partially and some topics in this site regarding in writing plugins. i sometimes jump topics in it because some of its basics (like variables, if,else and while statements) and other coding structures are similar to C. but if everything else fails, i will try to read it all again and learn it with all my best.So, have you at least read stuff linked at openkore.com, like that "Learn Perl in about 2 hours 30 minutes" which briefly goes through all the basics?
-
- Administrator
- Posts: 1301
- Joined: 24 Apr 2008, 12:02
Re: inline family of Perl modules [Inline::C, etc.]
I don't RLY think that C/C++ needs Inline.
there is Two possible solutions.
1) Pure Windows. Load a DLL and work with DLL api.
2) Use XS to wrap needed things, and properly use your C/C++ code like OpenKore does for XSTools.
there is Two possible solutions.
1) Pure Windows. Load a DLL and work with DLL api.
2) Use XS to wrap needed things, and properly use your C/C++ code like OpenKore does for XSTools.