Jump to content

Recommended Posts

Posted

Hello everyone,

 

Im completelly new to this mc modding area but I would really appreciate if you guys keep reading after I've made that statement.  :)

 

My name is Rafael and I'm from Brazil, I work with c++ for quite sometime now (28 years old - yea I'm too old for mc, I know) and I have a littlebit of a telecom development background. (voip)

 

I was thinking about what to do to get me started with modding and realize that every mod I asked about having voice capabilities uses somekind of an external software to make it work.

 

I want first to share my ideas so you can understand what I want and will do.

 

(Ok, this is gonna be a big post, but please read it all)

 

I looked into the basic concepts about modding for minecraft and I'm kind of amazed how easy you guys made it for us.

I went down and tested a couple of objects and it really works fine.

 

If this thing keeps going like I plan to do, this might be a really big mod, but also can drastically improve the gameplay of this awesome game. (Dont need to keep saying... I really know I'm too old for this.. but hey.. I enjoy it ok?)

 

First thing: The basic idea is to enable voice capabilites to the game and everything that comes with it.

 

Here are the features I could think about in order of development.

 

- A Player talk and other players around could hear.

- Players would talk and the enviroment around it would affect the output of the voice.

- Voice commands (maybe) : this would enable integration with other mods.

 

This 3 stuffs being done, would enable some other possibilites like:

 

- Microphone item

- Broadcast block

- Something like a radio station multiblock

- Radio output block

- Etc...

 

Even came to my mind some kind of survaillance thing going on, but I can't think of good way to record... maybe I could think about it in the future after I get involved.

 

Well... now that you understand what's going on, Let's go to the question already.

 

I started making some coding and it would be really helpfull if you guys could make some clarifications for me before I go deep on this thing.

 

Can I hook up the very first function that receives data ? It would be nice to just intercept the stream buffer before it get parsed and If my mod handle it, parse it, and propagate in the propper way to rest of the engine whats going on.

 

I think it should be better if I dont have to listen in another port for audio data because I it would be kinda hard to make all the security and session stuff without using the core of the minecraft.

 

 

I think thats all for now... I hope I made myself clear.

 

Thank you in advance

Posted

As to your question:

"Can I hook up the very first function that receives data ?"

What do you mean by that? Intercepting packets?

 

As to personal experience and idea - this is totally possible and was alredy made in past (idk if updated now).

If I remember correctly it was a mumble-based mod that connected world, players to mumble engine and you could talk in-game (yeah, with all that distance stuff).

Why Mumble - it is open source and VERY GOOD at compressing voice, which when you have server with a lot of players is like SUPER important.

 

As to personal experience - since mod mentioned (at that time) required mumble client and server somewhere running in background (it was more cross-application), my friend and I wanted to rewrite whole engine and place it into MC client mod and MC server mod.

Long story short - had something working but there was so many unaccounted for errors that project slipped into abyss. :(

 

Well, a lot of useless talking - but yeah, I do recommend using mumble voice engine.

1.7.10 is no longer supported by forge, you are on your own.

Posted

Thank you for your response and suggestion.

 

But I really want to make something from scratch.

 

My last resource would be to make a SIP server(maybe PJSIP) and authenticate users based on mc auth data.

I have a solid knowledge about how compression works, so I would not use a mumble engine just to make this thing easier.

 

Also I would probabbly be limmited to what I could do because I THINK there would be no reason for the mumble engine be made for this kind of sittuation.

 

But ye, I have a softphone of my own and I know how hard it can be.

 

Thank you again.  ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I want to create block with entity, that will have height of 3 or more(configurable) and I tried to change first VoxelShape by increasing collision box on height I want and for changing block height on visual side i tried to configure BlockModelBuilder:  base.element() .from(0, 0, 0) .to(16f, 48f, 16f) .face(Direction.UP).texture("#top").end() .face(Direction.DOWN).texture("#bottom").end() .face(Direction.NORTH).texture("#side").end() .face(Direction.SOUTH).texture("#side").end() .face(Direction.WEST).texture("#side").end() .face(Direction.EAST).texture("#side").end() .end(); but, getting crash with next error: Position y out of range, must be within [-16, 32]. Found: %d [48.0]; Looks like game wont to block height modified by more than 32. Is there any way to fix that problem?
    • As long as the packets you are sending aren't lost, there's nothing wrong with what you're currently doing. Although, this sounds like something that would benefit from you making your own datapack registry instead of trying to arbitrarily sync static maps. Check out `DataPackRegistryEvent.NewRegistry`.
    • Hey all, I've been working a lot with datapacks lately, and I'm wondering what the most efficient way to get said data from server to client is.  I'm currently using packets, but given that a lot of the data I'm storing involves maps along the lines of Map<ResourceLocation, CustomDataType>, it can easily start to get messy if I need to transmit a lot of that data all at once. Recently I started looking into the ReloadableServerResources class, which is where Minecraft stores its built-ins.  I see you can access it via the server from the server's resources.managers, and it seems like this can be done even from the client to appropriately retrieve data from the server, unless I'm misunderstanding.  However, from what I can tell, this only works via built-in methods such as getRecipeManager() or getLootTables(), etc.  These are all SimpleJsonResourceReloadListeners, just like my datapack entries are, so it seems like it could be possible for me to access my datapack entries similarly?  But I don't see anywhere in ReloadableServerResources that stores loaded modded entries, so either I'm looking in the wrong place or it doesn't seem to be a thing. Are packets really the best way of doing this, or am I missing a method that would let me use ReloadableServerResources or something similar?
    • Hi, everyone! I'm new to minecraft modding stuff and want ask you some questions. 1. I checked forge references and saw there com.mojang and net.minecraft (not net.minecraftforge) and as I understand it's original game packages with all minecraft logic inside including renderers and so on, right? 2. Does it mean that forge has a limited set of instruments which doesn't cover all the aspects of the game? If make my question more specific then does forge provide such instruments that allow me totally change minecraft itself, like base mechanics and etc.? Or I have to use "original game packages" to implement such things? 3. I actively learning basic concepts with forge documentation and tutorials. So in my plans make different inventory system like in diabloids. Is that possible with forge? 4. It is last question related to the second one. So how deeply I can change minecraft with forge? I guess all my questions above because of that I haven't globally understanding what forge is and how it works inside and how it works with minecraft. It would be great if you provide some links or topics about it or explain it by yourself but I guess it's to big to be explained in that post at once. Anyway, thank you all for any help!
    • Im trying add to block a hole in center, just a usual block and in center of it on up side, there is should be a hole. I tried to add it via BlockModelBuilder, but its not working. Problem is that it only can change block size outside. I tried it to do with VoxelShape and its working, but its has been on server side and looks like its just changed collision shape, but for client, there is a texture covering this hole. I tried to use: base.renderType("cutout"); and removed some pixels from texture. I thought its should work, but game optimization makes block inside looks transparent. So, only custom model?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.