try: from ftexplorer.data import Data except ModuleNotFoundError: print('') print('****************************************************************') print('To run this script, you will need to copy or symlink the') print('"ftexplorer" and "resources" dirs from my ft-explorer project so') print('they exist here as well. Sorry for the bother!') print('****************************************************************') print('') sys.exit(1) try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Output variables
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Python script to generate my TPS Configurable Slot Machines mod import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Output variables
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Output variables
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) try: from ftexplorer.data import Data
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Python script to generate my No Wasted COMs mod import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Output variables
lines.append('BL2') lines.append('#<omg>') lines.append('') # Loop through levels for (label, level) in data.get_levels(): lines.append('#<{}>'.format(label)) lines.append('') for package in data.get_level_package_names(level): main_node = data.get_node_by_full_object(package) for soundvol in main_node.get_children_with_name('wwisesoundvolume'): soundvolstruct = soundvol.get_structure() if 'EnvironmentalEffects' in soundvolstruct and soundvolstruct[ 'EnvironmentalEffects'] != '': for (idx, effect) in enumerate( soundvolstruct['EnvironmentalEffects']): lines.append( 'level {} set {}.{} EnvironmentalEffects[{}].Effect None' .format(level, package, soundvol.name, idx)) lines.append('') lines.append('#</{}>'.format(label)) lines.append('') lines.append('') lines.append('#</omg>') print('writing to remove_wwise_audio_effects.blcm') mp = ModProcessor() mp.human_str_to_blcm_filename("\n".join(lines), 'remove_wwise_audio_effects.blcm')
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Constants
from modprocessor import ModProcessor lines = [] lines.append('BL2') lines.append('#<omg>') lines.append('') data = Data('BL2') for (label, level) in data.get_levels(): print('Processing {}'.format(label)) lines.append('#<{}>'.format(label)) lines.append('') for package in data.get_level_package_names(level): main_node = data.get_node_by_full_object(package) children = list(main_node.get_children_with_name('populationopportunitypoint')) children.extend(list(main_node.get_children_with_name('willowpopulationopportunitypoint'))) for child in children: childstruct = child.get_structure() lines.append(' level {} set {}.{} SpawnAndCullRadius 999999999'.format(level, package, child)) lines.append('') lines.append('') lines.append('#</{}>'.format(label)) lines.append('') lines.append('') lines.append('#</omg>') print('writing to ourlord.blcm') mp = ModProcessor() mp.human_str_to_blcm_filename("\n".join(lines), 'ourlord.blcm')
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL CJ KUCERA BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Python script to generate my Guaranteed Varkid Evolution Mod. import sys try: from modprocessor import ModProcessor mp = ModProcessor() except ModuleNotFoundError: print('') print( '********************************************************************') print( 'To run this script, you will need to copy or symlink modprocessor.py') print('from the parent directory, so it exists here as well. Sorry for') print('the bother!') print( '********************************************************************') print('') sys.exit(1) ### ### Output variables