You might need to remove QuestStatusChanged from the export. Also that should only be a warning and not an error. But you can remove the Integer result = and just use the WorldManagerClient.spawn(OID);
Tristan Administrator
Posts : 306 Join date : 2011-08-03 Location : Liverpool, UK
Well, I ended up just exporting the object placement .java file, and I added one of those suppress notice thingies on that warning I mentioned before. I exported that one java file to it's own .jar, calling it mypack.jar alongside mars.jar and multiverse.jar.
I just fired up the client, and it loaded normally, letting me run around etc. However, the object creation didn't work, so clearly suppressing the warning wasn't good enough. There was also an 'unused' error for "import multiverse.server.engine.Namespace;" at the top, so I suppressed that as well.
I've gone back and deleted the Integer result = bit, and left the WorldManagerClient.spawn(OID); bit after. I'll give it a trial run later
If you are using a separate jar you will need to register that jar in multiverse.sh... I dont remember exactly what you have to do, it should be similar to however they registered mars.jar
Tristan Administrator
Posts : 306 Join date : 2011-08-03 Location : Liverpool, UK
It works by left-clicking the object in your inventory, then right clicking anywhere in the inventory box. The barrel object will then appear at your feet, and once you move out of the collision box, going back over it will cause you to walk on top of it. So the physics are being kept, which is good.
EDIT: for some reason, the collisions are no longer working - did the barrel even have collisions in the first place?
The interesting thing, is that if you have multiple barrel objects, you can place them pretty quickly with the same inventory object you left click on originally. So, I left click on Barrel 1, and right click in the inventory box. One barrel is place at my feet. However, the grabbed image icon of the barrel object is still attached to the mouse - right clicking again will take another barrel from the inventory, and placed it at your feet. This could be good for items that are needed in large quantities and close together, like farming soil patches.
Here's the result:
The barrel's icon is on the left hand side, in the inventory window. It's just one of the sampleworld Spell Books, I think. (Delurin set it, not me )
It only looks at where the cursor is relative to the terrain.
Well, it doesn't even do that at the moment.
And no Zoot, although I was briefly able to stand on top of the barrel - I think it might have been on of those "Oh, you're stuck, let's move you out of the way" client actions that resulted in me being pushed above, when I initially dropped the barrel directly at my feet. I then walked off the barrel, back onto the ground, but couldn't get back up. I didn't think to check whether another barrel could be placed on top....
The barrel doesn't have any collision volumes (at least, I don't think it does), so that probably won't work. I'm sure it could be worked into the code, though I can't personally see the applications/uses of such a feature...
I've been trying to get back onto the world to continue testing with a new model with collision volumes. It's a freestanding solar panel from one of my other projects, that would have eventually been given an animation to follow 'the sun', had I not put the project on hold for a more achievable one (The Roman one - guns and such seem way too complicated to implemented, and there are some big projects coming up elsewhere that seem annoyingly similar in terms of content.)
However, my server startup keeps timing out (when using the start-multiverse.bat file). Not sure what's wrong with it... Will rummage around the old forum posts to see if I can resolve the issue.
The barrel doesn't have any collision volumes (at least, I don't think it does), so that probably won't work. I'm sure it could be worked into the code, though I can't personally see the applications/uses of such a feature...
If it didn't have a collision volume you'd be able to walk through that barrel, yet I think that the collision volume is a part of the modeling proccess......or at least it says so on the WIKI pretaining to modeling with 3ds
Barrels, bricks, logs, rocks.........what the difference?..........if they can be placed one on top of another, then one can build ones own house, a barn, a brick or log wall or fence.......or whatever else one might want to build.
Yes you would need to create a physics model during the modelling process (generally a box) and name it mv_obb_submeshname_num like mv_obb_barrel_1 or if it is a cylinder you want you can just take a animated models .physics file and change the submesh name and filename to fit your model. I will look at the client code tomorrow to see why the placement is not working correctly. I wrote that tutorial without running the code at all so I would be surprised if there arent problems or things I forgot to add.
Barrels, bricks, logs, rocks.........what the difference?..........if they can be placed one on top of another, then one can build ones own house, a barn, a brick or log wall or fence.......or whatever else one might want to build.
I see a Minecraft remake coming
Delurin wrote:
Yes you would need to create a physics model during the modelling process (generally a box) and name it mv_obb_submeshname_num like mv_obb_barrel_1 or if it is a cylinder you want you can just take a animated models .physics file and change the submesh name and filename to fit your model.
Indeed.
Delurin wrote:
Usually if it times out there is an error message in the server logs
I haven't had a chance to have a thorough debug, but I shall today, hopefully. Just so long as I get some of my dissertation proposal finished
zoot686 wrote:
well at least tristan can place a barrel in the world, and that's more than he could do last week.
Tristan Administrator
Posts : 306 Join date : 2011-08-03 Location : Liverpool, UK
My vision begins at collaborative objects between platforms.
I have/had high hopes for the Collada format, but that has gone the same way most 'universal' formats have, in being turned into so many variants. The vision is/was to have any Object (3D mesh, 2D file/texture, Particle, Animation etc) being able to be loaded natively into any Immersive Environment (Virtual Reality) that allows it. Having of course passed any authentication/security processes first. Create a barrel (whatever) once, use it many times in multiple platforms, update it at the source and the update propagates automatically.
Metaforik is a remote object referencing, mainly dealing with Cloud Storage. Each item has tags assigned to it, stating the origins, copyright etc. The flags can also be set to say, exclude certain countries for rendering/usage etc, or be set to only be used at certain times of the day, or even the date/days themselves, and much more. The security of the system doesn't rely on anything clientside, as the client requests the item from the Metaforik database, for delivery. The whole scene is created by applying url Metaforik references to items to be rendered/used.
As the 'database' and included objects/items are all remote, any 'updates' are applied dynamically, then if the calls to the object are timed, via the network layers and or by off client calls by say javascript, a lot more applications are possible. We have seen much of this in the ilks of the (now defunct) Wonderland/Cobalt projects, where not just 'live' data is streamed, but live links can be formed within an environment, to other environments/content, on the fly.
The key, has to be the development of a stable collaborative format and delivery systems, along with 'injection' systems updating on the fly. I know it's possible, as I have seen/experienced parts of the overall system working in seperate platforms, never together as a whole, with the exception of the closest being Vast Park
No, not really...........instead think more about a player deciding that the edge of town might be a good place for a gambling hall...............so he builds one there and runs it.............or maybe that a flat piece of land might be a good place to start a settlement........
I haven't played second life so I don't know. Spose I should go check it out though.
Second Life has been going for some years now, at least 9-10 to my knowledge. Users that have either permissions, or are in a sandbox 'sim', or rent the land from someone, including Linden Labs, who own the platform, can build using static meshes and mainly prims (primitives, cube, sphere etc), set up a shop, university, entertainment (including sexual services), pub etc. Lag the servers by uploading textures, media links, animations, sounds etc directly into the platform.
An open source version of Second Life, called OpenSim is available, whereby you can create/host your own sims. It is not overly complicated to setup and run. However most offerings are like the original, laggy as hell. Its allure is its versatility and scope of features. If you aren't really bothered about security of assets, it's probably worth deeper investigation, even installing and playing with.
I updated the wiki to add the global variable heldObject = None to MarsCursor.py sorry I missed it.
Ok, thanks.
I'm currently working on adding different objects to the inventory. To make things much easier, would it be possible to code a sort of command-line function where you could type (for example)
Code:
/additem "Barrel Object"
and it would add a Barrel Object to your inventory? Otherwise, when testing the object placement, I have to create a new character each time, so I get a full inventory of barrels to place. It would be a useful feature for development in general, I think.
there should already be the command /createitem Barrel Object If not I can post one
ooooh!
To be fair, it does seem like an obvious function to have for developers. I haven't actually tried it, but I would be surprised if it wasn't already built in.
EDIT: I'll try it now, and let you know how it goes