aboutsummaryrefslogtreecommitdiff
path: root/games
Commit message (Expand)AuthorAge
* Load dependencies and description from mod.confAndrew Ward2018-03-28
* Add reasons to on_dieplayer and on_hpchangeAndrew Ward2018-03-28
* Add minetest.bulk_set_node call + optimize Environment::set_node call (#6958)Loïc Blot2018-01-30
* Fix default item callbacks to work with nil users (#5819)raymoo2017-10-28
* Real global textures (#6105)Vitaliy2017-10-15
* Implement mod communication channels (#6351)Loïc Blot2017-09-26
* Remove nodeupdate completely (#6358)Rui2017-09-01
* Add LuaEntity on_death callback (#6177)Loïc Blot2017-07-27
* Minimal: Add river water nodes (#5809)Paramat2017-05-24
* Private nodemeta (#5702)sfan52017-05-10
* Player attrs: permits to remove an attribute by setting value to nil (#5716)Loïc Blot2017-05-07
* lua: remove core.cause_error call (#5637)Loïc Blot2017-04-22
* Fix not being able to damage players in minimal (#5266)red-0012017-02-18
* Add particle animation, glowsfan52017-01-18
* Add 2D sheet animation for nodessfan52017-01-02
* Added "[sheet" to the texture special commands.Luke Puchner-Hardman2017-01-02
* Minimal game: Use field 'tiles' instead of 'tile_images'Rogier2016-12-24
* Mapgen: Various fixes and improvementsparamat2016-01-11
* Minimal: Add mapgen alias for airparamat2015-12-30
* Fix spelling of noise_thresholdJun Zhang2015-12-06
* Fix relief mapping issuesRealBadAngel2015-07-16
* Minimal: Remove recently added unnecessary nodesparamat2015-07-14
* Simpler patch for saplings trying to grow on unknown nodesShadowNinja2015-06-16
* Add list-ringsest312015-06-16
* Don't crash when saplings try to grow on unknown nodesy.st2015-06-15
* Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliasesparamat2015-06-12
* Minimal: Edit mapgen aliases. Use blob ore for clay, update other ores. Updat...paramat2015-06-09
* Fix NDT_GLASSLIKE normalsKahrl2015-01-31
* Remove builtin_biome.lua from builtin and add simple biome minimalparamat2015-01-11
* Add lua exception handling test codesapier2014-08-23
* Minimal game: add /dummyball <count> commandKahrl2014-08-23
* Add minetest.swap_nodeNovatux2013-11-30
* Change default value of is_ground_content to truekwolekr2013-11-30
* Fix possible crash with grass ABM.Novatux2013-11-02
* Fix grass adding/removing ABM.Novatux2013-11-02
* Move the sapling growing and grass adding/removing ABMs to LuaNovatux2013-11-02
* Remove mapgen_air alias (#935)0gb.us2013-10-05
* Add mapgen_stair_cobble alias to minimalSfan52013-09-06
* Add support for different drowning damage and allow drowning in other nodetypesBlockMen2013-08-06
* Add drowningPilzAdam2013-06-19
* Compress texturesDavid Gumberg2013-06-18
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
* Use the group "soil" for nodes that saplings grow onShadowNinja2013-05-20
* games/minimal: Add menu/background.png and menu/icon.pngPerttu Ahola2013-05-02
* Add Mapgen V7, reorganize biomeskwolekr2013-04-07
* unkn own block -> unkn own nodekhonkhortisan2013-04-05
* Add different place sound for nodesPilzAdam2013-03-29
* Use minetest.register_ore() in minimalPilzAdam2013-03-24
* Mapgen indev: float islands, larger far biomesproller2013-03-24
* Liquid fine tuningproller2013-03-14
pan class="hl opt">) filter=3 ;; prewitt5|4) filter=4 ;; 3x3|5) filter=5 ;; 5x5|6) filter=6 ;; 7x7|7) filter=7 ;; 9x9|8) filter=8 ;; *) filter=0 ;; esac shift shift ;; --heightalpha|-a) heightsource=1 shift ;; --conversion|-c) if [ -z "$2" ] ; then echo "Missing conversion parameter"; exit 1; fi case "$2" in biased|1) conversion=1 ;; red|2) conversion=2 ;; green|3) conversion=3 ;; blue|4) conversion=4 ;; maxrgb|5) conversion=5 ;; minrgb|6) conversion=6 ;; colorspace|7) conversion=7 ;; normalize-only|8) conversion=8 ;; heightmap|9) conversion=9 ;; *) conversion=0 ;; esac shift shift ;; --wrap|-w) wrap=1 shift ;; --invertx|-x) invertx=1 shift ;; --inverty|-y) inverty=1 shift ;; --dryrun|-d) dryrun=true shift ;; *) echo -e "\nUsage:\n" echo "`basename $0` [--scale|-s <value>] [--filter|-f <string>]" echo " [--wrap|-w] [--heightalpha|-a] [--invertx|-x] [--inverty|-y]" echo " [--conversion|-c <string>] [--skiptools|-t] [--skipinventory|-i [<value>]]" echo " [--dryrun|-d] [--pattern|-p <pattern>]" echo -e "\nDefaults to a scale of 8, checking all files in the current directory, and not" echo "skipping apparent tools or inventory images. Filter, if specified, may be one" echo "of: sobel3, sobel5, prewitt3, prewitt5, 3x3, 5x5, 7x7, or 9x9, or a value 1" echo "through 8 (1=sobel3, 2=sobel5, etc.). Defaults to 0 (four-sample). The height" echo "source is taken from the image's alpha channel if heightalpha is specified.\n" echo "" echo "If inventory skip is specified, an optional resolution may also be included" echo "(default is 64). Conversion can be one of: biased, red, green, blue, maxrgb," echo "minrgb, colorspace, normalize-only, heightmap or a value from 1 to 9" echo "corresponding respectively to those keywords. Defaults to 0 (simple" echo "normalize) if not specified. Wrap, if specified, enables wrapping of the" echo "normalmap around the edges of the texture (defaults to no). Invert X/Y" echo "reverses the calculated gradients for the X and/or Y dimensions represented" echo "by the normalmap (both default to non-inverted)." echo "" echo "The pattern, can be an escaped pattern string such as \*apple\* or" echo "default_\*.png or similar (defaults to all PNG and JPG images in the current" echo "directory that do not contain \"_normal\" or \"_specular\" in their filenames)." echo "" echo "If set for dry-run, the actions this script will take will be printed, but no" echo "images will be generated. Passing an invalid value to a switch will generally" echo "cause that switch to revert to its default value." echo "" exit 1 ;; esac done echo -e "\nProcessing files based on pattern \"$pattern\" ..." normalMap() { out=`echo "$1" | sed 's/.png/_normal.png/' | sed 's/.jpg/_normal.png/'` echo "Launched process to generate normalmap: \"$1\" --> \"$out\"" >&2 gimp -i -b " (define (normalMap-fbx-conversion fileName newFileName filter nscale wrap heightsource conversion invertx inverty) (let* ( (image (car (gimp-file-load RUN-NONINTERACTIVE fileName fileName))) (drawable (car (gimp-image-get-active-layer image))) (drawable (car (gimp-image-flatten image))) ) (if (> (car (gimp-drawable-type drawable)) 1) (gimp-convert-rgb image) () ) (plug-in-normalmap RUN-NONINTERACTIVE image drawable filter 0.0 nscale wrap heightsource 0 conversion 0 invertx inverty 0 0.0 drawable) (gimp-file-save RUN-NONINTERACTIVE image drawable newFileName newFileName) (gimp-image-delete image) ) ) (normalMap-fbx-conversion \"$1\" \"$out\" $2 $3 $4 $5 $6 $7 $8)" -b '(gimp-quit 0)' } export -f normalMap for file in `ls $pattern |grep -v "_normal.png"|grep -v "_specular"` ; do invtest=`file "$file" |grep "$invresolution x $invresolution"` if $skipinventory && [ -n "$invtest" ] ; then echo "Skipped presumed "$invresolution"px inventory image: $file" >&2 continue fi tooltest=`echo "$file" \ | grep -v "_tool" \ | grep -v "_shovel" \ | grep -v "_pick" \ | grep -v "_axe" \ | grep -v "_sword" \ | grep -v "_hoe" \ | grep -v "bucket_"` if $skiptools && [ -z "$tooltest" ] ; then echo "Skipped presumed tool image: $file" >&2 continue fi if $dryrun ; then echo "Would have generated a normalmap for $file" >&2 continue else echo \"$file\" $filter $scale $wrap $heightsource $conversion $invertx $inverty fi done | xargs -P $numprocs -n 8 -I{} bash -c normalMap\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}