Notifications
Clear all
[Closed] [MXS] Parameter Block error… WTF?
Nov 05, 2017 4:29 am
Can someone explain to me why a simple script containing only a parameter block and a rollout in an external SpawnflagRO.ms maxscript file…
--spawnflags parameter block
parameters spwnflgs rollout:SpawnflagRO
(
spfl1 type:#boolean checked:false ui:spfl_1
spfl2 type:#boolean checked:false ui:spfl_2
spfl3 type:#boolean checked:false ui:spfl_3
spfl4 type:#boolean checked:false ui:spfl_4
spfl5 type:#boolean checked:false ui:spfl_5
spfl6 type:#boolean checked:false ui:spfl_6
spfl7 type:#boolean checked:false ui:spfl_7
spfl8 type:#boolean checked:false ui:spfl_8
spfl9 type:#boolean checked:false ui:spfl_9
spfl10 type:#boolean checked:false ui:spfl_10
spVal type:#string default:"0" ui:SpawnflagVal
spLbl type:#string default:"spawnflags 0" ui:SpawnflagLbl
)
rollout SpawnflagRO "Spawnflags" (
blah
blah
blah
)
That is then included in a much larger script where Custom Attribute definitions use the above SpawnflagRO.ms file in their definitions by using the “include” command, WORKS CORRECTLY when the “master” maxscript file is run directly. BUT FAILS generating a parameter block error when I put both files in a .MZP file and run the .MZP file???
USAGE excerpt:
MPmisc_modelCA = attributes MPmisc_model
(
include "SpawnflagRO.ms"
/* other CA parameters, rollouts, bullshit, etc. */
)
ERROR:
-- Error occurred during fileIn in "C:\Users\MICHAE~1\AppData\Local\Temp\mzptmp18\SpawnflagRO.ms"; line number: 1
>> MAXScript FileIn Exception:
-- Syntax error: at parameters, expected <factor>
-- In line: parameters s <<
2 Replies
Nov 05, 2017 4:29 am
Guess you just omitted the mzp.run file, in that case all the files inside are run and your paramblock file is not a valid script per se.