Page 1 of 1

Need help on info.json file

Posted: Mon Oct 07, 2013 6:43 pm
by Math3vv
Hey im working on a simple mod that allows you to have laser ammo.
i followed the tutorial from the wiki but the game says it can not read the "info.json" file.
does anyone know how to fix this ?

Code in "info.json" file :
{
"name": "laser",
"version": "0.1",
"title": "Laser",
"author": "Math3vv",
"contact": "none",
"homepage": "none",
"description": "Adds laser magezine"
}

Re: Need help on info.json file

Posted: Mon Oct 07, 2013 6:47 pm
by Math3vv
Nevermind fixed it, exedently named my "info.json" file "laser-info.json" :P

Edit :

Mod still doesn't work though :/
ìm trying to coppy all "basic_bullet_magazine" and change the name into "laser_magezine"
and inside the files i changed the animation and the projectile to the laser projectile from the turret.
but somehow.....

if anyone has a list of all the .lua files i need to make a "new" ammo type please post them !!
tnx.

Re: Need help on info.json file

Posted: Mon Oct 07, 2013 8:27 pm
by FreeER
Math3vv wrote:if anyone has a list of all the .lua files i need to make a "new" ammo type please post them !!
tnx.
I think this is the list lol:
well you can either create a new ammo category (prototypes/ammo-category), or use an existing one, but you'll need the item for the ammo (prototypes/item/ammo), and a gun that shoots that category of ammo (prototypes/item/gun), and you may or may not also need a projectile entity (prototypes/entity/projectiles). All of these could be placed within data.lua if you wanted, but most place them in seperate files just like the data/base. It's neater and easier to expand upon later. If you are still having issues why not try uploading your mod for someone to look at it?

By the way, if the 'tutorial' you followed was my bomber mod be aware that it is probably rather outdated at the moment, I'll be updating it with the release of 0.7.1 :D

Re: Need help on info.json file

Posted: Mon Oct 07, 2013 8:47 pm
by Math3vv
@FreeER
tnx for the list it helps allot, so far i have just coppy-pasted alot of files from the "base/"
i have been using the wiki tutorial sofar, but im now reading your "[GUIDE] To Modding Factorio 0.3.x-0.4.x" looks prommesing !

And i know this sounds dumb but i have tryed multiple ways to uploade difrent kinds of files, but somehow people can't download it (any suggestions ?)

Re: Need help on info.json file

Posted: Mon Oct 07, 2013 9:26 pm
by FreeER
Hope those guides help and don't confuse you too much, if you get lost or something isn't working though your best bet will be looking at the current files in base. And then asking on the forum. I'd mention the wiki more but I don't think the prototype definitions are up yet.
For uploading the two options I tend to use are "upload attachment"s with your posts (just check underneath the "submit" button when posting) or if the file is too large (I forget the limit right now) or if I want to give the link in multiple places I'll usually use dropbox, dropbox also allows you to update the file on your computer without having to reupload the mod on the forum and give a new link to people.