[MOD 0.12.x] Spawn Gear

Topics and discussion about specific mods
Post Reply
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

[MOD 0.12.x] Spawn Gear

Post by Klonan »

Type: Mod

Name: Spawn Gear

Description: Spawns/Respawns the character with a set of equipment

Version: 0.1.5

Release:2015/09/13

Tested-With-Factorio-Version: 0.12.30

Category: Helper

Tags: gear, armor, weapons
Spawn_Gear_0.1.5.zip
--Fixed confirg option 5
(2.29 KiB) Downloaded 367 times




So basically it sucks in a MP game when you die and respawn... and you start with nothing

This mod gives people stuff when they spawn/respawn.

Theres a config with a few option, but if you really want to change things, open up the control (all players must use the same item lists)

If you want, you don't have to load it as a mod, but just move the config and contril lua to a savegame.zip and it will work just fine.

For MP servers, exactly the same, move control and config into the savegame zip, that way people wont need to download the mod.

Video Demonstration on Youtube


Let me know your thoughts, feedback, bugs etc.
Old releases
Last edited by Klonan on Tue Dec 29, 2015 10:34 am, edited 4 times in total.

Peter34
Smart Inserter
Smart Inserter
Posts: 1100
Joined: Mon Nov 10, 2014 12:44 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Peter34 »

Well, it's nice when mods provide more information upfront, so that I can know stuff without having to actually download and use the mod first:

Exactly what gear is provided, by default? Does this change, to give better gear upon respawn-after-death? If yes, what criteria are used to determine what should be given?

User avatar
Narc
Filter Inserter
Filter Inserter
Posts: 278
Joined: Mon Feb 11, 2013 7:25 am
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Narc »

Thank you. I'd been meaning to write a starting inventory mod, but now I don't have to!

Always love your mods, Klonan.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Klonan »

Peter34 wrote:Well, it's nice when mods provide more information upfront, so that I can know stuff without having to actually download and use the mod first:

Exactly what gear is provided, by default? Does this change, to give better gear upon respawn-after-death? If yes, what criteria are used to determine what should be given?
Good point!

I have made a video showing the mod here:


Video Demonstration on Youtube
Narc wrote:Thank you. I'd been meaning to write a starting inventory mod, but now I don't have to!

Always love your mods, Klonan.
Glad to be of service! Thanks for the kind words :D

Peter34
Smart Inserter
Smart Inserter
Posts: 1100
Joined: Mon Nov 10, 2014 12:44 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Peter34 »

I honestly don't like your mod as it is now.

I think part of the gameplay experience is that you should suffer some loss upon dying. That's also why I'm thinking about playing in MP mode even when I play alone, because then death means re-spawning nekkid at 0,0 coords, instead of bring prompted to revert to the most recent auto-save (or manual save).

But I think there's a way you can improve your mod, making it feel like an intrinsic element of the gameplay experience instead of looking (and arguably being) cheaty.

This is that you add new special tech inventions to the game, whose purpose is only to enable the players to not respawn naked, but instead get to re-spawn with the second-best tier of craftable gear, if the relevant tech has been invented.

Here's my proposed outline:

Default mod behaviour: You re-spawn stark raving nekkid. The mod initially has no effect.

Once you have achieved both the ability to craft Iron Armour and the SMG, you can choose to research a a tech called ReSpawn Gear 1, costing someting like 30 Red/20s. If you have this tech, then you respawn with a Pistol and 5 normal ammo, instead of being naked.

Once you have achieved the abilityt to craft Heavy Armour, and provided you have ReSpawn Gear 1, you can choose to research Respawn Gear 2. 60R/60G/30s probably. If you have this tech, then you respawn with an SMG, 10 normal ammo and a set of Iron Armor.

ReSpawn Gear 3 requires being able to craft Modular Armor and Armour-Piercing Ammo. If you have this tech, then you respawn with an SMG, 15 AP Ammo and a set of Heavy Armour.

ReSpawn Gear 4 requires having ReSpawn Gear 3 and also being able to craft Power Armour 1. If you have this tech, then you respawn with an SMG, 30 AP Ammo, a suit of Modular Armor MkI plus a very few modules.

ReSpawn Gear 5 requires ReSpawn Gear 4 and the ability to craft Power Armor 2. If you have this tech, then you respawn with an SMG, 60 AP Ammo, a suit of Power Armor MkI plus a bunch of modules (several more than for ReSpawn Gear 4).

I think it should stop there.

I don't think there should be a ReSpawn Gear 6 tech to invent. Because dying should always result in some degree of setback, even if not necessarily always resulting in being set all the way back to stark raving nekkidness.

SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by SirRichie »

