GithubHelp home page GithubHelp logo

Few questions about voxelmetric1 HOT 4 OPEN

Neomex000 avatar Neomex000 commented on August 16, 2024
Few questions

from voxelmetric1.

Comments (4)

Neomex000 avatar Neomex000 commented on August 16, 2024

Also, I want to Instantiate item prefab on block destroy but it doesn't inherit from monobehaviour, how should I do that?

from voxelmetric1.

alex-irt avatar alex-irt commented on August 16, 2024

Hey,
Yes I'm still working on Voxelmetric. The past few weeks have been focused on a game I released recently and a new game I've started working on. The new game uses Voxelmetric so I think that will make me more aware of what is needed and how it's working.

Overrides work differently in master than the way they work now. In master block overrides inherit form a BlockOverride class and then on certain functions the actual block controller checks if it has a BlockOverride and if so calls the corresponding function in the BlockOverride. It does this based on the name of the block and the name of the class so for "grass" it looks for a "grassOverride" class that inherits from BlockOverride. This was the wrong way to implement this, it was implemented that way because I wanted to avoid having tons of block controllers and then need block definitions for each type. I changed it to use standard inheritence for overriding block controllers when I removed block definitions.

I think your script is not working because in master the random update function passes a local position to the function, that is to say a position relative to the chunk. Use chunk.GetBlock which takes local positions instead of the world singleton. Again, this was changed to use global positions for blocks everywhere except where specifically noted in alpha 1 I think.

Yeah, the json files are definitely not as user friendly. Originally I wanted to do editor windows and custom inspectors for all customization but it proved to be a lot of work to implement and to update whenever things change and it made it harder for people to extend voxelmetric because you need to add a front end for every bit you add. It would still be possible to write a front end for editing the json files but it's just not my focus.

I don't think the surface layer is supposed to use the frequency variable. It's supposed to be a 1 block thick layer of a single block type.

You can see the planned features for alpha 2 here: https://github.com/AlexSTV/Voxelmetric/milestones/Voxelmetric%20Alpha%202 I'm not sure about biomes though, I haven't looked into what they would require enough. Going forward I choose features based on what people want, what I need for my game and what makes Voxelmetric more stable and efficient. I've also started doing some work on a proper site for documentation. As for helping it really depends on what you want to work on. If you implement something useful to others while working on your stuff that's great, you can also look at the issues page and the gitter chat for issues you want to take on. I would appreciate any help but I know the code base isn't the most readable though I'm taking steps to make it better and more mature so that other people can contribute easier. In not too long there will also be the documentation page that could always use contributors.

Nice to know there's other game developers in Scotland! I've yet to find any game dev events but I'm thinking of finding a gamejam venue.

If you want to make a prefab from a block you'll have to generate the mesh for that block and assign it to a meshfilter on a gameobject. https://github.com/AlexSTV/Voxelmetric/blob/alpha_2/Assets/Voxelmetric/Code/Voxelmetric.cs has a function that does just that.

from voxelmetric1.

Neomex000 avatar Neomex000 commented on August 16, 2024

Thanks for the reply!
Will the RandomUpdate be called even if chunk is not visible?

I want to implement furnaces and machines for what I need normal update method, which needs to be called even if chunk is unactive(not visible). How could I add it?

I think it would be good idea to limit the normal update function to 20 ticks per second the way minecraft does it.

Also, would you be willing to give me some contact info with you such as skype for easier communication? I am planning to make a full game out of it so potentially I could add some stuff to voxelmetric aswell.

from voxelmetric1.

alex-irt avatar alex-irt commented on August 16, 2024

@Neomex000 I'm not on skype often but you can message me on gitter https://gitter.im/AlexSTV/Voxelmetric either directly or in the Voxelmetric room. I get notifications if you @ mention me :) Also there's a RandomUpdate function on BlockController you can override that gets called as often as you specify in the world's config.

from voxelmetric1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.