Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
SRB2
SRB2
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 264
    • Issues 264
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 82
    • Merge Requests 82
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • STJr
  • SRB2SRB2
  • Issues
  • #197

Closed
Open
Opened Jul 18, 2020 by Sal@TehRealSalt 
  • Report abuse
  • New issue
Report abuse New issue

Lua: musintername and muspostbossname sometimes return garbage

I have a script that prints out all of the music names for each level. musname seems to return correctly, but musintername and muspostbossname either return an empty string (expected) or garbage leaking from the SOC definition (not expected).

Lua script:

for i = 1,1035
    if (mapheaderinfo[i] == nil)
        continue
    end

    print(mapheaderinfo[i].musname, mapheaderinfo[i].musintername, mapheaderinfo[i].muspostbossname)
end

Snippet of console output:

SPEC1

bably 
SPEC2


Recor
SPEC3

ue
Lev
SPEC4

reenfl
SPEC5

ect = 
SPEC6

ete.


SPEC7

peOfLe
BHZ

 = 110
SPEC1

kyboxS
SPEC2

gTitle
SPEC3

evelSe
SPEC4

l Tech
SPEC5

 Puffi
SPEC6

e
Flic
SPEC7

ck = t
CCZ

8
Reco
DHZ

Boss =
APZ1

Attack
APZ2


Flick
MAP99M

r%
GFZALT

boxSca
AGZALT

ee act
MP_WTR

leplay
MP_ICE

NextLe
ERZ2


LEVEL
MP_RAI

eOfLev
THZ1

Single
CEZ1

s

Lev
MP_AIR

Palace
MP_SUN

INTERF
THZ1

r = SK
DSZ2

5

Lev
CEZ2

NCOLOR
MP_DES

0000,9
RVZ2

N
Type
MP_DOM

del
Mu
MP_GHZ

7

Lev
MP_AIR

e = Eg
AGZ

rgroun
MP_ICE

= F7
S
MP_MED

sitNee
TUTORL

 = 2
S
Edited Jul 18, 2020 by Sal
Assignee
Assign to
2.2.7
Milestone
2.2.7
Assign milestone
Time tracking
None
Due date
No due date
1
Labels
Bug
Assign labels
  • View project labels
Reference: STJr/SRB2#197