[MOD 0.8.x] Blueprints V0.6.4 OBSOLETE

Topics and discussion about specific mods
Phantasm
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Sun Jul 07, 2013 1:48 pm
Contact:

Re: [MOD 0.5.x] Blueprints V0.5.2

Post by Phantasm »

drs9999 wrote:The devs decided to disable IO functionality (for good reasons).
Sure there should be no generic IO functionality. But there could be carefully handled global storage for each mod. Only that mod could access it - no sharing between different mods. Just like mods can save to savagame, there could be similar storage but not tied to savegame.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: [MOD 0.5.x] Blueprints V0.5.2

Post by ficolas »

Phantasm wrote:
drs9999 wrote:The devs decided to disable IO functionality (for good reasons).
Sure there should be no generic IO functionality. But there could be carefully handled global storage for each mod. Only that mod could access it - no sharing between different mods. Just like mods can save to savagame, there could be similar storage but not tied to savegame.
or accessing the player-data.json
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.5.x] Blueprints V0.5.2

Post by drs9999 »

Because I am currently working on the update, any suggestions, wishes?
Besides blueprint sharing between savegames and (re)naming blueprints, because first akaik is not possible and second is allready implemented in the next release ;)

Also I decided to remove the entity-upgrade functionality, IMO the benefit : effort -ratio is not that great.
Anyway if you think that this is an absolutly needed feature then let me know
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.5.x] Blueprints V0.5.2

Post by drs9999 »

I just uploaded an experimental release for factorio 0.6.1!

Here are the changes in short:
- (re)naming blueprints
- overlay for better visibility
- removed upgrademode
- added utilitymarker that combines the clear functions and the following functions
- added minefield feature ( automatically create/maintain a minefield, if supported with mines)
- added miningsite feature ( very slow way to mine ores/stone, but needs no electricity, needs at least 1 nanobot in the inv to work; speed can be increased by placing more nanobots in the inv)

Note: Minefieldds can be removed by destroying ALL 4 corners; Miningsites are removed automatically if depleated.
0.6.0.png
0.6.0.png (1.06 MiB) Viewed 8609 times
gr0mpel
Fast Inserter
Fast Inserter
Posts: 110
Joined: Fri May 03, 2013 6:23 pm
Contact:

Re: [MOD 0.6.1] Blueprints V0.6.0

Post by gr0mpel »

was really looking forward to using your mod when suddenly:

Image
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.6.1] Blueprints V0.6.0

Post by drs9999 »

hmm. I am not sure what went wrong there.

Are you able to reproduce it? If yes, how?
Also if you could upload a savefile might help as well.
gr0mpel
Fast Inserter
Fast Inserter
Posts: 110
Joined: Fri May 03, 2013 6:23 pm
Contact:

Re: [MOD 0.6.1] Blueprints V0.6.0

Post by gr0mpel »

reproducing:
it happens all the time when i place the 2nd copy marker.

savegame: first i try reinstalling/overwriting the mod files since i changed the recipes to get the functionality early on ;)

edit: didnt work after overwriting the existing files

edit: doenst work on any savegame, so i uploaded the smallest one

krtlwnpf.7z
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.6.1] Blueprints V0.6.0

Post by drs9999 »

Ok. I am not completly sure what is the reason for this.

Did you start the game with a previous version of the mod?
What files do you modified?

As a quick fix you can go into the savefile and delete the "script.dat", this will reset the script state ( so the enemyattackcounter as well),
the game seems working again after doing it, but of course this is not an appropriate solution.
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.6.4] Blueprints V0.6.1

Post by drs9999 »

I just uploaded mod-version 0.6.1 and overworked the initial post.

Enjoy!
gr0mpel
Fast Inserter
Fast Inserter
Posts: 110
Joined: Fri May 03, 2013 6:23 pm
Contact:

Re: [MOD 0.6.1] Blueprints V0.6.0

Post by gr0mpel »

drs9999 wrote:Ok. I am not completly sure what is the reason for this.

Did you start the game with a previous version of the mod?
What files do you modified?

As a quick fix you can go into the savefile and delete the "script.dat", this will reset the script state ( so the enemyattackcounter as well),
the game seems working again after doing it, but of course this is not an appropriate solution.
do didnt start it with an older version.
i modified the technology blueprints.dat and removed the sience pack 3 so i can use it far earlier in the game.

i will try it and let you know if it works :)

edit:
seems to work! AWESOME :D

edit2:
errr ok i have to delete it every time before i want to play? thats..unfortunate :D
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.6.4] Blueprints V0.6.1

Post by drs9999 »

gr0mpel wrote:errr ok i have to delete it every time before i want to play? thats..unfortunate :D
Ähm what do you mean?!

