just write doFile one time on top of the main script,
then you can call the functions
976 2012-08-03 19:35:18
Re: dofile confusion (3 replies, posted in Scripting)
977 2012-08-02 20:23:15
Re: Confused about units (3 replies, posted in General)
In the Maratis grid, one square is 10 units (1 meter)
978 2012-08-02 20:16:33
Re: Confused about units (3 replies, posted in General)
Hi,
the units are not modified when exported, so 10 blender units = 10 maratis units
and 10 units = 1 meter
if it helps you, it can also be said : 1 unit = 1 decimeter
It is mainly for the physics, if you want the objects to move in a realistic way.
979 2012-08-02 12:06:46
Re: Incompatibility with Blender 2.63[FIX NOW AVAILABLE!!] (35 replies, posted in Bug report)
Hi,
thanks !
I'll test it soon, it could be only that as they do a lot of renaming, it was something similar the previous time it broke.
Thank you for the effort !
note for later : look at MeshTessFace (more safe to have good tesselation for the new BMesh as it can use complex polygons)
980 2012-08-02 10:39:58
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Hi,
yes, it would be nice to add the possibility to pass variable, right now scriptContext->callFunction cannot pass arguments.
EDIT : after verification, you can in fact pass arguments using :
scriptContext->pushInteger(objId);
scriptContext->callFunction("fishAI");
(but I never tested it)
981 2012-08-02 08:42:41
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Ok, I understand,
you can do exactly that by using : scriptContext->callFunction("myCustomFunction");
(that can be in a separate file linked with doFile)
Using multiple script context might be more expensive in memory and you won't be able to exchange script variable between the different behaviors or context.
Thank you for the error in MFileTools.cpp, if you can commit a fix on svn it's nice, it's working on my mac but it's probably missing an include in windows and linux, I didn't test it yet everywhere.
982 2012-08-02 08:06:05
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Hi Nistur,
wait, I don't understand, what is the final result you are seeking ?
983 2012-08-01 19:48:50
Re: Trying to export in blender (6 replies, posted in General)
Ho, I have to test that...
blender is changing the scripting SDK all the time... it's starting to be a bit of a pain,
I will take a look and see what is the problem.
I will try to make a beta build for next Maratis version this week end or next week.
984 2012-08-01 19:40:27
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Intel chipset on linux will probably not work with hardware acceleration... I'm not a linux pro, maybe check on intel website...
Is it also slow on windows ? if no, it's possible that the loading is extra slow because opengl normally send data to the 3d card (so if the driver is not good the sending of the information can be slower for the textures and stuff).
Are you using a Mesa driver on linux ?
985 2012-08-01 19:04:24
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Hi,
I don't think it's a problem with file loading, if you are running at 2fps when Maratis is empty I would say that you are missing opengl drivers ? on linux, when there is no 3d drivers, the opengl rendering is done software, or with a generic open-source driver (both super slow). It's slow on my linux too because there is no ati drivers available (my card is too old).
Check that, if you are nvidia and if your card is not too old you should find a driver online.
986 2012-07-30 07:23:29
Re: Texture on Mesh is White in Maratis (2 replies, posted in General)
Hi,
did you read this ? http://www.maratis3d.org/?p=277
Try to not move the mesh and the maps after exporting :
- Before anything, check that your textures are in the maratis project maps/ directory,
then in Blender point to this file for the texture, and export the mesh directly to the project mesh/ directory.
(the mesh files are using local filenames, so when the file is moved it can break the links)
987 2012-07-29 18:23:47
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
good, I will prepare builds for windows, mac and linux.
It will also be a good testing process and a way to point features that you miss.
988 2012-07-29 10:34:27
Re: Demo Project: Please come join us and make it fun! (64 replies, posted in General)
Hi, that's very cool ! And nice theme !
the fun exploits of penguins in a challenging and fun underwater exploration
You can count on my support and additional development. To start with, do you need a recent build ?
989 2012-07-28 09:44:06
Re: Having trouble compiling and running Maratis on Ubuntu (5 replies, posted in Bug report)
So is your compiled version in prod/ working ?
With linux it's not easy to provide a fully compatible binary so it's possible that the downloaded version doesn't work everywhere...
990 2012-07-27 21:58:57
Re: Having trouble compiling and running Maratis on Ubuntu (5 replies, posted in Bug report)
Hi, welcome,
did you first tried the linux build version and it doesn't start ?
After compiling, check that you look into the "prod/" folder (the "build/" folder is just raw)
And to run from the command line I believe you have to type "./MaratisEditor"
991 2012-07-25 12:04:45
Re: changeCurrentCamera help (2 replies, posted in General)
did you declare the objects with getObject ?
-- get objects
Camera1 = getObject("Camera1")
Camera2 = getObject("Camera2")
-- scene update
function onSceneUpdate()
if onKeyDown("B") then
changeCurrentCamera(Camera2)
elseif onKeyDown("C") then
changeCurrentCamera(Camera1)
end
end
992 2012-07-25 06:57:46
Re: Publishing (7 replies, posted in General)
In the next version there will be an automatic feature to publish and pack the project files,
it is still in beta, but you can test it by compiling the last svn code of Maratis :
http://code.google.com/p/maratis/source/checkout
993 2012-07-25 06:56:33
Re: Publishing (7 replies, posted in General)
Hi,
for publishing copy MaratisPlayer.app along with your game data,
and create a bach file pointing to your project file : there is a bash example in Examples/WaterGameDemo/runWithPlayer
(open the bach file with a text editor)
for window it's similar, using MaratisPlayer.exe and a bat file
994 2012-07-23 19:31:28
Re: fork source code (2 replies, posted in Gossip)
Hi,
sure, till you follow the license terms you can do what you want.
If your plans are following Maratis philosophy I can also create an account for you on google code ?
995 2012-07-15 22:53:05
Re: Can't launch Maratis (4 replies, posted in Bug report)
thanks for the feedback, I'll correct it for the next release.
996 2012-07-15 17:19:13
Re: Can't launch Maratis (4 replies, posted in Bug report)
Hi,
all this dll are supposed to be there, are you sure the zip has been unzipped properly ?
If you cannot see all the dll, try downloading Maratis again (maybe the download was not complete)
997 2012-07-15 09:22:34
Re: Organization (2 replies, posted in General)
Hi and welcome,
first, to use multiple lua scripts, you can use "dofile("customFunctions.lua")" to include other script.
To check error if you are on windows there is a console window opening with Maratis,
if you are on mac or linux, launch Maratis from a command line.
Variables are the standard lua variables, like you used to do before.
998 2012-07-15 09:19:02
Re: scripting dofile error (1 replies, posted in Bug report)
Hi, sorry, I didn't see this post,
dofile normally don't execute the code inside it,
write a function inside scriptc.lua where you do "print("test")" and call this function in scripta.lua
999 2012-07-13 09:04:24
Re: translation (6 replies, posted in Gossip)
Hi, sorry I'm working in another city this week, I'm not home,
yes you can translate this tutorials :
- http://www.maratis3d.org/?cat=15
- http://www.maratis3d.org/?cat=6
If you can just write "translated from www.maratis3d.com" it's good.
For the other tutorials (on this forum for example) you have to ask the author (Vegas in general).
1,000 2012-07-08 08:29:09
Re: Path-finding (10 replies, posted in Engine)
The safer is the dictionary, but it's a bit limited.
Distributing one header will be faster and good for code completion, with a method to check if the plugin is loaded it should be safe enough. Thanks for the idea