Vehicle Sticker

by hyspeed

Attach a 'sticker' label to a vehicle. Through integration, labels can be added to cargo-wagons randomly.

Utilities
8 days ago
1.1
91
Transportation
Owner:
hyspeed
Source:
https://github.com/HySpeed/VehicleSticker
Homepage:
https://github.com/hyspeed/VehicleSticker
License:
GNU GPLv3
Created:
5 months ago
Latest Version:
1.3.3 (8 days ago)
Factorio version:
1.1
Downloaded by:
91 users

Vehicle Sticker

A Factorio mod to attach a 'sticker' label to a vehicle.

Thanks to GotLag for 'Renamer' and the functions from that were used.

Usage

  • Hover the cursor over a vehicle and press the hot-key
  • Dialog will prompt for text and color to display
  • Text will be attached to the vehicle and move with it

Concerns

  • Will this cause UPS issues?
  • Paste (shift-right-click) will only trigger for 'similar' units. A locomotive cannot be pasted to a cargo-wagon, for example.

Future

  • Can this be attached to a vehicle in the Map View / Train View screen?

AddWagonSticker

Adds the given text to a random train cargo wagon

Parameters

  • player_name: The player_name to use for surface search.
  • message: The message to be puton the wagon.
  • R: Red color hue (000-255)
  • G: Green color hue (000-255)
  • B: Blue color hue (000-255)

If RGB are omitted or invalid, a random color above 100 is used.

Examples

  • Display the message at the character.

remote.call( "vehicleSticker", "add_wagon_sticker", "hyspeed", "_follower_", 100, 150, 200 )


Helpful commands

Follower

  • /c remote.call( 'vehicleSticker', 'add_wagon_sticker', 'hyspeed', 'follower', 100, 150, 200 )
  • /c remote.call( "vehicleSticker", "add_wagon_sticker", "hyspeed", "rando" )