Page 1 of 1

[0.11.x](2.0.0) Start Out Planning

Posted: Wed Dec 24, 2014 3:06 am
by AlyxDeLunar
A very simple mod.
Do you like using blueprints? I sure have started using them a lot, but it sure does take awhile to get them. This mod provides you with 1 blueprint and deconstruction planner, along with Automated Construction researched when you start a new game.
This way you can utilize blueprints you have already made to help visualize layouts (with blueprint managing mods such as Foreman), but not have the mid-game benefits of having construction bots build things for you.

Contains an optional dependency to Hardcorio, as I do love playing with it, but it deletes your standard inventory on startup, which included the stuff I added at game start.

The mod is pretty simple, these three lines of code typed into the game will accomplish the exact same thing :)

Code: Select all

/c game.player.force.technologies["automated-construction"].researched = true
/c game.player.insert{name="blueprint",count=1}
/c game.player.insert{name="deconstruction-planner", count=1}
Example:
I may not be able to build any of this...but boy am I ready to
Changelog:
2.0.0: Second go, updated to work in existing saves, and I believe will work in multiplayer as well.
1.0.0: First go of the mod, works in new games

Re: [0.11.x](1.0.0) Start Out Planning

Posted: Wed Dec 24, 2014 1:54 pm
by L0771
I like this idea, and i want to make and upload all these designs with Foreman.

Re: [0.11.x](1.0.0) Start Out Planning

Posted: Wed Dec 24, 2014 8:15 pm
by AlyxDeLunar
That is a pretty good idea, that was part of the motivation for me to have blueprints early. We should have a list somewhere with Foreman strings...hmmm...to the wiki!

Re: [0.11.x](1.0.0) Start Out Planning

Posted: Fri Dec 26, 2014 2:59 am
by L0771
I have a little problem with this... All designs have more than 100000 characters, i paste the code and you edits this for wiki (i don't know use wiki and if you know, is unnecessary learn this)

EDIT: better by PM

Re: [0.11.x](2.0.0) Start Out Planning

Posted: Sun Dec 28, 2014 8:25 pm
by Avous
I really like the idea. I'm unsure if the source code is available as I haven't looked into it but instead of giving the player an item couldn't you just bind it to a hotkey and make your own version by butchering and pasting from the blueprint/deconstruction planner? It would help if you could also pause the game so you can work it out without getting ambushed.

If the source/decompliler is available you could again look into how the research pane/options menu pauses the game.

Re: [0.11.x](2.0.0) Start Out Planning

Posted: Wed Jul 15, 2015 11:30 am
by Zequez
Great mod! I was looking for something like this! Now we need a personal roboport from the start too! :P

Re: [0.11.x](2.0.0) Start Out Planning

Posted: Tue Aug 11, 2015 7:06 am
by BurnHard
Great Mod, something I always wanted to see in the original game (Alongside with some sort of blueprint catalogue, where i can store blueprints account-wide and not bound to savegames ;))

Re: [0.11.x](2.0.0) Start Out Planning

Posted: Sat Apr 30, 2016 5:21 am
by Aru
Hi, I edited this to work in 12.30. New contents of control.lua:

Code: Select all

require "defines"

Alyx_StartOutPlanning = function(player)
	player.force.technologies["automated-construction"].researched = true
	player.insert{name="blueprint",count=1}
	player.insert{name="deconstruction-planner", count=1}
	player.print("Mod - Start Out Planning, sucessfully loaded")

end

script.on_init(function()
	
	for k,v in pairs(game.players) do
		if v ~= nil then
			Alyx_StartOutPlanning(v)
		end
	end
end)

script.on_event(defines.events.on_player_created, function(event)
	Alyx_StartOutPlanning(game.get_player(game.player.index))
end)
But, this might not be a good idea for multiplayer, since the version number is unchanged, and I'm not bold enough to declare a new version. I don't know if this even works for anyone but me. (If it does, it would be nice to let me know :3)