If you modify any "prototype"-files the changes will not affect savegames. So e.g if you want to reduce the research costs, you can do that, but you have to start a new game to see the changes.
User avatar
zer0t3ch
Fast Inserter
Fast Inserter
Posts: 118
Joined: Fri Jul 26, 2013 6:06 am
Contact:

Re: [MOD 0.6.4] Blueprints V0.6.1

Post by zer0t3ch »

drs9999 wrote:
gr0mpel wrote:errr ok i have to delete it every time before i want to play? thats..unfortunate :D
Ähm what do you mean?!

If you modify any "prototype"-files the changes will not affect savegames. So e.g if you want to reduce the research costs, you can do that, but you have to start a new game to see the changes.
Actually, I think you can force updates on the prototypes for existing saves.
"F**k thy hater"
-George Watsky

Feel free to contact me!
Skype: Zer0t3ch
Razer Comms: Zer0t3ch
Email: zer0t3ch@live.com

Image
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [MOD 0.6.4] Blueprints V0.6.1

Post by kovarex »

As example I put here the migration script (can be found in data/base/migrations/2013-03-11_Factorio_0..3.0.lua)

Code: Select all

-- The lua interface changed in many ways, and new version of scripts needs to be loaded.
game.reloadscript()

if game.isdemo() then
  return
end

local forcelist = game.forces
for index, item in pairs(forcelist) do
  local recipes = item.recipes
  recipes["wall"].enable()
  recipes["wall"].reload()
end
The wall recipe wasn't enabled, and it was changed.
To affect existing games, we enabled the recipe for every force, and reloaded the recipe from the prototype.
Note, that mod can have it's own migrations as well.
The similar will work for technologies and there is also easier way to do it:

Code: Select all

game.player.force.resetrecipes()
game.player.force.resettechnologies()
I hope it helps.
User avatar
zer0t3ch
Fast Inserter
Fast Inserter
Posts: 118
Joined: Fri Jul 26, 2013 6:06 am
Contact:

Re: [MOD 0.6.4] Blueprints V0.6.1

Post by zer0t3ch »

kovarex wrote:As example I put here the migration script (can be found in data/base/migrations/2013-03-11_Factorio_0..3.0.lua)

Code: Select all

-- The lua interface changed in many ways, and new version of scripts needs to be loaded.
game.reloadscript()

if game.isdemo() then
  return
end

local forcelist = game.forces
for index, item in pairs(forcelist) do
  local recipes = item.recipes
  recipes["wall"].enable()
  recipes["wall"].reload()
end
The wall recipe wasn't enabled, and it was changed.
To affect existing games, we enabled the recipe for every force, and reloaded the recipe from the prototype.
Note, that mod can have it's own migrations as well.
The similar will work for technologies and there is also easier way to do it:

Code: Select all

game.player.force.resetrecipes()
game.player.force.resettechnologies()
I hope it helps.
+1 Very useful!
"F**k thy hater"
-George Watsky

Feel free to contact me!
Skype: Zer0t3ch
Razer Comms: Zer0t3ch
Email: zer0t3ch@live.com

Image
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.7.1] Blueprints V0.6.2

Post by drs9999 »

The mod was updated to make it compatible with Factorip 0.6.2.

Enjoy!
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: [MOD 0.7.1] Blueprints V0.6.2

Post by Nirahiel »

drs9999 wrote:The mod was updated to make it compatible with Factorip 0.6.2.

Enjoy!
What ?
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.7.1] Blueprints V0.6.2

Post by drs9999 »

The mod was updated to make it compatible with Factorip 0.7.1 :D
omagaalpha
Inserter
Inserter
Posts: 23
Joined: Mon Apr 29, 2013 4:49 pm
Contact:

Re: [MOD 0.7.x] Blueprints V0.6.2

Post by omagaalpha »

Your Umarker don't know how to handle when mining iron-ore and one iron-ore deposit goes to 0.
What said was:

Code: Select all

scripts/umarker.lua:296: Resource amount has to be greater than 0.
Running Factorio V 7.5
Blueprints V 0.6.2
My work around problem
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: [MOD 0.7.x] Blueprints V0.6.2

Post by drs9999 »

Guess what! I am stupid :D I already fixed it but did not uploaded it...

If you are intrested here are the related lines:

Code: Select all

if resource.amount - minedItems <= 0 then
   resource.destroy()
else
   resource.amount = resource.amount - minedItems
   glob.blueprints.miningsites[currentMiningsite][i].insert{name = resource.name, count = minedItems}
end
I used the fixed version in a 20+ hours freeplay and did not encounter any gamecrashing bugs.

Thanks for reminding me ;)
omagaalpha
Inserter
Inserter
Posts: 23
Joined: Mon Apr 29, 2013 4:49 pm
Contact:

Re: [MOD 0.7.x] Blueprints V0.6.3

Post by omagaalpha »

Your Weclome , though it was fun try fix it myself too :P .
Post Reply

Return to “Mods”