mirror of
https://github.com/SWG-Source/swg-main.git
synced 2026-01-16 20:04:18 -05:00
Merge pull request #13 from AlecH92/master
This commit is contained in:
@@ -397,6 +397,13 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!-- Creates the Planet CRC file -->
|
||||
<target name="build_planet_crc" description="creates the planet crc file" depends="compile_tab">
|
||||
<exec executable="utils/build_planet_crc_string_tables.py" dir="${basedir}">
|
||||
<env key="PATH" value="${env.PATH}:${tools_home}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!-- Creates SQL (insert statements) to get all the CRC Templates into the database -->
|
||||
<target name="process_templates" description="generates sql from generated crc files" depends="build_object_template_crc,build_quest_crc">
|
||||
<exec executable="perl" dir="${basedir}/src/game/server/database/templates" input="${object_crc_file}" output="${templates_sql_file}">
|
||||
|
||||
16
utils/build_planet_crc_string_tables.py
Normal file
16
utils/build_planet_crc_string_tables.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from os import path, makedirs
|
||||
from subprocess import PIPE, Popen
|
||||
|
||||
inputfile = './dsrc/sku.0/sys.shared/compiled/game/misc/planet_crc_string_table.txt'
|
||||
ifffile = './data/sku.0/sys.shared/compiled/game/misc/planet_crc_string_table.iff'
|
||||
|
||||
if not path.exists(path.dirname(ifffile)):
|
||||
makedirs(path.dirname(ifffile))
|
||||
|
||||
crc_call = ['./tools/buildCrcStringTable.pl', ifffile, inputfile]
|
||||
|
||||
p = Popen(crc_call, stdin=PIPE, stdout=PIPE)
|
||||
|
||||
p.communicate()
|
||||
Reference in New Issue
Block a user