Jump to content

Forge MP, Bukkit and Minecraft 1.3


Kinniken

Recommended Posts

  • Replies 102
  • Created
  • Last Reply

Top Posters In This Topic

Yep, but with a different signature:

ย 

public void registerAnimation(Object game)

ย 

Anyway doesn't matter, the abstract mod class with two implementations works for me.

ย 

Otherwise, quick question: how do the world objects work on the server side? There's one per dimension I assume, how can I check which ones are available? On the client side, I assume that minecraft.theWorld is always the dimension the player is in, so that I do not have access to other dimensions even if they are loaded server-side?

Link to comment
Share on other sites

Ya, pretty much all the hold overs from ModLoader are the reasons why we are still incompatible with the BaseMod interface.

So, blaim Risu, not us.

ย 

However, @SidedDelegate would be the way to go as well as re-writing your animations to use the new ITextureFX interface, that makes your textures TexturePack change aware.

FMLTextureFX is a helper class, see how its used inside Minecraft Fire and Water animations.

ย 

If you are doing things properly, you only have to register your animations once at load.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Ya, pretty much all the hold overs from ModLoader are the reasons why we are still incompatible with the BaseMod interface.

So, blaim Risu, not us.

ย 

Blaming backward compatibility seems more appropriate ;)

ย 

However, @SidedDelegate would be the way to go as well as re-writing your animations to use the new ITextureFX interface, that makes your textures TexturePack change aware.

FMLTextureFX is a helper class, see how its used inside Minecraft Fire and Water animations.

ย 

If you are doing things properly, you only have to register your animations once at load.

ย 

That's the case already. I'll check those APIs but latter, my plate is more than full already. I'm getting close to getting the server code to compile, but haven't even started on the interaction code...

Link to comment
Share on other sites

Well, there is no backwards compatibility in the minecraft world, so that's not a valid thing to blame, when it comes to ML.

He has an opportunity every MC version to cleanup his interface, because he knows that modders will have to recompile anyways :P

ย 

But ya, sounds good, getting closer to compiling, once you get things going we can help you make things more efficient/cleaner.

Just so you know, registerAnimations doesn't only get called at load. It gets called every mod pack change.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Sure, would certainly help. Though the biggest challenges I forsee are internal to Millรฉnaire. I'm really not decided in particular on how much data I'll send to the client. On one side giving the client a copy of the village and quest objects will require a lot of back-and-forth synching, on the other not doing it will make displaying the information GUIs client-side a real pain. Tricky.

ย 

Also, there are some features where I'm not even sure how they'll work in multiplayer. Quest deadlines and hired villagers in particular - in MP time never stops, even when a player is disconnected.

Link to comment
Share on other sites

Well, for quests that have deadlines, you could freeze the player's time when they login and out. Ae, in the quest you'd store a start time and a end time. If a player logs out before that end time arrives you'd store a remaining time (start-now) and when they login reset the end to (now+remaining).

ย 

As for the village objects, hum, depends on exactly what type of info that is and when it changes.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Yeah, I guess i'll do that. I'm definitely going to have to build some kind of player profile system to store data that was game-wide until now (like quests or reputation with cultures), I'll add time passed to it.

ย 

Otherwise, I assume all the multiplayer minimaps are fully client-based? I'm wondering how to manage my village map. The data it depends on should really be server-only (it includes all the pathing details), but sending the picture seems wasteful.

Link to comment
Share on other sites

Well what all do you use to generate the minimap?

Lat time I played there was a sign in the town hall that showed the map of the town? Is that what you're referring to?

That would be fairly small info, just square here, square there.

ย 

But i'd have to see the particular details to see what would be the best solution.

If you're not sending them updates every tick, its fairly good to just send any of the data you need.

ย 

So ya, depends on exactly what you need to print.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

The map also shows what ground is water, dangerous blocks, suitable forย  building on etc. But I'mm sure I can condense the info needed and then it's not so big.

ย 

Otherwise, quick questions:

- does MinecraftForge.registerEntity() replace ModLoader.registerEntityID() or is in addition to it?

- in MinecraftForge.registerEntity(), I assume the range is in blocks?

- what would "standard" values be for the range and the update frequency?

- why would I need or not need the velocity info?

ย 

Presumably whatever settings are used for mobs would be fine for my villagers.

Link to comment
Share on other sites

Yes, you can use the local world to show that map info, if a player is close enough to see the map, he should be close enough to have the chunks sent to him right?

Use the client side chunk data to determine simple terrain stuff like that.

ย 

No, registerEntity does not replace registerEntityID()

It register the entity for tracking, and that information, and makes it so that you can not care and just use a random number for the ID in registerEntityID.

The ID you give to MinecraftForge.registerEntity is a mod unique id instead of a globally unique ID. So you can use 1, 2, 3 etc..

