Navigation Menu

Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ncrpts committed Jun 10, 2017
1 parent 98856fa commit 4bbef02
Show file tree
Hide file tree
Showing 48 changed files with 125 additions and 0 deletions.
Binary file added bobmods_gfxtweak_0.15.2.zip
Binary file not shown.
89 changes: 89 additions & 0 deletions bobmods_gfxtweak_0.15.2/data-updates.lua
@@ -0,0 +1,89 @@
-- Bob's mod electronics texture override :
-- check if an icon is currenctly being used, if that's the case it is overriden.
if settings.startup["replace-electronics"].value == true then

if data.raw.item["wooden-board"] then data.raw.item["wooden-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/wooden-board.png" end
if data.raw.item["phenolic-board"] then data.raw.item["phenolic-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/phenolic-board.png" end
if data.raw.item["fibreglass-board"] then data.raw.item["fibreglass-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/fibreglass-board.png" end
if data.raw.item["basic-circuit-board"] then data.raw.item["basic-circuit-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/basic-circuit-board.png" end
if data.raw.item["circuit-board"] then data.raw.item["circuit-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/circuit-board.png" end
if data.raw.item["superior-circuit-board"] then data.raw.item["superior-circuit-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/superior-circuit-board.png" end
if data.raw.item["multi-layer-circuit-board"] then data.raw.item["multi-layer-circuit-board"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/multi-layer-circuit-board.png" end
if data.raw.item["electronic-circuit"] then data.raw.item["electronic-circuit"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/basic-electronic-circuit-board.png" end
if data.raw.item["advanced-circuit"] then data.raw.item["advanced-circuit"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/electronic-circuit-board.png" end
if data.raw.item["processing-unit"] then data.raw.item["processing-unit"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/electronic-logic-board.png" end
if data.raw.item["advanced-processing-unit"] then data.raw.item["advanced-processing-unit"].icon = "__bobmods_gfxtweak__/graphics/icons/electronics/electronic-processing-board.png" end

end
-- Bob's mod warfare texture override :
if settings.startup["replace-warfare"].value == true then
--items icon override
if data.raw.item["acid-bullet"] then data.raw.item["acid-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/acid-bullet.png" end
if data.raw.ammo["acid-bullet-magazine"] then data.raw.ammo["acid-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/acid-bullet-magazine.png" end
if data.raw.item["acid-bullet-projectile"] then data.raw.item["acid-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/acid-bullet-projectile.png" end
if data.raw.item["ap-bullet"] then data.raw.item["ap-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/ap-bullet.png" end
if data.raw.ammo["ap-bullet-magazine"] then data.raw.ammo["ap-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/ap-bullet-magazine.png" end
if data.raw.item["ap-bullet-projectile"] then data.raw.item["ap-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/ap-bullet-projectile.png" end
if data.raw.item["bullet"] then data.raw.item["bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/bullet.png" end
if data.raw.item["bullet-casing"] then data.raw.item["bullet-casing"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/bullet-casing.png" end
if data.raw.ammo["bullet-magazine"] then data.raw.ammo["bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/bullet-magazine.png" end
if data.raw.item["bullet-projectile"] then data.raw.item["bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/bullet-projectile.png" end
if data.raw.item["electric-bullet"] then data.raw.item["electric-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/electric-bullet.png" end
if data.raw.ammo["electric-bullet-magazine"] then data.raw.ammo["electric-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/electric-bullet-magazine.png" end
if data.raw.item["electric-bullet-projectile"] then data.raw.item["electric-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/electric-bullet-projectile.png" end
if data.raw.item["flame-bullet"] then data.raw.item["flame-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/flame-bullet.png" end
if data.raw.ammo["flame-bullet-magazine"] then data.raw.ammo["flame-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/flame-bullet-magazine.png" end
if data.raw.item["flame-bullet-projectile"] then data.raw.item["flame-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/flame-bullet-projectile.png" end
if data.raw.item["he-bullet"] then data.raw.item["he-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/he-bullet.png" end
if data.raw.ammo["he-bullet-magazine"] then data.raw.ammo["he-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/he-bullet-magazine.png" end
if data.raw.item["he-bullet-projectile"] then data.raw.item["he-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/he-bullet-projectile.png" end
if data.raw.item["poison-bullet"] then data.raw.item["poison-bullet"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/poison-bullet.png" end
if data.raw.ammo["poison-bullet-magazine"] then data.raw.ammo["poison-bullet-magazine"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/poison-bullet-magazine.png" end
if data.raw.item["poison-bullet-projectile"] then data.raw.item["poison-bullet-projectile"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/poison-bullet-projectile.png" end
if data.raw.item["shotgun-shell-casing"] then data.raw.item["shotgun-shell-casing"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-shell-casing.png" end
if data.raw.ammo["shotgun-acid-shell"] then data.raw.ammo["shotgun-acid-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-acid-shell.png" end
if data.raw.ammo["shotgun-ap-shell"] then data.raw.ammo["shotgun-ap-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-ap-shell.png" end
if data.raw.ammo["shotgun-electric-shell"] then data.raw.ammo["shotgun-electric-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-electric-shell.png" end
if data.raw.ammo["shotgun-explosive-shell"] then data.raw.ammo["shotgun-explosive-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-explosive-shell.png" end
if data.raw.ammo["shotgun-flame-shell"] then data.raw.ammo["shotgun-flame-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-flame-shell.png" end
if data.raw.ammo["shotgun-poison-shell"] then data.raw.ammo["shotgun-poison-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-poison-shell.png" end
if data.raw.ammo["better-shotgun-shell"] then data.raw.ammo["better-shotgun-shell"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-shell.png" end
-- research icons override
if data.raw.technology["bob-bullets"] then data.raw.technology["bob-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/bullet-magazine.png" end
if data.raw.technology["bob-ap-bullets"] then data.raw.technology["bob-ap-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/ap-bullet-magazine.png" end
if data.raw.technology["bob-electric-bullets"] then data.raw.technology["bob-electric-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/electric-bullet-magazine.png" end
if data.raw.technology["bob-he-bullets"] then data.raw.technology["bob-he-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/he-bullet-magazine.png" end
if data.raw.technology["bob-flame-bullets"] then data.raw.technology["bob-flame-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/flame-bullet-magazine.png" end
if data.raw.technology["bob-acid-bullets"] then data.raw.technology["bob-acid-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/acid-bullet-magazine.png" end
if data.raw.technology["bob-poison-bullets"] then data.raw.technology["bob-poison-bullets"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/poison-bullet-magazine.png" end
if data.raw.technology["bob-shotgun-shells"] then data.raw.technology["bob-shotgun-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-shell.png" end
if data.raw.technology["bob-shotgun-ap-shells"] then data.raw.technology["bob-shotgun-ap-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-ap-shell.png" end
if data.raw.technology["bob-shotgun-electric-shells"] then data.raw.technology["bob-shotgun-electric-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-electric-shell.png" end
if data.raw.technology["bob-shotgun-explosive-shells"] then data.raw.technology["bob-shotgun-explosive-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-explosive-shell.png" end
if data.raw.technology["bob-shotgun-flame-shells"] then data.raw.technology["bob-shotgun-flame-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-flame-shell.png" end
if data.raw.technology["bob-shotgun-acid-shells"] then data.raw.technology["bob-shotgun-acid-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-acid-shell.png" end
if data.raw.technology["bob-shotgun-poison-shells"] then data.raw.technology["bob-shotgun-poison-shells"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-poison-shell.png" end

end
--if data.raw.item["tech-1"] then data.raw.item["tech-1"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/tech-1.png" end
--if data.raw.item["tech-2"] then data.raw.item["tech-2"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/tech-2.png" end
--if data.raw.item["tech-3"] then data.raw.item["tech-3"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/tech-3.png" end
--if data.raw.item["shotgun-1"] then data.raw.item["shotgun-1"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-1.png" end
--if data.raw.item["shotgun-2"] then data.raw.item["shotgun-2"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-2.png" end
--if data.raw.item["shotgun-3"] then data.raw.item["shotgun-3"].icon = "__bobmods_gfxtweak__/graphics/icons/warfare/shotgun-3.png" end

--[[
-- Simple and dirty JS for adding new icons :
var items = [
"stuff-1",
"stuff-2",
"stuff-3"
];
var text = "";
var icondirectory = "\"__bobmods_gfxtweak__/graphics/icons/mod/";
for (i = 0; i < items.length; i++) {
text += "if data.raw.item[\"" + items[i] + "\"] then data.raw.item[\"" + items[i] + "\"].icon = " + icondirectory + items[i] + ".png\" end" + "<br>";
}
document.write(text);
--]]
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions bobmods_gfxtweak_0.15.2/info.json
@@ -0,0 +1,11 @@
{
"name": "bobmods_gfxtweak",
"version": "0.15.2",
"factorio_version": "0.15",
"title": "Bob's Mods : Alternate Textures",
"author": "Necriptos & CitizenJoe",
"contact": "necriptos@gmail.com",
"homepage": "https://forums.factorio.com/viewtopic.php?f=51&t=46948",
"description": "Some alternate textures for bob's mods (Warfare icons made by CitizenJoe), gives a more vanilla friendly look to bob's mods",
"dependencies": ["base >= 0.15.0", "boblibrary >= 0.15.0", "? bobelectronics >= 0.15.0", "? bobwarfare >= 0.15.0"]
}
7 changes: 7 additions & 0 deletions bobmods_gfxtweak_0.15.2/locale/en/bobmods_gfxtweak.cfg
@@ -0,0 +1,7 @@
[mod-setting-name]
replace-electronics=Replace Bob's Electronics textures
replace-warfare=Replace Bob's Warfare textures

[mod-setting-description]
replace-electronics=This replace some of Bob's Electronics default textures with those from bobmods_gfxtweak
replace-warfare=This replace some of Bob's Warfare default textures with those from bobmods_gfxtweak
18 changes: 18 additions & 0 deletions bobmods_gfxtweak_0.15.2/settings.lua
@@ -0,0 +1,18 @@
data:extend(
{
{
type = "bool-setting",
name = "replace-electronics",
setting_type = "startup",
default_value = true,
},
{
type = "bool-setting",
name = "replace-warfare",
setting_type = "startup",
default_value = true,
},
}
)


0 comments on commit 4bbef02

Please sign in to comment.