Search found 188 matches

by gheift
Sun Mar 08, 2015 8:22 pm
Forum: Cheatsheets / Calculators / Viewers
Topic: Blueprint Viewer
Replies: 17
Views: 32432

Re: Blueprint Viewer

Thanks for the lib, just included the code in the page. Now you can use even the compressed Blueprints.
by gheift
Sun Mar 08, 2015 1:29 pm
Forum: Cheatsheets / Calculators / Viewers
Topic: Blueprint Viewer
Replies: 17
Views: 32432

Re: Blueprint Viewer

On linux, use base64 -d | gzip -d This gives you the following code: do local _={entities={[1]={entitynumber=1,name="basic-splitter",position={x=-2,y=-2.5},direction=4},[2]={entitynumber=2,name="basic-splitter",position={x=5,y=-2.5},direction=4},[3]={entitynumber=3,name="bas...
by gheift
Sun Mar 08, 2015 1:05 pm
Forum: Cheatsheets / Calculators / Viewers
Topic: Blueprint Viewer
Replies: 17
Views: 32432

Re: Blueprint Viewer

@ssilk: My initial motivation was to write a better representation for the blueprints, to compress them down. Currently my format has the size of 5% – 15% of the orignial blueprint string and even 20% – 50% of compressed blueprint strings (gzip | base64). To be able to include them in the game later...
by gheift
Sun Mar 08, 2015 9:52 am
Forum: Cheatsheets / Calculators / Viewers
Topic: Blueprint Viewer
Replies: 17
Views: 32432

Re: Blueprint Viewer

@NotABiter: The first two issues should be fixed, the third one is not easy to solve. I think DOM manipulation in Lua is not the best idea, so for now I limited the preview to 500 entities. When I have enough time, I will reimplement the function in pure Javascript with CSS classes. @teenusa: I have...
by gheift
Sun Mar 08, 2015 3:00 am
Forum: Modding help
Topic: Picture positioning
Replies: 4
Views: 2441

Re: Picture positioning

by gheift
Sun Mar 08, 2015 2:59 am
Forum: Cheatsheets / Calculators / Viewers
Topic: Blueprint Viewer
Replies: 17
Views: 32432

Blueprint Viewer

This nice service seems to be off-line -- ssilk Hello everybody, I have created a first version of an online viewer for blueprints created by the Foreman - Blueprint Manager [1] or Blueprint String [2] aslong as they are uncompressed. My initial attempt was to create a compression function for thes...
by gheift
Wed Mar 04, 2015 12:43 pm
Forum: Modding help
Topic: Picture positioning
Replies: 4
Views: 2441

Re: Picture positioning

Thanks, that was the missing information I was not able to find… now I try to import the infos from the factorio data.lua files.
by gheift
Tue Mar 03, 2015 9:55 pm
Forum: Modding help
Topic: Picture positioning
Replies: 4
Views: 2441

Picture positioning

Hello there, I am trying to create a website on which you can edit saved blueprints. But currently I am stucked at displaying the blueprint. I use the information from data/base/prototypes/entity/demo-entities.lua etc. namly entity.selection_box, entitiy.drawing_box, entity.pictures.filename, entity...

Go to advanced search