[MOD 0.12.1] Supreme Warfare - 1.0.5

Topics and discussion about specific mods
grifter1
Inserter
Inserter
Posts: 37
Joined: Sat Aug 08, 2015 5:53 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by grifter1 »

Hi thanks for the great mod

We are having problems with the small orbs dropped by the critters

In a mp game the orbs are making the save to large and we have to wipe them so the other players can join

Is it hard for me to remove them from the mod and not make problems

On a side note having a setting to have them time out might be helpful for long games
User avatar
MasterBuilder
Filter Inserter
Filter Inserter
Posts: 353
Joined: Sun Nov 23, 2014 1:22 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by MasterBuilder »

grifter1 wrote:Hi thanks for the great mod

We are having problems with the small orbs dropped by the critters

In a mp game the orbs are making the save to large and we have to wipe them so the other players can join

Is it hard for me to remove them from the mod and not make problems

On a side note having a setting to have them time out might be helpful for long games
You could just turn them off. config.lua:

Code: Select all

SW.ExtraLoot = false --Extra Loot from Aliens (small-alien-artifact)
Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
grifter1
Inserter
Inserter
Posts: 37
Joined: Sat Aug 08, 2015 5:53 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by grifter1 »

Thanks
I was hoping it was that easy
jorgenRe
Filter Inserter
Filter Inserter
Posts: 535
Joined: Wed Apr 09, 2014 3:32 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by jorgenRe »

For an updated version that should work in Factorio 0.12.11+ please check out this topic:
https://forums.factorio.com/forum/vie ... 72#p113172
Logo
Noticed the told change in FFF #111 so il continue to use my signature ^_^
Thanks for listening to our suggestions, devs :D!
I would jump of joy if we could specify which tiles spawned in a surfaces
Insanekiller278
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Sep 22, 2015 11:52 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by Insanekiller278 »

Will the mod be updated to version 13?
SpeedyBrain
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Wed May 20, 2015 12:08 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by SpeedyBrain »

Insanekiller278 wrote:Will the mod be updated to version 13?
Yes.
ImageImageImageImage
trayable
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Sep 05, 2015 5:56 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by trayable »

Hi,does this work on vison 0,12,20 .Just saying because everything works find untill i build the arty, and when i try to shoot it,nothing happen
vanatteveldt
Filter Inserter
Filter Inserter
Posts: 947
Joined: Wed Nov 25, 2015 11:44 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by vanatteveldt »

[Cross post from the natural evolution thread, sorry for the spam]

Question: I'm using this mod in conjunction with the "natural evolution" mod, and I have the feeling that the combination doesn't work very well. Spawners are impossible to kill except with laser turrets or alien ammo, the artillery from total warfare seems to make hardly a dent - I have the feeling that they are highly resistant to explosion damage? In (late) mid game they are spawning so quickly that I just don't know how to kill a base except by creeping up with laser turrets (which is just lame).

Is there any advice on using both mods simultaneously? Can I disable either mod mid-game?
shikashi18
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Feb 03, 2016 5:09 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by shikashi18 »

Hey I am having trouble with the mod, when I tried to play the game it said. "_ _Supreme warfare_ _/control.lua:46: attempt to index global 'game' (a nil value)" I don't know what that means unless maybe a mod conflicts with that. Would you please let me know what excatly the problem is?
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by ssilk »

You need to update in control.lua to use script.on_*-functions instead of game.on_*() Functions. This mod works then fine as far as I've tested it.

Here is my version (without any warranties, cause I made also some other changes anywhere):

Code: Select all

require "defines"
require "scripts/conf_artillery"
require "scripts/artillery"

--remote.addinterface("supremewarfare", {version= function()return "1.0.4"end})

local loaded

function reduceCooldown()
	if global.listArty ~= nil then
		for k,v in pairs(global.listArty) do
			if v[1].valid and v[2].valid then
				v[3]=v[3]-1
				if v[3] <=0 then
					processArty(v)
				end
			else
				if v[1].valid then
					v[1].destroy()
				end
				if v[2].valid then
					v[2].destroy()
				end
				table.remove(global.listArty, k)
				if #global.listArty == 0 then
					global.listArty = nil
				end
			end
		end
	end
end

