Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocompler is error : No such file or directory #5

Open
czfshine opened this issue Nov 30, 2014 · 1 comment
Open

autocompler is error : No such file or directory #5

czfshine opened this issue Nov 30, 2014 · 1 comment

Comments

@czfshine
Copy link

Hi~~ I want to improve my english.
Today I clone the ds_mod_tools into my PC,make is succeed .
But I cd to ./build/linux/mod_tools ,Run ./autocompler ,it say No such file or directory.
My computer system is ubuntu 14.04.

Like this:

czfshine@czfshine:/mnt/d/mods/ds_mod_tools-master/build/linux/mod_tools$ ./autocompiler
/usr/bin/python2.7

Atlasing ./../../dont_starve/mods/wand/images/inventoryimages/wand.png npot: False
Atlasing
Traceback (most recent call last):
File "./compiler_scripts/image_build.py", line 110, in
process_file_to_atlas()
File "./compiler_scripts/image_build.py", line 100, in process_file_to_atlas
ignore_exceptions=args.ignoreexceptions, generate_mips=True) #, no_premultiply=im.mode=='RGB' )
File "/mnt/d/mods/ds_mod_tools-master/build/linux/mod_tools/buildtools/linux/Python27/Lib/site-packages/klei/textureconverter.py", line 113, in Convert
if subprocess.call( cmd_list ) != 0:
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ERROR: Command failed!

Log:
compiler registered: ./png
compiler registered: ./scml

Compiling ./../../dont_starve/mods/wand/images/inventoryimages/wand.png.

"./png" "./../../dont_starve/mods/wand/images/inventoryimages/wand.png" "./../../dont_starve/mods/wand"

Compiling './../../dont_starve/mods/wand/images/inventoryimages/wand.png'

"python2.7" "./compiler_scripts/image_build.py" "./../../dont_starve/mods/wand/images/inventoryimages/wand.png"

ERROR: Command failed!

@a8568730
Copy link

a8568730 commented Aug 18, 2017

The error occurs when the ktools is not installed.
My friend found the complete build autocompiler process as below:

# NOTE:
# {DST_ROOT} means the DST root directory: 
# ~/.local/share/Steam/steamapps/common/Don\'t\ Starve\ Together/

Step. Install and clone tools

$ cd {DST_ROOT}
$ sudo apt-get install cmake libmagick++-dev 
$ sudo apt-get install premake4 
$ git clone [email protected]:nsimplex/ktools.git
$ git clone [email protected]:kleientertainment/ds_mod_tools.git

Step. Build and install ktools

$ cd ./ktools/
$ ./configure && make
$ sudo make install

Step. Build ds_mod_tools linux autocompiler

$ cd ../ds_mod_tools/src/
$ bash premake.sh
$ cd ../build/proj/
$ make

Step. Copy build/linux(it contains autocompiler) to DST_ROOT

$ cd ../
$ cp  -r ./linux {DST_ROOT}

Step. Copy your mod directory to DST_ROOT/mods

$ cp  -r ~/home/MyCharacter/ {DST_ROOT}/mods

Step. Rock!

$ cd {DST_ROOT}/linux/mod_tools/
$ ./autocompiler

The autocompiler will compiler ALL the mods in {DST_ROOT}/mods.
So after run ./autocompiler, just open DST and host a new server with you mod enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants