Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Special ResourceLocation


ImaFool
 Share

Recommended Posts

Yes, you have to implement IResourcePack manually and register it as a default resource pack (add to Minecraft#defaultResourcePacks, using reflection).

Then define a unique resource domain (the thing in front of the ":", so "<mydomain>:<some/folder/some/file.ext>").

That domain then means "on the desktop" (or whatever other folder you want to address). Based on that the IResourcePack implementation should be pretty straightforward.

Link to comment
Share on other sites

Then define a unique resource domain (the thing in front of the ":", so "<mydomain>:<some/folder/some/file.ext>").

 

I don't know if I get this straight, you mean I can just put "C:\Users\User\Desktop"

as a domain?

Or I have to "create" a domain?

Explain that part a little bit please :)

Link to comment
Share on other sites

Then define a unique resource domain (the thing in front of the ":", so "<mydomain>:<some/folder/some/file.ext>").

 

I don't know if I get this straight, you mean I can just put "C:\Users\User\Desktop"

as a domain?

Or I have to "create" a domain?

Explain that part a little bit please :)

 

He said that you have to implement IResourceLocation. Im not at my computer so I cant give you any further instructions but try to see what you need to implement.

If my post helped you, please press that "Thank You"-button to show your appreciation.

 

Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding!

 

Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.

Link to comment
Share on other sites

I don't know if I get this straight, you mean I can just put "C:\Users\User\Desktop"

as a domain?

No, that's not how it is. You "create" a domain, by making one up. I recommend you include your ModID to avoid collisions. Then in the actual path (part after the ":") you include the path and in your IResourcePack you check for your domain, if it is present then you translate the part after the ":" into the actual path on the file system (they will be very similar).

 

He said that you have to implement IResourceLocation.

No. IResourcePack.
Link to comment
Share on other sites

SRG names are partially obfuscated names. It is what MCP uses internally to map the "real names" to methods and fields. FML deobfuscates the "mess" we get from mojang (classes like asx with fields a, b, c and so on) into the actual classnames (such as EntityPlayer) and SRG fields and methods (field_12345_a, func_23456_b, etc.).

Because SRG names are never re-used for different methods this allows mods to often run on e.g. both 1.7.2 and 1.7.10, even though both have a different obfuscation underlying.

 

You can get these from MCPBot or use it's data exports.

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

 Share



×
×
  • Create New...

Important Information

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