[MOD 0.14] Sticky notes - leave notes or signs on the map

Topics and discussion about specific mods
User avatar
KroshkaYenot
Inserter
Inserter
Posts: 27
Joined: Tue Jun 28, 2016 6:49 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by KroshkaYenot »

It's me again. Looks like you've forgot some debug logging for on_gui_click and on_gui_text_changed events in 1.0.6

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

KroshkaYenot wrote:It's me again. Looks like you've forgot some debug logging for on_gui_click and on_gui_text_changed events in 1.0.6
Ooops, you're right ! ;-)
please update to 1.0.7.

I am looking at putting a floating text on any entity on the map. We'll see what I can do...
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

KroshkaYenot wrote:I have a suggestion (not an order or request or something): Is there any possibility to write text directrly in combinators and lamps ?
Are you dreaming ???? Why not on any object on the map, belonging to your force ???

Well, that's what I did in the last version. ;)

To avoid problems with ENTER key that is used to go inside vehicles, I changed the Notes shorcut key to ALT-W.

Now you can create Sticky Notes or Signs but also directly use the ALT-W on any selected object to add a text on it.
So you can use it on your combinators or lamps.

Tell me if it works.
It is forbiden on vehicles, to avoid problem with text staying at one place while vehicle moving. Maybe I should add other forbidden cases. Let me know.

Note that when object is destroyed, attached text is also destroyed and lost, even if reconstructed by robot. I don't know how to prevent this for the moment.
My mods on the Factorio Mod Portal :geek:

User avatar
KroshkaYenot
Inserter
Inserter
Posts: 27
Joined: Tue Jun 28, 2016 6:49 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by KroshkaYenot »

Man... That's cool ! I can't stop signing all my combinators! Unbelievably huge thanks!

Here is my localization for this useful mod.
Attachments
ru.cfg
(1.66 KiB) Downloaded 120 times

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

KroshkaYenot wrote:Man... That's cool !
:-D

Thx for the locale.
I also added a french locale.
New version.
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

Now the mod integrates optional colorpicker by Mooncat for fine color tuning !
Give it a try and download it here : https://mods.factorio.com/mods/Mooncat/color-picker


please update
My mods on the Factorio Mod Portal :geek:

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Mooncat »

Thanks for supporting Color Picker, and the locale! :D

Demosthenex
Fast Inserter
Fast Inserter
Posts: 144
Joined: Mon Mar 14, 2016 3:51 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Demosthenex »

Using StickyNotes 1.0.2 for 0.13 on a MP server with many forces, when I place a note or sign it always shows as an enemy structure. I can't edit the text or remove it.

Are you defaulting to "player" force on placement, instead of inheriting the force of the placing player?

EDIT:

Checked the source, in control.lua line 232:

Code: Select all

    ent.force = game.forces.player
It isn't reading the player's force, it's using the default.

EDIT again:

Fixed in my local copy, change line 232 to:

Code: Select all

		ent.force = player.force
Now I place it and the sign is owned by my player and the force I'm in.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

Thx for your return.

This error was already corrected in a previous version.

You should update to factorio 0.14 :
in last version of the mod, now player can add a text on any entity on the map (of his own force), using the ALT-W key
My mods on the Factorio Mod Portal :geek:

Recon777
Filter Inserter
Filter Inserter
Posts: 267
Joined: Fri Jun 10, 2016 4:04 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Recon777 »

Very cool! This will help a lot with Factorissimo... Unfortunately, labeled objects lose their labels when picked up.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

Recon777 wrote:Very cool! This will help a lot with Factorissimo... Unfortunately, labeled objects lose their labels when picked up.
sorry but there is no way to save this info.
how could you differenciate these objects once they are in a stack... ;-)
My mods on the Factorio Mod Portal :geek:

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Nexela »

binbinhfr wrote:
Recon777 wrote:Very cool! This will help a lot with Factorissimo... Unfortunately, labeled objects lose their labels when picked up.
sorry but there is no way to save this info.
how could you differenciate these objects once they are in a stack... ;-)

Factorisimo stores the data by setting the health of the item to X value when you pick it up. So saving your label would be possible just might take a little work on both mods.

Factorisimo - when picked up would have to send a remote.call to sticky notes to "get" the note (and save it's data). Sticky notes would would pass the note data (and delete the note) when it received the call. When a factorisimo is placed if there is any "stored" data for sticky notes, factorisimo would have to send a "set" remote.call to sticky notes to create a note on the building.

ElectronicDrug
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Dec 20, 2016 7:02 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by ElectronicDrug »

Nice feature would be able to toggle whether notes only show in ALT-view

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

ElectronicDrug wrote:Nice feature would be able to toggle whether notes only show in ALT-view
But then how would you edit them or delete them if you cannot access the object in the main view ?
My mods on the Factorio Mod Portal :geek:

ElectronicDrug
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Dec 20, 2016 7:02 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by ElectronicDrug »

binbinhfr wrote:
ElectronicDrug wrote:Nice feature would be able to toggle whether notes only show in ALT-view
But then how would you edit them or delete them if you cannot access the object in the main view ?
Sorry I mean so text only shows up on alt-view. :) Mainly for me I only use to label factories and combinators.

Silden
Inserter
Inserter
Posts: 45
Joined: Thu Sep 10, 2015 3:59 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Silden »

I find that I can't assign any text to it, it just prints Text then a number. I don't get the dialog boxes shown on the first page.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

Silden wrote:I find that I can't assign any text to it, it just prints Text then a number. I don't get the dialog boxes shown on the first page.
Did you try the shortcut key Alt-W ?

Don't forget to disable the auto-show option if you want the text to be printed constantly.
My mods on the Factorio Mod Portal :geek:

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Nexela »

Feature Requests -
#1 Make notes not mineable (have to use delete option)
#2 add additional option to locked so only admins can change/modify.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by binbinhfr »

I cannot make them all not-minable by default, because most users already delete them that way.
But the "admin" lockable option could make them not minable, so that your goal is achieved : protect some signs from deletion or modification by non-admin.

I made changes :
Please update on portal and tell me if it's ok for you.
My mods on the Factorio Mod Portal :geek:

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [MOD 0.13] Sticky notes - leave notes or signs on the map

Post by Nexela »

binbinhfr wrote:I cannot make them all not-minable by default, because most users already delete them that way.
But the "admin" lockable option could make them not minable, so that your goal is achieved : protect some signs from deletion or modification by non-admin.

I made changes :
Please update on portal and tell me if it's ok for you.

Awesome! Will need to wait for a server restart to test and I will let you know.

Keep up the awesome work.

Post Reply

Return to “Mods”