Lua sector lines
Adds support for "sector.lines" in Lua, an array containing all the linedefs in a particular sector variable:
#sector.lines returns the number of lines in the sector.
sector.lines[ i ] (e.g. sector.lines[0], sector.lines[1], sector.lines[2], etc ....) gives you individual linedefs in the sector. If the number you supply is equal to or greater than #sector.lines, this returns nil.
Test script for your benefit: (see comments)
Type "luatest" in console in any level and you'll get a few print messages that tests these features for sectors[0]
Merge request reports
Activity
Filter activity
Attaching the test script here so it doesn't have to rely on my Dropbox Luatest-seclines.lua
Added 142 new commits:
- e6f0a4be - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- e49f531b - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- 2e58f6c4 - Fixed that odd bug where PolyObjects sometimes leave a vertex or two in their control sectors
- ee75abf8 - Merge branch 'master' into next
- 236170ea - Merge branch 'master' into next
- f17be664 - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- ccb0abb8 - Diagonal ring springs should now be able to face any angle
- c33d20ac - whitespace cleanup
- 7d6dc3a5 - fix bad lstring usage in map header lua
- 9d571876 - interscreen is a lump name and thus needs lstring
- 674ff511 - Fix shadowing in mapheaderinfo_get
- 6af27212 - Merge branch 'mapinfo-hotfix' into 'next'
- 4df95122 - Merge branch 'next' of http://git.magicalgirl.moe/STJr/SRB2 into public_next
- 80fb2823 - Fixed math for calculating current texture in texture animations
- 732c1a87 - Merge branch 'texture-anims-fix' into 'next'
- d76e21b5 - fix bind out of bounds / keystring misreading
- 7d603c32 - Merge branch 'next' of http://git.magicalgirl.moe/STJr/SRB2.git into diagonal-spring-rings-tweak
- 84fb4d10 - Merge branch 'diagonal-spring-rings-tweak' into 'next'
- 53204242 - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- 2dc9a4b3 - Merge branch 'master' into next
- 31deecc5 - Colour Changing MD2s
- 6b8c438e - Change a few colours.
- ddb5652a - Tabbing
- 6b626f1b - build: cmake is messly
- 662d4051 - travis: let start building with travis
- 69937b41 - travis: simple build config
- 0003cea5 - travis-ci: we need sudo
- 14440675 - travis: use the correct packages
- 522d2049 - travis: add cmake 3.x package
- 45b181f8 - travis: switch to trusty for linux os
- 0bd16a5a - travis: drop osx
- 5e5c73fe - travis: add SRB2 2.1.14 files
- a743f155 - travis: addd libgme to list
- b6cc13fd - travis: drop test
- 152c106c - travis: restore language
- 59d111b1 - travis: restore missing config?
- e913ca0c - travis: use wget and create cache folder
- ae75e3ee - travis: mkdir , not make and cache the cccahe
- a979e375 - travis: no space on 7z command
- 4d5f1633 - travis: just run make
- 864baeda - cmake: fixed up to handle Clang and AppleClang
- f4886657 - clang: fixup a few clang warnings
- 68054a49 - clang: cleanup
- 07fc74ea - clang: fixup a few clang warnings
- 7c1f1d9c - travis: compile with warnings as errors, skip absolute-value warnings
- 6d26a60c - travis: cache 7z SFX
- e9048aec - travis: premake the cache folder
- 937c8f93 - appveyor: updated to GCC 5.3
- 2b41a400 - appveyor: no quote?
- 0455b572 - Removed weird test for water planes in HWR_Subsector
- 3db1a1fe - add/test appveyor build
- b8cafea4 - appveyor: full path to make binary and no asm or png support
- 21c30a39 - appveyor: allow one to RDP to system to debug build system
- 289b5506 - appveyor: whitespace?
- cbd85e6b - appveyor: spacing
- 8ad85338 - appveyor: found mingw64 32-bit target, do not build with UPX
- 113a3cd6 - appveyor: try again
- 85de668d - appveyor: move set to before_build, and drop gcc and make version
- 6e1b9549 - appveyor: fullpath to binaries
- 443562c3 - appveyor: why is this failing
- 1a72f2f1 - appveyor: wrong path...
- d0ce9170 - appveyor: build for GCC 5.2
- 5bf43171 - appveyor: let try SDL2 builds
- 9422b994 - appveyor: fixup env block
- e5dbd3cb - appveyor: copy and paste mistake on extracting archive comannd
- 9e1ba2e9 - appvenyor: self note only
- 46f9e4a9 - appveyor: we need to run 7zip twice
- ffe193ca - appveyor: mistakes are easy to make
- 53aa9322 - appveyor: ingore robocopy errorcode
- e0f37338 - appveyor: hehe, OR
- 5ace352e - appveyor: manually set SDL flags
- 89786ff7 - appveyor: include the SDL header in depend step:
- f0842d22 - appveyor: add debug and sdl mixer
- 50846880 - appveyor: not = for envs
- 4230225a - appveor: SDL, not SSDL
- 7a09a824 - new flags: DEPFLAGS, to tell the depend step where are the headers
- 2176b21e - ignore noreturns
- d762c402 - appveyor: show us all the commands
- 3c35ed60 - appveyor: fixup cache list
- 7fdb5cfc - move disabled warning out of mingw
- 10e1aaaf - appveyor: no need for DEPFLAGS
- 4d0e1a8a - appveyor: do not echo the full command
- 67b6d618 - appveyor: build with/without the mixer and with/without OpenGL
- 0d327c7c - kill logical-not-parentheses warning in g_game.c
- 050ce857 - let not care for main() being noreturn
- c47ff7b3 - let make the main() entry point noreturns
- e8cf4cda - SDL2: compile SDL with SDL_main for Win32
- b5af756c - appveyor: let stop build the whole mess
- 0728bc6d - appveyor: errormode for all
- c7503b35 - appveyor: need to see what the depend step is not working
- 13866a5b - appveyor: fixup SDL2_MIXER_MOVE
- f30dae21 - appveyor: need a copy of sed
- ca34268a - appveyor: let instal the SDL2 and SDL2_mixer to the Mingw toolchain
- 0e483fc1 - appveyor: or not?
- 62702ede - appveyor: I hope I do not need to debug this build xml again
- 94d36fbe - apveyor: no debug dump
- d7925104 - appveyor: push build to FTP server
- 4b8167d8 - appveyor: let push a 7z in the after build step
- 5582d715 - appveyor: let have the build bot have the right username
- ba1cb80f - appveyor: name each 7z by version"
- 343c8a94 - appveyor: or not, let try this naming
- 38952028 - appveyor: let include the commit id
- 01f2f4d4 - appveyor: move naming of 7z to env block
- b3ee8591 - appveyor: ok, let set the var in after build step
- 0f83c2ae - appveyor: 7z, not 7
- deca16f9 - appveyor: let use short commits
- 181c8750 - SDL: config.h.in is pre source tree, config.h for each cmake build
- f5009866 - use RGB for screen texture, not RGBA
- 82bfce76 - Merge remote-tracking branch 'magicgirl/master'
- 8b56cd76 - doomtype.h tweaks
- 9e29b69a - Remove unused "firstnewseg" variable
- deb958a7 - Remove unused "INVERSECOLORMAP" macro
- 2d94b2a8 - keys.h doesn't need to be included twice here lol
- c05c43cf - Merge branch 'monster-misc' into 'master'
- bac39b1b - debian: untested update for Debian packages
- 5d5956b6 - debian: depend on srb2-data 2.1.14, not 2.1.4
- 5c09c315 - Debian: only just make srb2 depend on srb2-data (2.1.14-1))
- f9d23370 - debian: the data package should be native
- 5d32ccff - fix pkgconfig path for Debian Jessie
- b6203d04 - Create srb2
- c8e7cffa - try install of banner image
- 4f59bf53 - add artwork for BPM
- 5c1dff79 - Next attempt at install banner/desktop shortcut
- 7768ec82 - add missing dirs
- d2137910 - Rename srb2 to srb2.desktop
- 40dff2c1 - missing space for "proper" Debian formatting
- 3ae98920 - missing install section for new desktop/png file
- 1082ae6b - Missing append, <facepalm.jpg>
- c8ae630d - Fix desktop file
- 865676d3 - loose the revision, pkgs switched to native format
- f9d56f65 - Merge pull request #47 (closed) from ProfessorKaos64/brewmaster
- 3ba827f3 - Merge branch 'master' into travis-ci
- 914c6c9d - Whitespace cleanup.
- 985b9a11 - Merge branch 'travis-ci' into 'master'
- cc3d3a67 - Colour Changing MD2s
- d050a60f - Change a few colours.
- 6a67609b - Merge branch 'master' into md2_colourchange
- 7d914913 - Tabbing
- 700c9c2e - Merge branch 'md2_colourchange' into 'master'
- 6000b5c9 - Merge branch 'master' into next
- 5d1c8d29 - My cherry picking somehow lead to these functions being doubled ...whoops
- e44c96e4 - Merge branch 'next' of http://git.magicalgirl.moe/STJr/SRB2.git into lua-sector-lines
Toggle commit listAdded 19 new commits:
- b3b5521e - Merge branch 'master' into next
- e43f21cd - Fix dead MF_PAIN objects hurting the player
- 8cf74f50 - Merge branch 'mf_pain-fix' into 'next'
- 7c5adacc - Fixed chain launching
- 1e15ed2f - Merge branch 'i-hate-stupid-speedrun-tricks' into 'next'
- 5108bb97 - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- 8b7e0347 - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2 into pub_next
- cb954284 - Merge remote-tracking branch 'public/next' into next
- 66175d87 - removed unused macros from doomdef.h
- db18ad6b - Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2.git into monster-misc-2
- 8cc6261c - Merge branch 'monster-misc-2' into 'master'
- b258b9b5 - remove cpuaffinity code from SDL
- 6dda71be - I guess this is becoming the "try to make SDL_mixer work" branch
- aa4414d7 - Merge branch 'sdlmix-master' into 'master'
- 8a369d96 - whitespace clean
- 9b55244d - travis: use SRB2-v2114-assets.7z
- 41f8b25c - travis: add verbose and server-response to wget
- 6655e924 - Merge branch 'master' into next
- 09d2bbc4 - Merge branch 'next' into lua-sector-lines
Toggle commit listmentioned in commit e769b788
Please register or sign in to reply