3 widgets: create startpoints, create mexes, screenshot helper

3 widgets: create startpoints, create mexes, screenshot helper

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
Silentwings
Moderator
Posts: 3580
Joined: 25 Oct 2008, 00:23

3 widgets: create startpoints, create mexes, screenshot helper

Post by Silentwings » 08 Mar 2018, 14:33

Here are 3 small widgets that I use to save time when creating maps.

(1) Place units (in order) using /give into chosen locations, to save an (ordered) table of their locations, which can be used as the table of startpoints in mapinfo.lua or in BAs FFA gadgetry.

(2) Place (&re-place) units in chosen locations, to save an (unordered) table of their locations, which can be used as a table of metal spot locations in the usual lua mex gadgetry.

(3) Sends a few commands in widget:GameStart that make Spring ready to take a png (=lossless) screenshot, without any gui/etc, by simply pressing f12.

See code for further details.
Attachments
map_screenshot_helper.lua
(544 Bytes) Downloaded 8 times
print_metalspot_table_to_file.lua
(545 Bytes) Downloaded 7 times
print_startpoint_table_to_file.lua
(890 Bytes) Downloaded 8 times
2 x

Post Reply

Return to “Map Creation”

cron