But in registerEntityID you can use Random.nextInt(35565) for all MC cares.

ย 

As for your other questions, you can check EntityTracker on the server to see some example values for normal mobs.

As for the velocity info.. is your mob velocity sensitive? Like Minecarts, or boats? If not you prolly don't need that info.

ย 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Ok, got it to run in Multiplayer* :D The pure server-side aspect seems to be working fine, I found a village and the villagers are doing their work properly. The spooking part however is that they are completely invisible client-side. I'm seeing regular errors of this kind in the log file: "Could not find entity info for 0 : 106". I assume that's due to an error in how I registered my entities? Any idea?

ย 

And thanks for the explanation.

ย 

* without any kind of support for interaction, client-side data or GUI...

Link to comment
Share on other sites

yes, take a look at how Forge deals with it's packets. It sets the first to a packet type, and the rest is the data.

Think of it this way, the channel name is SHARED with all other mods, so why use more then you need to?

ย 

And ya that error in the log is cuz you messed up the registration, show me code.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Also, to send packets form the server to the clients I can use methods like this:

ย 

((MinecraftServer)ModLoader.getMinecraftServerInstance()).configManager.sendPacketToPlayersAroundPoint(p.x, p.y, p.z, range, 0, packet);

ย 

What should I use client-side to send packets to the server? Should it be MinecraftForge.sendPacket? If yes, what is the NetworkManager I'm expected to pass to it?

Link to comment
Share on other sites

Is your mods extending NetworkMod now?

That issue is usually caused when it cant find your mod, or it's not assigned an id, which happens if its not a NetworkMod.

ย 

As for where you get teh NetworkHandler, you get it from the IConnectionHandler events.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

Because on the client, there is no way to get the network handler for the current connection.

And on the server there are many many users, so it makes sense that they have such things built in.

ย 

Interesting, then im not sure why your mod wouldn't be assigned an id.

Perhaps try debugging and sticking something in the ModList packet handler to see if it's sending your a ID.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team onย Patreon

