Posts [ 14 ]

Topic: Game plugin creation on Linux

Hey community,

Currently I am trying to create a game plugin for my current project but I ran into one serious issue: Maratis does not recognize the game plugin(i.e. The custom behaviour does not show up in the editor). I used the code from the game plugin example (Here ==> http://www.maratis3d.org/?p=500) and compiled it into a *.soand copied that to my game project directory.

My OS currently is openSUSE 12.3 64bit.I was able to compile use the plugin on Windows so my question is: Are game plugins implemented for Linux?If yes: Any ideas what I can try to get it work?

Edit: I finally found the error. I forgot to link the files together in the makefile. Everything is working now. By the way: Maratis should report why it could not load the plugin for better debugging .

Re: Game plugin creation on Linux

BitPuffin is completely right. It works without any hassle.I will eventually create an openSUSE rpm for better system integration (i.e. Icon in the KDE-Menu and similar)but I have not much time right now so I will come back to it later.

About my project: It is nothing that special after all (I have not enough 3D-Artists for now )

Basically you have a jump'n'run environment just like the old games of Nintendo where you can jump, run and take items in an 3D-Rendered environment. Though you have an 3D environment you can only move in 2D space.

Re: Game plugin creation on Linux

Hey all! I've just gotten Maratis to work on my Linux environment thanks to Sponk's Debian installer. However, when trying to build the fish behavior plugin demo, Codeblocks is claiming to be missing the header files for MEngine. Do I need to download the MSDK folder from the subversion trunk and bring it into the project? If you have any feedback, I'd really appreciate it. Thanks!

Re: Game plugin creation on Linux

Hi sunnystormy, I don't know what is included in the debian installer.

if it's not included in the package you need :- the headers from the MSDK/MCore and MSDK/MEngine- the libraries mcore.so and mengine.so (it could also be named libmcore.so and libmengine.so)there should be next to Maratis application

from codeblocks, you just have to specify the path where the headers and libraries are

Re: Game plugin creation on Linux

Hey, Sponk, I'll download the new DEB file later and test it. Thank you for doing this.

Com3D, does your reply apply to my situation as well? If so, would you mind explaining the process and what's going on with the script (i.e. what kind of file it is, where it should be placed, etc.)? I'd like to understand it better. Thanks!

Re: Game plugin creation on Linux

Yes, with this script you can build plugings for linux using make or Code::Blocks.

This script must be saved as 'premake4.lua'

First download latest Premake (currently version 4.4) and put it in your Maratis project folder.Then put the premake script template in this folder and modify 2 lines: - replace MSDK/ in msdk = "MSDK/" by the path to your Maratis MSDK folder - replace PluginSources in sources_folder = "PluginSources" by the name of the folder containing the sources of your plugin