[0.13+] JD_Signposts_0.0.2

Topics and discussion about specific mods
User avatar
JohnnyDeee
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Oct 16, 2016 8:52 pm
Contact:

[0.13+] JD_Signposts_0.0.2

Post by JohnnyDeee »

JD_Signposts
Description
Pictures
Features
TODO
Issues
Changelog
Version History
Last edited by JohnnyDeee on Tue Oct 18, 2016 9:21 pm, edited 5 times in total.
"A man can only be beaten in two ways: if he gives up, or he dies"
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by steinio »

mega.nz?

Is this a virus or what? Upload it to the forum or mod portal please.
Can anybody please scan the file.

Greetings steinio
Image

Transport Belt Repair Man

View unread Posts
User avatar
JohnnyDeee
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Oct 16, 2016 8:52 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by JohnnyDeee »

steinio wrote:mega.nz?

Is this a virus or what? Upload it to the forum or mod portal please.
Can anybody please scan the file.

Greetings steinio
I will upload it to the mod portal, i just needed to put a download link there according to the template ;)

EDIT: Done !
"A man can only be beaten in two ways: if he gives up, or he dies"
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by aubergine18 »

You can use the `shift` property in the table that defines the image to move the image down, resulting in the item/fluid icon appearing on the main part of the sign rather than its base.

You can use `flying-text` entity type to add text to the map.

Keep the control.lua, it will be useful to stop sign rotation on the build events, using the .rotatable property
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
JohnnyDeee
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Oct 16, 2016 8:52 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by JohnnyDeee »

aubergine18 wrote:You can use the `shift` property in the table that defines the image to move the image down, resulting in the item/fluid icon appearing on the main part of the sign rather than its base.

You can use `flying-text` entity type to add text to the map.

Keep the control.lua, it will be useful to stop sign rotation on the build events, using the .rotatable property
Thanks for the info!!
aubergine18 wrote:You can use `flying-text` entity type to add text to the map.
What do you mean with "map", like the actual game map when you press 'M'?
Last edited by JohnnyDeee on Tue Oct 18, 2016 6:57 pm, edited 2 times in total.
"A man can only be beaten in two ways: if he gives up, or he dies"
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by aubergine18 »

For the world map (when you press M) you'd have to use train stations to add text to that.

For the normal game map, flying-text entities enable you to add text labels (you can set their .active = false to prevent them from floating up and disappearing). I use it a lot when testing complex entities to display state information on the map:

Image
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
JohnnyDeee
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Oct 16, 2016 8:52 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by JohnnyDeee »

aubergine18 wrote:For the world map (when you press M) you'd have to use train stations to add text to that.

For the normal game map, flying-text entities enable you to add text labels (you can set their .active = false to prevent them from floating up and disappearing). I use it a lot when testing complex entities to display state information on the map
Ah okay yeah well i havent decided yet how i'm going to make the "text" appear, because this way would look very chaotic if you have alot of signposts..

Also
aubergine18 wrote:Keep the control.lua, it will be useful to stop sign rotation on the build events, using the .rotatable property
It works, but i can still rotate it before i place it down somewhere..
Is there another on_event im missing or do i have to do something like find the entity in the beginning of the game and set its .rotatable there?
"A man can only be beaten in two ways: if he gives up, or he dies"
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [0.13+] JD_Signposts_0.0.1

Post by aubergine18 »

Nope, there's currently not way to stop a rotatable object from being rotated during placement, although you can just give it same sprite for each rotation. An alternate is to have the placeable item use an entity that's not rotatable, then once that entity is built replace it with some other item.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
abordoli
Fast Inserter
Fast Inserter
Posts: 131
Joined: Thu May 25, 2017 1:19 am
Contact:

Re: [0.13+] JD_Signposts_0.0.2

Post by abordoli »

Any plans to port this up to 0.15?
Regards,
~B
Post Reply

Return to “Mods”