[MOD 0.10.x] ForceShield v0.1.12

Topics and discussion about specific mods
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

[MOD 0.10.x] ForceShield v0.1.12

Post by darius456 »

Image

Hello everybody.

I wish to introduce You my 3rd mod. Force Shield mod is most advanced mod I have made so far. I'm writing this because there might be some bugs that I couldn't catch. This mod add three types of new building, it's Force Shield Generator MK1/2/3. Mod also add five types of force shield. Each shield with different resistance.

Each Force Shield Generator with different speed of generating and different max amount of shield.
Max shield is 250 for MK1, 375 for MK2 and 500 for MK3.
Shield generation speed (crafting_speed): 0.5 0.75 1.25 (MK1, Mk2, MK3)

After you build Force shield generator right click on It to choose force shield type.
Image

There is a GUI for configuring the generator. Hover mouse over the generator for about 1-2 seconds and menu will appear:
Image

Shield Generator MK1 to MK3:
ImageImageImage

Force Shield MK1 to MK5: I know its look like wall... you can find my own graphic in ForceShield\graphics\entity\wall_blue_2 just try my one by renaming folder.
Image Image Image Image Image

Shields are free to build... bud consumes energy when are building in generator... just like force shield generator should.
You can use speed or effectivity module. Except normal benefits, each module increase max power of generator. Each module lvl1 add 5% bonus, lvl2 add 10% bonus and lvl3 add 15% bonus, but max bonus is 30%.

If you have any questions just ask I will answer.
I hope You will enjoy.
CHANGELOG
Attachments
ForceShield v0.1.12.part1.rar
(878.91 KiB) Downloaded 1118 times
ForceShield v0.1.12.part2.rar
(474.69 KiB) Downloaded 1005 times
Last edited by darius456 on Sun Jun 22, 2014 5:07 pm, edited 29 times in total.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
sliderpro
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Feb 03, 2014 7:30 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.0.1

Post by sliderpro »

I didn't get it at all..better check it out personaly :D
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.0.1

Post by ficolas »

For the chests, use entity.destructable=false and entity.minable=false.
Also, make the forcefields use a different crafting category so you cant craft walls by hand.

And I cant make it work... I placed the forcefield, gave it power, made it start crafting and then I placed 8 items in each chest, but it doesnt place forcefield walls...
Also your mod haves no locale files so the name of the items is Unknown key "entity-nameblabla"

And instead of using game.findentities to find the chests, you can just when you create them, use chest1=game.createentity{name="iron-chest", position=""}
I would also use something instead the chests so it looks cooler, or use a GUI to define how big it is.
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.0.1

Post by darius456 »

ficolas wrote:For the chests, use entity.destructable=false and entity.minable=false.
Also, make the forcefields use a different crafting category so you cant craft walls by hand.

And I cant make it work... I placed the forcefield, gave it power, made it start crafting and then I placed 8 items in each chest, but it doesnt place forcefield walls...
Also your mod haves no locale files so the name of the items is Unknown key "entity-nameblabla"

And instead of using game.findentities to find the chests, you can just when you create them, use chest1=game.createentity{name="iron-chest", position=""}
I would also use something instead the chests so it looks cooler, or use a GUI to define how big it is.
Thank You for suggestions.

To make it work you have to do something more then power it up and place item I chest.... you need to set direction, by placing one medium power pole next to generator beside chest.
I will upload a film to explain. MOVIE

"chest1=game.createentity{name="iron-chest", position=""}" it doesn't work for me, but I will try once again :)

Chest are only temporary solution. W will create gui, but I need to learn and experiment. I think version 0.0.3 will have gui instead of chest :)
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.0

Post by darius456 »

I have just upload a new version of this mod, you can download it in first post.
I hope you will like it.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.1

Post by qi1989223 »

A error with this mod

when I dismantle the generator withs GUI .then it is :x the error
also when I destroy the generator , there it is :x the error

and another problem
those worms looks like can’t attack the shieldwall

ofcuse I like this MOD... :D
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.1

Post by darius456 »

qi1989223 wrote:A error with this mod

when I dismantle the generator withs GUI .then it is :x the error
also when I destroy the generator , there it is :x the error

and another problem
those worms looks like can’t attack the shieldwall

ofcuse I like this MOD... :D
Please show me printscreen. I will try to fix it.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
NickehBoi
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue May 20, 2014 1:56 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.1

Post by NickehBoi »

Anyone know why when I destroy my Mk 3 Forcefield Generator, the game displays some error then returns me to the main menu? I'd go in and try again and it'd keep giving the same error as something was a nil error, if anyone is willing to help I'll type out the rest of the error, it's pretty long.

EDIT: I just realized the post two posts above mine, that is my exact error! I will type my error out just incase-

Nevermind, OF COURSE when I post this, I can remove it fine...not sure what I did but I'll respond back soon if it happens again. All I've done since then was let it charge fully to 650, waited a few minitues then came back and tried to remove it again and it worked...before I did that I also made sure all Forcefield Walls where taken down by the Forcefield Generator itself before removing it and removing all the items inside ((items as in modules, I had 4 Speed 3 Modules in there at the time)(as you can see I was really trying to figure out what was causing this error)) before removing the Forcefield Generator. However I would still like your thoughts on what it could have been if that's alright, incase it happens again.
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.1