function ticker()
	if global.listArty ~= nil then
		if global.sbticks == 0 or global.sbticks == nil then
			global.sbticks = 60
			reduceCooldown()
		else
			global.sbticks = global.sbticks - 1
		end
	else
		script.on_event(defines.events.on_tick, nil)
	end
end

script.on_load(function()
	if not loaded then
		loaded = true
		if global.listArty ~= nil then
			script.on_event(defines.events.on_tick, ticker)
		end
	end
end)

script.on_init(function()
	loaded = true
	
	if global.listArty ~= nil then
		script.on_event(defines.events.on_tick, ticker)
	end
end)

function isArty(name)
if name =="sb-artillery-mk1" or name =="sb-artillery-mk2" or name =="sb-artillery-mk3" or name =="sb-rocketlauncher-mk3" or name =="sb-artillery-mk4" then
	return true
else
	return false
end
end
function isTarget(name)
if name == "sb-smoke-cloud" then
	return true
else
	return false
end
end

function builtEntity(event)
	local newArty
	local newArtyI
	local artyName
	
	if isArty(event.created_entity.name) then
		artyName=event.created_entity.name
	end
	
	if artyName ~= nil then
		newArty = game.surfaces["nauvis"].create_entity({name = artyName, position = event.created_entity.position, direction = event.created_entity.direction, force = game.forces.player})
		newArtyI = game.surfaces["nauvis"].create_entity({name = artyName.."i", position = event.created_entity.position, direction = event.created_entity.direction, force = game.forces.player})
		newArtyI.health = event.created_entity.health
		newArty.health = event.created_entity.health
		newArty.destructible = false
		event.created_entity.destroy()
		newArty.operable = false
		newArtyI.operable = true
		if global.listArty == nil then
			global.listArty = {}
			script.on_event(defines.events.on_tick, ticker)
		end
		table.insert(global.listArty, {newArty,newArtyI,0})
	end
end
--[[
function destroyArty(event)
	if event.entity.name == "sb-artillery-mk1i" or event.entity.name =="sb-artillery-mk2i" or event.entity.name =="sb-artillery-mk3i" or event.entity.name =="sb-artillery-mk4i" then
		for k,v in pairs(global.listArty) do
			if v[1].valid ==false or v[2].valid == false then
				if v[1].valid then
					v[1].destroy()
				end
				if v[2].valid then
					v[2].destroy()
				end
				table.remove(global.listArty, k)
				if #global.listArty == 0 then
					global.listArty = nil
				end
			end
		end
	end
end
]]
function addTarget(event)
	if isTarget(event.entity.name) then
		if global.listTarget == nil then
			global.listTarget = {}
		end
		table.insert(global.listTarget, event.entity)
	end
end
script.on_event(defines.events.on_built_entity, builtEntity)
script.on_event(defines.events.on_robot_built_entity, builtEntity)
script.on_event(defines.events.on_trigger_created_entity, addTarget)
--script.onevent(defines.events.onpreplayermineditem, destroyArty)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
DaysofKnight
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Mar 02, 2016 12:01 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by DaysofKnight »

Can you update the mod so it's not dependent on Dytech? DyTech is broken as f@#K, and makes it impossible to play with this mod because every time I close a game DyTech's terrible code messes up the loading, making me unable to load any game with it. Would love to play with long ranged rockets and artillery, but it's dependency on DyTech is kind of it's downfall
Ringkeeper
Fast Inserter
Fast Inserter
Posts: 141
Joined: Wed Feb 03, 2016 7:16 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by Ringkeeper »

the mod does not depend on Dytech, you can use it without Dytech just fine. It only detects and uses Dytech if it is installed.


But i have one little problem.... the Rocket Launcher does nothing. It has Ammo but does not fire at all. If the range of 200 is correct, there should be enough targets (at least the artillery next to it fires fine).
DaysofKnight
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Mar 02, 2016 12:01 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by DaysofKnight »

If DyTech isn't a dependency, then it shouldn't be listed as one. That tells me when I see it, that it's required to run the mod
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by daniel34 »