Link to comment
Share on other sites

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

    • Selamat datang diย OLXTOTO,ย situs slot gacorย terpanas yang sedang booming di industri perjudian online. Jika Anda mencari pengalaman bermain yang luar biasa, makaย OLXTOTOย adalah tempat yang tepat untuk Anda. Dapatkan sensasi tidak biasa dengan variasiย slot onlineย terlengkap dan peluang memenangkan jackpotย slot maxwinย yang sering. Di sini, Anda akan merasakan keseruan yang luar biasa dalam bermainย judi slot. DAFTAR OLXTOTO DISINI LOGIN OLXTOTO DISINI AKUN PRO OLXTOTO DISINI ย  Jackpot Slot Maxwin Sering Untuk Peluang Besar Di OLXTOTO, kami tidak hanya memberikan hadiah slot biasa, tapi juga memberikan kesempatan kepada pemain untuk memenangkan jackpotย slot maxwinย yang sering. Dengan demikian, Anda dapat meraih keberuntungan besar dan memenangkan ribuan rupiah sebagai hadiahย jackpot slot maxwinย kami. Jackpot slot maxwinย merupakan peluang besar bagi para pemain judi slot untuk meraih keuntungan yang lebih besar. Dalam permainan kami, Anda tidak harus terpaku pada kemenangan biasa saja. Kami hadir denganย jackpot slot maxwinย yang sering, sehingga Anda memiliki peluang yang lebih besar untuk meraih kemenangan besar dengan hadiah yang menggiurkan. Dalam permainan judi slot, pengalaman bermain bukan hanya tentang keseruan dan hiburan semata. Kami memahami bahwa para pemain juga menginginkan kesempatan untuk meraih keberuntungan besar. Oleh karena itu, OLXTOTO hadir dengan jackpot slot maxwin yang sering untuk memberikan peluang besar kepada para pemain kami. Peluang Besar Menang Jackpot Slot Maxwin Peluang menang jackpot slot maxwin di OLXTOTO sangatlah besar. Anda tidak perlu khawatir tentang batasan atau pembatasan dalam meraih jackpot tersebut. Kami ingin memberikan kesempatan kepada semua pemain kami untuk merasakan sensasi menang dalam jumlah yang luar biasa. Jackpot slot maxwin kami dibuka untuk semua pemain judi slot di OLXTOTO. Anda memiliki peluang yang sama dengan pemain lainnya untuk memenangkan hadiah jackpot yang besar. Kami percaya bahwa semua orang memiliki kesempatan untuk meraih keberuntungan besar, dan itulah mengapa kami menyediakan jackpot slot maxwin yang sering untuk memenuhi harapan dan keinginan Anda. ย  Kesimpulan OLXTOTO adalahย situs slot gacorย terbaik yang memberikan pengalaman bermain judi slot online yang tak terlupakan. Dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering, OLXTOTO menjadi pilihan terbaik bagi para pemain yang mencari kesenangan dan kemenangan besar dalam perjudian online. Di samping itu, OLXTOTO juga menawarkan layanan pelanggan yang ramah dan responsif, siap membantu setiap pemain dalam mengatasi masalah teknis atau pertanyaan seputar perjudian online. Kami menjaga integritas game dan memberikan lingkungan bermain yang adil serta menjalankan kebijakan perlindungan pelanggan yang cermat. Bergabunglah dengan OLXTOTO sekarang dan nikmati pengalaman bermain slot online yang luar biasa. Jadilah bagian dari komunitas perjudian yang mengagumkan ini dan raih kesempatan untuk meraih kemenangan besar. Dapatkan akses mudah dan praktis ke situs OLXTOTO dan rasakan sensasi bermain judi slot yang tak terlupakan. ย 
    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa Di dunia perjudian online yang begitu kompetitif, mencari platform yang dapat memberikan kemenangan maksimal (Maxwin) dan hasil terbaik (Gacor) adalah prioritas bagi para penjudi yang cerdas. Dalam upaya ini, OLXTOTO telah muncul sebagai pemain kunci yang mengubah lanskap perjudian online dengan menawarkan pengalaman tanpa tandingan. ย  ย  Sejak diluncurkan, OLXTOTO telah menjadi sorotan industri perjudian online. Dikenal sebagai "Platform Maxwin dan Gacor Terbesar Sepanjang Masa", OLXTOTO telah menarik perhatian pemain dari seluruh dunia dengan reputasinya yang solid dan kinerja yang luar biasa. Salah satu fitur utama yang membedakan OLXTOTO dari pesaingnya adalah komitmen mereka untuk memberikan pengalaman berjudi yang unik dan memuaskan. Dengan koleksi game yang luas dan beragam, termasuk togel, slot online, live casino, dan banyak lagi, OLXTOTO menawarkan sesuatu untuk semua orang. Dibangun dengan teknologi terkini dan didukung oleh tim ahli yang berdedikasi, platform ini memastikan bahwa setiap pengalaman berjudi di OLXTOTO tidak hanya menghibur, tetapi juga menguntungkan. Namun, keunggulan OLXTOTO tidak hanya terletak pada permainan yang mereka tawarkan. Mereka juga terkenal karena keamanan dan keadilan yang mereka berikan kepada para pemain mereka. Dengan sistem keamanan tingkat tinggi dan audit rutin yang dilakukan oleh otoritas regulasi independen, para pemain dapat yakin bahwa setiap putaran permainan di OLXTOTO adalah adil dan transparan. Tidak hanya itu, OLXTOTO juga dikenal karena layanan pelanggan yang luar biasa. Dengan tim dukungan yang ramah dan responsif, para pemain dapat yakin bahwa setiap pertanyaan atau masalah mereka akan ditangani dengan cepat dan efisien. Dengan semua fitur dan keunggulan yang ditawarkannya, tidak mengherankan bahwa OLXTOTO telah menjadi platform pilihan bagi para penjudi online yang mencari kemenangan maksimal dan hasil terbaik. Jadi, jika Anda ingin bergabung dengan jutaan pemain yang telah merasakan keajaiban OLXTOTO, jangan ragu untuk mendaftar dan mulai bermain hari ini! ย 
    • OLXTOTO adalah bandar slot yang terkenal dan terpercaya di Indonesia. Mereka menawarkan berbagai jenis permainan slot yang menarik dan menghibur. Dengan tampilan yang menarik dan grafis yang berkualitas tinggi, pemain akan merasa seperti berada di kasino sungguhan. OLXTOTO juga menyediakan layanan pelanggan yang ramah dan responsif, siap membantu pemain dengan segala pertanyaan atau masalah yang mereka hadapi. Daftar =ย ย https://surkale.me/Olxtotodotcom1
    • DAFTAR & LOGIN BIGO4D ย  Bigo4D adalah situs slot online yang populer dan menarik perhatian banyak pemain slot di Indonesia. Dengan berbagai game slot yang unik dan menarik, Bigo4D menjadi tempat yang ideal untuk pemula dan pahlawan slot yang berpengalaman. Dalam artikel ini, kami akan membahas tentang Bigo4D sebagai situs slot terbesar dan menarik yang saat ini banyak dijajaki oleh pemain slot online.
    • DAFTAR & LOGIN BIGO4D Bigo4D adalah situs togel online yang menjadi pilihan banyak pemain di Indonesia. Dengan berbagai keunggulan yang dimilikinya, Bigo4D mampu menjadi situs togel terbesar di pasaran saat ini. Dalam artikel ini, kami akan membahas secara lengkap tentang Bigo4d dan alasan-alasannya menjadi situs togel favorit banyak pemain.
  • Topics

×
×
  • Create New...

Important Information

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