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

Hey there. I have been reading a few different modders' code and I can see some differences in style. One thing that occurred to me is the different uses of the pre-init and init functions.

 

Some modders use pre-init to load configuration files, blocks, items etc, and use init just for registering network GUI handlers.

 

Others use pre-init just for config files and load everything else in init.

 

I was wondering what the norm is and what differences (if any) there are in these implementations?

  • Author

Hey there. I have been reading a few different modders' code and I can see some differences in style. One thing that occurred to me is the different uses of the pre-init and init functions.

 

Some modders use pre-init to load configuration files, blocks, items etc, and use init just for registering network GUI handlers.

 

Others use pre-init just for config files and load everything else in init.

 

I was wondering what the norm is and what differences (if any) there are in these implementations?

  • Author

Yes, Pahimar is one of the modder's I have been looking at.

 

However, apart from saying 'different things need loaded at different times' (which is true) he doesn't give any reason why the blocks should be loaded there.

 

I say should, as other modders load them in init and it works perfectly fine.

  • Author

Yes, Pahimar is one of the modder's I have been looking at.

 

However, apart from saying 'different things need loaded at different times' (which is true) he doesn't give any reason why the blocks should be loaded there.

 

I say should, as other modders load them in init and it works perfectly fine.

  • Author

Pahimar stated that CPW wants it this way. (Blocks, items etc. in the pre-init).

 

Basically, it's where cpw wants it (and since he wrote FML, that's where it should go)

 

Basically, if you do it there you will always get your textures for your blocks/items. If you do it later, no guarantee. I'll leave it to cpw to explain the mechanics though!

 

So yeah. That's good enough for me. (:

  • Author

Pahimar stated that CPW wants it this way. (Blocks, items etc. in the pre-init).

 

Basically, it's where cpw wants it (and since he wrote FML, that's where it should go)

 

Basically, if you do it there you will always get your textures for your blocks/items. If you do it later, no guarantee. I'll leave it to cpw to explain the mechanics though!

 

So yeah. That's good enough for me. (:

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.