Welcome, Guest. Please login or register.

Author Topic: [SOLVED] New Mods button: .info files?  (Read 2918 times)

0 Members and 1 Guest are viewing this topic.

Offline MasterEric

  • Forge Modder
  • Tree Puncher
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
  • Karma: +0/-0
  • Gender: Male
  • I like sour cream and onion chips.
    • View Profile
[SOLVED] New Mods button: .info files?
« on: June 25, 2012, 09:37:17 PM »
I noticed that a new button(the mods one) has been added. The description thing seems very cool, and a great feature to the API.
However, I have a question: How do I add info for myself? At default it says "No mod information found, Ask your mod author to provide a mod .info file".
How do I create said .info file?
« Last Edit: June 26, 2012, 01:06:53 PM by MasterEric »

Offline Qwertygiy

  • Tree Puncher
  • *
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 36
  • Karma: +4/-0
  • Buildism FTW
    • View Profile
    • Key Bored Industries (INCOMPLETE!)
Re: New Mods button: .info files?
« Reply #1 on: June 25, 2012, 09:42:28 PM »
Just going out on a limb here, try making a text file named "mod_yourModClassName.info" and put it in the same folder as the mod_yourModClassName.class file.

Offline MasterEric

  • Forge Modder
  • Tree Puncher
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
  • Karma: +0/-0
  • Gender: Male
  • I like sour cream and onion chips.
    • View Profile
Re: New Mods button: .info files?
« Reply #2 on: June 25, 2012, 10:06:00 PM »
That doesn't sound like it would work.
Mostly because there are multiple fields, as you can see in the attached image.
However, if I knew where say Minecraft Forge's .info file was I could look at it and use it as a template.

Offline Qwertygiy

  • Tree Puncher
  • *
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 36
  • Karma: +4/-0
  • Buildism FTW
    • View Profile
    • Key Bored Industries (INCOMPLETE!)
Re: New Mods button: .info files?
« Reply #3 on: June 25, 2012, 10:08:55 PM »
mod_MinecraftForge.info in the client download:

Code: [Select]
[
{
  "modid" : "mod_MinecraftForge",
  "name" : "Minecraft Forge",
  "version" : "3.3.8.148",
  "url" : "http://MinecraftForge.net",
  "credits" : "Lots of people have contributed to MinecraftForge",
  "authors": [
    "LexManos",
    "Eloraam",
    "Spacetoad"
  ],
  "description": "Minecraft Forge is a common open source API allowing a broad range of mods to work cooperatively together.\nIt allows many mods to be created without them editing the main Minecraft code.",
  "logoFile" : "/forge_logo.png",
  "updateUrl" : "http://minecraftforge.net/forum/index.php/topic,5.0.html",
  "parent" : "",
  "screenshots": [
  ]
}
]

Offline cpw

  • Forge Code God
  • Creeper Killer
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 20
  • Posts: 187
  • Karma: +49/-0
  • No
    • View Profile
Re: New Mods button: .info files?
« Reply #4 on: June 26, 2012, 05:45:21 AM »
Information here including what to do:

https://github.com/cpw/FML/wiki/FML-mod-information-file

if you ship a jar always call it mcmod.info. the special naming mod_....info is mostly just for forge itself.

Offline MasterEric

  • Forge Modder
  • Tree Puncher
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
  • Karma: +0/-0
  • Gender: Male
  • I like sour cream and onion chips.
    • View Profile
Re: New Mods button: .info files?
« Reply #5 on: June 26, 2012, 01:04:52 PM »
Thanks for the help on this subject! :D
MARKED AS SOLVED
« Last Edit: June 26, 2012, 01:07:10 PM by MasterEric »

 

Close
Please register or Login to join in on the community!