Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I have a parachute mod that works in multiplayer except that I can't seem to use a key binding. I press a key © to add some lift to the parachute, it works fine in singleplayer, LAN, but doesn't seem to respond in multiplayer.

 

I recently converted this mod to FML, getting rid of all modloader code. What do I need to do to get this keybinding working serverside? Any help would be appreciated. I can't find anything on google or seaching these forums.

 

I'm using FML recommended.

You need to send a packet to the server telling it that the player has pressed the key and then call your parachute code from there. Feel free to check out my packet handler code for TFC Here

  • Author

Thanks, I'm trying to grasp how to get this to work. I get an NPE when I call my sendPacket method. I think the server instance is null.

 

Do I need to implement IConnectionHandler and PlayerInfo as well?

 

But I get the idea now anyway. Thank you very much.

  • Author

Thanks again for your help, I got it working. I had to use

FMLClientHandler.instance().sendPacket(packet);

in my sendCustomPacket method. Using any of the 'getServer' methods failed with NPE.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.