Post by qi1989223 »

darius456 wrote:
qi1989223 wrote:A error with this mod

when I dismantle the generator withs GUI .then it is :x the error
also when I destroy the generator , there it is :x the error

and another problem
those worms looks like can’t attack the shieldwall

ofcuse I like this MOD... :D
Please show me printscreen. I will try to fix it.

:D GOOD JOB :D
destroy the generator
20140520230235.jpg
20140520230235.jpg (658.78 KiB) Viewed 18650 times
dismantle the generator withs GUI
20140520230624.jpg
20140520230624.jpg (478.39 KiB) Viewed 18650 times
when I kill the worm
20140520231040.jpg
20140520231040.jpg (641.16 KiB) Viewed 18650 times
IF play the game in the other language ,then there is diffent nil error
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.2

Post by darius456 »

Dear qi1989223 and NickehBoi I caught error when Force shield generator menu was active and you destroy or mined force shield generator.
I have got this error:
Image

So I uploaded a new version that fix it. •Fixed bug that occur when you destroy or mined forceshield generator when its menu was active - right now menu will be closed.
But very important thing is that when this error occur in my game there was an info about line of code that makes this error, in my error you can see line 1263, but in Yours error I don't see any message that include line number... I don't see any message.

There was a error in event handler, but my mod don't create any event handler, and don't change mechanics of event handler, because its hard coded (C++) in game, I only use it. I do not understand error you have experienced, may be someone smarter knows the answer.
those worms looks like can’t attack the shieldwall
I don't know what to say, I have to do some investigation, because force shield is just a WALL, with little modified graphics and resistances, if you could share with me your save game it might help me to find the answer.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.2

Post by qi1989223 »

:D GOOD JOB

line number..... :cry:

I'm sorry for that .It seems like different system language induced

This will be right(when I destroy it)
20140521015546.jpg
20140521015546.jpg (554.47 KiB) Viewed 11104 times
those worms just Stay there (didn't attack the shieldwall)
20140521015840.jpg
20140521015840.jpg (634.22 KiB) Viewed 11104 times
worms start to attack the reinforced wall(when I shutdown the shield)
20140521015911.jpg
20140521015911.jpg (681.69 KiB) Viewed 11104 times
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by darius456 »

This line (844) is responsible for deleting ghost building that appear after you destroy the device. But it work just fine in my save. But I will try... fix it once again.

Edit 20.05.2014 23:45
I have uploaded fixed version in 1st post.
Bitters will attack force shield, but remember that force shield is very unbalanced, so if You have any suggestions (force shield strength) please share with me.
Please confirm that error in 844 line (its line 853 right now - added some code before) will no longer appear?
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by qi1989223 »

:) NICE....

bug report

when I kill Bitters
20140521100016520.jpg
20140521100016520.jpg (39.75 KiB) Viewed 11093 times
also all of shield wall seems like too easy to destroy by Bitters
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by darius456 »

Like I wrote before: "force shield is very unbalanced" - so I think I will strengthen the shields.
Thx for bug report.
Your save game will be very useful, consider sharing it with me - please :D

line 1133 is responsible for healing force shield and has nothing common with killing Bitters.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by FreeER »

darius456 wrote:line 1133 is responsible for healing force shield and has nothing common with killing Bitters.
It may not have to do with killing biters but it is related to biters destroying a wall (making references to it nil) and then code trying to heal that (nil) wall...
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by darius456 »

FreeER wrote:
darius456 wrote:line 1133 is responsible for healing force shield and has nothing common with killing Bitters.
It may not have to do with killing biters but it is related to biters destroying a wall (making references to it nil) and then code trying to heal that (nil) wall...
Truth, but never had this bug before I'm trying to reproduce it without success.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.3

Post by qi1989223 »

darius456 wrote:Like I wrote before: "force shield is very unbalanced" - so I think I will strengthen the shields.
Thx for bug report.
Your save game will be very useful, consider sharing it with me - please :D

line 1133 is responsible for healing force shield and has nothing common with killing Bitters.

:D

sometimes this bug willbe happen , sometimes not

save data

http://www.mediafire.com/download/z0bf8tjja7j4dm6/0.zip

MOD PACK

http://www.mediafire.com/download/v63ba ... 8/mods.zip

I’m not sure it will be happen :(

but when there are too many Bitters and I'm killing Bitters this bug willbe happen
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.4

Post by darius456 »

May be v0.1.4 will be bug free...
qi1989223 You are my bug hunter, please check this version ;) by the way thx for save and mods list
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
qi1989223
Inserter
Inserter
Posts: 25
Joined: Tue May 20, 2014 12:58 pm
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.4

Post by qi1989223 »

:D

GOOD JOB

and BUG report

It‘s seems not good
36020140521161519908.jpg
36020140521161519908.jpg (172.18 KiB) Viewed 11075 times
shield generator always have no power

looks like somebody that I can’t see him was attack the shield wall
Last edited by qi1989223 on Wed May 21, 2014 8:44 am, edited 1 time in total.
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: [MOD 0.9.x] ForceShield v0.1.5

Post by darius456 »

Sorry for that, I forget to update entity.lua, which is responsible for wall stats, right now should be ok. v0.1.5 in 1st post.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7
Post Reply

Return to “Mods”