Java
Anyone got any ideas why this isn't working? I would have thought this code when called would spawn the custom model in the position of the player? (I'm not getting any console errors)
Anyone got any ideas why this isn't working? I would have thought this code when called would spawn the custom model in the position of the player? (I'm not getting any console errors)
Hmm... that code looks perfectly fine to me I've just tested it and it worked...
But I realized that there are no warnings if the model file or texture does not exist when loading from a resource. If the texture is missing, this isn't a huge problem, but if the model file does not exist (or if the path is not correct), it won't show up in the world... make sure the model path is correct, or alternatively try to load it from a file directly and see if it shows up then. Also make sure that the model scale is not too big or too small (otherwise you may not see it).
Hmmm okay I'll take another look
Do you compile the plugin "on the fly" (i.e. did you only reference the plugin project)? Or do you compile the plugin manually and move it to the plugin folder?
Nevertheless, if it still doesn't work, please let me know
The latter, it's compiled and moved into the plugin directory.
The object (j3o file) and texture (dds) both do work as they are linked with a custom object which can hold in the players hand and even drop on floor.
I'll try again with the world generation of the object today and will update
make sure that the model scale is not too big or too small
This was my problem!
The object was so big I was standing inside of it!
This is one LARGE ruby!!
I want one !
Hehe, looks pretty valuable!
@red51 thanks for your help (again )
You're welcome
Just one final question on custom objects, is it possible to make them effected by gravity?
Hmm.. yes, I can add this with the next hotfix, but I'm not sure if I can get proper syncing between all clients ready in time (that would mean that every client calculates the physics/gravity on its own, which may result in slightly different positions for each client).
I'm not sure if I can get proper syncing between all clients ready in time
That would work for now, I'm actually (to begin with) only adding the items on a per client basis so their own physics would work!
The next hotfix
I appreciate you may not be able to answer this, but so you know when this will be expected?
I guess the hotfix will be ready on Monday
Thanks for letting me know
óh my god... this is possible now?? will someone create a plugin that can be easily used also by n00bs, like me? and where to get the models from?
óh my god... this is possible now?? will someone create a plugin that can be easily used also by n00bs, like me? and where to get the models from?
We're currently preparing a few example plugins, including a "custom item loader" which enables you to load custom items (at least tools and melee weapons) without having to write a single line of code
thats great!! and where to get the models from? is there any store?
Don’t have an account yet? Create a new account now and be part of our community!