DaysofKnight wrote:If DyTech isn't a dependency, then it shouldn't be listed as one. That tells me when I see it, that it's required to run the mod
DyTech is an optional dependency, as seen from the ? in front of the name.
Image
This means that it is not required to run the mod, but if you have it also installed it will integrate with it. Although it probably would make more sense if it wasn't colored red then, but yellow or orange.
quick links: log file | graphical issues | wiki
DaysofKnight
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Mar 02, 2016 12:01 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by DaysofKnight »

daniel34 wrote:DyTech is an optional dependency, as seen from the ? in front of the name.
Image
This means that it is not required to run the mod, but if you have it also installed it will integrate with it. Although it probably would make more sense if it wasn't colored red then, but yellow or orange.
Yeah, most (if not all) games that can use mods mark them as red if they're required and/or not there. I would agree that a yellow would be perfect (If possible to change that color. Probably not, I don't know). Yellow wouldn't tell me that I *need* the mod, but I can have it if I want to.
babbos
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Feb 29, 2016 12:59 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by babbos »

After I installed 1.0.5 i got this error using factorio 0.12.25

Image
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by daniel34 »

babbos wrote:After I installed 1.0.5 i got this error using factorio 0.12.25

Image
See here for an unofficial update that works with 0.12.11+ (including 0.12.25):
[Mod Compilation 0.12.11+]Unofficially updated mods 22.10.15
quick links: log file | graphical issues | wiki
DeadManWalking
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 16, 2016 7:19 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by DeadManWalking »

Hi, I've got an error using the RAPID FIRE ARTILLERY ammo: "Unknown Key:"item-name.he-rocket-mk3". It affects the smart loaders not recognizing the object. Anybody fixed this yet?

Thanks,
Dead
Attachments
Screen shot of error in player inventory
Screen shot of error in player inventory
20160316123903_1.jpg (708.79 KiB) Viewed 9608 times
DeadManWalking
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 16, 2016 7:19 pm
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by DeadManWalking »

Ok I got it. There is a duplicate entry for shell mk3 in projectiles-entity.lua. Change the section starting on line 128 from dup of shell mk3 to he rocket mk3. Here ya go Facto's:

Corrected (partially) projectiles-entity.lua

Code: Select all


  -- He Shell MK3
  {
    type = "projectile",
    name = "sb-heshell-mk3",
    flags = {"not-on-map"},
    acceleration = SWVariables.heshell_mk3.acceleration,
	action =
	{
		{
			type = "area",
			perimeter = SWVariables.heshell_mk3.perimeter,
			action_delivery =
			{
				type = "instant",
				target_effects =
				{
					SWVariables.heshell_mk3.damage,
					{
					type = "create-entity",
					entity_name = "explosion"
					}
				}
			}
		},
		{
			type = "direct",
			action_delivery = 
			{
				type = "instant",
				target_effects =
				{
					{
					type = "create-entity",
					entity_name = "small-scorchmark",
					check_buildability = true
					},
					{
					type = "create-entity",
					entity_name = "explosion-gunshot"
					}
				}
			}
		}
	},
	light = {intensity = 0.5, size = 6},
    animation =
    {
        filename = "__SupremeWarfare__/graphics/projectiles/he-shell-mk3.png",
        priority = "extra-high",
        width = 9,
        height = 30,
        frame_count = 1
    },
    shadow =
    {
        filename = "__SupremeWarfare__/graphics/projectiles/he-shell-mk3-shadow.png",
        priority = "extra-high",
        width = 9,
        height = 30,
        frame_count = 1
    }
  },
  -- He Rocket MK3
  {
    type = "projectile",
    name = "he-rocket-mk3",
    flags = {"not-on-map"},
    acceleration = SWVariables.herocket_mk3.acceleration,
	action =
	{
		{
			type = "area",
			perimeter = SWVariables.herocket_mk3.perimeter,
			action_delivery =
			{
				type = "instant",
				target_effects =
				{
					SWVariables.herocket_mk3.damage,
					{
					type = "create-entity",
					entity_name = "explosion"
					}
				}
			}
		},
		{
			type = "direct",
			action_delivery = 
			{
				type = "instant",
				target_effects =
				{
					{
					type = "create-entity",
					entity_name = "small-scorchmark",
					check_buildability = true
					},
					{
					type = "create-entity",
					entity_name = "explosion-gunshot"
					}
				}
			}
		}
	},
	light = {intensity = 0.5, size = 6},
    animation =
    {
        filename = "__SupremeWarfare__/graphics/projectiles/he-shell-mk3.png",
        priority = "extra-high",
        width = 9,
        height = 30,
        frame_count = 1
    },
    shadow =
    {
        filename = "__SupremeWarfare__/graphics/projectiles/he-shell-mk3-shadow.png",
        priority = "extra-high",
        width = 9,
        height = 30,
        frame_count = 1
    }
  },
  -- HE Shell MK4
