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

Hi,

 

following the tutorial(s) at

 

 

 

the sources of the tutorial are placed under %MCP_LOC%/src/minecraft and %MCP_LOC%/src/common.

 

When using the reobfuscate.bat, it seems, that only the files at src/minecraft are copied to ./modsrc. The files at src/common are ignored.

 

Output of bat:

 

 

> Getting changed client source

> New class found      : tutorial/generic/TileEntityTiny

> New class found      : tutorial/generic/GuiHandler

> New class found      : tutorial/generic/GenericBlock

> New class found      : tutorial/generic/GuiTiny

> New class found      : tutorial/generic/client/ClientProxy

> New class found      : tutorial/generic/ContainerTiny

> New class found      : tutorial/generic/BlockTiny

> New class found      : tutorial/generic/Generic

> New class found      : tutorial/generic/SuperTool

> New class found      : tutorial/generic/CommonProxy

> New class found      : tutorial/generic/GenericItem

> New class found      : tutorial/generic/GenericOre

> Outputted tutorial/generic/client/ClientProxy to modsrc\minecraft

> Getting changed server source

 

 

 

(FYI: recompile.bat & reobfuscate.bat work fine. (I didn't test more.))

 

Since I'm no python-developer, I wasn't able to figure out, what the reason for this was.

Maybe the results of my tries to debug it are helpful:

 

 

 

./runtime/commands.py->unpackmodifiedclasses seems to be the place of interest

the line containing "if os.path.isfile(src_file):" (line 1693 for me) seems to be the one deciding, which files to copy.

I added a debug output the line before:

self.logger.info('>> %s  %s', src_file, os.path.isfile(src_file))

 

I think, the problem is "os.path.isfile(src_file)" returning "false" for files.

Unfortunately, this is where my lack of python-knowledge stops me from going deeper into the problem.

 

 

>> src\minecraft\tutorial\generic\TileEntityTiny.java  False

>> src\minecraft\tutorial\generic\GuiHandler.java  False

>> src\minecraft\tutorial\generic\GenericBlock.java  False

>> src\minecraft\tutorial\generic\GuiTiny.java  False

>> src\minecraft\tutorial\generic\client\ClientProxy.java  True

> Outputted tutorial/generic/client/ClientProxy to modsrc\minecraft

>> src\minecraft\tutorial\generic\ContainerTiny.java  False

>> src\minecraft\tutorial\generic\BlockTiny.java  False

>> src\minecraft\tutorial\generic\Generic.java  False

>> src\minecraft\tutorial\generic\SuperTool.java  False

>> src\minecraft\tutorial\generic\CommonProxy.java  False

>> src\minecraft\tutorial\generic\GenericItem.java  False

>> src\minecraft\tutorial\generic\GenericOre.java  False

 

 

 

If the problem I have is based on a mistake I made, please explain, what I did wrong.

 

MPirious

 

 

edit:

Or is this a question I'd have to ask in the MCP-Community?

Yeah, that's a known bug. Just wait until the MCP team squishes it.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Ya I know about it, its a non-priority, so I don't really care about fixing it.

There are a few things in mcp that we break  by merging things together, but none of them are of any importance.

This isn't a MCP issue its a FML/Forge issue as we are the ones merging the codebase. {We patch MCP}

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

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.