Peter34 wrote:I honestly don't like your mod as it is now.
Good thing it is a mod and can be deactivated...

User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by ZombieMooose »

I get this error whenever I try and start a new game

https://www.dropbox.com/s/h162gv5dnt4e8 ... r.png?dl=0

it only shows up when bob'smodsstart is set to true
"men will literally learn everything about ancient Rome instead of going to therapy"

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Klonan »

diongham wrote:I get this error whenever I try and start a new game

https://www.dropbox.com/s/h162gv5dnt4e8 ... r.png?dl=0

it only shows up when bob'smodsstart is set to true
You must be using a custom verison,
The version i have published does not have a 'bobsmodstart', and it ends after line 136.
I suggest contacting whomever wrote that version for a fix

User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by ZombieMooose »

Klonan wrote:
diongham wrote:I get this error whenever I try and start a new game

https://www.dropbox.com/s/h162gv5dnt4e8 ... r.png?dl=0

it only shows up when bob'smodsstart is set to true
You must be using a custom verison,
The version i have published does not have a 'bobsmodstart', and it ends after line 136.
I suggest contacting whomever wrote that version for a fix

oops I read it wrong, it's botstart

it seems to be a problem with the technology you get from it
"men will literally learn everything about ancient Rome instead of going to therapy"

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Klonan »

diongham wrote:
Klonan wrote:
diongham wrote:I get this error whenever I try and start a new game

https://www.dropbox.com/s/h162gv5dnt4e8 ... r.png?dl=0

it only shows up when bob'smodsstart is set to true
You must be using a custom verison,
The version i have published does not have a 'bobsmodstart', and it ends after line 136.
I suggest contacting whomever wrote that version for a fix

oops I read it wrong, it's botstart

it seems to be a problem with the technology you get from it
This is an error in the research queue mod,
My mod simple turns a research on,
Which causes the research queue to fire its function,
however this fails because the global.researchQ isn't defined before my init function

This is a easy fix for the researchQ mod
I made a edited version of the mod that shouldn't error out:
research-queue_1.2.4.zip
(49.49 KiB) Downloaded 129 times

User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by ZombieMooose »

Thanks a lot Klonan, and again sorry for the mix up with my original post.
"men will literally learn everything about ancient Rome instead of going to therapy"

User avatar
bigyihsuan
Filter Inserter
Filter Inserter
Posts: 299
Joined: Thu Jan 01, 2015 12:57 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by bigyihsuan »

0.12.30: Mod does not work when trying to make a world. Says that player is a null value in control.lua line 125 (I have the config give me Power Armor Mk. 2).

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Klonan »

bigyihsuan wrote:0.12.30: Mod does not work when trying to make a world. Says that player is a null value in control.lua line 125 (I have the config give me Power Armor Mk. 2).
What version of the mod are you running?

User avatar
bigyihsuan
Filter Inserter
Filter Inserter
Posts: 299
Joined: Thu Jan 01, 2015 12:57 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by bigyihsuan »

Klonan wrote:
bigyihsuan wrote:0.12.30: Mod does not work when trying to make a world. Says that player is a null value in control.lua line 125 (I have the config give me Power Armor Mk. 2).
What version of the mod are you running?
The latest, 0.1.4.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by Klonan »

bigyihsuan wrote:
Klonan wrote:
bigyihsuan wrote:0.12.30: Mod does not work when trying to make a world. Says that player is a null value in control.lua line 125 (I have the config give me Power Armor Mk. 2).
What version of the mod are you running?
The latest, 0.1.4.
Ok fixed, new download in OP

User avatar
bigyihsuan
Filter Inserter
Filter Inserter
Posts: 299
Joined: Thu Jan 01, 2015 12:57 pm
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by bigyihsuan »

Klonan wrote:
bigyihsuan wrote:
Klonan wrote:
bigyihsuan wrote:0.12.30: Mod does not work when trying to make a world. Says that player is a null value in control.lua line 125 (I have the config give me Power Armor Mk. 2).
What version of the mod are you running?
The latest, 0.1.4.
Ok fixed, new download in OP
0.1.5, there seems to be an incompatability with Research Queue 1.2.4:

Code: Select all

Unknown key:"Error while running the on_init: __Spawn_Gear__/control.lua:13: Error while running the event handler: __research-queue__/control.lua:141: attempt to index field 'researchQ' (a nil value)"
EDIT: Disregard that. 1.2.5 of RQ fixes this.

speedy45
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Fri Aug 08, 2014 11:48 am
Contact:

Re: [MOD 0.12.x] Spawn Gear

Post by speedy45 »

is this mod going to updated to 0.15?

Post Reply

Return to “Mods”