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

So I've got an AI class where previously in 1.12.2, the mutex bits were set to 7 (incompatible with other vanilla AIs). I'm attempting to update this to 1.16.3, but I see that the mutex bits are replaced by an enumset of flags, which are: MOVE, JUMP, LOOK, and TARGET.

 

If I want equivalent behavior where the AI shouldn't execute when vanilla AIs are executing, how do I set the flags?

Howdy

It looks to me like the enums have just taken place of the bits.  An EnumSet actually is functionally equivalent to the way the mutex were used before.

eg if previously MOVE was bit 0 (=1), JUMP was bit 1(=2), LOOK was bit 2(=4), and TARGET was bit 3(=8)

then a mutex of 7 = 1  + 2 + 4  = MOVE + JUMP + LOOK

is the same as an enumset of {MOVE, JUMP, LOOK}

 

You just need to find the 1.12.2 mutex bits which correspond to the new flags.

Goal.setMutexFlags() appears to be the method you need.

 

-TGG

 

 

 

 

 

 

 

 

  • 1 year later...

Exact bit values for people in the future:
1 - MOVE or TARGET (in 1.12 there was no difference between two, now they are split. You will have to think which one you want to use)
2 - LOOK
4 - JUMP

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.