Jump to content

Mod not working on server... Creative tabs issue


Yagoki

Recommended Posts

Just started a test server with a friend, put my mod on it and there's a problem with the blocks and items, namely they aren't recognized by the server. Trying to pull them from the creative tabs caused the player to be booted (with this error showing on the server), Trying the "/give" command returned "no such item".

 

I'm assuming that this is because they haven't been created on the server, or something, soooo... Help plz (all code on github, link in signature, if you need directing to any specific classes which you can't find, just ask)

 

Thanks in advance.

Link to comment
Share on other sites

The most common cause of that issue would be id mismatch between client/server, or the mod not being present on the server.

 

the source points to

ItemStack.java:

public int getItemDamage()

    {

        return this.getItem().getItemDamageFromStack(this);

    }

 

as being the cause of the issue.  (likely caused by a null Item reference in the ItemStack)

 

In a few recent Forge releases there were some issues with calling getItemDamage() causing NPE when called with certain items (i don't remember the exact circumstances though...) -- so if neither of the first problems is your issue, you might try updating the Forge/FML on both your client(s) and server.

Link to comment
Share on other sites

On another note, error appears to be a packet handling issue, which is strange because you have a packet handler....but its strange cuz i can't find a regular block id for what is in your creative tab....

I took over Hunting Traps Mod and work on helping the forge community as much as I can. View my work here: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1443756-1-7-2-1-6-4-1-5-2-1-4-7-hunting-traps-mod-v-0-4-0

Link to comment
Share on other sites

Yeah, I thought it was a server client disparity, wasn't too sure. As for forge we were using the latest available version. I will double check that my friend installed it properly on the server, but still a bit confused by it.

 

I think the packet handling is vanilla, not something I've caused (as far as I can tell). I think it was because the server can't find a block/item at that ID to send to the client (client requests it from inventory then server sends as packet)

 

Still not sure what caused it but I will bug him when he's next online  :-\

Link to comment
Share on other sites

hard code a default id into your mod then make the config read the hard code.

 

unless someone has changed their ids that might fix your error. it all depends on the root of your issue that is not evident on the crash log.

I took over Hunting Traps Mod and work on helping the forge community as much as I can. View my work here: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1443756-1-7-2-1-6-4-1-5-2-1-4-7-hunting-traps-mod-v-0-4-0

Link to comment
Share on other sites

no apparently the server config is identical :/

 

also it's beyond the point where i can tweak things in that release without removing loads of code, so I think i'll just leave it for now. Thanks anyway.

 

Also there are hard coded id's (the default ids increment from 700)

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

    • Yeah, I'll start with the ones I added last night.  Wasn't crashing until today and wasn't crashing at all yesterday (+past few days since removing Cupboard), so deductive reasoning says it's likeliest to be one of the new ones.  A few horse armor mods and a corn-based add-on to Farmer's Delight, the latter which I hope to keep - I could do without the horse armor mods if necessary.  Let me try a few things and we'll see. 
    • Add crash-reports with sites like https://mclo.gs/ Add this mod: https://www.curseforge.com/minecraft/mc-mods/packet-fixer/files/5416165
    • Maybe - remove recently added mods one by one
    • Temu, a popular online shopping platform, is currently offering an exclusive coupon code for Australian customers that can unlock significant savings. If you want to save money on your next purchase, the coupon code {act892435} is your key to unlocking AU$100 off your order, along with additional discounts on select items. How to Use the Coupon Code {act892435} Using the coupon code is straightforward. Follow these simple steps to maximize your savings: Download or Open the Temu App: If you haven't already, download the Temu app from your app store or visit the Temu website. Add Items to Your Cart: Browse through Temu’s vast selection of products and add your desired items to your shopping cart. Proceed to Checkout: Once you have finished shopping, go to your cart and click on the checkout button. Enter the Coupon Code: Look for the "Promo Code" or "Coupon Code" field on the checkout page. Enter {act892435} into this field and click “apply.” Enjoy Your Savings: After applying the code, you will see a deduction of AU$100 from your total order amount, plus you may receive an additional discount of 30% to 70% off on select items. Benefits of Using {act892435} The coupon code {act892435} is particularly beneficial for several reasons: Significant Savings: The AU$100 discount applies to your entire order, making it a great opportunity for larger purchases. Additional Discounts: In addition to the AU$100 off, you can stack this coupon with other promotions that offer up to 70% off select items, maximizing your savings potential. No Minimum Purchase Requirement: There’s no minimum spend required to use this coupon, allowing you to use it on any size order. Tips for Maximizing Your Savings To get the most out of the {act892435} coupon code, consider these tips: Shop Strategically: Since the AU$100 discount applies to your total order, consider purchasing multiple items or higher-priced products to maximize your savings. Check Eligible Items: Make sure to add items that qualify for additional discounts (30% to 70% off) to benefit from both offers. Stay Updated on Promotions: Keep an eye on Temu’s app and website for flash sales and limited-time offers that can further enhance your savings. Additional Ways to Save on Temu While using the coupon code {act892435} is one of the best ways to save right now, there are other strategies you can employ: Explore the Deals Section: Regularly check Temu's "Deals" section in the app for time-sensitive offers and sales. Follow Social Media Accounts: By following Temu’s Australian social media pages, you may gain access to exclusive promo codes not available elsewhere. Sign Up for Newsletters: Subscribe to Temu’s email newsletter for updates on new deals and additional discount codes delivered directly to your inbox. Conclusion The exclusive coupon code {act892435} offers Australian shoppers a fantastic opportunity to save AU$100 on their next Temu purchase while also enjoying extra discounts on select items. By following simple steps during checkout and employing strategic shopping techniques, you can maximize your savings significantly. Don’t miss out on this limited-time offer—head over to Temu today and start shopping! Share
    • No, I have both of those on.  Are they triggering as potential crash errors, even though suspected mods are "none"?  Apologies, I'm relatively new at modding Minecraft.   Edit: What's odd to me is that I've had both of those on literally from world inception (over three weeks real-world time, I think?) and never had issue with either.  I wonder if something added afterwards is causing incompatibilities.
  • Topics

×
×
  • Create New...

Important Information

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