Related projectiles-item.lua

Code: Select all

...

	-- HE Shell MK3
	{
		type = "ammo",
		name = "sb-heshell-mk3",
		icon = "__SupremeWarfare__/graphics/projectiles/icon/he-shell-mk3.png",
		flags = { "goes-to-main-inventory" },
		ammo_type =
		{
			category = "he-shell-mk3",
			target_type = "direction",
			action =
			{
				{
					type = "direct",
					action_delivery =
					{
						type = "projectile",
						projectile = "muzzle-flash",
						starting_speed = 0.01,
						direction_deviation = 0.0,
						range_deviation = 0.0,
						max_range = .50		
					}
				},
				{
					type = "direct",
					action_delivery =
					{				
						type = "projectile",
						projectile = "sb-heshell-mk3",
						starting_speed = 1,
						direction_deviation = 0.8,
						range_deviation = 0.8,
						max_range = 200
					}
				}
			}
		},
		subgroup = "sb-shells",
		order = "a[mk3]",
		stack_size = SWVariables.heshell_mk3.stack_size
	},
	-- HE Rocket MK3
	{
		type = "ammo",
		name = "he-rocket-mk3",
		icon = "__SupremeWarfare__/graphics/projectiles/icon/he-shell-mk3.png",
		flags = { "goes-to-main-inventory" },
		ammo_type =
		{
			category = "he-rocket-mk3",
			target_type = "direction",
			action =
			{
				{
					type = "direct",
					action_delivery =
					{
						type = "projectile",
						projectile = "muzzle-flash",
						starting_speed = 0.01,
						direction_deviation = 0.0,
						range_deviation = 0.0,
						max_range = .50		
					}
				},
				{
					type = "direct",
					action_delivery =
					{				
						type = "projectile",
						projectile = "he-rocket-mk3",
						starting_speed = 1,
						direction_deviation = 0.8,
						range_deviation = 0.8,
						max_range = 200
					}
				}
			}
		},
		subgroup = "sb-shells",
		order = "a[mk3]",
		stack_size = SWVariables.herocket_mk3.stack_size
	},
		-- HE Shell MK4
	{
		type = "ammo",
		name = "sb-heshell-mk4",
		icon = "__SupremeWarfare__/graphics/projectiles/icon/he-shell-mk4.png",
		flags = { "goes-to-main-inventory" },
		ammo_type =
		{
			category = "he-shell-mk4",
			target_type = "direction",
			action =
			{
				{
					type = "direct",
					action_delivery =
					{
						type = "projectile",
						projectile = "muzzle-flash",
						starting_speed = 0.01,
						direction_deviation = 0.0,
						range_deviation = 0.0,
						max_range = .50		
					}
				},
				{
					type = "direct",
					action_delivery =
					{				
						type = "projectile",
						projectile = "sb-heshell-mk4",
						starting_speed = 1,
						direction_deviation = 0.8,
						range_deviation = 0.8,
						max_range = 2000
					}
				}
			}
		},
		subgroup = "sb-shells",
		order = "a[mk4]",
		stack_size = SWVariables.heshell_mk4.stack_size
	},
	--Capsule
...
Still a work in progress. Any input appreciated. Thanks!
fregate84
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sun Jun 22, 2014 10:56 am
Contact:

Re: [MOD 0.12.1] Supreme Warfare - 1.0.5

Post by fregate84 »

A have a problem with this mod. It's very nice, but it cause jerk on my game.

I have only about 14 Rapid Fire Artillery.

trace of lag :
ScreenShot001.jpg
ScreenShot001.jpg (16.16 KiB) Viewed 9504 times
ScreenShot002.jpg
ScreenShot002.jpg (10.81 KiB) Viewed 9504 times
Post Reply

Return to “Mods”